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