summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2013-08-14 12:01:53 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:44:00 +0900
commitfb54c5a80abc033bd5ce905a7f604d0c2d9b3a0e (patch)
tree966e0d502d39dfdd6026d0e535420e8ed5a0fe22
parent624152ff8750d60dd14d655c90c71ec20a6de3c0 (diff)
downloadlinux-3.10-fb54c5a80abc033bd5ce905a7f604d0c2d9b3a0e.tar.gz
linux-3.10-fb54c5a80abc033bd5ce905a7f604d0c2d9b3a0e.tar.bz2
linux-3.10-fb54c5a80abc033bd5ce905a7f604d0c2d9b3a0e.zip
TRATS2: dts: exynos4412-m0.dts: Add cm36651 proximity/light sensor node
- Support cm36651 proximity/light sensor device for TRATS2 board - Add also the binding documentation file Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
-rw-r--r--Documentation/devicetree/bindings/iio/light/cm36651.txt24
-rw-r--r--arch/arm/boot/dts/exynos4412-m0.dts17
2 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/light/cm36651.txt b/Documentation/devicetree/bindings/iio/light/cm36651.txt
new file mode 100644
index 00000000000..975296fddc5
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/cm36651.txt
@@ -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>;
+ };
+
+ /* ... */
+ };
diff --git a/arch/arm/boot/dts/exynos4412-m0.dts b/arch/arm/boot/dts/exynos4412-m0.dts
index fbefee62c68..12c70789bb5 100644
--- a/arch/arm/boot/dts/exynos4412-m0.dts
+++ b/arch/arm/boot/dts/exynos4412-m0.dts
@@ -90,6 +90,23 @@
};
};
+ 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";