// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca953x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-
-#include "qca953x.dtsi"
+#include <dt-bindings/leds/common.h>
/ {
compatible = "comfast,cf-e314n-v2", "qca,qca9531";
aliases {
serial0 = &uart;
- led-boot = &system;
- led-failsafe = &system;
- led-upgrade = &system;
+ led-boot = &led_rssihigh;
+ led-failsafe = &led_rssihigh;
+ led-upgrade = &led_rssihigh;
};
leds {
pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>;
wan {
- label = "cf-e314n-v2:green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
lan {
- label = "cf-e314n-v2:green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
rssilow {
- label = "cf-e314n-v2:red:signal1";
+ label = "red:rssilow";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
rssimediumlow {
- label = "cf-e314n-v2:red:signal2";
+ label = "red:rssimediumlow";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
rssimediumhigh {
- label = "cf-e314n-v2:green:signal3";
- gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+ label = "green:rssimediumhigh";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
- system: rssihigh {
- label = "cf-e314n-v2:green:signal4";
- gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
+ led_rssihigh: rssihigh {
+ label = "green:rssihigh";
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "cf-e314n-v2: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";
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";
- mtd-mac-address = <&art 0x0>;
+
phy-handle = <&swphy4>;
+
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {