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 CAP324";
11 compatible = "pcs,cap324", "qca,ar9344";
14 led-boot = &led_power_amber;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
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 compatible = "gpio-leds";
37 led_power_amber: power_amber {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_AMBER>;
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 led_power_green: power_green {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
51 function = LED_FUNCTION_WLAN;
52 color = <LED_COLOR_ID_AMBER>;
53 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
58 function = LED_FUNCTION_WLAN;
59 color = <LED_COLOR_ID_GREEN>;
60 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
65 function = LED_FUNCTION_LAN;
66 color = <LED_COLOR_ID_AMBER>;
67 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
71 function = LED_FUNCTION_LAN;
72 color = <LED_COLOR_ID_GREEN>;
73 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
79 clock-frequency = <25000000>;
86 compatible = "jedec,spi-nor";
88 spi-max-frequency = <25000000>;
91 compatible = "fixed-partitions";
97 reg = <0x000000 0x040000>;
102 label = "u-boot-env";
103 reg = <0x040000 0x010000>;
108 compatible = "denx,uimage";
110 reg = <0x050000 0x0fa0000>;
113 art: partition@7f0000 {
115 reg = <0xff0000 0x010000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 macaddr_art_0: macaddr@0 {
124 compatible = "mac-base";
126 #nvmem-cell-cells = <1>;
138 compatible = "168c,0030";
139 reg = <0x0000 0 0 0 0>;
140 nvmem-cells = <&macaddr_art_0 (-2)>;
141 nvmem-cell-names = "mac-address";
142 mtd-cal-data = <&art 0x5000>;
144 ieee80211-freq-limit = <2402000 2482000>;
153 ieee80211-freq-limit = <4900000 5990000>;
154 mtd-cal-data = <&art 0x1000>;
155 nvmem-cells = <&macaddr_art_0 (-1)>;
156 nvmem-cell-names = "mac-address";
162 phy0: ethernet-phy@0 {
171 /* default for ar934x, except for 1000M */
172 pll-data = <0x06000000 0x00000101 0x00001616>;
174 nvmem-cells = <&macaddr_art_0 0>;
175 nvmem-cell-names = "mac-address";
178 phy-handle = <&phy0>;