-// 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-wr1043nd-v1", "qca,ar9132";
- model = "TP-Link TL-WR1043ND Version 1";
+ model = "TP-Link TL-WR1043ND v1";
aliases {
- led-boot = &system;
- led-failsafe = &system;
- led-running = &system;
- led-upgrade = &system;
+ led-boot = &led_system;
+ led-failsafe = &led_system;
+ led-running = &led_system;
+ led-upgrade = &led_system;
+ label-mac-device = ð0;
};
extosc: ref {
keys {
compatible = "gpio-keys";
- button0 {
+ reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
- button1 {
+ qss {
label = "qss";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
leds {
compatible = "gpio-leds";
+
usb {
- label = "tp-link:green:usb";
+ label = "green:usb";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
- default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
- system: system {
- label = "tp-link:green:system";
+ led_system: system {
+ label = "green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
};
qss {
- label = "tp-link:green:qss";
+ label = "green:qss";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
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";
reg = <0>;
spi-max-frequency = <25000000>;
+ m25p,fast-read;
partitions {
compatible = "fixed-partitions";
&wmac {
status = "okay";
+
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};