| 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, 2021)"; |
| 18 |
chassis-type = "all-in-one"; |
| 19 |
|
| 20 |
aliases { |
| 21 |
ethernet0 = ðernet0; |
| 22 |
}; |
| 23 |
}; |
| 24 |
|
| 25 |
&bluetooth0 { |
| 26 |
brcm,board-type = "apple,capri"; |
| 27 |
}; |
| 28 |
|
| 29 |
&wifi0 { |
| 30 |
brcm,board-type = "apple,capri"; |
| 31 |
}; |
| 32 |
|
| 33 |
&i2c0 { |
| 34 |
hpm2: usb-pd@3b { |
| 35 |
compatible = "apple,cd321x"; |
| 36 |
reg = <0x3b>; |
| 37 |
interrupt-parent = <&pinctrl_ap>; |
| 38 |
interrupts = <106 IRQ_TYPE_LEVEL_LOW>; |
| 39 |
interrupt-names = "irq"; |
| 40 |
}; |
| 41 |
|
| 42 |
hpm3: usb-pd@3c { |
| 43 |
compatible = "apple,cd321x"; |
| 44 |
reg = <0x3c>; |
| 45 |
interrupt-parent = <&pinctrl_ap>; |
| 46 |
interrupts = <106 IRQ_TYPE_LEVEL_LOW>; |
| 47 |
interrupt-names = "irq"; |
| 48 |
}; |
| 49 |
}; |
| 50 |
|
| 51 |
/* |
| 52 |
* Provide labels for the USB type C ports. |
| 53 |
*/ |
| 54 |
|
| 55 |
&typec0 { |
| 56 |
label = "USB-C Back-right"; |
| 57 |
}; |
| 58 |
|
| 59 |
&typec1 { |
| 60 |
label = "USB-C Back-right-middle"; |
| 61 |
}; |
| 62 |
|
| 63 |
/* |
| 64 |
* Force the bus number assignments so that we can declare some of the |
| 65 |
* on-board devices and properties that are populated by the bootloader |
| 66 |
* (such as MAC addresses). |
| 67 |
*/ |
| 68 |
|
| 69 |
&port01 { |
| 70 |
bus-range = <2 2>; |
| 71 |
status = "okay"; |
| 72 |
}; |
| 73 |
|
| 74 |
&port02 { |
| 75 |
bus-range = <3 3>; |
| 76 |
status = "okay"; |
| 77 |
ethernet0: ethernet@0,0 { |
| 78 |
reg = <0x30000 0x0 0x0 0x0 0x0>; |
| 79 |
/* To be filled by the loader */ |
| 80 |
local-mac-address = [00 10 18 00 00 00]; |
| 81 |
}; |
| 82 |
}; |
| 83 |
|
| 84 |
&pcie0_dart_1 { |
| 85 |
status = "okay"; |
| 86 |
}; |
| 87 |
|
| 88 |
&pcie0_dart_2 { |
| 89 |
status = "okay"; |
| 90 |
}; |