Skip to content

Commit e1bebf9

Browse files
Marc Zyngiermarcan
authored andcommitted
arm64: dts: apple: j274: Expose PCI node for the Ethernet MAC address
At the moment, all the Minis running Linux have the same MAC address (00:10:18:00:00:00), which is a bit annoying. Expose the PCI node corresponding to the Ethernet device, and declare a 'local-mac-address' property. The bootloader will update it (m1n1 already has the required feature). And if it doesn't, then the default value is already present in the DT. This relies on forcing the bus number for each port so that the endpoints connected to them are correctly numbered (and keeps dtc quiet). Signed-off-by: Marc Zyngier <[email protected]> Signed-off-by: Hector Martin <[email protected]>
1 parent 128888a commit e1bebf9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

arch/arm64/boot/dts/apple/t8103-j274.dts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
aliases {
1919
serial0 = &serial0;
20+
ethernet0 = &ethernet0;
2021
};
2122

2223
chosen {
@@ -43,3 +44,25 @@
4344
&serial0 {
4445
status = "okay";
4546
};
47+
48+
/*
49+
* Force the bus number assignments so that we can declare some of the
50+
* on-board devices and properties that are populated by the bootloader
51+
* (such as MAC addresses).
52+
*/
53+
&port00 {
54+
bus-range = <1 1>;
55+
};
56+
57+
&port01 {
58+
bus-range = <2 2>;
59+
};
60+
61+
&port02 {
62+
bus-range = <3 3>;
63+
ethernet0: pci@0,0 {
64+
reg = <0x30000 0x0 0x0 0x0 0x0>;
65+
/* To be filled by the loader */
66+
local-mac-address = [00 10 18 00 00 00];
67+
};
68+
};

0 commit comments

Comments
 (0)