1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/pressure/murata,zpa2326.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Murata ZPA2326 pressure sensor
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11
12description: |
13  Pressure sensor from Murata with SPI and I2C bus interfaces.
14
15
16properties:
17  compatible:
18    const: murata,zpa2326
19
20  reg:
21    maxItems: 1
22
23  vdd-supply: true
24  vref-supply: true
25
26  interrupts:
27    maxItems: 1
28
29  spi-max-frequency:
30    maximum: 1000000
31
32required:
33  - compatible
34  - reg
35
36allOf:
37  - $ref: /schemas/spi/spi-peripheral-props.yaml#
38
39unevaluatedProperties: false
40
41examples:
42  - |
43    i2c {
44        #address-cells = <1>;
45        #size-cells = <0>;
46
47        pressure@5c {
48            compatible = "murata,zpa2326";
49            reg = <0x5c>;
50            interrupt-parent = <&gpio>;
51            interrupts = <12>;
52            vdd-supply = <&ldo_1v8_gnss>;
53        };
54    };
55  - |
56    spi {
57        #address-cells = <1>;
58        #size-cells = <0>;
59        pressure@0 {
60            compatible = "murata,zpa2326";
61            reg = <0>;
62            spi-max-frequency = <500000>;
63        };
64    };
65...
66