mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
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>
This commit is contained in:
parent
4535af3dc9
commit
72c6158e17
|
|
@ -54,6 +54,31 @@ key-volume-down {
|
|||
};
|
||||
};
|
||||
|
||||
&gsbi2 {
|
||||
qcom,mode = <GSBI_PROT_I2C>;
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gsbi2_i2c {
|
||||
status = "okay";
|
||||
|
||||
light-sensor@39 {
|
||||
compatible = "amstaos,tmd2772";
|
||||
reg = <0x39>;
|
||||
interrupts-extended = <&pm8921_gpio 6 IRQ_TYPE_EDGE_FALLING>;
|
||||
vdd-supply = <&pm8921_l9>;
|
||||
vddio-supply = <&pm8921_lvs4>;
|
||||
|
||||
/* TODO: Proximity doesn't work */
|
||||
amstaos,proximity-diodes = <0>;
|
||||
led-max-microamp = <100000>;
|
||||
|
||||
pinctrl-0 = <&prox_sensor_int>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
|
||||
&gsbi5 {
|
||||
qcom,mode = <GSBI_PROT_I2C_UART>;
|
||||
status = "okay";
|
||||
|
|
@ -163,6 +188,15 @@ &pm8921 {
|
|||
interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
|
||||
};
|
||||
|
||||
&pm8921_gpio {
|
||||
prox_sensor_int: prox-sensor-int-state {
|
||||
pins = "gpio6";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
|
||||
&rpm {
|
||||
regulators {
|
||||
compatible = "qcom,rpm-pm8921-regulators";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user