-// SPDX-License-Identifier: GPL-2.0
-/dts-v1/;
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "ar9132.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include "ar9132.dtsi"
-
/ {
compatible = "tplink,tl-wa901nd-v2", "qca,ar9132";
model = "TP-Link TL-WA901ND v2";
aliases {
- led-boot = &system;
- led-failsafe = &system;
- led-running = &system;
- led-upgrade = &system;
- };
-
- extosc: ref {
- compatible = "fixed-clock";
- #clock-cells = <0>;
- clock-frequency = <40000000>;
+ led-boot = &led_system;
+ led-failsafe = &led_system;
+ led-running = &led_system;
+ led-upgrade = &led_system;
+ label-mac-device = ð0;
};
keys {
leds {
compatible = "gpio-leds";
- system: system {
- label = "tp-link:green:system";
+ led_system: system {
+ label = "green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
qss {
- label = "tp-link:green:qss";
+ label = "green:qss";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
- default-state = "off";
};
wlan {
- label = "tp-link:green:wlan";
+ label = "green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
- default-state = "off";
linux,default-trigger = "phy0tpt";
};
};
};
-&uart {
- status = "okay";
-};
-
-&pll {
- clocks = <&extosc>;
-};
-
&spi {
status = "okay";
- num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
label = "u-boot";
reg = <0x000000 0x020000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+ };
};
partition@1 {
+ compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3D0000>;
};
&mdio0 {
status = "okay";
- phy0: ethernet-phy@c {
+ phy12: ethernet-phy@c {
reg = <0xc>;
phy-mode = "mii";
+
+ resets = <&rst 8>;
+ reset-names = "phy";
+
+ reset-assert-us = <10000>;
+ reset-deassert-us = <10000>;
};
};
ð0 {
status = "okay";
- phy-mode = "mii";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
- phy-handle = <&phy0>;
+ phy-handle = <&phy12>;
};
&wmac {
status = "okay";
+
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};