| 1 |
// SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 |
/* |
| 3 |
* Apple iMac (24-inch, 2x USB-C, M1, 2020) |
| 4 |
* |
| 5 |
* target-type: J457 |
| 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,j457", "apple,t8103", "apple,arm-platform"; |
| 17 |
model = "Apple iMac (24-inch, 2x USB-C, M1, 2021)"; |
| 18 |
chassis-type = "all-in-one"; |
| 19 |
|
| 20 |
aliases { |
| 21 |
ethernet0 = ðernet0; |
| 22 |
}; |
| 23 |
}; |
| 24 |
|
| 25 |
/* |
| 26 |
* Adjust pcie0's iommu-map to account for the disabled port01. |
| 27 |
*/ |
| 28 |
&pcie0 { |
| 29 |
iommu-map = <0x100 &pcie0_dart_0 1 1>, |
| 30 |
<0x200 &pcie0_dart_2 1 1>; |
| 31 |
}; |
| 32 |
|
| 33 |
&bluetooth0 { |
| 34 |
brcm,board-type = "apple,santorini"; |
| 35 |
}; |
| 36 |
|
| 37 |
&wifi0 { |
| 38 |
brcm,board-type = "apple,santorini"; |
| 39 |
}; |
| 40 |
|
| 41 |
/* |
| 42 |
* Provide labels for the USB type C ports. |
| 43 |
*/ |
| 44 |
|
| 45 |
&typec0 { |
| 46 |
label = "USB-C Back-right"; |
| 47 |
}; |
| 48 |
|
| 49 |
&typec1 { |
| 50 |
label = "USB-C Back-left"; |
| 51 |
}; |
| 52 |
|
| 53 |
/* |
| 54 |
* Force the bus number assignments so that we can declare some of the |
| 55 |
* on-board devices and properties that are populated by the bootloader |
| 56 |
* (such as MAC addresses). |
| 57 |
*/ |
| 58 |
|
| 59 |
&port02 { |
| 60 |
bus-range = <2 2>; |
| 61 |
status = "okay"; |
| 62 |
ethernet0: ethernet@0,0 { |
| 63 |
reg = <0x20000 0x0 0x0 0x0 0x0>; |
| 64 |
/* To be filled by the loader */ |
| 65 |
local-mac-address = [00 10 18 00 00 00]; |
| 66 |
}; |
| 67 |
}; |
| 68 |
|
| 69 |
&pcie0_dart_2 { |
| 70 |
status = "okay"; |
| 71 |
}; |