ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_alfa-network_n5q.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 model = "ALFA Network N5Q";
11 compatible = "alfa-network,n5q", "qca,ar9344";
12
13 aliases {
14 label-mac-device = &wmac;
15 led-boot = &led_signal4;
16 led-failsafe = &led_signal4;
17 led-upgrade = &led_signal4;
18 };
19
20 gpio-export {
21 compatible = "gpio-export";
22 #size-cells = <0>;
23
24 watchdog-enable {
25 gpio-export,name = "watchdog-enable";
26 gpio-export,output = <1>;
27 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "reset";
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 lan1 {
46 label = "green:lan1";
47 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
48 };
49
50 lan2 {
51 label = "green:lan2";
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 };
54
55 led_signal4: signal4 {
56 label = "green:signal4";
57 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
58 };
59
60 signal1 {
61 label = "red:signal1";
62 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
63 };
64
65 signal2 {
66 label = "orange:signal2";
67 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
68 };
69
70 signal3 {
71 label = "green:signal3";
72 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
73 };
74
75 wlan {
76 function = LED_FUNCTION_WLAN;
77 color = <LED_COLOR_ID_GREEN>;
78 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "phy0tpt";
80 };
81 };
82
83 watchdog {
84 compatible = "linux,wdt-gpio";
85 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
86 hw_algo = "toggle";
87 hw_margin_ms = <25000>;
88 always-running;
89 };
90 };
91
92 &eth0 {
93 status = "okay";
94
95 nvmem-cells = <&macaddr_art_0>;
96 nvmem-cell-names = "mac-address";
97 phy-handle = <&swphy4>;
98 };
99
100 &eth1 {
101 status = "okay";
102
103 nvmem-cells = <&macaddr_art_6>;
104 nvmem-cell-names = "mac-address";
105 };
106
107 &ref {
108 clock-frequency = <40000000>;
109 };
110
111 &spi {
112 status = "okay";
113
114 flash@0 {
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <50000000>;
118 m25p,fast-read;
119
120 partitions {
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 partition@0 {
126 label = "u-boot";
127 reg = <0x000000 0x060000>;
128 read-only;
129 };
130
131 partition@60000 {
132 label = "u-boot-env";
133 reg = <0x060000 0x010000>;
134 };
135
136 partition@70000 {
137 label = "art";
138 reg = <0x070000 0x010000>;
139 read-only;
140
141 nvmem-layout {
142 compatible = "fixed-layout";
143 #address-cells = <1>;
144 #size-cells = <1>;
145
146 cal_art_1000: cal@1000 {
147 reg = <0x1000 0x440>;
148 };
149
150 macaddr_art_0: macaddr@0 {
151 reg = <0x0 0x6>;
152 };
153
154 macaddr_art_6: macaddr@6 {
155 reg = <0x6 0x6>;
156 };
157
158 macaddr_art_1002: macaddr@1002 {
159 reg = <0x1002 0x6>;
160 };
161 };
162 };
163
164 partition@80000 {
165 compatible = "denx,uimage";
166 label = "firmware";
167 reg = <0x080000 0xf80000>;
168 };
169 };
170 };
171 };
172
173 &wmac {
174 status = "okay";
175
176 nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002>;
177 nvmem-cell-names = "calibration", "mac-address";
178 };