ath79: wlr-7100: remove device variant indicator
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_engenius_eap300-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Engenius EAP300 v2";
10 compatible = "engenius,eap300-v2", "qca,ar9341";
11
12 aliases {
13 serial0 = &uart;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 linux,code = <KEY_RESTART>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "blue:power";
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan {
41 label = "blue:wlan";
42 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 lan {
47 label = "blue:lan";
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 };
50 };
51
52 virtual_flash {
53 compatible = "mtd-concat";
54
55 devices = <&firmware1 &firmware2>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 partition@0 {
63 compatible = "openwrt,okli";
64 label = "firmware";
65 reg = <0x0 0x0>;
66 };
67 };
68 };
69 };
70
71 &ref {
72 clock-frequency = <40000000>;
73 };
74
75 &uart {
76 status = "okay";
77 };
78
79 &spi {
80 status = "okay";
81
82 num-cs = <1>;
83
84 flash@0 {
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <20000000>;
88
89 partitions {
90 compatible = "fixed-partitions";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 partition@0 {
95 label = "u-boot";
96 reg = <0x000000 0x040000>;
97 read-only;
98 };
99
100 partition@40000 {
101 label = "u-boot-env";
102 reg = <0x040000 0x010000>;
103 };
104
105 partition@50000 {
106 label = "custom";
107 reg = <0x050000 0x050000>;
108 read-only;
109 };
110
111 partition@a0000 {
112 label = "loader";
113 reg = <0x0a0000 0x010000>;
114 read-only;
115 };
116
117 firmware2: partition@b0000 {
118 label = "firmware2";
119 reg = <0x0b0000 0x170000>;
120 };
121
122 partition@220000 {
123 label = "fakeroot";
124 reg = <0x220000 0x010000>;
125 read-only;
126 };
127
128 firmware1: partition@230000 {
129 label = "firmware1";
130 reg = <0x230000 0xbc0000>;
131 };
132
133 partition@df0000 {
134 label = "failsafe";
135 reg = <0xdf0000 0x200000>;
136 read-only;
137 };
138
139 art: partition@ff0000 {
140 label = "art";
141 reg = <0xff0000 0x010000>;
142 read-only;
143 };
144 };
145 };
146 };
147
148 &eth0 {
149 status = "okay";
150
151 mtd-mac-address = <&art 0x0>;
152
153 phy-handle = <&swphy0>;
154
155 gmac-config {
156 device = <&gmac>;
157 switch-phy-swap = <1>;
158 };
159 };
160
161 &eth1 {
162 compatible = "syscon", "simple-mfd";
163 };
164
165 &wmac {
166 status = "okay";
167
168 mtd-cal-data = <&art 0x1000>;
169 };