1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "PowerCloud Systems CR5000";
11 compatible = "pcs,cr5000", "qca,ar9344";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-keys";
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins>;
27 label = "Reset button";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_AMBER>;
47 gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
48 <&gpio 4 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_WLAN;
54 color = <LED_COLOR_ID_BLUE>;
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy0tpt";
60 function = LED_FUNCTION_WPS;
61 color = <LED_COLOR_ID_WHITE>;
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
68 clock-frequency = <25000000>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <25000000>;
80 compatible = "fixed-partitions";
86 reg = <0x000000 0x040000>;
92 reg = <0x040000 0x010000>;
97 compatible = "denx,uimage";
99 reg = <0x050000 0x07a0000>;
102 art: partition@7f0000 {
104 reg = <0x7f0000 0x010000>;
108 compatible = "fixed-layout";
109 #address-cells = <1>;
112 macaddr_art_0: macaddr@0 {
116 macaddr_art_5002: macaddr@5002 {
137 compatible = "pci168c,0030";
138 reg = <0x0000 0 0 0 0>;
139 nvmem-cells = <&macaddr_art_5002>;
140 nvmem-cell-names = "mac-address";
149 phy0: ethernet-phy@0 {
152 qca,ar8327-initvals = <
153 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
154 0x10 0x81000080 /* POWER_ON_STRAP */
155 0x50 0xcc35cc35 /* LED_CTRL0 */
156 0x54 0xca35ca35 /* LED_CTRL1 */
157 0x58 0xc935c935 /* LED_CTRL2 */
158 0x5c 0x03ffff00 /* LED_CTRL3 */
159 0x7c 0x0000007e /* PORT0_STATUS */
165 #address-cells = <1>;
169 /* default for ar934x, except for 1000M */
170 pll-data = <0x06000000 0x00000101 0x00001616>;
172 nvmem-cells = <&macaddr_art_0>;
173 nvmem-cell-names = "mac-address";
176 phy-handle = <&phy0>;
183 compatible = "swconfig,port";
185 swconfig,segment = "lan";
186 swconfig,portmap = <1 1>;
190 compatible = "swconfig,port";
192 swconfig,segment = "lan";
193 swconfig,portmap = <2 2>;
197 compatible = "swconfig,port";
199 swconfig,segment = "lan";
200 swconfig,portmap = <3 3>;
204 compatible = "swconfig,port";
206 swconfig,segment = "lan";
207 swconfig,portmap = <4 4>;
211 compatible = "swconfig,port";
213 swconfig,segment = "wan";
214 swconfig,portmap = <5 5>;
221 mtd-cal-data = <&art 0x1000>;