ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 color = <LED_COLOR_ID_GREEN>;
38 function = LED_FUNCTION_STATUS;
39 function-enumerator = <0>;
40 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
41 };
42
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>;
48 };
49
50 led-2 {
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";
56 };
57
58 led-3 {
59 color = <LED_COLOR_ID_GREEN>;
60 function = LED_FUNCTION_WAN;
61 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
62 };
63
64 led-4 {
65 color = <LED_COLOR_ID_GREEN>;
66 function = LED_FUNCTION_LAN;
67 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
68 };
69
70 led-5 {
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";
76 };
77 };
78 };
79
80 &ref {
81 clock-frequency = <40000000>;
82 };
83
84 &spi {
85 status = "okay";
86
87 flash@0 {
88 compatible = "jedec,spi-nor";
89 reg = <0>;
90 spi-max-frequency = <40000000>;
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 partition@0 {
98 label = "u-boot";
99 reg = <0x000000 0x040000>;
100 read-only;
101 };
102
103 partition@40000 {
104 label = "u-boot-env";
105 reg = <0x040000 0x010000>;
106 };
107
108 partition@50000 {
109 label = "firmware";
110 reg = <0x050000 0xe00000>;
111 compatible = "denx,uimage";
112 };
113
114 partition@e50000 {
115 label = "log1";
116 reg = <0xe50000 0x020000>;
117 read-only;
118 };
119
120 partition@e70000 {
121 label = "log2";
122 reg = <0xe70000 0x020000>;
123 read-only;
124 };
125
126 partition@e90000 {
127 label = "version";
128 reg = <0xe90000 0x020000>;
129 read-only;
130 };
131
132 partition@eb0000 {
133 label = "config1";
134 reg = <0xeb0000 0x020000>;
135 read-only;
136 };
137
138 partition@ed0000 {
139 label = "config2";
140 reg = <0xed0000 0x020000>;
141 read-only;
142 };
143
144 partition@ef0000 {
145 label = "config-data";
146 reg = <0xef0000 0x0c0000>;
147 read-only;
148 };
149
150 partition@fb0000 {
151 label = "mib0";
152 reg = <0xfb0000 0x030000>;
153 read-only;
154 };
155
156 art: partition@fe0000 {
157 label = "art";
158 reg = <0xfe0000 0x010000>;
159 read-only;
160 };
161
162 partition@ff0000 {
163 label = "fis";
164 reg = <0xff0000 0x010000>;
165 read-only;
166 };
167 };
168 };
169 };
170
171 &eth1 {
172 status = "okay";
173 };
174
175 &wmac {
176 status = "okay";
177 qca,no-eeprom;
178 };