diff options
author | qctecmdr <qctecmdr@localhost> | 2021-02-02 04:34:03 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2021-02-02 04:34:03 -0800 |
commit | c949d21226d700df3665f73dee845928d0e9a4be (patch) | |
tree | 65946d0373e977cc9706304f9ef6c49e0aa644a9 /bindings | |
parent | 55fad297e4e20cde0ba98b1728324d56eb7a417e (diff) | |
parent | 224ede8aae4b9dd1d90ff7e182f7acbc7a300206 (diff) | |
download | devicetree-c949d21226d700df3665f73dee845928d0e9a4be.tar.gz |
Merge "ARM: dts: msm: add configuration for Chirp and temperature sensor"
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/iio/proximity/inv_ch101.txt | 29 | ||||
-rw-r--r-- | bindings/iio/temperature/tdktherm.txt | 21 |
2 files changed, 50 insertions, 0 deletions
diff --git a/bindings/iio/proximity/inv_ch101.txt b/bindings/iio/proximity/inv_ch101.txt new file mode 100644 index 00000000..0bf18ada --- /dev/null +++ b/bindings/iio/proximity/inv_ch101.txt @@ -0,0 +1,29 @@ +TDK/InvenSense CH101 UltraSonic device + +https://invensense.tdk.com/products/ch101/ + +Required properties: + - compatible : should be one of + "invensense,ch101" + "invensense,ch201" + - reg : the I2C address of the sensor + - rst-gpios: reset pin + - rtc_rst-gpios: rtc reset + - prg-gpios: program pin. + - interrupts: interrupt mapping for IRQ. It should be configured with flags + IRQ_TYPE_EDGE_RISING, or IRQ_TYPE_EDGE_FALLING. + + Refer to interrupt-controller/interrupts.txt for generic interrupt client node + bindings. + +Example: + + ch101_0: ch101_1@45 { + compatible = "invensense,ch101"; + reg = <0x45>; + rst-gpios = <&tlmm 140 GPIO_ACTIVE_HIGH>; + rtc_rst-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; + prg-gpios = <0 1 2>; + int-gpios = <&tlmm 122 GPIO_ACTIVE_HIGH>, + <&tlmm 123 GPIO_ACTIVE_HIGH>, + } diff --git a/bindings/iio/temperature/tdktherm.txt b/bindings/iio/temperature/tdktherm.txt new file mode 100644 index 00000000..57a671a1 --- /dev/null +++ b/bindings/iio/temperature/tdktherm.txt @@ -0,0 +1,21 @@ +TDK/InvenSense temperature sensor + + +Required properties: + - compatible : "tdktherm" + - reg : chip select ID + - spi-max-frequency: support up to 24Mhz. + - rtc_rst-gpios: rtc reset + - spi-cpol: SPI mode + - spi-cpha: SPI mode + + +Example: + temp_sensor@0 { + compatible = "tdktherm"; + reg = <0>; // Chip select ID + spi-max-frequency = <10000000>; // Can support up to 24 MHz + spi-cpol; + spi-cpha; + status = "okay"; + }; |