ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9558_domywifi_dw33d.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 = "domywifi,dw33d", "qca,qca9558";
11 model = "DomyWifi DW33D";
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_system: system {
24 label = "dw33d:blue:system";
25 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
26 };
27
28 mmc {
29 label = "dw33d:blue:mmc";
30 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&hub_port0>;
32 linux,default-trigger = "usbport";
33 };
34
35 usb {
36 label = "dw33d:blue:usb";
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&hub_port1>;
39 linux,default-trigger = "usbport";
40 };
41
42 wlan2g {
43 label = "dw33d:blue:wlan2g";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy1tpt";
46 };
47
48 internet {
49 label = "dw33d:blue:internet";
50 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys";
56
57 reset {
58 label = "Reset button";
59 linux,code = <KEY_RESTART>;
60 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
61 debounce-interval = <60>;
62 };
63 };
64 };
65
66 &pcie0 {
67 status = "okay";
68
69 wifi@0,0 {
70 compatible = "qcom,ath10k";
71 reg = <0 0 0 0 0>;
72 };
73 };
74
75 &uart {
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 = <0x0 0x40000>;
127 read-only;
128 };
129
130 partition@40000 {
131 label = "u-boot-env";
132 reg = <0x40000 0x10000>;
133 };
134
135 partition@50000 {
136 label = "oem-firmware";
137 reg = <0x50000 0xfa0000>;
138 };
139
140 art: partition@ff0000 {
141 label = "art";
142 reg = <0xff0000 0x10000>;
143 read-only;
144 };
145 };
146 };
147 };
148
149 &nand {
150 status = "okay";
151
152 partitions {
153 compatible = "fixed-partitions";
154 #address-cells = <1>;
155 #size-cells = <1>;
156
157 partition@0 {
158 label = "kernel";
159 reg = <0x0 0x500000>;
160 };
161
162 partition@500000 {
163 label = "ubi";
164 reg = <0x500000 0x5b00000>;
165 };
166
167 partition@6000000 {
168 label = "oem-backup";
169 reg = <0x6000000 0x2000000>;
170 };
171 };
172 };
173
174 &mdio0 {
175 status = "okay";
176
177 phy0: ethernet-phy@0 {
178 reg = <0>;
179
180 qca,ar8327-initvals = <
181 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
182 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
183 0x7c 0x0000007e /* PORT0_STATUS */
184 0x94 0x0000007e /* PORT6 STATUS */
185 >;
186 };
187 };
188
189 &eth0 {
190 status = "okay";
191
192 mtd-mac-address = <&art 0x0>;
193 pll-data = <0x56000000 0x00000101 0x00001616>;
194 phy-handle = <&phy0>;
195 };
196
197 &eth1 {
198 status = "okay";
199
200 mtd-mac-address = <&art 0x6>;
201 pll-data = <0x03000101 0x00000101 0x00001616>;
202 fixed-link {
203 speed = <1000>;
204 full-duplex;
205 };
206 };
207
208 &wmac {
209 status = "okay";
210
211 mtd-cal-data = <&art 0x1000>;
212 mtd-mac-address = <&art 0xc>;
213 };