1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 model = "PowerCloud Systems CR5000";
11 compatible = "pcs,cr5000", "qca,ar9344";
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&jtag_disable_pins>;
28 label = "Reset button";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
36 linux,code = <KEY_WPS_BUTTON>;
37 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
43 compatible = "gpio-leds";
46 label = "pcs:amber:power";
47 gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
48 <&gpio 4 GPIO_ACTIVE_LOW>;
53 label = "pcs:blue:wlan";
54 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy0tpt";
59 label = "pcs:white:wps";
60 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
66 clock-frequency = <25000000>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <25000000>;
84 compatible = "fixed-partitions";
90 reg = <0x000000 0x040000>;
96 reg = <0x040000 0x010000>;
101 compatible = "denx,uimage";
103 reg = <0x050000 0x07a0000>;
106 art: partition@7f0000 {
108 reg = <0x7f0000 0x010000>;
117 #address-cells = <1>;
122 #trigger-source-cells = <0>;
134 compatible = "pci168c,0030";
135 reg = <0x0000 0 0 0 0>;
136 mtd-mac-address = <&art 0x5002>;
147 phy0: ethernet-phy@0 {
150 qca,ar8327-initvals = <
151 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
152 0x10 0x81000080 /* POWER_ON_STRAP */
153 0x50 0xcc35cc35 /* LED_CTRL0 */
154 0x54 0xca35ca35 /* LED_CTRL1 */
155 0x58 0xc935c935 /* LED_CTRL2 */
156 0x5c 0x03ffff00 /* LED_CTRL3 */
157 0x7c 0x0000007e /* PORT0_STATUS */
163 #address-cells = <1>;
167 /* default for ar934x, except for 1000M */
168 pll-data = <0x06000000 0x00000101 0x00001616>;
170 mtd-mac-address = <&art 0x0>;
173 phy-handle = <&phy0>;
180 compatible = "swconfig,port";
182 swconfig,segment = "lan";
183 swconfig,portmap = <1 1>;
187 compatible = "swconfig,port";
189 swconfig,segment = "lan";
190 swconfig,portmap = <2 2>;
194 compatible = "swconfig,port";
196 swconfig,segment = "lan";
197 swconfig,portmap = <3 3>;
201 compatible = "swconfig,port";
203 swconfig,segment = "lan";
204 swconfig,portmap = <4 4>;
208 compatible = "swconfig,port";
210 swconfig,segment = "wan";
211 swconfig,portmap = <5 5>;
218 mtd-cal-data = <&art 0x1000>;