ath79: use internal switch for EAP300 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 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 model = "Engenius EAP300 v2";
11 compatible = "engenius,eap300-v2", "qca,ar9341";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "blue:power";
37 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 wlan {
42 label = "blue:wlan";
43 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46 };
47
48 virtual_flash {
49 compatible = "mtd-concat";
50
51 devices = <&fwconcat0 &fwconcat1>;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 partition@0 {
59 compatible = "openwrt,uimage", "denx,uimage";
60 openwrt,ih-magic = <IH_MAGIC_OKLI>;
61 label = "firmware";
62 reg = <0x0 0x0>;
63 };
64 };
65 };
66 };
67
68 &ref {
69 clock-frequency = <40000000>;
70 };
71
72 &uart {
73 status = "okay";
74 };
75
76 &spi {
77 status = "okay";
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-max-frequency = <20000000>;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partition@0 {
90 label = "u-boot";
91 reg = <0x000000 0x040000>;
92 read-only;
93 };
94
95 partition@40000 {
96 label = "u-boot-env";
97 reg = <0x040000 0x010000>;
98 };
99
100 partition@50000 {
101 label = "custom";
102 reg = <0x050000 0x050000>;
103 read-only;
104 };
105
106 partition@a0000 {
107 label = "loader";
108 reg = <0x0a0000 0x010000>;
109 read-only;
110 };
111
112 fwconcat1: partition@b0000 {
113 label = "fwconcat1";
114 reg = <0x0b0000 0x170000>;
115 };
116
117 partition@220000 {
118 label = "fakeroot";
119 reg = <0x220000 0x010000>;
120 read-only;
121 };
122
123 fwconcat0: partition@230000 {
124 label = "fwconcat0";
125 reg = <0x230000 0xbc0000>;
126 };
127
128 partition@df0000 {
129 label = "failsafe";
130 reg = <0xdf0000 0x200000>;
131 read-only;
132 };
133
134 art: partition@ff0000 {
135 label = "art";
136 reg = <0xff0000 0x010000>;
137 read-only;
138 };
139 };
140 };
141 };
142
143 &eth1 {
144 mtd-mac-address = <&art 0x0>;
145 };
146
147 &wmac {
148 status = "okay";
149
150 mtd-cal-data = <&art 0x1000>;
151 };