TRATS2: dts: exynos4412-m0.dts: Add cm36651 proximity/light sensor node
authorBeomho Seo <beomho.seo@samsung.com>
Wed, 14 Aug 2013 03:01:53 +0000 (12:01 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:00 +0000 (11:44 +0900)
- Support cm36651 proximity/light sensor device for TRATS2 board
- Add also the binding documentation file

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Documentation/devicetree/bindings/iio/light/cm36651.txt [new file with mode: 0644]
arch/arm/boot/dts/exynos4412-m0.dts

diff --git a/Documentation/devicetree/bindings/iio/light/cm36651.txt b/Documentation/devicetree/bindings/iio/light/cm36651.txt
new file mode 100644 (file)
index 0000000..975296f
--- /dev/null
@@ -0,0 +1,24 @@
+* CAPELLA CM36651 I2C Proximity sensor with Color sensor
+
+Required properties:
+- compatible: must be "capella,cm36651" or "cm36651"
+- reg: the I2C address of light sensor
+- interrupts: interrupt to which the chip is connected
+- vled-suppled: regulator for the sensor device, refere to
+               Documentation/devicetree/bindings/regulator/regulator.txt
+
+Example:
+
+       i2c_cm36651: i2c-gpio-2 {
+               /* ... */
+
+               cm36651@18 {
+                       compatible = "cm36651";
+                       reg = <0x18>;
+                       interrupt-parent = <&gpx0>;
+                       interrupts = <2 0>;
+                       vled-supply = <&ps_als_reg>;
+               };
+
+               /* ... */
+       };
index fbefee6..12c7078 100644 (file)
                };
        };
 
+       i2c_cm36651: i2c-gpio-2 {
+               compatible = "i2c-gpio";
+               gpios = <&gpf0 0 0>, <&gpf0 1 0>;
+               i2c-gpio,delay-us = <2>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "okay";
+
+               cm36651@18 {
+                       compatible = "cm36651";
+                       reg = <0x18>;
+                       interrupt-parent = <&gpx0>;
+                       interrupts = <2 0>;
+                       vled-supply = <&ps_als_reg>;
+               };
+       };
+
        camera {
                status = "okay";