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 43 spi-max-frequency: true 44 45additionalProperties: false 46 47required: 48 - compatible 49 - reg 50 - interrupts 51 - ap-mcu-gpios 52 - mcu-ap-gpios 53 - mcu-reset-gpios 54 55examples: 56 - | 57 spi { 58 #address-cells = <1>; 59 #size-cells = <0>; 60 61 sensorhub@0 { 62 compatible = "samsung,sensorhub-rinato"; 63 reg = <0>; 64 spi-max-frequency = <5000000>; 65 interrupt-parent = <&gpx0>; 66 interrupts = <2 0>; 67 ap-mcu-gpios = <&gpx0 0 0>; 68 mcu-ap-gpios = <&gpx0 4 0>; 69 mcu-reset-gpios = <&gpx0 5 0>; 70 }; 71 }; 72... 73