xref: /freebsd/sys/contrib/device-tree/Bindings/iio/samsung,sensorhub-rinato.yaml (revision a90b9d0159070121c221b966469c3e36d912bf82)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/samsung,sensorhub-rinato.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung Sensorhub driver
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11
12description: |
13  Sensorhub is a MCU which manages several sensors and also plays the role
14  of a virtual sensor device.
15
16properties:
17  compatible:
18    enum:
19      - samsung,sensorhub-rinato
20      - samsung,sensorhub-thermostat
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28  ap-mcu-gpios:
29    maxItems: 1
30    description:
31      Application Processor to sensorhub line - used during communication
32
33  mcu-ap-gpios:
34    maxItems: 1
35    description:
36      Sensorhub to Application Processor - used during communication
37
38  mcu-reset-gpios:
39    maxItems: 1
40    description:
41      Reset the sensorhub.
42
43required:
44  - compatible
45  - reg
46  - interrupts
47  - ap-mcu-gpios
48  - mcu-ap-gpios
49  - mcu-reset-gpios
50
51allOf:
52  - $ref: /schemas/spi/spi-peripheral-props.yaml#
53
54unevaluatedProperties: false
55
56examples:
57  - |
58    spi {
59        #address-cells = <1>;
60        #size-cells = <0>;
61
62        sensorhub@0 {
63            compatible = "samsung,sensorhub-rinato";
64            reg = <0>;
65            spi-max-frequency = <5000000>;
66            interrupt-parent = <&gpx0>;
67            interrupts = <2 0>;
68            ap-mcu-gpios = <&gpx0 0 0>;
69            mcu-ap-gpios = <&gpx0 4 0>;
70            mcu-reset-gpios = <&gpx0 5 0>;
71        };
72    };
73...
74