ath79: use "fixed-layout" for Embedded Wireless devices
authorRafał Miłecki <rafal@milecki.pl>
Fri, 10 Nov 2023 10:25:05 +0000 (11:25 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Wed, 15 Nov 2023 06:14:32 +0000 (07:14 +0100)
commitc60e9d183995823a52669ecae40669154614abe7
tree1a0f86e9094762910489648f8757bbc8bd8c1ee5
parent4d9108e0bfcac0380cfa9379f906b0a8f9842762
ath79: use "fixed-layout" for Embedded Wireless devices

Those devices have Ethernet interfaces using base MAC address increased
by 0x40 in the 3rd indexed byte (00:00:00:FF:00:00). To describe that we
were using a custom (downstream) "mac-address-increment-byte" property.

The same result can be achieved by using "mac-base" with a properly
adjusted offset value (0x40 << 16). It may be not pretty but it should
work without custom property or downstream kernel patch to support it.

Cc: Ansuel Smith <ansuelsmth@gmail.com>
Cc: Catrinel Catrinescu <cc@80211.de>
Cc: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Rosen Penev <rosenp@gmail.com>
target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
target/linux/ath79/dts/ar9344_embeddedwireless_balin.dts