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:honeywell,hmc5843: txt to yaml format conversion

Mostly a straight conversion, but the txt file had an oddity.
It documented a gpios property for what appeared to be in interrupt line.
There are mainline dts that have this as interrupts, so I've converted
it to that.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Link: https://lore.kernel.org/r/20201031184854.745828-27-jic23@kernel.org

+43 -21
-21
Documentation/devicetree/bindings/iio/magnetometer/hmc5843.txt
··· 1 - * Honeywell HMC5843 magnetometer sensor 2 - 3 - Required properties: 4 - 5 - - compatible : should be "honeywell,hmc5843" 6 - Other models which are supported with driver are: 7 - "honeywell,hmc5883" 8 - "honeywell,hmc5883l" 9 - "honeywell,hmc5983" 10 - - reg : the I2C address of the magnetometer - typically 0x1e 11 - 12 - Optional properties: 13 - 14 - - gpios : should be device tree identifier of the magnetometer DRDY pin 15 - 16 - Example: 17 - 18 - hmc5843@1e { 19 - compatible = "honeywell,hmc5843" 20 - reg = <0x1e>; 21 - };
+43
Documentation/devicetree/bindings/iio/magnetometer/honeywell,hmc5843.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/honeywell,hmc5843.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Honeywell HMC5843 magnetometer sensor 8 + 9 + maintainers: 10 + - Neil Brown <neilb@suse.de> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - honeywell,hmc5843 16 + - honeywell,hmc5883 17 + - honeywell,hmc5883l 18 + - honeywell,hmc5983 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + maxItems: 1 25 + 26 + additionalProperties: false 27 + 28 + required: 29 + - compatible 30 + - reg 31 + 32 + examples: 33 + - | 34 + i2c { 35 + #address-cells = <1>; 36 + #size-cells = <0>; 37 + 38 + magnetometer@1e { 39 + compatible = "honeywell,hmc5843"; 40 + reg = <0x1e>; 41 + }; 42 + }; 43 + ...