0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/pressure/hoperf,hp03.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: HopeRF HP03 digital pressure/temperature sensors
0008
0009 maintainers:
0010 - Marek Vasut <marex@denx.de>
0011
0012 description: |
0013 Digital pressure and temperature sensor with an I2C interface.
0014
0015 properties:
0016 compatible:
0017 const: hoperf,hp03
0018
0019 reg:
0020 maxItems: 1
0021
0022 xclr-gpios:
0023 description:
0024 The XCLR pin is a reset of the ADC in the chip, it must be pulled
0025 HI before the conversion and readout of the value from the ADC
0026 registers and pulled LO afterward.
0027 maxItems: 1
0028
0029 required:
0030 - compatible
0031 - reg
0032
0033 additionalProperties: false
0034
0035 examples:
0036 - |
0037 i2c {
0038 #address-cells = <1>;
0039 #size-cells = <0>;
0040
0041 pressure@77 {
0042 compatible = "hoperf,hp03";
0043 reg = <0x77>;
0044 xclr-gpios = <&portc 0 0x0>;
0045 };
0046 };
0047 ...