#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Wallys DR531";
compatible = "gpio-leds";
lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};
wan {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
};
status = "okay";
phy-handle = <&swphy4>;
- mtd-mac-address = <&env 0xf818>;
+ nvmem-cells = <&macaddr_env_f818>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
* (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
- mtd-mac-address = <&env 0xf810>;
+ nvmem-cells = <&macaddr_env_f810>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
env: partition@30000 {
label = "u-boot-env";
reg = <0x030000 0x010000>;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_env_f810: macaddr@f810 {
+ reg = <0xf810 0x6>;
+ };
+
+ macaddr_env_f818: macaddr@f818 {
+ reg = <0xf818 0x6>;
+ };
+ };
};
partition@40000 {