arm64: dts: qcom: sc7180-trogdor: Simplify trackpad enabling
authorStephen Boyd <swboyd@chromium.org>
Wed, 27 Apr 2022 02:03:37 +0000 (19:03 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 6 May 2022 03:42:27 +0000 (22:42 -0500)
Trogdor boards with a detachable keyboard don't have a trackpad over
i2c. Instead the trackpad is on the detachable keyboard base. Let's move
the enabling of the trackpad i2c bus out of the base sc7180-trogdor.dtsi
file so that each trogdor board that is detachable, of which there are
many, doesn't have to disable the trackpad bus.

Cc: "Joseph S. Barrera III" <joebar@chromium.org>
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220427020339.360855-2-swboyd@chromium.org
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi
arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi
arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi

index c81805e..8da61a5 100644 (file)
@@ -111,10 +111,6 @@ ap_ts_pen_1v8: &i2c4 {
        };
 };
 
-&i2c7 {
-       status = "disabled";
-};
-
 &i2c9 {
        status = "disabled";
 };
index bff2b55..532c7dc 100644 (file)
@@ -88,10 +88,6 @@ ap_h1_spi: &spi0 {};
        };
 };
 
-&ap_tp_i2c {
-       status = "disabled";
-};
-
 ap_ts_pen_1v8: &i2c4 {
        status = "okay";
        clock-frequency = <400000>;
index 69666f9..75df5d1 100644 (file)
@@ -19,6 +19,10 @@ ap_h1_spi: &spi0 {};
        semtech,avg-pos-strength = <64>;
 };
 
+&ap_tp_i2c {
+       status = "okay";
+};
+
 /*
  * Lazor is stuffed with a 47k NTC as charger thermistor which currently is
  * not supported by the PM6150 ADC driver. Disable the charger thermal zone
index e90f99e..410ca2a 100644 (file)
@@ -36,6 +36,10 @@ ap_h1_spi: &spi0 {};
        realtek,dmic-clk-driving-high = "true";
 };
 
+&ap_tp_i2c {
+       status = "okay";
+};
+
 &cpu6_alert0 {
        temperature = <60000>;
 };
index 457c254..311c42a 100644 (file)
@@ -20,6 +20,10 @@ ap_h1_spi: &spi0 {};
        compatible = "google,trogdor", "qcom,sc7180";
 };
 
+&ap_tp_i2c {
+       status = "okay";
+};
+
 ap_ts_pen_1v8: &i2c4 {
        status = "okay";
        clock-frequency = <400000>;
index b0efb35..7648be8 100644 (file)
@@ -727,7 +727,6 @@ ap_sar_sensor_i2c: &i2c5 {
 };
 
 ap_tp_i2c: &i2c7 {
-       status = "okay";
        clock-frequency = <400000>;
 
        trackpad: trackpad@15 {