ath79: create shared DTSI/definition for Belkin F9J1108/F9K1115 v2
[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 flash@0 {
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <20000000>;
86
87 partitions {
88 compatible = "fixed-partitions";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 partition@0 {
93 label = "u-boot";
94 reg = <0x000000 0x040000>;
95 read-only;
96 };
97
98 partition@40000 {
99 label = "u-boot-env";
100 reg = <0x040000 0x010000>;
101 };
102
103 partition@50000 {
104 label = "custom";
105 reg = <0x050000 0x050000>;
106 read-only;
107 };
108
109 partition@a0000 {
110 label = "loader";
111 reg = <0x0a0000 0x010000>;
112 read-only;
113 };
114
115 firmware2: partition@b0000 {
116 label = "firmware2";
117 reg = <0x0b0000 0x170000>;
118 };
119
120 partition@220000 {
121 label = "fakeroot";
122 reg = <0x220000 0x010000>;
123 read-only;
124 };
125
126 firmware1: partition@230000 {
127 label = "firmware1";
128 reg = <0x230000 0xbc0000>;
129 };
130
131 partition@df0000 {
132 label = "failsafe";
133 reg = <0xdf0000 0x200000>;
134 read-only;
135 };
136
137 art: partition@ff0000 {
138 label = "art";
139 reg = <0xff0000 0x010000>;
140 read-only;
141 };
142 };
143 };
144 };
145
146 &eth0 {
147 status = "okay";
148
149 mtd-mac-address = <&art 0x0>;
150
151 phy-handle = <&swphy0>;
152
153 gmac-config {
154 device = <&gmac>;
155 switch-phy-swap = <1>;
156 };
157 };
158
159 &eth1 {
160 compatible = "syscon", "simple-mfd";
161 };
162
163 &wmac {
164 status = "okay";
165
166 mtd-cal-data = <&art 0x1000>;
167 };