ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_tl-wdrxxxx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar9344.dtsi"
7
8 / {
9 aliases {
10 led-boot = &system;
11 led-failsafe = &system;
12 led-running = &system;
13 led-upgrade = &system;
14 };
15
16 leds: leds {
17 compatible = "gpio-leds";
18
19 wlan2g {
20 label = "tp-link:green:wlan2g";
21 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
22 linux,default-trigger = "phy0tpt";
23 };
24
25 system: system {
26 label = "tp-link:green:system";
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 default-state = "on";
29 };
30
31 qss {
32 label = "tp-link:green:qss";
33 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 ath9k-leds {
38 compatible = "gpio-leds";
39
40 wlan5g {
41 label = "tp-link:green:wlan5g";
42 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
54 };
55
56 wifi {
57 linux,code = <KEY_RFKILL>;
58 linux,input-type = <EV_SW>;
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
60 debounce-interval = <60>;
61 };
62 };
63 };
64
65 &ref {
66 clock-frequency = <40000000>;
67 };
68
69 &uart {
70 status = "okay";
71 };
72
73 &spi {
74 num-cs = <1>;
75
76 status = "okay";
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <25000000>;
82
83 partitions {
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 uboot: partition@0 {
89 label = "u-boot";
90 reg = <0x000000 0x020000>;
91 read-only;
92 };
93
94 partition@20000 {
95 compatible = "tplink,firmware";
96 label = "firmware";
97 reg = <0x020000 0x7d0000>;
98 };
99
100 art: partition@7f0000 {
101 label = "art";
102 reg = <0x7f0000 0x010000>;
103 read-only;
104 };
105 };
106 };
107 };
108
109 &pcie {
110 status = "okay";
111
112 ath9k: wifi@0,0 {
113 compatible = "pci168c,0033";
114 reg = <0x0000 0 0 0 0>;
115 qca,no-eeprom;
116 #gpio-cells = <2>;
117 gpio-controller;
118 };
119 };
120
121 &wmac {
122 status = "okay";
123
124 mtd-cal-data = <&art 0x1000>;
125 };