Re: [PATCH 1/4] ARM: dts: qcom: msm8960: expressatt: Add Light/Proximity Sensor

From: Rudraksha Gupta

Date: Fri Nov 21 2025 - 06:27:56 EST


+
+ i2c-gpio-sensors {
+ compatible = "i2c-gpio";

Are you using gpio-i2c for any specific reason? Would GSBI2 not be
connected to this pair? (I am not sure FWIW)

This is interesting! Downstream uses i2c-gpio and I (well, Claude) used that. Seems like downstream doesn't define a GSBI2, so I guessed it's structure in the dts and it seems to work! Thanks for the suggestion.


No GSBI2: https://codeberg.org/LogicalErzor/Android_Kernel_Samsung_D2/src/branch/cm-14.1/arch/arm/mach-msm/board-express-gpiomux.c#L411


+ amstaos,proximity-diodes = <0>;
Try comparing the values the upstream and downstream drivers write
to the device, maybe you're missing something
Yeah, I'll continue to try and do that. In the meantime I'll send a v2 so I can get further comments.