Skip to content

Commit c636eeb

Browse files
gus33000andersson
authored andcommitted
arm64: dts: qcom: msm8994-octagon: Add AD7147 and APDS9930 sensors
Add and configure AD7147 grip sensor and APDS9930 proximity sensor. Signed-off-by: Gustave Monce <gustave.monce@outlook.com> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org> Link: https://lore.kernel.org/r/20210131013853.55810-19-konrad.dybcio@somainline.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
1 parent caea1f7 commit c636eeb

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

arch/arm64/boot/dts/qcom/msm8994-msft-lumia-octagon.dtsi

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,42 @@
376376
status = "okay";
377377
};
378378

379+
&blsp2_i2c1 {
380+
status = "okay";
381+
382+
sideinteraction: ad7147_captouch@2c {
383+
compatible = "ad,ad7147_captouch";
384+
reg = <0x2c>;
385+
386+
pinctrl-names = "default", "sleep";
387+
pinctrl-0 = <&grip_default>;
388+
pinctrl-1 = <&grip_sleep>;
389+
390+
interrupts = <&tlmm 96 IRQ_TYPE_EDGE_FALLING>;
391+
392+
button_num = <8>;
393+
touchpad_num = <0>;
394+
wheel_num = <0>;
395+
slider_num = <0>;
396+
397+
vcc-supply = <&vreg_l18a_2p85>;
398+
};
399+
400+
/*
401+
* The QPDS-T900/QPDS-T930 is a customized part built for Nokia
402+
* by Avago. It is very similar to the Avago APDS-9930 with some
403+
* minor differences. In the future a proper driver might need to
404+
* be written for this device. For now this works fine.
405+
*/
406+
qpdst900: qpdst900@39 {
407+
compatible = "avago,apds9930";
408+
reg = <0x39>;
409+
410+
interrupt-parent = <&tlmm>;
411+
interrupts = <40 IRQ_TYPE_EDGE_FALLING>;
412+
};
413+
};
414+
379415
&blsp2_i2c5 {
380416
status = "okay";
381417

@@ -843,6 +879,20 @@
843879
};
844880

845881
&tlmm {
882+
grip_default: grip-default {
883+
pins = "gpio39";
884+
function = "gpio";
885+
drive-strength = <6>;
886+
bias-pull-down;
887+
};
888+
889+
grip_sleep: grip-sleep {
890+
pins = "gpio39";
891+
function = "gpio";
892+
drive-strength = <2>;
893+
bias-pull-down;
894+
};
895+
846896
hall_front_default: hall-front-default {
847897
pins = "gpio42";
848898
function = "gpio";

0 commit comments

Comments
 (0)