Skip to content

Commit 47f65f1

Browse files
committed
arm64: dts: apple: Add MTP nodes to t6020x
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent cc7e403 commit 47f65f1

7 files changed

Lines changed: 130 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t6020-j414s.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@
3535
&sound {
3636
model = "MacBook Pro J414";
3737
};
38+
39+
&mtp_mt {
40+
firmware-name = "apple/tpmtfw-j414s.bin";
41+
};

arch/arm64/boot/dts/apple/t6020-j416s.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@
3535
&sound {
3636
model = "MacBook Pro J416";
3737
};
38+
39+
&mtp_mt {
40+
firmware-name = "apple/tpmtfw-j416s.bin";
41+
};

arch/arm64/boot/dts/apple/t6021-j414c.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@
3535
&sound {
3636
model = "MacBook Pro J414";
3737
};
38+
39+
&mtp_mt {
40+
firmware-name = "apple/tpmtfw-j414c.bin";
41+
};

arch/arm64/boot/dts/apple/t6021-j416c.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@
5151
&sound {
5252
model = "MacBook Pro J416";
5353
};
54+
55+
&mtp_mt {
56+
firmware-name = "apple/tpmtfw-j416c.bin";
57+
};

arch/arm64/boot/dts/apple/t602x-die0.dtsi

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,82 @@
170170
<AIC_IRQ 0 857 IRQ_TYPE_LEVEL_HIGH>;
171171
};
172172

173+
mtp: mtp@2a9400000 {
174+
compatible = "apple,t6020-mtp", "apple,t6020-rtk-helper-asc4", "apple,mtp", "apple,rtk-helper-asc4";
175+
reg = <0x2 0xa9400000 0x0 0x4000>,
176+
<0x2 0xa9c00000 0x0 0x100000>;
177+
reg-names = "asc", "sram";
178+
mboxes = <&mtp_mbox>;
179+
iommus = <&mtp_dart 1>;
180+
#helper-cells = <0>;
181+
182+
status = "disabled";
183+
};
184+
185+
mtp_mbox: mbox@2a9408000 {
186+
compatible = "apple,t8112-asc-mailbox", "apple,asc-mailbox-v4";
187+
reg = <0x2 0xa9408000 0x0 0x4000>;
188+
interrupt-parent = <&aic>;
189+
interrupts = <AIC_IRQ 0 693 IRQ_TYPE_LEVEL_HIGH>,
190+
<AIC_IRQ 0 694 IRQ_TYPE_LEVEL_HIGH>,
191+
<AIC_IRQ 0 695 IRQ_TYPE_LEVEL_HIGH>,
192+
<AIC_IRQ 0 696 IRQ_TYPE_LEVEL_HIGH>;
193+
interrupt-names = "send-empty", "send-not-empty",
194+
"recv-empty", "recv-not-empty";
195+
#mbox-cells = <0>;
196+
197+
status = "disabled";
198+
};
199+
200+
mtp_dart: iommu@2a9808000 {
201+
compatible = "apple,t6020-dart", "apple,t8110-dart";
202+
reg = <0x2 0xa9808000 0x0 0x4000>;
203+
interrupt-parent = <&aic>;
204+
interrupts = <AIC_IRQ 0 676 IRQ_TYPE_LEVEL_HIGH>;
205+
#iommu-cells = <1>;
206+
207+
apple,dma-range = <0x100 0x0 0x1 0x0>;
208+
209+
status = "disabled";
210+
};
211+
212+
mtp_dockchannel: fifo@2a9b14000 {
213+
compatible = "apple,t6020-dockchannel", "apple,dockchannel";
214+
reg = <0x2 0xa9b14000 0x0 0x4000>;
215+
reg-names = "irq";
216+
interrupt-parent = <&aic>;
217+
interrupts = <AIC_IRQ 0 677 IRQ_TYPE_LEVEL_HIGH>;
218+
219+
ranges = <0 0x2 0xa9b28000 0x20000>;
220+
nonposted-mmio;
221+
#address-cells = <1>;
222+
#size-cells = <1>;
223+
224+
interrupt-controller;
225+
#interrupt-cells = <2>;
226+
227+
status = "disabled";
228+
229+
mtp_hid: input@8000 {
230+
compatible = "apple,dockchannel-hid";
231+
reg = <0x8000 0x4000>,
232+
<0xc000 0x4000>,
233+
<0x0000 0x4000>,
234+
<0x4000 0x4000>;
235+
reg-names = "config", "data",
236+
"rmt-config", "rmt-data";
237+
iommus = <&mtp_dart 1>;
238+
interrupt-parent = <&mtp_dockchannel>;
239+
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
240+
<3 IRQ_TYPE_LEVEL_HIGH>;
241+
interrupt-names = "tx", "rx";
242+
243+
apple,fifo-size = <0x800>;
244+
apple,helper-cpu = <&mtp>;
245+
};
246+
247+
};
248+
173249
disp0_piodma: mapper@388000000 {
174250
compatible = "apple,t6020-dcp-piodma", "apple,dcp-piodma";
175251
iommus = <&disp0_dart 4>;

arch/arm64/boot/dts/apple/t602x-j414-j416.dtsi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,40 @@
118118
&ps_isp_clr {
119119
status = "okay";
120120
};
121+
122+
&mtp {
123+
status = "okay";
124+
};
125+
126+
&mtp_mbox {
127+
status = "okay";
128+
};
129+
130+
&mtp_dart {
131+
status = "okay";
132+
};
133+
134+
&mtp_dockchannel {
135+
status = "okay";
136+
};
137+
138+
&mtp_hid {
139+
mtp_mt: multi-touch {
140+
apple,afe-reset-gpios = <&smc_gpio 25 GPIO_ACTIVE_LOW>;
141+
};
142+
143+
keyboard: keyboard {
144+
hid-country-code = <0>;
145+
apple,keyboard-layout-id = <0>;
146+
};
147+
148+
stm {
149+
apple,stm-reset-gpios = <&smc_gpio 26 GPIO_ACTIVE_LOW>;
150+
};
151+
152+
actuator {
153+
};
154+
155+
tp_accel {
156+
};
157+
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,7 @@
12671267
interrupts = <AIC_IRQ 850 IRQ_TYPE_LEVEL_HIGH>;
12681268

12691269
ranges = <0 0x2 0x4eb28000 0x20000>;
1270+
nonposted-mmio;
12701271
#address-cells = <1>;
12711272
#size-cells = <1>;
12721273

0 commit comments

Comments
 (0)