]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: qcom: msm8916-longcheer-l8150: Add light and proximity sensor
authorNikita Travkin <nikita@trvn.ru>
Sat, 19 Feb 2022 14:51:40 +0000 (19:51 +0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 24 Feb 2022 20:05:16 +0000 (14:05 -0600)
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>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220219145140.84712-1-nikita@trvn.ru
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts

index 852de624f5af9ceda5fc8a139ea9db116d594f62..b3836dde8a5480636b2b44397f9478ed93bfe5c7 100644 (file)
                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>;
                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";