arm64: dts: qcom: sc7280: Add SAR sensors for herobrine
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 29 Mar 2022 17:59:33 +0000 (10:59 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 11 Apr 2022 20:17:33 +0000 (15:17 -0500)
Add nodes for the two SX9324 SAR proximity sensors. Not all herobrine
boards have these sensors, so leave them disabled by default.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220329105854.v3.1.Icedb2e3cd5e21f3a4ec535ddf756fa44d053b6ed@changeid
arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi

index 7b8fe20..5f00fa2 100644 (file)
@@ -341,6 +341,43 @@ vreg_edp_3p3: &pp3300_left_in_mlb {};
 
 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
 
+ap_sar_sensor_i2c: &i2c1 {
+       clock-frequency = <400000>;
+       status = "disabled";
+
+       ap_sar_sensor0: proximity@28 {
+               compatible = "semtech,sx9324";
+               reg = <0x28>;
+               #io-channel-cells = <1>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&sar0_irq_odl>;
+
+               interrupt-parent = <&tlmm>;
+               interrupts = <141 IRQ_TYPE_LEVEL_LOW>;
+
+               vdd-supply = <&pp1800_prox>;
+
+               label = "proximity-wifi-lte0";
+               status = "disabled";
+       };
+
+       ap_sar_sensor1: proximity@2c {
+               compatible = "semtech,sx9324";
+               reg = <0x2c>;
+               #io-channel-cells = <1>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&sar1_irq_odl>;
+
+               interrupt-parent = <&tlmm>;
+               interrupts = <140 IRQ_TYPE_LEVEL_LOW>;
+
+               vdd-supply = <&pp1800_prox>;
+
+               label = "proximity-wifi-lte1";
+               status = "disabled";
+       };
+};
+
 ap_i2c_tpm: &i2c14 {
        status = "okay";
        clock-frequency = <400000>;