Skip to contentSkip to conversation

arm64: dts: mt8183: kukui: Split out keyboard node and describe detachables

PATCH Applied Hsin-Yi Wang 3 participants 5 messages May 27, 2022 – Dec 16, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: mt8183: kukui: Split out keyboard node and describe detachables

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.

---
 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi | 2 ++
 arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi  | 6 ++++++
 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi  | 6 ++++++
 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi   | 6 ++++++
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi         | 1 -
 5 files changed, 20 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi +2 -0
index 2d7a193272ae..981c889a22ea 100644
@@ -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 {
arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi +6 -0
index 28966a65391b..4b419623c8dc 100644
@@ -372,6 +372,12 @@ pen_eject {
 	};
 };
 
+&cros_ec {
+	keyboard-controller {
+		compatible = "google,cros-ec-keyb-switches";
+	};
+};
+
 &qca_wifi {
 	qcom,ath10k-calibration-variant = "GO_KAKADU";
 };
arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi +6 -0
index 06f8c80bf553..4864c39e53a4 100644
@@ -339,6 +339,12 @@ touch_pin_reset: pin_reset {
 	};
 };
 
+&cros_ec {
+	keyboard-controller {
+		compatible = "google,cros-ec-keyb-switches";
+	};
+};
+
 &qca_wifi {
 	qcom,ath10k-calibration-variant = "GO_KODAMA";
 };
arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi +6 -0
index a7b0cb3ff7b0..d5f41c6c9881 100644
@@ -343,6 +343,12 @@ rst_pin {
 	};
 };
 
+&cros_ec {
+	keyboard-controller {
+		compatible = "google,cros-ec-keyb-switches";
+	};
+};
+
 &qca_wifi {
 	qcom,ath10k-calibration-variant = "LE_Krane";
 };
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -1
index 8d5bf73a9099..db1388550f98 100644
@@ -986,5 +986,4 @@ hub@1 {
 	};
 };
 
-#include <arm/cros-ec-keyboard.dtsi>
 #include <arm/cros-ec-sbs.dtsi>
Signature · 1 line
2.36.1.124.g0e6072fb45-goog
#1 lore raw
Quoted 10 lines · Hsin-Yi Wang

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.

---

hi Matthias,

Kindly ping on this patch. Thanks.

Quoted 84 lines
 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi | 2 ++
 arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi  | 6 ++++++
 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi  | 6 ++++++
 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi   | 6 ++++++
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi         | 1 -
 5 files changed, 20 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi +2 -0
index 2d7a193272ae..981c889a22ea 100644
@@ -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 {
arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi +6 -0
index 28966a65391b..4b419623c8dc 100644
@@ -372,6 +372,12 @@ pen_eject {
        };
 };
 
+&cros_ec {
+       keyboard-controller {
+               compatible = "google,cros-ec-keyb-switches";
+       };
+};
+
 &qca_wifi {
        qcom,ath10k-calibration-variant = "GO_KAKADU";
 };
arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi +6 -0
index 06f8c80bf553..4864c39e53a4 100644
@@ -339,6 +339,12 @@ touch_pin_reset: pin_reset {
        };
 };
 
+&cros_ec {
+       keyboard-controller {
+               compatible = "google,cros-ec-keyb-switches";
+       };
+};
+
 &qca_wifi {
        qcom,ath10k-calibration-variant = "GO_KODAMA";
 };
arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi +6 -0
index a7b0cb3ff7b0..d5f41c6c9881 100644
@@ -343,6 +343,12 @@ rst_pin {
        };
 };
 
+&cros_ec {
+       keyboard-controller {
+               compatible = "google,cros-ec-keyb-switches";
+       };
+};
+
 &qca_wifi {
        qcom,ath10k-calibration-variant = "LE_Krane";
 };
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -2
index 8d5bf73a9099..db1388550f98 100644
@@ -986,5 +986,4 @@ hub@1 {
        };
 };
 
-#include <arm/cros-ec-keyboard.dtsi>
 #include <arm/cros-ec-sbs.dtsi>
--

2.36.1.124.g0e6072fb45-goog

#2 lore raw
Quoted 9 lines · Hsin-Yi Wang
Quoted 8 lines · Hsin-Yi Wang

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.

Quoted 6 lines
Quoted 2 lines

---

hi Matthias,

Kindly ping on this patch. Thanks.

It's a merge window, so for what do you ping now?

Best regards,
Krzysztof

#3 lore raw
Quoted 11 lines · Krzysztof Kozlowski
Quoted 9 lines · Hsin-Yi Wang
Quoted 8 lines · Hsin-Yi Wang

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.

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

---

hi Matthias,

Kindly ping on this patch. Thanks.

It's a merge window, so for what do you ping now?

Okay I should ping after the merge window.

Quoted 3 lines

Best regards,
Krzysztof

maintainer Applied
#4 lore raw
In reply to Hsin-Yi Wang
Quoted 8 lines · Hsin-Yi Wang

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.

Applied, thanks!

Quoted 82 lines
---
  arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi | 2 ++
  arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi  | 6 ++++++
  arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi  | 6 ++++++
  arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi   | 6 ++++++
  arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi         | 1 -
  5 files changed, 20 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi +2 -0
index 2d7a193272ae..981c889a22ea 100644
@@ -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 {
arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi +6 -0
index 28966a65391b..4b419623c8dc 100644
@@ -372,6 +372,12 @@ pen_eject {
  	};
  };
 
+&cros_ec {
+	keyboard-controller {
+		compatible = "google,cros-ec-keyb-switches";
+	};
+};
+
  &qca_wifi {
  	qcom,ath10k-calibration-variant = "GO_KAKADU";
  };
arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi +6 -0
index 06f8c80bf553..4864c39e53a4 100644
@@ -339,6 +339,12 @@ touch_pin_reset: pin_reset {
  	};
  };
 
+&cros_ec {
+	keyboard-controller {
+		compatible = "google,cros-ec-keyb-switches";
+	};
+};
+
  &qca_wifi {
  	qcom,ath10k-calibration-variant = "GO_KODAMA";
  };
arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi +6 -0
index a7b0cb3ff7b0..d5f41c6c9881 100644
@@ -343,6 +343,12 @@ rst_pin {
  	};
  };
 
+&cros_ec {
+	keyboard-controller {
+		compatible = "google,cros-ec-keyb-switches";
+	};
+};
+
  &qca_wifi {
  	qcom,ath10k-calibration-variant = "LE_Krane";
  };
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -1
index 8d5bf73a9099..db1388550f98 100644
@@ -986,5 +986,4 @@ hub@1 {
  	};
  };
 
-#include <arm/cros-ec-keyboard.dtsi>
  #include <arm/cros-ec-sbs.dtsi>