Commit 3016af34 authored by Nikita Travkin's avatar Nikita Travkin Committed by Bjorn Andersson

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

L8150 uses LTR559 as a light and proximity sensor. Add it to the
devicetree.
Reviewed-by: default avatarStephan Gerhold <stephan@gerhold.net>
Signed-off-by: default avatarNikita Travkin <nikita@trvn.ru>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220219145140.84712-1-nikita@trvn.ru
parent 1e49defb
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment