ath79: wlr-7100: remove device variant indicator
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_pcs_cr5000.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "PowerCloud Systems CR5000";
10 compatible = "pcs,cr5000", "qca,ar9344";
11
12 aliases {
13 serial0 = &uart;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins>;
25
26 reset {
27 label = "Reset button";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32
33 wps {
34 label = "WPS button";
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 label = "amber:power";
46 gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
47 <&gpio 4 GPIO_ACTIVE_LOW>;
48 default-state = "on";
49 };
50
51 wlan2g {
52 label = "blue:wlan";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56
57 wps_white {
58 label = "white:wps";
59 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &ref {
65 clock-frequency = <25000000>;
66 };
67
68 &uart {
69 status = "okay";
70 };
71
72 &spi {
73 status = "okay";
74
75 num-cs = <1>;
76
77 flash@0 {
78 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <25000000>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 uboot: partition@0 {
88 label = "u-boot";
89 reg = <0x000000 0x040000>;
90 read-only;
91 };
92
93 partition@40000 {
94 label = "u-boot-env";
95 reg = <0x040000 0x010000>;
96 read-only;
97 };
98
99 partition@50000 {
100 compatible = "denx,uimage";
101 label = "firmware";
102 reg = <0x050000 0x07a0000>;
103 };
104
105 art: partition@7f0000 {
106 label = "art";
107 reg = <0x7f0000 0x010000>;
108 read-only;
109 };
110 };
111 };
112 };
113
114 &usb {
115 status = "okay";
116 #address-cells = <1>;
117 #size-cells = <0>;
118
119 hub_port1: port@1 {
120 reg = <1>;
121 #trigger-source-cells = <0>;
122 };
123 };
124
125 &usb_phy {
126 status = "okay";
127 };
128
129 &pcie {
130 status = "okay";
131
132 ath9k: wifi@0,0 {
133 compatible = "pci168c,0030";
134 reg = <0x0000 0 0 0 0>;
135 mtd-mac-address = <&art 0x5002>;
136 #gpio-cells = <2>;
137 gpio-controller;
138 };
139 };
140
141 &mdio0 {
142 status = "okay";
143
144 phy-mask = <0>;
145
146 phy0: ethernet-phy@0 {
147 reg = <0>;
148 phy-mode = "rgmii";
149 qca,ar8327-initvals = <
150 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
151 0x10 0x81000080 /* POWER_ON_STRAP */
152 0x50 0xcc35cc35 /* LED_CTRL0 */
153 0x54 0xca35ca35 /* LED_CTRL1 */
154 0x58 0xc935c935 /* LED_CTRL2 */
155 0x5c 0x03ffff00 /* LED_CTRL3 */
156 0x7c 0x0000007e /* PORT0_STATUS */
157 >;
158 };
159 };
160
161 &eth0 {
162 #address-cells = <1>;
163 #size-cells = <0>;
164 status = "okay";
165
166 /* default for ar934x, except for 1000M */
167 pll-data = <0x06000000 0x00000101 0x00001616>;
168
169 mtd-mac-address = <&art 0x0>;
170
171 phy-mode = "rgmii";
172 phy-handle = <&phy0>;
173
174 aliases {
175 ag0 = &eth1;
176 };
177
178 port@0 {
179 compatible = "swconfig,port";
180 reg = <0>;
181 swconfig,segment = "lan";
182 swconfig,portmap = <1 1>;
183 };
184
185 port@1 {
186 compatible = "swconfig,port";
187 reg = <1>;
188 swconfig,segment = "lan";
189 swconfig,portmap = <2 2>;
190 };
191
192 port@2 {
193 compatible = "swconfig,port";
194 reg = <2>;
195 swconfig,segment = "lan";
196 swconfig,portmap = <3 3>;
197 };
198
199 port@3 {
200 compatible = "swconfig,port";
201 reg = <3>;
202 swconfig,segment = "lan";
203 swconfig,portmap = <4 4>;
204 };
205
206 port@4 {
207 compatible = "swconfig,port";
208 reg = <4>;
209 swconfig,segment = "wan";
210 swconfig,portmap = <5 5>;
211 };
212 };
213
214 &wmac {
215 status = "okay";
216
217 mtd-cal-data = <&art 0x1000>;
218 };