-/dts-v1/;
-
#include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
led-upgrade = &led_status;
};
- chosen {
- bootargs = "console=ttyS0,57600";
- };
-
leds {
compatible = "gpio-leds";
+
led_status: status {
- label = "mac1200rv2:green:status";
- gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ label = "green:status";
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
};
};
&spi0 {
status = "okay";
- m25p80@0 {
+ flash@0 {
compatible = "jedec,spi-nor";
- reg = <0 0>;
+ reg = <0>;
spi-max-frequency = <10000000>;
partitions {
ðernet {
pinctrl-names = "default";
- mtd-mac-address = <&factory 0xd>;
- mediatek,portmap = "llllw";
+ nvmem-cells = <&macaddr_factory_d>;
+ nvmem-cell-names = "mac-address";
+};
+
+&esw {
+ mediatek,portmap = <0x2f>;
};
&wmac {
status = "okay";
+
+ mediatek,mtd-eeprom = <&factory 0x0>;
ralink,mtd-eeprom = <&art 0x0>;
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_d: macaddr@d {
+ reg = <0xd 0x6>;
+ };
+};