Skip to content

Commit fe009f3

Browse files
committed
fixup! arm64: dts: apple: Initial t8122 (M3) device tree
1 parent aee87fc commit fe009f3

File tree

6 files changed

+78
-28
lines changed

6 files changed

+78
-28
lines changed

arch/arm64/boot/dts/apple/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,6 @@ dtb-$(CONFIG_ARCH_APPLE) += t8112-j413.dtb
9191
dtb-$(CONFIG_ARCH_APPLE) += t8112-j415.dtb
9292
dtb-$(CONFIG_ARCH_APPLE) += t8112-j473.dtb
9393
dtb-$(CONFIG_ARCH_APPLE) += t8112-j493.dtb
94+
dtb-$(CONFIG_ARCH_APPLE) += t8122-j433.dtb
95+
dtb-$(CONFIG_ARCH_APPLE) += t8122-j434.dtb
9496
dtb-$(CONFIG_ARCH_APPLE) += t8122-j504.dtb
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iMac (24-inch, 2x USB-C, M3, 2023)
4+
*
5+
* target-type: J433
6+
*
7+
* Copyright The Asahi Linux Contributors
8+
*/
9+
10+
/dts-v1/;
11+
12+
#include "t8122.dtsi"
13+
#include "t8122-usbpd-i2c.dtsi"
14+
#include "t8122-jxxx.dtsi"
15+
16+
/ {
17+
compatible = "apple,j433", "apple,t8122", "apple,arm-platform";
18+
model = "Apple iMac (24-inch, 2x USB-C, M3, 2023)";
19+
};
20+
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple iMac (24-inch, 4x USB-C, M3, 2023)
4+
*
5+
* target-type: J434
6+
*
7+
* Copyright The Asahi Linux Contributors
8+
*/
9+
10+
/dts-v1/;
11+
12+
#include "t8122.dtsi"
13+
#include "t8122-usbpd-i2c.dtsi"
14+
#include "t8122-jxxx.dtsi"
15+
16+
/ {
17+
compatible = "apple,j434", "apple,t8122", "apple,arm-platform";
18+
model = "Apple iMac (24-inch, 4x USB-C, M3, 2023)";
19+
};
20+
21+

arch/arm64/boot/dts/apple/t8122-j504.dts

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/dts-v1/;
1111

1212
#include "t8122.dtsi"
13+
#include "t8122-usbpd-i2c.dtsi"
1314
#include "t8122-jxxx.dtsi"
1415
#include <dt-bindings/leds/common.h>
1516

@@ -30,33 +31,6 @@
3031
};
3132
};
3233

33-
&framebuffer0 {
34-
// panel = &panel;
35-
power-domains = <&ps_disp_cpu>, <&ps_dptx_ext_phy>;
36-
};
37-
38-
&i2c0 {
39-
status = "okay";
40-
41-
hpm0: usb-pd@38 {
42-
compatible = "apple,cd321x";
43-
reg = <0x38>;
44-
interrupt-parent = <&pinctrl_ap>;
45-
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
46-
interrupt-names = "irq";
47-
};
48-
49-
hpm1: usb-pd@3f {
50-
compatible = "apple,cd321x";
51-
reg = <0x3f>;
52-
interrupt-parent = <&pinctrl_ap>;
53-
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
54-
interrupt-names = "irq";
55-
};
56-
};
57-
58-
59-
6034
&fpwm1 {
6135
status = "okay";
6236
};

arch/arm64/boot/dts/apple/t8122-jxxx.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
framebuffer0: framebuffer@0 {
2525
compatible = "apple,simple-framebuffer", "simple-framebuffer";
2626
reg = <0 0 0 0>; /* To be filled by loader */
27-
power-domains = <&ps_disp_cpu>;
27+
power-domains = <&ps_disp_cpu>, <&ps_dptx_ext_phy>;
2828
/* Format properties will be added by loader */
2929
status = "disabled";
3030
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// SPDX-License-Identifier: GPL-2.0+ OR MIT
2+
/*
3+
* Apple M3 MacBook Pro and iMac (M3, 2023) I2C based USB PD controller nodes
4+
*
5+
* This file contains nodes for t8122 devices using I2C based cd321x USB Type-C
6+
* port controllers. The are used in the M3 MacBook Pro and iMacs but not in the
7+
* M3 Macbook Airs.
8+
*
9+
* target-type: J433, J434, J504
10+
*
11+
* Copyright The Asahi Linux Contributors
12+
*/
13+
14+
&i2c0 {
15+
status = "okay";
16+
17+
hpm0: usb-pd@38 {
18+
compatible = "apple,cd321x";
19+
reg = <0x38>;
20+
interrupt-parent = <&pinctrl_ap>;
21+
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
22+
interrupt-names = "irq";
23+
};
24+
25+
hpm1: usb-pd@3f {
26+
compatible = "apple,cd321x";
27+
reg = <0x3f>;
28+
interrupt-parent = <&pinctrl_ap>;
29+
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
30+
interrupt-names = "irq";
31+
};
32+
};

0 commit comments

Comments
 (0)