-/dts-v1/;
-
#include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
compatible = "gpio-leds";
led_power: power {
- label = "gl-mt300n-v2:green:power";
+ label = "green:power";
default-state = "on";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
wan {
- label = "gl-mt300n-v2:green:wan";
+ label = "green:wan";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "gl-mt300n-v2:red:wlan";
+ label = "red:wlan";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
};
&state_default {
gpio {
- groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
+ groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "i2c";
function = "gpio";
};
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
+
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&spi0 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+ };
};
partition@50000 {
&uart1 {
status = "okay";
};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};