]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: zynqmp: Describe ethernet controllers via aliases on SOM
authorMichal Simek <michal.simek@amd.com>
Tue, 2 Sep 2025 07:56:20 +0000 (09:56 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 10 Sep 2025 13:56:03 +0000 (15:56 +0200)
commiteb4a09d8cc31c90adaa12136ffdb7b57a6410873
tree926231be2c1111b59f76cb62f43548e5b1dbd58d
parent767ecf9da7b31e5c0c22c273001cb2784705fe8c
arm64: zynqmp: Describe ethernet controllers via aliases on SOM

Add ethernet aliases to CC (Carrier card) description to create a
connection which is used by U-BOOT (fdt_fixup_ethernet()) for updating
local-mac-address in DT.
On Kria SOM MAC address is read from i2c eeprom at start and based on it
environment variables are created. Without creating aliases U-Boot is not
able to inject local-mac-address DT property and OS won't get the same MAC
address unless another i2c read is happening in OS.
Also aliases are using string not phandle (because of dtso) that's why full
path has to be provided but that shouldn't be a big issue because location
of ethernet controller is fixed.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/72304150f87fd5e3338e31e2be8cf5d29955cc02.1756799774.git.michal.simek@amd.com
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso
arch/arm64/boot/dts/xilinx/zynqmp-sck-kv-g-revA.dtso
arch/arm64/boot/dts/xilinx/zynqmp-sck-kv-g-revB.dtso