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>
9 model = "PowerCloud Systems CR5000";
10 compatible = "pcs,cr5000", "qca,ar9344";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-keys";
22 pinctrl-names = "default";
23 pinctrl-0 = <&jtag_disable_pins>;
26 label = "Reset button";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
34 linux,code = <KEY_WPS_BUTTON>;
35 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
36 debounce-interval = <60>;
41 compatible = "gpio-leds";
44 label = "amber:power";
45 gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
46 <&gpio 4 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
58 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
64 clock-frequency = <25000000>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <25000000>;
76 compatible = "fixed-partitions";
82 reg = <0x000000 0x040000>;
88 reg = <0x040000 0x010000>;
93 compatible = "denx,uimage";
95 reg = <0x050000 0x07a0000>;
98 art: partition@7f0000 {
100 reg = <0x7f0000 0x010000>;
119 compatible = "pci168c,0030";
120 reg = <0x0000 0 0 0 0>;
121 nvmem-cells = <&macaddr_art_5002>;
122 nvmem-cell-names = "mac-address";
131 phy0: ethernet-phy@0 {
134 qca,ar8327-initvals = <
135 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
136 0x10 0x81000080 /* POWER_ON_STRAP */
137 0x50 0xcc35cc35 /* LED_CTRL0 */
138 0x54 0xca35ca35 /* LED_CTRL1 */
139 0x58 0xc935c935 /* LED_CTRL2 */
140 0x5c 0x03ffff00 /* LED_CTRL3 */
141 0x7c 0x0000007e /* PORT0_STATUS */
147 #address-cells = <1>;
151 /* default for ar934x, except for 1000M */
152 pll-data = <0x06000000 0x00000101 0x00001616>;
154 nvmem-cells = <&macaddr_art_0>;
155 nvmem-cell-names = "mac-address";
158 phy-handle = <&phy0>;
165 compatible = "swconfig,port";
167 swconfig,segment = "lan";
168 swconfig,portmap = <1 1>;
172 compatible = "swconfig,port";
174 swconfig,segment = "lan";
175 swconfig,portmap = <2 2>;
179 compatible = "swconfig,port";
181 swconfig,segment = "lan";
182 swconfig,portmap = <3 3>;
186 compatible = "swconfig,port";
188 swconfig,segment = "lan";
189 swconfig,portmap = <4 4>;
193 compatible = "swconfig,port";
195 swconfig,segment = "wan";
196 swconfig,portmap = <5 5>;
203 mtd-cal-data = <&art 0x1000>;
207 compatible = "nvmem-cells";
208 #address-cells = <1>;
211 macaddr_art_0: macaddr@0 {
215 macaddr_art_5002: macaddr@5002 {