]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: qcom: msm8974-hammerhead: add device tree bindings for ALS / proximity
authorBrian Masney <masneyb@onstation.org>
Fri, 3 Aug 2018 00:19:00 +0000 (20:19 -0400)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 19:51:22 +0000 (14:51 -0500)
This patch adds device tree bindings for the tsl2772 ALS / proximity
sensor for the LG Nexus 5 (hammerhead) phone.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Acked-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
arch/arm/boot/dts/qcom-msm8974.dtsi

index 928affae1885fa895314dc418e4376f388b30afd..ed8f064d08952bf81343239a8dd47df62818c414 100644 (file)
@@ -242,6 +242,15 @@ cmd-data {
                        };
                };
 
+               i2c3_pins: i2c3 {
+                       mux {
+                               pins = "gpio10", "gpio11";
+                               function = "blsp_i2c3";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+
                i2c12_pins: i2c12 {
                        mux {
                                pins = "gpio87", "gpio88";
@@ -333,6 +342,24 @@ bmp280@76 {
                        };
                };
        };
+
+       i2c@f9925000 {
+               status = "ok";
+               pinctrl-names = "default";
+               pinctrl-0 = <&i2c3_pins>;
+               clock-frequency = <100000>;
+               qcom,src-freq = <50000000>;
+
+               avago_apds993@39 {
+                       compatible = "avago,apds9930";
+                       reg = <0x39>;
+                       interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
+                       vdd-supply = <&pm8941_l17>;
+                       vddio-supply = <&pm8941_lvs1>;
+                       led-max-microamp = <100000>;
+                       amstaos,proximity-diodes = <0>;
+               };
+       };
 };
 
 &spmi_bus {
index 439ca8c3a8b425606d050160fafe8fce633d4278..84e1fee1bf1a8a9f2a13ef35e7885e8a421b0337 100644 (file)
@@ -715,6 +715,17 @@ i2c@f9924000 {
                        #size-cells = <0>;
                };
 
+               blsp_i2c3: i2c@f9925000 {
+                       status = "disabled";
+                       compatible = "qcom,i2c-qup-v2.1.1";
+                       reg = <0xf9925000 0x1000>;
+                       interrupts = <0 97 IRQ_TYPE_NONE>;
+                       clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
+                       clock-names = "core", "iface";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+               };
+
                blsp_i2c8: i2c@f9964000 {
                        status = "disabled";
                        compatible = "qcom,i2c-qup-v2.1.1";