ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.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
8 / {
9 model = "ALFA Network N5Q";
10 compatible = "alfa-network,n5q", "qca,ar9344";
11
12 aliases {
13 label-mac-device = &wmac;
14 led-boot = &led_signal4;
15 led-failsafe = &led_signal4;
16 led-upgrade = &led_signal4;
17 };
18
19 gpio-export {
20 compatible = "gpio-export";
21 #size-cells = <0>;
22
23 watchdog-enable {
24 gpio-export,name = "watchdog-enable";
25 gpio-export,output = <1>;
26 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 lan1 {
45 label = "green:lan1";
46 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
47 };
48
49 lan2 {
50 label = "green:lan2";
51 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
52 };
53
54 led_signal4: signal4 {
55 label = "green:signal4";
56 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
57 };
58
59 signal1 {
60 label = "red:signal1";
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
62 };
63
64 signal2 {
65 label = "orange:signal2";
66 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
67 };
68
69 signal3 {
70 label = "green:signal3";
71 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
72 };
73
74 wlan {
75 label = "green:wlan";
76 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy0tpt";
78 };
79 };
80
81 watchdog {
82 compatible = "linux,wdt-gpio";
83 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
84 hw_algo = "toggle";
85 hw_margin_ms = <25000>;
86 always-running;
87 };
88 };
89
90 &eth0 {
91 status = "okay";
92
93 mtd-mac-address = <&art 0x0>;
94 phy-handle = <&swphy4>;
95 };
96
97 &eth1 {
98 status = "okay";
99
100 mtd-mac-address = <&art 0x6>;
101 };
102
103 &ref {
104 clock-frequency = <40000000>;
105 };
106
107 &spi {
108 status = "okay";
109
110 flash@0 {
111 compatible = "jedec,spi-nor";
112 reg = <0>;
113 spi-max-frequency = <50000000>;
114 m25p,fast-read;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 partition@0 {
122 label = "u-boot";
123 reg = <0x000000 0x060000>;
124 read-only;
125 };
126
127 partition@60000 {
128 label = "u-boot-env";
129 reg = <0x060000 0x010000>;
130 };
131
132 art: partition@70000 {
133 label = "art";
134 reg = <0x070000 0x010000>;
135 read-only;
136 };
137
138 partition@80000 {
139 compatible = "denx,uimage";
140 label = "firmware";
141 reg = <0x080000 0xf80000>;
142 };
143 };
144 };
145 };
146
147 &uart {
148 status = "okay";
149 };
150
151 &wmac {
152 status = "okay";
153
154 mtd-cal-data = <&art 0x1000>;
155 };