ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9558_trendnet_tew-823dru.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca955x.dtsi"
8
9 / {
10         compatible = "trendnet,tew-823dru", "qca,qca9558";
11         model = "TRENDNET TEW-823DRU";
12
13         aliases {
14                 led-boot = &led_power_green;
15                 led-failsafe = &led_power_green;
16                 led-running = &led_power_green;
17                 led-upgrade = &led_power_green;
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 power_orange {
24                         label = "trendnet:orange:power";
25                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
26                 };
27
28                 led_power_green: power_green {
29                         label = "trendnet:green:power";
30                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31                 };
32
33                 planet_green {
34                         label = "trendnet:green:planet";
35                         gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
36                 };
37
38                 planet_orange {
39                         label = "trendnet:orange:planet";
40                         gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
41                 };
42         };
43
44         keys {
45                 compatible = "gpio-keys";
46
47                 reset {
48                         label = "Reset button";
49                         linux,code = <KEY_RESTART>;
50                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
51                         debounce-interval = <60>;
52                 };
53
54                 wps {
55                         label = "WPS button";
56                         linux,code = <KEY_WPS_BUTTON>;
57                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58                         debounce-interval = <60>;
59                 };
60         };
61 };
62
63 &pcie0 {
64         status = "okay";
65 };
66
67 &pcie1 {
68         status = "okay";
69 };
70
71 &uart {
72         status = "okay";
73 };
74
75 &gpio {
76         status = "okay";
77 };
78
79 &usb_phy0 {
80         status = "okay";
81 };
82
83 &usb0 {
84         #address-cells = <1>;
85         #size-cells = <0>;
86         status = "okay";
87
88         hub_port0: port@1 {
89                 reg = <1>;
90                 #trigger-source-cells = <0>;
91         };
92 };
93
94 &usb_phy1 {
95         status = "okay";
96 };
97
98 &usb1 {
99         #address-cells = <1>;
100         #size-cells = <0>;
101         status = "okay";
102
103         hub_port1: port@1 {
104                 reg = <1>;
105                 #trigger-source-cells = <0>;
106         };
107 };
108
109 &spi {
110         status = "okay";
111
112         num-cs = <1>;
113
114         flash@0 {
115                 compatible = "jedec,spi-nor";
116                 reg = <0>;
117                 spi-max-frequency = <25000000>;
118
119                 partitions {
120                         compatible = "fixed-partitions";
121                         #address-cells = <1>;
122                         #size-cells = <1>;
123
124                         partition@0 {
125                                 label = "u-boot";
126                                 reg = <0x000000 0x030000>;
127                                 read-only;
128                         };
129
130                         partition@30000 {
131                                 label = "nvram";
132                                 reg = <0x030000 0x010000>;
133                                 read-only;
134                         };
135
136                         partition@40000 {
137                                 compatible = "denx,uimage";
138                                 label = "firmware";
139                                 reg = <0x040000 0xef0000>;
140                         };
141
142                         partition@f30000 {
143                                 label = "lang";
144                                 reg = <0xf30000 0x030000>;
145                                 read-only;
146                         };
147
148                         partition@f60000 {
149                                 label = "my-dlink";
150                                 reg = <0xf60000 0x080000>;
151                                 read-only;
152                         };
153
154                         partition@fe0000 {
155                                 label = "mac";
156                                 reg = <0xfe0000 0x010000>;
157                                 read-only;
158                         };
159
160                         art: partition@ff0000 {
161                                 label = "art";
162                                 reg = <0xff0000 0x010000>;
163                                 read-only;
164                         };
165                 };
166         };
167 };
168
169 &mdio0 {
170         status = "okay";
171
172         phy0: ethernet-phy@0 {
173                 reg = <0>;
174                 qca,ar8327-initvals = <
175                         0x04 0x00080080 /* PORT0 PAD MODE CTRL */
176                         0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
177                         0x10 0x81000080 /* POWER_ON_STRIP */
178                         0x7c 0x0000007e /* PORT0_STATUS */
179                         0x94 0x0000007e /* PORT6 STATUS */
180                 >;
181         };
182 };
183
184 &eth0 {
185         status = "okay";
186
187         phy-handle = <&phy0>;
188         pll-data = <0x56000000 0x00000101 0x00001616>;
189
190         gmac-config {
191                 device = <&gmac>;
192                 rgmii-enabled = <1>;
193         };
194 };
195
196 &eth1 {
197         status = "okay";
198
199         pll-data = <0x03000101 0x00000101 0x00001616>;
200
201         fixed-link {
202                 speed = <1000>;
203                 full-duplex;
204         };
205 };
206
207 &wmac {
208         status = "okay";
209
210         mtd-cal-data = <&art 0x1000>;
211 };