ath79: remove model name from LED labels
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_winchannel_wb2000.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Winchannel WB2000";
10 compatible = "winchannel,wb2000", "qca,ar9344";
11
12 chosen {
13 bootargs = "console=ttyS0,115200n8";
14 };
15
16 aliases {
17 led-boot = &led_system;
18 led-failsafe = &led_system;
19 led-running = &led_system;
20 led-upgrade = &led_system;
21 };
22
23 i2c {
24 compatible = "i2c-gpio";
25 gpios = <&gpio 17 GPIO_ACTIVE_HIGH
26 &gpio 16 GPIO_ACTIVE_HIGH
27 >;
28 #address-cells = <1>;
29 #size-cells = <0>;
30
31 rtc@68 {
32 compatible = "dallas,ds1339";
33 reg = <0x68>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 wlan2g {
41 label = "green:2g";
42 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 usb {
47 label = "green:usb";
48 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
49 trigger-sources = <&hub_port1>, <&hub_port2>;
50 linux,default-trigger = "usbport";
51 };
52
53 led_system: system {
54 label = "green:system";
55 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
56 default-state = "on";
57 };
58 };
59
60 keys {
61 compatible = "gpio-keys";
62
63 reset {
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
67 };
68 };
69
70 ath9k-leds {
71 compatible = "gpio-leds";
72
73 wlan {
74 label = "green:5g";
75 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy1tpt";
77 };
78 };
79 };
80
81 &ref {
82 clock-frequency = <40000000>;
83 };
84
85 &uart {
86 status = "okay";
87 };
88
89 &spi {
90 num-cs = <1>;
91
92 status = "okay";
93
94 flash@0 {
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <25000000>;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0 0x40000>;
107 read-only;
108 };
109
110 partition@40000 {
111 label = "u-boot-env";
112 reg = <0x40000 0x10000>;
113 read-only;
114 };
115
116 partition@50000 {
117 label = "firmware";
118 reg = <0x50000 0xf80000>;
119 compatible = "denx,uimage";
120 };
121
122 partition@fd0000 {
123 label = "nvram";
124 reg = <0xfd0000 0x10000>;
125 read-only;
126 };
127
128 art: partition@fe0000 {
129 label = "art";
130 reg = <0xfe0000 0x10000>;
131 read-only;
132 };
133
134 addr: partition@ff0000 {
135 label = "addr";
136 reg = <0xff0000 0x10000>;
137 read-only;
138 };
139 };
140 };
141 };
142
143 &pcie {
144 status = "okay";
145
146 ath9k: wifi@0,0 {
147 compatible = "pci168c,0030";
148 reg = <0x0000 0 0 0 0>;
149 qca,no-eeprom;
150 mtd-mac-address = <&addr 0x0>;
151 mtd-mac-address-increment = <0x10>;
152 #gpio-cells = <2>;
153 gpio-controller;
154 };
155 };
156
157 &usb {
158 #address-cells = <1>;
159 #size-cells = <0>;
160 status = "okay";
161
162 port@1 {
163 #address-cells = <1>;
164 #size-cells = <0>;
165 reg = <1>;
166 #trigger-source-cells = <0>;
167
168 hub_port1: port@1 {
169 reg = <1>;
170 #trigger-source-cells = <0>;
171 };
172
173 hub_port2: port@2 {
174 reg = <2>;
175 #trigger-source-cells = <0>;
176 };
177 };
178 };
179
180 &usb_phy {
181 status = "okay";
182 };
183
184 &wmac {
185 status = "okay";
186
187 mtd-cal-data = <&art 0x1000>;
188 mtd-mac-address = <&addr 0x0>;
189 };
190
191 &mdio0 {
192 status = "okay";
193
194 phy-mask = <0x10>;
195
196 phy4: ethernet-phy@4 {
197 reg = <4>;
198 };
199 };
200
201 &eth0 {
202 status = "okay";
203
204 pll-data = <0xe000000 0x04000101 0x04001313>;
205
206 mtd-mac-address = <&addr 0x0>;
207 mtd-mac-address-increment = <0x21>;
208
209 phy-mode = "rgmii-rxid";
210 phy-handle = <&phy4>;
211
212 gmac-config {
213 device = <&gmac>;
214 rgmii-gmac0 = <1>;
215 rxd-delay = <1>;
216 rxdv-delay = <1>;
217 };
218 };