0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/samsung,sensorhub-rinato.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Samsung Sensorhub driver
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 description: |
0013 Sensorhub is a MCU which manages several sensors and also plays the role
0014 of a virtual sensor device.
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - samsung,sensorhub-rinato
0020 - samsung,sensorhub-thermostat
0021
0022 reg:
0023 maxItems: 1
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 ap-mcu-gpios:
0029 maxItems: 1
0030 description:
0031 Application Processor to sensorhub line - used during communication
0032
0033 mcu-ap-gpios:
0034 maxItems: 1
0035 description:
0036 Sensorhub to Application Processor - used during communication
0037
0038 mcu-reset-gpios:
0039 maxItems: 1
0040 description:
0041 Reset the sensorhub.
0042
0043 spi-max-frequency: true
0044
0045 additionalProperties: false
0046
0047 required:
0048 - compatible
0049 - reg
0050 - interrupts
0051 - ap-mcu-gpios
0052 - mcu-ap-gpios
0053 - mcu-reset-gpios
0054
0055 examples:
0056 - |
0057 spi {
0058 #address-cells = <1>;
0059 #size-cells = <0>;
0060
0061 sensorhub@0 {
0062 compatible = "samsung,sensorhub-rinato";
0063 reg = <0>;
0064 spi-max-frequency = <5000000>;
0065 interrupt-parent = <&gpx0>;
0066 interrupts = <2 0>;
0067 ap-mcu-gpios = <&gpx0 0 0>;
0068 mcu-ap-gpios = <&gpx0 4 0>;
0069 mcu-reset-gpios = <&gpx0 5 0>;
0070 };
0071 };
0072 ...