ath79: remove model name from LED labels
[openwrt/staging/chunkeey.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 num-cs = <1>;
112
113 flash@0 {
114 compatible = "jedec,spi-nor";
115 reg = <0>;
116 spi-max-frequency = <25000000>;
117
118 partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition@0 {
124 label = "u-boot";
125 reg = <0x0 0x40000>;
126 read-only;
127 };
128
129 partition@40000 {
130 label = "u-boot-env";
131 reg = <0x40000 0x10000>;
132 };
133
134 partition@50000 {
135 label = "oem-firmware";
136 reg = <0x50000 0xfa0000>;
137 };
138
139 art: partition@ff0000 {
140 label = "art";
141 reg = <0xff0000 0x10000>;
142 read-only;
143 };
144 };
145 };
146 };
147
148 &nand {
149 status = "okay";
150
151 partitions {
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 partition@0 {
157 label = "kernel";
158 reg = <0x0 0x500000>;
159 };
160
161 partition@500000 {
162 label = "ubi";
163 reg = <0x500000 0x5b00000>;
164 };
165
166 partition@6000000 {
167 label = "oem-backup";
168 reg = <0x6000000 0x2000000>;
169 };
170 };
171 };
172
173 &mdio0 {
174 status = "okay";
175
176 phy0: ethernet-phy@0 {
177 reg = <0>;
178
179 qca,ar8327-initvals = <
180 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
181 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
182 0x7c 0x0000007e /* PORT0_STATUS */
183 0x94 0x0000007e /* PORT6 STATUS */
184 >;
185 };
186 };
187
188 &eth0 {
189 status = "okay";
190
191 mtd-mac-address = <&art 0x0>;
192 pll-data = <0x56000000 0x00000101 0x00001616>;
193 phy-handle = <&phy0>;
194 };
195
196 &eth1 {
197 status = "okay";
198
199 mtd-mac-address = <&art 0x6>;
200 pll-data = <0x03000101 0x00000101 0x00001616>;
201 fixed-link {
202 speed = <1000>;
203 full-duplex;
204 };
205 };
206
207 &wmac {
208 status = "okay";
209
210 mtd-cal-data = <&art 0x1000>;
211 mtd-mac-address = <&art 0xc>;
212 };