Re: [PATCH v3 9/9] ARM: dts: qcom: msm8974-hammerhead: add device tree bindings for ALS / proximity

2018-08-18 Thread Jonathan Cameron
On Thu,  2 Aug 2018 20:19:00 -0400
Brian Masney  wrote:

> This patch adds device tree bindings for the tsl2772 ALS / proximity
> sensor for the LG Nexus 5 (hammerhead) phone.
> 
> Signed-off-by: Brian Masney 
> Signed-off-by: Jonathan Marek 
Acked-by: Jonathan Cameron 

The precursors are working their way through the iio tree, but
it will be the next merge window before they go upstream.

Thanks,

Jonathan

> ---
>  .../qcom-msm8974-lge-nexus5-hammerhead.dts| 27 +++
>  arch/arm/boot/dts/qcom-msm8974.dtsi   | 11 
>  2 files changed, 38 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts 
> b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> index 928affae1885..ed8f064d0895 100644
> --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> @@ -242,6 +242,15 @@
>   };
>   };
>  
> + 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 @@
>   };
>   };
>   };
> +
> + i2c@f9925000 {
> + status = "ok";
> + pinctrl-names = "default";
> + pinctrl-0 = <_pins>;
> + clock-frequency = <10>;
> + qcom,src-freq = <5000>;
> +
> + avago_apds993@39 {
> + compatible = "avago,apds9930";
> + reg = <0x39>;
> + interrupts-extended = < 61 
> IRQ_TYPE_EDGE_FALLING>;
> + vdd-supply = <_l17>;
> + vddio-supply = <_lvs1>;
> + led-max-microamp = <10>;
> + amstaos,proximity-diodes = <0>;
> + };
> + };
>  };
>  
>  _bus {
> diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi 
> b/arch/arm/boot/dts/qcom-msm8974.dtsi
> index cebb6ae9143a..6dcf2bee66fb 100644
> --- a/arch/arm/boot/dts/qcom-msm8974.dtsi
> +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
> @@ -713,6 +713,17 @@
>   #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_BLSP1_QUP3_I2C_APPS_CLK>, < 
> 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";



Re: [PATCH v3 9/9] ARM: dts: qcom: msm8974-hammerhead: add device tree bindings for ALS / proximity

2018-08-18 Thread Jonathan Cameron
On Thu,  2 Aug 2018 20:19:00 -0400
Brian Masney  wrote:

> This patch adds device tree bindings for the tsl2772 ALS / proximity
> sensor for the LG Nexus 5 (hammerhead) phone.
> 
> Signed-off-by: Brian Masney 
> Signed-off-by: Jonathan Marek 
Acked-by: Jonathan Cameron 

The precursors are working their way through the iio tree, but
it will be the next merge window before they go upstream.

Thanks,

Jonathan

> ---
>  .../qcom-msm8974-lge-nexus5-hammerhead.dts| 27 +++
>  arch/arm/boot/dts/qcom-msm8974.dtsi   | 11 
>  2 files changed, 38 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts 
> b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> index 928affae1885..ed8f064d0895 100644
> --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> @@ -242,6 +242,15 @@
>   };
>   };
>  
> + 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 @@
>   };
>   };
>   };
> +
> + i2c@f9925000 {
> + status = "ok";
> + pinctrl-names = "default";
> + pinctrl-0 = <_pins>;
> + clock-frequency = <10>;
> + qcom,src-freq = <5000>;
> +
> + avago_apds993@39 {
> + compatible = "avago,apds9930";
> + reg = <0x39>;
> + interrupts-extended = < 61 
> IRQ_TYPE_EDGE_FALLING>;
> + vdd-supply = <_l17>;
> + vddio-supply = <_lvs1>;
> + led-max-microamp = <10>;
> + amstaos,proximity-diodes = <0>;
> + };
> + };
>  };
>  
>  _bus {
> diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi 
> b/arch/arm/boot/dts/qcom-msm8974.dtsi
> index cebb6ae9143a..6dcf2bee66fb 100644
> --- a/arch/arm/boot/dts/qcom-msm8974.dtsi
> +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
> @@ -713,6 +713,17 @@
>   #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_BLSP1_QUP3_I2C_APPS_CLK>, < 
> 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";



[PATCH v3 9/9] ARM: dts: qcom: msm8974-hammerhead: add device tree bindings for ALS / proximity

2018-08-02 Thread Brian Masney
This patch adds device tree bindings for the tsl2772 ALS / proximity
sensor for the LG Nexus 5 (hammerhead) phone.

Signed-off-by: Brian Masney 
Signed-off-by: Jonathan Marek 
---
 .../qcom-msm8974-lge-nexus5-hammerhead.dts| 27 +++
 arch/arm/boot/dts/qcom-msm8974.dtsi   | 11 
 2 files changed, 38 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts 
b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
index 928affae1885..ed8f064d0895 100644
--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -242,6 +242,15 @@
};
};
 
+   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 @@
};
};
};
+
+   i2c@f9925000 {
+   status = "ok";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+   clock-frequency = <10>;
+   qcom,src-freq = <5000>;
+
+   avago_apds993@39 {
+   compatible = "avago,apds9930";
+   reg = <0x39>;
+   interrupts-extended = < 61 
IRQ_TYPE_EDGE_FALLING>;
+   vdd-supply = <_l17>;
+   vddio-supply = <_lvs1>;
+   led-max-microamp = <10>;
+   amstaos,proximity-diodes = <0>;
+   };
+   };
 };
 
 _bus {
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi 
b/arch/arm/boot/dts/qcom-msm8974.dtsi
index cebb6ae9143a..6dcf2bee66fb 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -713,6 +713,17 @@
#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_BLSP1_QUP3_I2C_APPS_CLK>, < 
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";
-- 
2.17.1



[PATCH v3 9/9] ARM: dts: qcom: msm8974-hammerhead: add device tree bindings for ALS / proximity

2018-08-02 Thread Brian Masney
This patch adds device tree bindings for the tsl2772 ALS / proximity
sensor for the LG Nexus 5 (hammerhead) phone.

Signed-off-by: Brian Masney 
Signed-off-by: Jonathan Marek 
---
 .../qcom-msm8974-lge-nexus5-hammerhead.dts| 27 +++
 arch/arm/boot/dts/qcom-msm8974.dtsi   | 11 
 2 files changed, 38 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts 
b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
index 928affae1885..ed8f064d0895 100644
--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -242,6 +242,15 @@
};
};
 
+   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 @@
};
};
};
+
+   i2c@f9925000 {
+   status = "ok";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+   clock-frequency = <10>;
+   qcom,src-freq = <5000>;
+
+   avago_apds993@39 {
+   compatible = "avago,apds9930";
+   reg = <0x39>;
+   interrupts-extended = < 61 
IRQ_TYPE_EDGE_FALLING>;
+   vdd-supply = <_l17>;
+   vddio-supply = <_lvs1>;
+   led-max-microamp = <10>;
+   amstaos,proximity-diodes = <0>;
+   };
+   };
 };
 
 _bus {
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi 
b/arch/arm/boot/dts/qcom-msm8974.dtsi
index cebb6ae9143a..6dcf2bee66fb 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -713,6 +713,17 @@
#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_BLSP1_QUP3_I2C_APPS_CLK>, < 
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";
-- 
2.17.1