diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2013-06-21 10:52:31 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:34:07 +0900 |
commit | 99e398b0dcbb34fe8db1b8e7bdfc3cb170d9e60a (patch) | |
tree | 3a900fa48942f58fc6ce5120f671923c2012f1f9 /Documentation | |
parent | 769156238ab520dd923eff2cf80b310325ea8ee7 (diff) | |
download | linux-3.10-99e398b0dcbb34fe8db1b8e7bdfc3cb170d9e60a.tar.gz linux-3.10-99e398b0dcbb34fe8db1b8e7bdfc3cb170d9e60a.tar.bz2 linux-3.10-99e398b0dcbb34fe8db1b8e7bdfc3cb170d9e60a.zip |
iio: Add driver for the LPS331AP barometer sensor
Add new driver for the barometer device. The driver is
compliant with IIO framework, and exposes two channels
for reading the pressure and the temperature. The output
data can be read either in 'one shot' mode or by exploiting
IIO events.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/iio/barometer/lps331ap.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/barometer/lps331ap.txt b/Documentation/devicetree/bindings/iio/barometer/lps331ap.txt new file mode 100644 index 00000000000..f0e44bcc088 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/barometer/lps331ap.txt @@ -0,0 +1,40 @@ +* STMicroelectronics LPS331AP barometer sensor + +Required properties: + + - compatible : should be "st,lps331ap" + - reg : the I2C address of the barometer + +Optional properties: + + - interrupt-parent : phandle to the interrupt map subnode + - interrupts : interrupt mapping for LPS331AP interrupt sources: + 2 sources: 0 - INT1, 1 - INT2 + - irq-map : irq sub-node defining interrupt map + (all properties listed below are required): + - #interrupt-cells : should be 1 + - #address-cells : should be 0 + - #size-cells : should be 0 + - interrupt-map : table of entries consisting of three child elements: + - unit_interrupt_specifier - 0 : INT1, 1 : INT2 + - interrupt parent phandle + - parent unit interrupt specifier consisiting of two elements: + - index of the interrupt within the controller + - flags : should be 0 + +Example: + +lps331ap@5d { + compatible = "lps331ap"; + reg = <0x5d>; + interrupt-parent = <&irq_map>; + interrupts = <0>, <1>; + + irq_map: irq-map { + #interrupt-cells = <1>; + #address-cells = <0>; + #size-cells = <0>; + interrupt-map = <0 &gpf0 5 0>, + <1 &gpx0 3 0>; + }; +}; |