-/dts-v1/;
-
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
};
};
-&gpio0 {
- status = "okay";
-};
-
-&gpio1 {
- status = "okay";
-};
-
&gpio2 {
status = "okay";
};
};
ðernet {
- mtd-mac-address = <&factory 0x4000>;
+ nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
+};