compatible = "gpio-leds";
led_system: system {
- label = "tp-link:green:system";
+ label = "green:system";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan {
- label = "tp-link:green:wlan";
+ label = "green:wlan";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
qss {
- label = "tp-link:green:qss";
+ label = "green:qss";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
};
};
};
-&uart {
- status = "okay";
-};
-
&spi {
status = "okay";
- num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
label = "u-boot";
reg = <0x000000 0x020000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+ };
};
partition@20000 {
ð0 {
status = "okay";
phy-mode = "mii";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <100>;
full-duplex;
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};