GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm64 / boot / dts / apple / t8103-j456.dts
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3  * Apple iMac (24-inch, 4x USB-C, M1, 2020)
4  *
5  * target-type: J456
6  *
7  * Copyright The Asahi Linux Contributors
8  */
9
10 /dts-v1/;
11
12 #include "t8103.dtsi"
13 #include "t8103-jxxx.dtsi"
14
15 / {
16         compatible = "apple,j456", "apple,t8103", "apple,arm-platform";
17         model = "Apple iMac (24-inch, 4x USB-C, M1, 2020)";
18
19         aliases {
20                 ethernet0 = &ethernet0;
21         };
22 };
23
24 &wifi0 {
25         brcm,board-type = "apple,capri";
26 };
27
28 &i2c0 {
29         hpm2: usb-pd@3b {
30                 compatible = "apple,cd321x";
31                 reg = <0x3b>;
32                 interrupt-parent = <&pinctrl_ap>;
33                 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
34                 interrupt-names = "irq";
35         };
36
37         hpm3: usb-pd@3c {
38                 compatible = "apple,cd321x";
39                 reg = <0x3c>;
40                 interrupt-parent = <&pinctrl_ap>;
41                 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
42                 interrupt-names = "irq";
43         };
44 };
45
46 /*
47  * Force the bus number assignments so that we can declare some of the
48  * on-board devices and properties that are populated by the bootloader
49  * (such as MAC addresses).
50  */
51
52 &port01 {
53         bus-range = <2 2>;
54         status = "okay";
55 };
56
57 &port02 {
58         bus-range = <3 3>;
59         status = "okay";
60         ethernet0: ethernet@0,0 {
61                 reg = <0x30000 0x0 0x0 0x0 0x0>;
62                 /* To be filled by the loader */
63                 local-mac-address = [00 10 18 00 00 00];
64         };
65 };
66
67 &pcie0_dart_1 {
68         status = "okay";
69 };
70
71 &pcie0_dart_2 {
72         status = "okay";
73 };