aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9341_tplink.dtsi
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-18 20:06:29 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-18 23:46:02 +0200
commite826b642945ee7b196044a07faddd71c1bd6c6ef (patch)
tree06dc9a1c433de229f67899b0c1da70bbadb930da /target/linux/ath79/dts/ar9341_tplink.dtsi
parentba3d92c5a087cd4d28124fc366fc63a34732ff3d (diff)
downloadupstream-e826b642945ee7b196044a07faddd71c1bd6c6ef.tar.gz
upstream-e826b642945ee7b196044a07faddd71c1bd6c6ef.tar.bz2
upstream-e826b642945ee7b196044a07faddd71c1bd6c6ef.zip
ath79: convert remaining mtd-mac-address cases to nvmem
Since the nvmem-based approach for retrieving MAC addresses appears to depend on the addresses being set up after the partitions, it is no longer possible to keep the MAC address setup in shared DTSI files while the partitions itself are set up in DTS files for the individual devices. In ath79 the firmware partition is typically located somewhere "in the middle" of the partition table. Thus, it's not trivial to share the partitions containing MAC address information in a common DTSI (like we did in some cases on ramips). In this commit, MAC address setup is thus moved to the relevant partitions, and in most cases needs to be duplicated. While the duplication is not really nice, it eventually provides a cleaner and more tidy setup, making the DTS(I) file fragmentation a bit more logical. This should also help with adding new devices, as information is distributed across less locations. For consistency, this commit also moves the mtd-cal-data property "down" together with the MAC address setup, so it's not based on a partition before the latter is defined either. (This is only done for those files touched due to nvmem conversion.) Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/dts/ar9341_tplink.dtsi')
-rw-r--r--target/linux/ath79/dts/ar9341_tplink.dtsi9
1 files changed, 0 insertions, 9 deletions
diff --git a/target/linux/ath79/dts/ar9341_tplink.dtsi b/target/linux/ath79/dts/ar9341_tplink.dtsi
index 0f6e0bc114..9c505f2785 100644
--- a/target/linux/ath79/dts/ar9341_tplink.dtsi
+++ b/target/linux/ath79/dts/ar9341_tplink.dtsi
@@ -11,7 +11,6 @@
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
- label-mac-device = &wmac;
};
leds: leds {
@@ -80,14 +79,9 @@
status = "okay";
phy-handle = <&swphy0>;
-
- mtd-mac-address = <&uboot 0x1fc00>;
- mac-address-increment = <(-1)>;
};
&eth1 {
- mtd-mac-address = <&uboot 0x1fc00>;
-
gmac-config {
device = <&gmac>;
switch-phy-swap = <1>;
@@ -96,7 +90,4 @@
&wmac {
status = "okay";
-
- mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
};