arm64: dts: mt8183: kukui: Split out keyboard node and describe detachables
authorHsin-Yi Wang <hsinyi@chromium.org>
Fri, 27 May 2022 04:53:54 +0000 (12:53 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 9 Jan 2023 16:16:47 +0000 (17:16 +0100)
Kukui devices krane, kodana, and kakadu use detachable keyboards, which
only have switches to be registered.

Change the keyboard node's compatible of those boards to the newly
introduced "google,cros-ec-keyb-switches", which won't include matrix
properties.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20220527045353.2483042-1-hsinyi@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi

index 3ac83be..e3fd25a 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include "mt8183-kukui.dtsi"
+/* Must come after mt8183-kukui.dtsi to modify cros_ec */
+#include <arm/cros-ec-keyboard.dtsi>
 
 / {
        panel: panel {
index 50a0dd3..a11adeb 100644 (file)
        };
 };
 
+&cros_ec {
+       keyboard-controller {
+               compatible = "google,cros-ec-keyb-switches";
+       };
+};
+
 &qca_wifi {
        qcom,ath10k-calibration-variant = "GO_KAKADU";
 };
index 06f8c80..4864c39 100644 (file)
        };
 };
 
+&cros_ec {
+       keyboard-controller {
+               compatible = "google,cros-ec-keyb-switches";
+       };
+};
+
 &qca_wifi {
        qcom,ath10k-calibration-variant = "GO_KODAMA";
 };
index a7b0cb3..d5f41c6 100644 (file)
        };
 };
 
+&cros_ec {
+       keyboard-controller {
+               compatible = "google,cros-ec-keyb-switches";
+       };
+};
+
 &qca_wifi {
        qcom,ath10k-calibration-variant = "LE_Krane";
 };
index 7fc4c59..821a51e 100644 (file)
        };
 };
 
-#include <arm/cros-ec-keyboard.dtsi>
 #include <arm/cros-ec-sbs.dtsi>