-/dts-v1/;
-
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
};
};
-&gpio0 {
- status = "okay";
-};
-
&gpio1 {
status = "okay";
};
-&gpio2 {
- status = "okay";
-};
-
-&gpio3 {
- status = "okay";
-};
-
&i2c {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
-&gsw {
- ralink,port4 = "ephy";
-};
-
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};