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 compatible = "moxa,awk-1137c", "qca,ar9344";
11 model = "MOXA AWK-1137C";
14 led-boot = &led_status_red;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
18 label-mac-device = ð1;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 compatible = "gpio-leds";
34 pinctrl-names = "default";
36 led_status_green: led-0 {
37 color = <LED_COLOR_ID_GREEN>;
38 function = LED_FUNCTION_STATUS;
39 function-enumerator = <0>;
40 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
43 led_status_red: led-1 {
44 color = <LED_COLOR_ID_RED>;
45 function = LED_FUNCTION_STATUS;
46 function-enumerator = <1>;
47 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_WLAN;
53 function-enumerator = <0>;
54 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy0tpt";
59 color = <LED_COLOR_ID_GREEN>;
60 function = LED_FUNCTION_WAN;
61 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
65 color = <LED_COLOR_ID_GREEN>;
66 function = LED_FUNCTION_LAN;
67 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
71 color = <LED_COLOR_ID_YELLOW>;
72 function = LED_FUNCTION_WLAN;
73 function-enumerator = <1>;
74 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
75 linux,default-trigger = "phy0assoc";
81 clock-frequency = <40000000>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <40000000>;
93 compatible = "fixed-partitions";
99 reg = <0x000000 0x040000>;
104 label = "u-boot-env";
105 reg = <0x040000 0x010000>;
110 reg = <0x050000 0xe00000>;
111 compatible = "denx,uimage";
116 reg = <0xe50000 0x020000>;
122 reg = <0xe70000 0x020000>;
128 reg = <0xe90000 0x020000>;
134 reg = <0xeb0000 0x020000>;
140 reg = <0xed0000 0x020000>;
145 label = "config-data";
146 reg = <0xef0000 0x0c0000>;
152 reg = <0xfb0000 0x030000>;
156 art: partition@fe0000 {
158 reg = <0xfe0000 0x010000>;
164 reg = <0xff0000 0x010000>;