ath79: add support for COMFAST CF-E380AC v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_moxa_awk-1137c.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "moxa,awk-1137c", "qca,ar9344";
11 model = "MOXA AWK-1137C";
12
13 aliases {
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 = &eth1;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 pinctrl-names = "default";
35
36 led_status_green: led-0 {
37 label = "green:status";
38 color = <LED_COLOR_ID_GREEN>;
39 function = LED_FUNCTION_STATUS;
40 function-enumerator = <0>;
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 };
43
44 led_status_red: led-1 {
45 label = "red:status";
46 color = <LED_COLOR_ID_RED>;
47 function = LED_FUNCTION_STATUS;
48 function-enumerator = <1>;
49 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
50 };
51
52 led-2 {
53 label = "green:wifi";
54 color = <LED_COLOR_ID_GREEN>;
55 function = LED_FUNCTION_WLAN;
56 function-enumerator = <0>;
57 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
59 };
60
61 led-3 {
62 label = "green:lan1";
63 color = <LED_COLOR_ID_GREEN>;
64 function = LED_FUNCTION_WAN;
65 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
66 };
67
68 led-4 {
69 label = "green:lan2";
70 color = <LED_COLOR_ID_GREEN>;
71 function = LED_FUNCTION_LAN;
72 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
73 };
74
75 led-5 {
76 label = "yellow:wifi";
77 color = <LED_COLOR_ID_YELLOW>;
78 function = LED_FUNCTION_WLAN;
79 function-enumerator = <1>;
80 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
81 linux,default-trigger = "phy0assoc";
82 };
83 };
84 };
85
86 &ref {
87 clock-frequency = <40000000>;
88 };
89
90 &spi {
91 status = "okay";
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 reg = <0>;
96 spi-max-frequency = <40000000>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0x000000 0x040000>;
106 read-only;
107 };
108
109 partition@40000 {
110 label = "u-boot-env";
111 reg = <0x040000 0x010000>;
112 };
113
114 partition@50000 {
115 label = "firmware";
116 reg = <0x050000 0xe00000>;
117 compatible = "denx,uimage";
118 };
119
120 partition@e50000 {
121 label = "log1";
122 reg = <0xe50000 0x020000>;
123 read-only;
124 };
125
126 partition@e70000 {
127 label = "log2";
128 reg = <0xe70000 0x020000>;
129 read-only;
130 };
131
132 partition@e90000 {
133 label = "version";
134 reg = <0xe90000 0x020000>;
135 read-only;
136 };
137
138 partition@eb0000 {
139 label = "config1";
140 reg = <0xeb0000 0x020000>;
141 read-only;
142 };
143
144 partition@ed0000 {
145 label = "config2";
146 reg = <0xed0000 0x020000>;
147 read-only;
148 };
149
150 partition@ef0000 {
151 label = "config-data";
152 reg = <0xef0000 0x0c0000>;
153 read-only;
154 };
155
156 partition@fb0000 {
157 label = "mib0";
158 reg = <0xfb0000 0x030000>;
159 read-only;
160 };
161
162 art: partition@fe0000 {
163 label = "art";
164 reg = <0xfe0000 0x010000>;
165 read-only;
166 };
167
168 partition@ff0000 {
169 label = "fis";
170 reg = <0xff0000 0x010000>;
171 read-only;
172 };
173 };
174 };
175 };
176
177 &eth1 {
178 status = "okay";
179 };
180
181 &wmac {
182 status = "okay";
183 qca,no-eeprom;
184 };