Use the generic mtd-mac-address dts property to get a mac address from
flash instead of the lantiq specific one.
Signed-off-by: Mathias Kresin <dev@kresin.me>
14 files changed:
lantiq,shadow = <0x0>;
};
lantiq,shadow = <0x0>;
};
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x3f0016 0x6>;
- };
-
ath5k_eep {
compatible = "ath5k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
ath5k_eep {
compatible = "ath5k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
reg = <0x20000 0x3d0000>;
};
reg = <0x20000 0x3d0000>;
};
+ boardconfig: partition@3f0000 {
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
gpio-controller;
lantiq,shadow = <0x400>;
};
gpio-controller;
lantiq,shadow = <0x400>;
};
-
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x3f0016 0x6>;
- };
};
gpio: pinmux@E100B10 {
};
gpio: pinmux@E100B10 {
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
reg = <0x30000 0x3c0000>;
};
reg = <0x30000 0x3c0000>;
};
+ boardconfig: partition@7f0000 {
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x3f0016 0x6>;
- };
-
gpiomm: gpiomm@4000000 {
compatible = "lantiq,gpio-mm";
reg = <1 0x0 0x10 >;
gpiomm: gpiomm@4000000 {
compatible = "lantiq,gpio-mm";
reg = <1 0x0 0x10 >;
etop@E180000 {
phy-mode = "rmii";
etop@E180000 {
phy-mode = "rmii";
+ mtd-mac-address = <&boardconfig 0x16>;
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x3f0016 0x6>;
- };
-
ath5k_eep {
compatible = "ath5k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
ath5k_eep {
compatible = "ath5k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x3f0016 0x6>;
- };
-
ath5k_eep {
compatible = "ath5k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
ath5k_eep {
compatible = "ath5k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
etop@E180000 {
phy-mode = "rmii";
etop@E180000 {
phy-mode = "rmii";
+ mtd-mac-address = <&boardconfig 0x16>;
reg = <0x50000 0x7a0000>;
};
reg = <0x50000 0x7a0000>;
};
+ boardconfig: partition@7f0000 {
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
};
};
};
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
};
};
};
-
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x7f0016 0x6>;
- };
};
gpio: pinmux@E100B10 {
};
gpio: pinmux@E100B10 {
/* GPIO 19: switch reset */
etop@E180000 {
phy-mode = "rmii";
/* GPIO 19: switch reset */
etop@E180000 {
phy-mode = "rmii";
+ mtd-mac-address = <&boardconfig 0x16>;
reg = <0x60000 0xf80000>;
};
reg = <0x60000 0xf80000>;
};
+ boardconfig: partition@fe0000 {
label = "board_config";
reg = <0xfe0000 0x20000>;
read-only;
};
};
};
label = "board_config";
reg = <0xfe0000 0x20000>;
read-only;
};
};
};
-
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0xfe0016 0x6>;
- };
};
gpio: pinmux@E100B10 {
};
gpio: pinmux@E100B10 {
+ phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
lantiq,shadow = <0x0>;
};
lantiq,shadow = <0x0>;
};
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x7f0016 0x6>;
- };
-
ath9k_eep {
compatible = "ath9k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
ath9k_eep {
compatible = "ath9k,eeprom";
ath,eep-flash = <&boardconfig 0x400>;
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
reg = <0x60000 0xf80000>;
};
reg = <0x60000 0xf80000>;
};
+ boardconfig: partition@fe0000 {
label = "board_config";
reg = <0xfe0000 0x20000>;
read-only;
};
};
};
label = "board_config";
reg = <0xfe0000 0x20000>;
read-only;
};
};
};
-
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0xfe0016 0x6>;
- };
};
gpio: pinmux@E100B10 {
};
gpio: pinmux@E100B10 {
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
};
/* warning: passive port
};
/* warning: passive port
reg = <0x20000 0x3d0000>;
};
reg = <0x20000 0x3d0000>;
};
+ boardconfig: partition@400000 {
label = "board_config";
reg = <0x3f0000 0x10000>;
read-only;
label = "board_config";
reg = <0x3f0000 0x10000>;
read-only;
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x3f0016 0x6>;
- };
-
ralink_eep {
compatible = "ralink,eeprom";
ralink,eeprom = "RT2860.eeprom";
ralink_eep {
compatible = "ralink,eeprom";
ralink,eeprom = "RT2860.eeprom";
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
reg = <0x20000 0x7d0000>;
};
reg = <0x20000 0x7d0000>;
};
+ boardconfig: partition@7f0000 {
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x7f0016 0x6>;
- };
-
gpiomm: gpiomm@4000000 {
compatible = "lantiq,gpio-mm";
reg = <1 0x0 0x10 >;
gpiomm: gpiomm@4000000 {
compatible = "lantiq,gpio-mm";
reg = <1 0x0 0x10 >;
etop@E180000 {
phy-mode = "rmii";
etop@E180000 {
phy-mode = "rmii";
+ mtd-mac-address = <&boardconfig 0x16>;
reg = <0x40000 0x7b0000>;
};
reg = <0x40000 0x7b0000>;
};
+ boardconfig: partition@7f0000 {
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x7f0016 0x6>;
- };
-
gpiomm: gpiomm@4000000 {
compatible = "lantiq,gpio-mm";
reg = <1 0x0 0x10 >;
gpiomm: gpiomm@4000000 {
compatible = "lantiq,gpio-mm";
reg = <1 0x0 0x10 >;
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&boardconfig 0x16>;
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x7f0016 0x6>;
- };
-
ath9k_eep {
compatible = "ath9k,eeprom";
ath,eep-flash = <&art 0x400>;
ath9k_eep {
compatible = "ath9k,eeprom";
ath,eep-flash = <&art 0x400>;
etop@E180000 {
phy-mode = "mii";
etop@E180000 {
phy-mode = "mii";
+ mtd-mac-address = <&art 0x16>;
reg = <0x60000 0x1f20000>;
};
reg = <0x60000 0x1f20000>;
};
+ boardconfig: partition@1fc0000 {
label = "board";
reg = <0x1fc0000 0x20000>;
read-only;
};
label = "board";
reg = <0x1fc0000 0x20000>;
read-only;
};
label = "calibration";
reg = <0x1fe0000 0x20000>;
read-only;
};
};
};
label = "calibration";
reg = <0x1fe0000 0x20000>;
read-only;
};
};
};
-
- mac_addr {
- compatible = "lantiq,eth-mac";
- reg = <0 0x1fd0024 0x6>;
- };
};
gpio: pinmux@E100B10 {
};
gpio: pinmux@E100B10 {
etop@E180000 {
phy-mode = "rgmii";
etop@E180000 {
phy-mode = "rgmii";
+ mtd-mac-address = <&boardconfig 0x10024>;