Skip to content

Commit 72c6158

Browse files
Rudraksha Guptaandersson
authored andcommitted
ARM: dts: qcom: msm8960: expressatt: Add Light/Proximity Sensor
Currently the Proximity Sensor doesn't work, but light sensor does. Left the proximity sensor as a TODO for later. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com> Link: https://lore.kernel.org/r/20251124-expressatt_nfc_accel_magn_light-v4-2-9c5686ad67e2@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 4535af3 commit 72c6158

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,31 @@
5454
};
5555
};
5656

57+
&gsbi2 {
58+
qcom,mode = <GSBI_PROT_I2C>;
59+
60+
status = "okay";
61+
};
62+
63+
&gsbi2_i2c {
64+
status = "okay";
65+
66+
light-sensor@39 {
67+
compatible = "amstaos,tmd2772";
68+
reg = <0x39>;
69+
interrupts-extended = <&pm8921_gpio 6 IRQ_TYPE_EDGE_FALLING>;
70+
vdd-supply = <&pm8921_l9>;
71+
vddio-supply = <&pm8921_lvs4>;
72+
73+
/* TODO: Proximity doesn't work */
74+
amstaos,proximity-diodes = <0>;
75+
led-max-microamp = <100000>;
76+
77+
pinctrl-0 = <&prox_sensor_int>;
78+
pinctrl-names = "default";
79+
};
80+
};
81+
5782
&gsbi5 {
5883
qcom,mode = <GSBI_PROT_I2C_UART>;
5984
status = "okay";
@@ -163,6 +188,15 @@
163188
interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
164189
};
165190

191+
&pm8921_gpio {
192+
prox_sensor_int: prox-sensor-int-state {
193+
pins = "gpio6";
194+
function = "normal";
195+
input-enable;
196+
bias-disable;
197+
};
198+
};
199+
166200
&rpm {
167201
regulators {
168202
compatible = "qcom,rpm-pm8921-regulators";

0 commit comments

Comments
 (0)