#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "tplink,tl-wr842n-v1", "qca,ar7241";
compatible = "gpio-leds";
wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
&usb {
- #address-cells = <1>;
- #size-cells = <0>;
status = "okay";
-
- hub_port: port@1 {
- reg = <1>;
- #trigger-source-cells = <0>;
- };
};
&usb_phy {
reg = <0x0 0x20000>;
label = "u-boot";
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ compatible = "mac-base";
+ reg = <0x1fc00 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@20000 {
#gpio-cells = <2>;
gpio-controller;
qca,no-eeprom;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00 0>;
+ nvmem-cell-names = "mac-address";
};
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
- mtd-mac-address-increment = <(-1)>;
+ nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
- mtd-mac-address-increment = <1>;
-};
-
-&uart {
- status = "okay";
+ nvmem-cells = <&macaddr_uboot_1fc00 1>;
+ nvmem-cell-names = "mac-address";
};