2018-05-07 10:52:03 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2018-05-06 08:20:11 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
#include "ar9132.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
|
2019-02-24 23:13:51 +00:00
|
|
|
model = "TP-Link TL-WR1043ND v1";
|
2018-05-06 08:20:11 +00:00
|
|
|
|
2018-05-19 17:12:58 +00:00
|
|
|
aliases {
|
2019-11-05 18:23:33 +00:00
|
|
|
led-boot = &led_system;
|
|
|
|
led-failsafe = &led_system;
|
|
|
|
led-running = &led_system;
|
|
|
|
led-upgrade = &led_system;
|
ath79: provide label MAC address
This patch adds the label MAC address for several devices in
ath79.
Some devices require setting the MAC address in 02_network:
For the following devices, the netif device can be linked in
device tree, but the MAC address cannot be read:
- alfa-network,ap121f
- avm,fritz300e
- ubnt-xm devices
For the following devices, label MAC address is tied to lan or
wan, so no node to link to exists in device tree:
- adtran,bsap1800-v2
- adtran,bsap1840
- dlink,dir-842-c1/-c2/-c3
- engenius,ecb1750
- iodata,etg3-r
- iodata,wn-ac1167dgr
- iodata,wn-ac1600dgr
- iodata,wn-ac1600dgr2
- iodata,wn-ag300dgr
- nec,wg800hp
- nec,wg1200cr
- trendnet,tew-823dru
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-08-15 13:13:33 +00:00
|
|
|
label-mac-device = ð0;
|
2018-05-19 17:12:58 +00:00
|
|
|
};
|
|
|
|
|
2018-05-06 08:20:11 +00:00
|
|
|
extosc: ref {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <40000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
2018-05-19 17:12:58 +00:00
|
|
|
compatible = "gpio-keys";
|
2018-05-06 08:20:11 +00:00
|
|
|
|
2019-11-07 16:03:50 +00:00
|
|
|
reset {
|
2018-05-06 08:20:11 +00:00
|
|
|
label = "reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
|
2019-11-07 16:03:50 +00:00
|
|
|
qss {
|
2018-05-06 08:20:11 +00:00
|
|
|
label = "qss";
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2019-11-05 18:23:33 +00:00
|
|
|
|
2018-05-19 17:12:58 +00:00
|
|
|
usb {
|
2018-05-06 08:20:11 +00:00
|
|
|
label = "tp-link:green:usb";
|
|
|
|
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
2018-05-19 17:12:58 +00:00
|
|
|
trigger-sources = <&hub_port>;
|
|
|
|
linux,default-trigger = "usbport";
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
2019-11-05 18:23:33 +00:00
|
|
|
led_system: system {
|
2018-05-06 08:20:11 +00:00
|
|
|
label = "tp-link:green:system";
|
|
|
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
|
|
|
|
2018-05-19 17:12:58 +00:00
|
|
|
qss {
|
2018-05-06 08:20:11 +00:00
|
|
|
label = "tp-link:green:qss";
|
|
|
|
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-05-19 17:12:58 +00:00
|
|
|
wlan {
|
2018-05-06 08:20:11 +00:00
|
|
|
label = "tp-link:green:wlan";
|
|
|
|
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
|
2018-05-19 17:12:58 +00:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
};
|
2018-05-19 17:12:58 +00:00
|
|
|
|
|
|
|
rtl8366rb {
|
|
|
|
compatible = "realtek,rtl8366rb";
|
|
|
|
gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
|
|
|
|
gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
|
|
|
resets = <&rst 8>;
|
|
|
|
reset-names = "switch";
|
2018-08-02 07:14:10 +00:00
|
|
|
};
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
clocks = <&extosc>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb {
|
2018-08-06 05:11:13 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2018-05-06 08:20:11 +00:00
|
|
|
status = "okay";
|
2018-05-19 17:12:58 +00:00
|
|
|
|
2018-06-07 08:16:56 +00:00
|
|
|
hub_port: port@1 {
|
2018-05-19 17:12:58 +00:00
|
|
|
reg = <1>;
|
|
|
|
#trigger-source-cells = <0>;
|
|
|
|
};
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi {
|
|
|
|
status = "okay";
|
2019-11-05 18:23:33 +00:00
|
|
|
|
2018-05-06 08:20:11 +00:00
|
|
|
num-cs = <1>;
|
|
|
|
|
|
|
|
flash@0 {
|
2018-05-19 17:12:58 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
2018-05-06 08:20:11 +00:00
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <25000000>;
|
2020-03-02 22:08:30 +00:00
|
|
|
m25p,fast-read;
|
2018-05-06 08:20:11 +00:00
|
|
|
|
2018-05-07 08:35:51 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2018-05-19 17:12:58 +00:00
|
|
|
uboot: partition@0 {
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x000000 0x020000>;
|
2018-05-07 11:06:31 +00:00
|
|
|
read-only;
|
2018-05-07 08:35:51 +00:00
|
|
|
};
|
|
|
|
|
2018-05-28 13:44:39 +00:00
|
|
|
partition@20000 {
|
2018-11-29 13:07:59 +00:00
|
|
|
compatible = "tplink,firmware";
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x020000 0x7D0000>;
|
|
|
|
};
|
|
|
|
|
2018-05-19 17:12:58 +00:00
|
|
|
art: partition@7F0000 {
|
2018-05-07 08:35:51 +00:00
|
|
|
label = "art";
|
|
|
|
reg = <0x7F0000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2018-05-19 17:12:58 +00:00
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
mtd-mac-address = <&uboot 0x1fc00>;
|
|
|
|
|
|
|
|
fixed-link {
|
|
|
|
speed = <1000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
2019-11-05 18:23:33 +00:00
|
|
|
|
2018-05-19 17:12:58 +00:00
|
|
|
mtd-cal-data = <&art 0x1000>;
|
|
|
|
mtd-mac-address = <&uboot 0x1fc00>;
|
|
|
|
};
|