diff options
author | Karol Wrona <k.wrona@samsung.com> | 2015-01-28 09:05:51 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-01-29 13:49:08 -0500 |
commit | f04df4ebee932376a630e0a3be1703a2f678c60d (patch) | |
tree | e5a16e576cc5a2da9e8132d58b1d1e6ff2fc573d /Documentation/devicetree/bindings/iio | |
parent | 50dd64d57eee8aed1a86e875ce77d078e44fad00 (diff) |
iio: sensorhub: Add sensorhub bindings
Add sensorhub bindings for sensorhub on Galaxy Gear 2.
Signed-off-by: Karol Wrona <k.wrona@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio')
-rw-r--r-- | Documentation/devicetree/bindings/iio/sensorhub.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/sensorhub.txt b/Documentation/devicetree/bindings/iio/sensorhub.txt new file mode 100644 index 000000000000..8d57571d5c0b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/sensorhub.txt | |||
@@ -0,0 +1,25 @@ | |||
1 | Samsung Sensorhub driver | ||
2 | |||
3 | Sensorhub is a MCU which manages several sensors and also plays the role | ||
4 | of a virtual sensor device. | ||
5 | |||
6 | Required properties: | ||
7 | - compatible: "samsung,sensorhub-rinato" or "samsung,sensorhub-thermostat" | ||
8 | - spi-max-frequency: max SPI clock frequency | ||
9 | - interrupt-parent: interrupt parent | ||
10 | - interrupts: communication interrupt | ||
11 | - ap-mcu-gpios: [out] ap to sensorhub line - used during communication | ||
12 | - mcu-ap-gpios: [in] sensorhub to ap - used during communication | ||
13 | - mcu-reset-gpios: [out] sensorhub reset | ||
14 | |||
15 | Example: | ||
16 | |||
17 | shub_spi: shub { | ||
18 | compatible = "samsung,sensorhub-rinato"; | ||
19 | spi-max-frequency = <5000000>; | ||
20 | interrupt-parent = <&gpx0>; | ||
21 | interrupts = <2 0>; | ||
22 | ap-mcu-gpios = <&gpx0 0 0>; | ||
23 | mcu-ap-gpios = <&gpx0 4 0>; | ||
24 | mcu-reset-gpios = <&gpx0 5 0>; | ||
25 | }; | ||