Skip to content

Commit 3469644

Browse files
committed
arm64: dts: apple: t8103: Add spi3 keyboard node
Enables keyboard and touchpad input on MacBook Air (M1, 2020) and MacBook Pro (13-inch, M1, 2020). Signed-off-by: Janne Grunau <[email protected]>
1 parent 9a6f5d1 commit 3469644

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

arch/arm64/boot/dts/apple/t8103-j293.dts

+21
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,27 @@
5050
label = "USB-C Left-front";
5151
};
5252

53+
&spi3 {
54+
status = "okay";
55+
56+
hid-transport@0 {
57+
compatible = "apple,spi-hid-transport";
58+
reg = <0>;
59+
spi-max-frequency = <8000000>;
60+
/*
61+
* Apple's ADT specifies 20us CS change delays, and the
62+
* SPI HID interface metadata specifies 45us. Using either
63+
* seems not to be reliable, but adding both works, so
64+
* best guess is they are cumulative.
65+
*/
66+
spi-cs-setup-delay-ns = <65000>;
67+
spi-cs-hold-delay-ns = <65000>;
68+
spi-cs-inactive-delay-ns = <250000>;
69+
spien-gpios = <&pinctrl_ap 195 0>;
70+
interrupts-extended = <&pinctrl_nub 13 IRQ_TYPE_LEVEL_LOW>;
71+
};
72+
};
73+
5374
&i2c2 {
5475
status = "okay";
5576
};

arch/arm64/boot/dts/apple/t8103-j313.dts

+21
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,24 @@
5353
&typec1 {
5454
label = "USB-C Left-front";
5555
};
56+
57+
&spi3 {
58+
status = "okay";
59+
60+
hid-transport@0 {
61+
compatible = "apple,spi-hid-transport";
62+
reg = <0>;
63+
spi-max-frequency = <8000000>;
64+
/*
65+
* Apple's ADT specifies 20us CS change delays, and the
66+
* SPI HID interface metadata specifies 45us. Using either
67+
* seems not to be reliable, but adding both works, so
68+
* best guess is they are cumulative.
69+
*/
70+
spi-cs-setup-delay-ns = <65000>;
71+
spi-cs-hold-delay-ns = <65000>;
72+
spi-cs-inactive-delay-ns = <250000>;
73+
spien-gpios = <&pinctrl_ap 195 0>;
74+
interrupts-extended = <&pinctrl_nub 13 IRQ_TYPE_LEVEL_LOW>;
75+
};
76+
};

0 commit comments

Comments
 (0)