The setup is the same for all devices, so move it up one level.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- nvmem-cells = <&macaddr_factory_28>;
- nvmem-cell-names = "mac-address";
-
mediatek,portmap = "llllw";
port@5 {
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
};
};
+ðernet {
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
+};
+
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
};
ðernet {
- nvmem-cells = <&macaddr_factory_28>;
- nvmem-cell-names = "mac-address";
-
mediatek,portmap = "llllw";
};
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
reg = <0x50000 0x7b0000>;
};
};
-
-ðernet {
- nvmem-cells = <&macaddr_factory_28>;
- nvmem-cell-names = "mac-address";
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};