ipq806x: Stabilize LAN 2 MAC address, interface ordering
authorBryan Berg <bdb@north-eastham.org>
Sun, 26 Nov 2023 21:34:01 +0000 (13:34 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 15 Jan 2024 21:25:57 +0000 (22:25 +0100)
commit84a489b7cfc4c98b8747c9965826b2588eb3a57d
tree6e7f17880e502214c1e200d1df412bc42d37ed90
parentc2c741ccce0480a5a71bfa6b392b3c71e867d1dc
ipq806x: Stabilize LAN 2 MAC address, interface ordering

Part 1 of #13629 split.

* Sets the LAN 2 MAC address in the DTS by deriving it from LAN 1's
address. The factory OS derives this from the `eth1addr` u-boot env
variable, but the nvmem_u-boot-env driver doesn't support parsing MAC
addresses from fields other than `ethaddr`. But for all of the device
samples I've checked (~10) it derives the correct MAC.

* Updates 02_network to ensure that interfaces are assigned to roles
correctly and consistently.

Signed-off-by: Bryan Berg <bdb@north-eastham.org>
target/linux/ipq806x/base-files/etc/board.d/02_network
target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8068-ap3935.dts