diff mbox series

arm64: dts: qcom: msm8916-longcheer-l8150: Add light and proximity sensor

Message ID 20220219145140.84712-1-nikita@trvn.ru (mailing list archive)
State Accepted
Commit 3016af34ef8d3e3b802693c8d3878906c886621c
Headers show
Series arm64: dts: qcom: msm8916-longcheer-l8150: Add light and proximity sensor | expand

Commit Message

Nikita Travkin Feb. 19, 2022, 2:51 p.m. UTC
L8150 uses LTR559 as a light and proximity sensor. Add it to the
devicetree.

Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
 .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

patchwork-bot+linux-arm-msm@kernel.org Feb. 24, 2022, 8:50 p.m. UTC | #1
Hello:

This patch was applied to qcom/linux.git (for-next)
by Bjorn Andersson <bjorn.andersson@linaro.org>:

On Sat, 19 Feb 2022 19:51:40 +0500 you wrote:
> L8150 uses LTR559 as a light and proximity sensor. Add it to the
> devicetree.
> 
> Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
> Signed-off-by: Nikita Travkin <nikita@trvn.ru>
> ---
>  .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 23 +++++++++++++++++++
>  1 file changed, 23 insertions(+)

Here is the summary with links:
  - arm64: dts: qcom: msm8916-longcheer-l8150: Add light and proximity sensor
    https://git.kernel.org/qcom/c/3016af34ef8d

You are awesome, thank you!
Bjorn Andersson Feb. 24, 2022, 8:54 p.m. UTC | #2
On Sat, 19 Feb 2022 19:51:40 +0500, Nikita Travkin wrote:
> L8150 uses LTR559 as a light and proximity sensor. Add it to the
> devicetree.
> 
> 

Applied, thanks!

[1/1] arm64: dts: qcom: msm8916-longcheer-l8150: Add light and proximity sensor
      commit: 3016af34ef8d3e3b802693c8d3878906c886621c

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
index 852de624f5af..b3836dde8a54 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
@@ -151,6 +151,21 @@  magnetometer@12 {
 		vddio-supply = <&pm8916_l6>;
 	};
 
+	light-sensor@23 {
+		compatible = "liteon,ltr559";
+		reg = <0x23>;
+		proximity-near-level = <75>;
+
+		interrupt-parent = <&msmgpio>;
+		interrupts = <115 IRQ_TYPE_EDGE_FALLING>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&light_int_default>;
+
+		vdd-supply = <&pm8916_l17>;
+		vio-supply = <&pm8916_l6>;
+	};
+
 	gyroscope@68 {
 		compatible = "bosch,bmg160";
 		reg = <0x68>;
@@ -392,6 +407,14 @@  gyro_int_default: gyro-int-default {
 		bias-disable;
 	};
 
+	light_int_default: light-int-default {
+		pins = "gpio115";
+		function = "gpio";
+
+		drive-strength = <2>;
+		bias-disable;
+	};
+
 	magn_int_default: magn-int-default {
 		pins = "gpio113";
 		function = "gpio";