Skip to content

Commit 9f0d601

Browse files
WhatAmISupposedToPutHeremarcan
authored andcommitted
arm64: dts: apple: t8103: Add touchbar bindings
Adds device tree entries for the touchbar digitizer Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
1 parent 45876f7 commit 9f0d601

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
default-state = "keep";
2929
};
3030
};
31+
32+
aliases {
33+
touchbar0 = &touchbar0;
34+
};
3135
};
3236

3337
&dcp {
@@ -59,6 +63,26 @@
5963
label = "USB-C Left-front";
6064
};
6165

66+
&spi0 {
67+
status = "okay";
68+
69+
touchbar0: touchbar@0 {
70+
compatible = "apple,j293-touchbar",
71+
"apple,z2-touchbar", "apple,z2-multitouch";
72+
reg = <0>;
73+
spi-max-frequency = <11500000>;
74+
spi-cs-setup-delay-ns = <2000>;
75+
spi-cs-hold-delay-ns = <2000>;
76+
reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>;
77+
cs-gpios = <&pinctrl_ap 109 0>;
78+
interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
79+
firmware-name = "apple/dfrmtfw-j293.bin";
80+
touchscreen-size-x = <23045>;
81+
touchscreen-size-y = <640>;
82+
label = "MacBookPro17,1 Touch Bar";
83+
};
84+
};
85+
6286
&spi3 {
6387
status = "okay";
6488

arch/arm64/boot/dts/apple/t8103.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,18 @@
702702
status = "disabled";
703703
};
704704

705+
spi0: spi@235100000 {
706+
compatible = "apple,t8103-spi", "apple,spi";
707+
reg = <0x2 0x35100000 0x0 0x4000>;
708+
interrupt-parent = <&aic>;
709+
interrupts = <AIC_IRQ 614 IRQ_TYPE_LEVEL_HIGH>;
710+
clocks = <&clk_200m>;
711+
power-domains = <&ps_spi0>;
712+
#address-cells = <1>;
713+
#size-cells = <0>;
714+
status = "disabled"; /* only used in J293 */
715+
};
716+
705717
spi1: spi@235104000 {
706718
compatible = "apple,t8103-spi", "apple,spi";
707719
reg = <0x2 0x35104000 0x0 0x4000>;

0 commit comments

Comments
 (0)