Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings:iio:magnetometer:asahi-kasei,ak8974: txt to yaml format conversion

Simple conversion. I have pruned descriptions that did not add much useful
detail. Note that the mount-matrix description will form part of a generic
IIO binding. No need to repeat that in every driver that uses it.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201031184854.745828-25-jic23@kernel.org

+57 -31
-31
Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt
··· 1 - * Asahi Kasei AK8974 magnetometer sensor 2 - 3 - Required properties: 4 - 5 - - compatible: 6 - * "asahi-kasei,ak8974" 7 - * "alps,hscdtd008a" 8 - - reg : the I2C address of the magnetometer 9 - 10 - Optional properties: 11 - 12 - - avdd-supply: regulator supply for the analog voltage 13 - (see regulator/regulator.txt) 14 - - dvdd-supply: regulator supply for the digital voltage 15 - (see regulator/regulator.txt) 16 - - interrupts: data ready (DRDY) and interrupt (INT1) lines 17 - from the chip, the DRDY interrupt must be placed first. 18 - The interrupts can be triggered on rising or falling 19 - edges alike. 20 - - mount-matrix: an optional 3x3 mounting rotation matrix 21 - 22 - Example: 23 - 24 - ak8974@f { 25 - compatible = "asahi-kasei,ak8974"; 26 - reg = <0x0f>; 27 - avdd-supply = <&foo_reg>; 28 - dvdd-supply = <&bar_reg>; 29 - interrupts = <0 IRQ_TYPE_EDGE_RISING>, 30 - <1 IRQ_TYPE_EDGE_RISING>; 31 - };
+57
Documentation/devicetree/bindings/iio/magnetometer/asahi-kasei,ak8974.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/magnetometer/asahi-kasei,ak8974.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Asahi Kasei AK8974 magnetometer sensor 8 + 9 + maintainers: 10 + - Linus Walleij <linus.walleij@linaro.org> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - alps,hscdtd008a 16 + - asahi-kasei,ak8974 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + interrupts: 22 + minItems: 1 23 + maxItems: 2 24 + description: | 25 + Data ready (DRDY) and interrupt (INT1) lines from the chip. The DRDY 26 + interrupt must be placed first. The interrupts can be triggered on 27 + rising or falling edges. 28 + 29 + avdd-supply: true 30 + 31 + dvdd-supply: true 32 + 33 + mount-matrix: true 34 + 35 + additionalProperties: false 36 + 37 + required: 38 + - compatible 39 + - reg 40 + 41 + examples: 42 + - | 43 + #include <dt-bindings/interrupt-controller/irq.h> 44 + i2c { 45 + #address-cells = <1>; 46 + #size-cells = <0>; 47 + 48 + magnetometer@f { 49 + compatible = "asahi-kasei,ak8974"; 50 + reg = <0x0f>; 51 + avdd-supply = <&foo_reg>; 52 + dvdd-supply = <&bar_reg>; 53 + interrupts = <0 IRQ_TYPE_EDGE_RISING>, 54 + <1 IRQ_TYPE_EDGE_RISING>; 55 + }; 56 + }; 57 + ...