arm64: dts: qcom: sc7180-trogdor: Simplify SAR sensor enabling
authorStephen Boyd <swboyd@chromium.org>
Fri, 25 Mar 2022 21:16:40 +0000 (14:16 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 11 Apr 2022 21:07:00 +0000 (16:07 -0500)
The SAR node, ap_sar_sensor, needs to be enabled in addition to the i2c
bus it resides on. Let's simplify this by leaving the sensor node
enabled by default while leaving the i2c bus disabled by default. On
boards that use the sensor, we already enable the i2c bus so we can
simply remove the extra bit that enables the sar sensor node. This saves
some lines but is otherwise a non-functional change.

Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220325211640.54228-1-swboyd@chromium.org
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi

index e16ba7b..eb20157 100644 (file)
        compatible = "google,lazor-rev1-sku0", "google,lazor-rev2-sku0", "qcom,sc7180";
 };
 
-&ap_sar_sensor {
-       status = "okay";
-};
-
 &ap_sar_sensor_i2c {
        status = "okay";
 };
index c5c9fef..8913592 100644 (file)
                "qcom,sc7180";
 };
 
-&ap_sar_sensor {
-       status = "okay";
-};
-
 &ap_sar_sensor_i2c {
        status = "okay";
 };
index 344b57c..8107f3d 100644 (file)
        compatible = "google,lazor-sku0", "qcom,sc7180";
 };
 
-&ap_sar_sensor {
-       status = "okay";
-};
-
 &ap_sar_sensor_i2c {
        status = "okay";
 };
index 732e118..b0efb35 100644 (file)
@@ -722,7 +722,6 @@ ap_sar_sensor_i2c: &i2c5 {
                vdd-supply = <&pp3300_a>;
                svdd-supply = <&pp1800_prox>;
 
-               status = "disabled";
                label = "proximity-wifi";
        };
 };