#include "mt7628an.dtsi"
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
+
/ {
chosen {
bootargs = "console=ttyS0,115200";
};
- memory@0 {
- device_type = "memory";
- reg = <0x0 0x4000000>;
+ aliases {
+ label-mac-device = ðernet;
};
};
&spi0 {
status = "okay";
- m25p80@0 {
+ flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
label = "factory";
reg = <0x7d0000 0x30000>;
read-only;
- };
- };
- };
-};
-&ehci {
- status = "disabled";
-};
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
-&ohci {
- status = "disabled";
-};
+ macaddr_factory_f100: macaddr@f100 {
+ compatible = "mac-base";
+ reg = <0xf100 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
-&wmac {
- status = "okay";
- mtd-mac-address = <&factory 0xf100>;
- mediatek,mtd-eeprom = <&factory 0x20000>;
+ eeprom_factory_20000: eeprom@20000 {
+ reg = <0x20000 0x400>;
+ };
+
+ eeprom_factory_28000: eeprom@28000 {
+ reg = <0x28000 0x200>;
+ };
+ };
+ };
+ };
+ };
};
ðernet {
- mtd-mac-address = <&factory 0xf100>;
- mediatek,portmap = "llllw";
+ nvmem-cells = <&macaddr_factory_f100 0>;
+ nvmem-cell-names = "mac-address";
};