aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/exynos4412-trats2.dts
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2014-05-21 18:56:53 -0400
committerKukjin Kim <kgene.kim@samsung.com>2014-05-22 13:31:56 -0400
commit85cb4e0bd22947854ecbf86e1c2b75334fd598ad (patch)
tree7e8069446bec2a10c4115b99da35c50a7425033c /arch/arm/boot/dts/exynos4412-trats2.dts
parent6674fd923c73bbdac505c90c86cf1154725a6bd5 (diff)
ARM: dts: add cm36651 light/proximity sensor node for exynos4412-trats2
Exynos4412-trats2 board have light/proximity sensor. This patch add cm36651 light/ proximity sensor node for exynos4412. cm36651 is required properties as below. - Use i2c-gpio for cm36651 sensor. - Use fixed regulator for the IR LED. It is a part of the cm36651 for proximity detection. - cm36651 is i2c device driver so need to use i2c-gpio driver. Signed-off-by: Beomho Seo <beomho.seo@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/boot/dts/exynos4412-trats2.dts')
-rw-r--r--arch/arm/boot/dts/exynos4412-trats2.dts26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts
index f621fd976815..c89f10c1efc7 100644
--- a/arch/arm/boot/dts/exynos4412-trats2.dts
+++ b/arch/arm/boot/dts/exynos4412-trats2.dts
@@ -21,6 +21,7 @@
21 21
22 aliases { 22 aliases {
23 i2c9 = &i2c_ak8975; 23 i2c9 = &i2c_ak8975;
24 i2c10 = &i2c_cm36651;
24 }; 25 };
25 26
26 memory { 27 memory {
@@ -98,6 +99,15 @@
98 enable-active-high; 99 enable-active-high;
99 regulator-always-on; 100 regulator-always-on;
100 }; 101 };
102
103 ps_als_reg: voltage-regulator-5 {
104 compatible = "regulator-fixed";
105 regulator-name = "LED_A_3.0V";
106 regulator-min-microvolt = <3000000>;
107 regulator-max-microvolt = <3000000>;
108 gpio = <&gpj0 5 0>;
109 enable-active-high;
110 };
101 }; 111 };
102 112
103 gpio-keys { 113 gpio-keys {
@@ -558,6 +568,22 @@
558 }; 568 };
559 }; 569 };
560 570
571 i2c_cm36651: i2c-gpio-2 {
572 compatible = "i2c-gpio";
573 gpios = <&gpf0 0 1>, <&gpf0 1 1>;
574 i2c-gpio,delay-us = <2>;
575 #address-cells = <1>;
576 #size-cells = <0>;
577
578 cm36651@18 {
579 compatible = "capella,cm36651";
580 reg = <0x18>;
581 interrupt-parent = <&gpx0>;
582 interrupts = <2 2>;
583 vled-supply = <&ps_als_reg>;
584 };
585 };
586
561 spi_1: spi@13930000 { 587 spi_1: spi@13930000 {
562 pinctrl-names = "default"; 588 pinctrl-names = "default";
563 pinctrl-0 = <&spi1_bus>; 589 pinctrl-0 = <&spi1_bus>;