treewide: rename POWER_ON_STRIP register
[openwrt/staging/nbd.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 &usb_phy0 {
76 status = "okay";
77 };
78
79 &usb0 {
80 #address-cells = <1>;
81 #size-cells = <0>;
82 status = "okay";
83
84 hub_port0: port@1 {
85 reg = <1>;
86 #trigger-source-cells = <0>;
87 };
88 };
89
90 &usb_phy1 {
91 status = "okay";
92 };
93
94 &usb1 {
95 #address-cells = <1>;
96 #size-cells = <0>;
97 status = "okay";
98
99 hub_port1: port@1 {
100 reg = <1>;
101 #trigger-source-cells = <0>;
102 };
103 };
104
105 &spi {
106 status = "okay";
107
108 num-cs = <1>;
109
110 flash@0 {
111 compatible = "jedec,spi-nor";
112 reg = <0>;
113 spi-max-frequency = <25000000>;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "u-boot";
122 reg = <0x000000 0x030000>;
123 read-only;
124 };
125
126 partition@30000 {
127 label = "nvram";
128 reg = <0x030000 0x010000>;
129 read-only;
130 };
131
132 partition@40000 {
133 compatible = "denx,uimage";
134 label = "firmware";
135 reg = <0x040000 0xef0000>;
136 };
137
138 partition@f30000 {
139 label = "lang";
140 reg = <0xf30000 0x030000>;
141 read-only;
142 };
143
144 partition@f60000 {
145 label = "my-dlink";
146 reg = <0xf60000 0x080000>;
147 read-only;
148 };
149
150 partition@fe0000 {
151 label = "mac";
152 reg = <0xfe0000 0x010000>;
153 read-only;
154 };
155
156 art: partition@ff0000 {
157 label = "art";
158 reg = <0xff0000 0x010000>;
159 read-only;
160 };
161 };
162 };
163 };
164
165 &mdio0 {
166 status = "okay";
167
168 phy0: ethernet-phy@0 {
169 reg = <0>;
170 qca,ar8327-initvals = <
171 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
172 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
173 0x10 0x81000080 /* POWER_ON_STRAP */
174 0x7c 0x0000007e /* PORT0_STATUS */
175 0x94 0x0000007e /* PORT6 STATUS */
176 >;
177 };
178 };
179
180 &eth0 {
181 status = "okay";
182
183 phy-handle = <&phy0>;
184 pll-data = <0x56000000 0x00000101 0x00001616>;
185
186 gmac-config {
187 device = <&gmac>;
188 rgmii-enabled = <1>;
189 };
190 };
191
192 &eth1 {
193 status = "okay";
194
195 pll-data = <0x03000101 0x00000101 0x00001616>;
196
197 fixed-link {
198 speed = <1000>;
199 full-duplex;
200 };
201 };
202
203 &wmac {
204 status = "okay";
205
206 mtd-cal-data = <&art 0x1000>;
207 };