#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "comfast,cf-e120a-v3", "qca,ar9344";
model = "COMFAST CF-E120A v3";
aliases {
- serial0 = &uart;
led-boot = &led_rssihigh;
led-failsafe = &led_rssihigh;
led-upgrade = &led_rssihigh;
pinctrl-0 = <&led_rssimediumhigh_pin>;
wan {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
&spi {
status = "okay";
- num-cs = <1>;
-
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
label = "art";
reg = <0x010000 0x010000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_art_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+ };
};
partition@20000 {
};
};
-&uart {
- status = "okay";
-};
-
ð0 {
status = "okay";
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {