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

dt-bindings:iio:pressure:hoperf,hp03 yaml conversion

One quirk in the txt file was that the xclr gpio was specified as
xclr-gpio rather than xclr-gpios. I've fixed that in the
yaml version.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20201031134110.724233-9-jic23@kernel.org

+47 -17
+47
Documentation/devicetree/bindings/iio/pressure/hoperf,hp03.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/pressure/hoperf,hp03.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: HopeRF HP03 digital pressure/temperature sensors 8 + 9 + maintainers: 10 + - Marek Vasut <marex@denx.de> 11 + 12 + description: | 13 + Digital pressure and temperature sensor with an I2C interface. 14 + 15 + properties: 16 + compatible: 17 + const: hoperf,hp03 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + xclr-gpios: 23 + description: 24 + The XCLR pin is a reset of the ADC in the chip, it must be pulled 25 + HI before the conversion and readout of the value from the ADC 26 + registers and pulled LO afterward. 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - reg 32 + 33 + additionalProperties: false 34 + 35 + examples: 36 + - | 37 + i2c { 38 + #address-cells = <1>; 39 + #size-cells = <0>; 40 + 41 + pressure@77 { 42 + compatible = "hoperf,hp03"; 43 + reg = <0x77>; 44 + xclr-gpios = <&portc 0 0x0>; 45 + }; 46 + }; 47 + ...
-17
Documentation/devicetree/bindings/iio/pressure/hp03.txt
··· 1 - HopeRF HP03 digital pressure/temperature sensors 2 - 3 - Required properties: 4 - - compatible: must be "hoperf,hp03" 5 - - xclr-gpio: must be device tree identifier of the XCLR pin. 6 - The XCLR pin is a reset of the ADC in the chip, 7 - it must be pulled HI before the conversion and 8 - readout of the value from the ADC registers and 9 - pulled LO afterward. 10 - 11 - Example: 12 - 13 - hp03@77 { 14 - compatible = "hoperf,hp03"; 15 - reg = <0x77>; 16 - xclr-gpio = <&portc 0 0x0>; 17 - };