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