Skip to content

Instantly share code, notes, and snippets.

@jannau
Created November 25, 2021 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jannau/134609311e60bc0f9a7163300849695f to your computer and use it in GitHub Desktop.
Save jannau/134609311e60bc0f9a7163300849695f to your computer and use it in GitHub Desktop.
t6001 spi keyboard dts node
commit 1c595054ce3cf0d152579015b875190ae59481c9
Author: Janne Grunau <j@jannau.net>
Date: Thu Nov 11 21:31:21 2021 +0100
arm64: dts: apple: Add spi3/keyboard nodes to t6001.dtsi
Enables keyboard and touchpad input on Macbooks.
Signed-off-by: Janne Grunau <j@jannau.net>
diff --git a/arch/arm64/boot/dts/apple/t6001.dtsi b/arch/arm64/boot/dts/apple/t6001.dtsi
index 323a6040f9f1..8dd10a59e5c2 100644
--- a/arch/arm64/boot/dts/apple/t6001.dtsi
+++ b/arch/arm64/boot/dts/apple/t6001.dtsi
@@ -219,6 +219,25 @@ i2c0: i2c@39b040000 {
#size-cells = <0x0>;
};
+ spi3: spi@39b10c000 {
+ compatible = "apple,spi-mc-m1";
+ reg = <0x3 0x9b10c000 0x0 0x4000>;
+ interrupt-parent = <&aic>;
+ interrupts = <AIC_IRQ 0 1109 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clkref>;
+ cs-gpios = <&pinctrl_ap 55 0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ keyboard@0 {
+ compatible = "input,applespi-kbd-v1";
+ reg = <0>;
+ spi-max-frequency = <2000000>;
+ spien-gpios = <&pinctrl_ap 194 0>;
+ interrupts-extended = <&pinctrl_nub 6 IRQ_TYPE_LEVEL_LOW>;
+ };
+ };
+
pcie0_dart_0: dart@581008000 {
compatible = "apple,t6000-dart";
reg = <0x5 0x81008000 0x0 0x4000>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment