ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wr1043nd-v1.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9132.dtsi"
8
9 / {
10 compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
11 model = "TP-Link TL-WR1043ND v1";
12
13 aliases {
14 led-boot = &system;
15 led-failsafe = &system;
16 led-running = &system;
17 led-upgrade = &system;
18 label-mac-device = &eth0;
19 };
20
21 extosc: ref {
22 compatible = "fixed-clock";
23 #clock-cells = <0>;
24 clock-frequency = <40000000>;
25 };
26
27 keys {
28 compatible = "gpio-keys";
29
30 button0 {
31 label = "reset";
32 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
35 };
36
37 button1 {
38 label = "qss";
39 linux,code = <KEY_WPS_BUTTON>;
40 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
42 };
43 };
44
45 leds {
46 compatible = "gpio-leds";
47 usb {
48 label = "tp-link:green:usb";
49 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&hub_port>;
51 linux,default-trigger = "usbport";
52 };
53
54 system: system {
55 label = "tp-link:green:system";
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "heartbeat";
58 };
59
60 qss {
61 label = "tp-link:green:qss";
62 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
63 };
64
65 wlan {
66 label = "tp-link:green:wlan";
67 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy0tpt";
69 };
70 };
71
72 rtl8366rb {
73 compatible = "realtek,rtl8366rb";
74 gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
75 gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
76
77 resets = <&rst 8>;
78 reset-names = "switch";
79 };
80 };
81
82 &uart {
83 status = "okay";
84 };
85
86 &pll {
87 clocks = <&extosc>;
88 };
89
90 &usb {
91 #address-cells = <1>;
92 #size-cells = <0>;
93 status = "okay";
94
95 hub_port: port@1 {
96 reg = <1>;
97 #trigger-source-cells = <0>;
98 };
99 };
100
101 &usb_phy {
102 status = "okay";
103 };
104
105 &spi {
106 status = "okay";
107 num-cs = <1>;
108
109 flash@0 {
110 compatible = "jedec,spi-nor";
111 reg = <0>;
112 spi-max-frequency = <25000000>;
113
114 partitions {
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 uboot: partition@0 {
120 label = "u-boot";
121 reg = <0x000000 0x020000>;
122 read-only;
123 };
124
125 partition@20000 {
126 compatible = "tplink,firmware";
127 label = "firmware";
128 reg = <0x020000 0x7D0000>;
129 };
130
131 art: partition@7F0000 {
132 label = "art";
133 reg = <0x7F0000 0x010000>;
134 read-only;
135 };
136 };
137 };
138 };
139
140 &eth0 {
141 status = "okay";
142
143 phy-mode = "rgmii";
144 mtd-mac-address = <&uboot 0x1fc00>;
145
146 fixed-link {
147 speed = <1000>;
148 full-duplex;
149 };
150 };
151
152 &wmac {
153 status = "okay";
154 mtd-cal-data = <&art 0x1000>;
155 mtd-mac-address = <&uboot 0x1fc00>;
156 };