// 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 = "tplink,tl-wa850re-v2", "qca,qca9533";
label-mac-device = &wmac;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
pinctrl-0 = <&jtag_disable_pins>;
lan {
- label = "tp-link:blue:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_re: re {
- label = "tp-link:blue:re";
+ label = "blue:re";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
signal1 {
- label = "tp-link:blue:signal1";
+ label = "blue:signal1";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
signal2 {
- label = "tp-link:blue:signal2";
+ label = "blue:signal2";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
signal3 {
- label = "tp-link:blue:signal3";
+ label = "blue:signal3";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
signal4 {
- label = "tp-link:blue:signal4";
+ label = "blue:signal4";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
led_signal5: signal5 {
- label = "tp-link:blue:signal5";
+ label = "blue:signal5";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "tp-link:blue:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
};
-&uart {
- status = "okay";
-};
-
&spi {
status = "okay";
- num-cs = <1>;
-
flash@0 {
- #address-cells = <1>;
- #size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <25000000>;
compatible = "tplink,firmware";
};
- config: partition@3b0000 {
+ partition@3b0000 {
+ label = "partition-table";
+ reg = <0x3b0000 0x010000>;
+ read-only;
+ };
+
+ info: partition@3c0000 {
+ label = "info";
+ reg = <0x3c0000 0x010000>;
+ read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+ };
+ };
+
+ partition@3d0000 {
label = "config";
- reg = <0x3b0000 0x040000>;
+ reg = <0x3d0000 0x020000>;
read-only;
};
};
};
-&wmac {
- status = "okay";
-
- mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&config 0x10008>;
-};
-
ð0 {
status = "okay";
phy-handle = <&swphy4>;
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
compatible = "syscon", "simple-mfd";
};
+
+&wmac {
+ status = "okay";
+
+ mtd-cal-data = <&art 0x1000>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};