fae085392215fe08cffcb2d1125e00a30bead32c
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9558_domywifi_dw33d.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 = "domywifi,dw33d", "qca,qca9558";
10 model = "DomyWifi DW33D";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_system: system {
23 label = "blue:system";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
25 };
26
27 mmc {
28 label = "blue:mmc";
29 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&hub_port0>;
31 linux,default-trigger = "usbport";
32 };
33
34 usb {
35 label = "blue:usb";
36 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
37 trigger-sources = <&hub_port1>;
38 linux,default-trigger = "usbport";
39 };
40
41 wlan2g {
42 label = "blue:wlan2g";
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy1tpt";
45 };
46
47 internet {
48 label = "blue:internet";
49 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
50 };
51 };
52
53 keys {
54 compatible = "gpio-keys";
55
56 reset {
57 label = "Reset button";
58 linux,code = <KEY_RESTART>;
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
60 debounce-interval = <60>;
61 };
62 };
63 };
64
65 &pcie0 {
66 status = "okay";
67
68 wifi@0,0 {
69 compatible = "qcom,ath10k";
70 reg = <0 0 0 0 0>;
71 };
72 };
73
74 &uart {
75 status = "okay";
76 };
77
78 &usb_phy0 {
79 status = "okay";
80 };
81
82 &usb0 {
83 #address-cells = <1>;
84 #size-cells = <0>;
85 status = "okay";
86
87 hub_port0: port@1 {
88 reg = <1>;
89 #trigger-source-cells = <0>;
90 };
91 };
92
93 &usb_phy1 {
94 status = "okay";
95 };
96
97 &usb1 {
98 #address-cells = <1>;
99 #size-cells = <0>;
100 status = "okay";
101
102 hub_port1: port@1 {
103 reg = <1>;
104 #trigger-source-cells = <0>;
105 };
106 };
107
108 &spi {
109 status = "okay";
110
111 flash@0 {
112 compatible = "jedec,spi-nor";
113 reg = <0>;
114 spi-max-frequency = <25000000>;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 partition@0 {
122 label = "u-boot";
123 reg = <0x0 0x40000>;
124 read-only;
125 };
126
127 partition@40000 {
128 label = "u-boot-env";
129 reg = <0x40000 0x10000>;
130 };
131
132 partition@50000 {
133 label = "oem-firmware";
134 reg = <0x50000 0xfa0000>;
135 };
136
137 art: partition@ff0000 {
138 label = "art";
139 reg = <0xff0000 0x10000>;
140 read-only;
141 };
142 };
143 };
144 };
145
146 &nand {
147 status = "okay";
148
149 partitions {
150 compatible = "fixed-partitions";
151 #address-cells = <1>;
152 #size-cells = <1>;
153
154 partition@0 {
155 label = "kernel";
156 reg = <0x0 0x500000>;
157 };
158
159 partition@500000 {
160 label = "ubi";
161 reg = <0x500000 0x5b00000>;
162 };
163
164 partition@6000000 {
165 label = "oem-backup";
166 reg = <0x6000000 0x2000000>;
167 };
168 };
169 };
170
171 &mdio0 {
172 status = "okay";
173
174 phy0: ethernet-phy@0 {
175 reg = <0>;
176
177 qca,ar8327-initvals = <
178 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
179 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
180 0x7c 0x0000007e /* PORT0_STATUS */
181 0x94 0x0000007e /* PORT6 STATUS */
182 >;
183 };
184 };
185
186 &eth0 {
187 status = "okay";
188
189 mtd-mac-address = <&art 0x0>;
190 pll-data = <0x56000000 0x00000101 0x00001616>;
191 phy-handle = <&phy0>;
192 };
193
194 &eth1 {
195 status = "okay";
196
197 mtd-mac-address = <&art 0x6>;
198 pll-data = <0x03000101 0x00000101 0x00001616>;
199 fixed-link {
200 speed = <1000>;
201 full-duplex;
202 };
203 };
204
205 &wmac {
206 status = "okay";
207
208 mtd-cal-data = <&art 0x1000>;
209 mtd-mac-address = <&art 0xc>;
210 };