compatible = "gpio-leds";
led_system: system {
- label = "tp-link:green:system";
+ label = "green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
qss_r {
- label = "tp-link:red:qss";
+ label = "red:qss";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
qss_g {
- label = "tp-link:green:qss";
+ label = "green:qss";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
wlan {
- label = "tp-link:green:wlan";
+ label = "green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
port@5 {
reg = <5>;
- label = "cpu";
ethernet = <ð0>;
};
};
};
};
-&uart {
- status = "okay";
-};
-
&spi {
status = "okay";
status = "okay";
phy-mode = "rmii";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <100>;
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
+};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
};