39a8a7f25f8cf4385aaf54d65a6b1835b30e1929
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_engenius_eap350-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.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 compatible = "engenius,eap350-v1", "qca,ar7242";
11 model = "EnGenius EAP350 v1";
12
13 aliases {
14 label-mac-device = &eth0;
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 0 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 17 GPIO_ACTIVE_HIGH>;
38 default-state = "on";
39 };
40 };
41
42 ath9k-leds {
43 compatible = "gpio-leds";
44
45 wlan {
46 label = "blue:wlan";
47 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50 };
51
52 virtual_flash {
53 compatible = "mtd-concat";
54
55 devices = <&fwconcat0 &fwconcat1>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 partition@0 {
63 compatible = "openwrt,uimage", "denx,uimage";
64 openwrt,ih-magic = <IH_MAGIC_OKLI>;
65 label = "firmware";
66 reg = <0x0 0x0>;
67 };
68 };
69 };
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 = <0x0 0x40000>;
92 read-only;
93 };
94
95 partition@40000 {
96 label = "u-boot-env";
97 reg = <0x40000 0x10000>;
98 };
99
100 partition@50000 {
101 label = "custom";
102 reg = <0x50000 0x50000>;
103 read-only;
104 };
105
106 partition@a0000 {
107 label = "loader";
108 reg = <0xa0000 0x10000>;
109 read-only;
110 };
111
112 fwconcat1: partition@b0000 {
113 label = "fwconcat1";
114 reg = <0xb0000 0xf0000>;
115 };
116
117 partition@1a0000 {
118 label = "fakeroot";
119 reg = <0x1a0000 0x10000>;
120 read-only;
121 };
122
123 fwconcat0: partition@1b0000 {
124 label = "fwconcat0";
125 reg = <0x1b0000 0x4c0000>;
126 };
127
128 partition@670000 {
129 label = "failsafe";
130 reg = <0x670000 0x180000>;
131 read-only;
132 };
133
134 art: partition@7f0000 {
135 label = "art";
136 reg = <0x7f0000 0x10000>;
137 read-only;
138 };
139 };
140 };
141 };
142
143 &mdio0 {
144 status = "okay";
145
146 phy4: ethernet-phy@4 {
147 reg = <4>;
148 eee-broken-100tx;
149 eee-broken-1000t;
150 };
151 };
152
153 &eth0 {
154 status = "okay";
155
156 mtd-mac-address = <&art 0x0>;
157
158 phy-handle = <&phy4>;
159 phy-mode = "rgmii-id";
160
161 pll-data = <0x02000000 0x00000101 0x00001313>;
162 };
163
164 &pcie {
165 status = "okay";
166
167 ath9k: wifi@0,0,0 {
168 compatible = "pci168c,002a";
169 reg = <0x0 0 0 0 0>;
170 mtd-mac-address = <&art 0x0>;
171 mtd-mac-address-increment = <1>;
172 qca,no-eeprom;
173 #gpio-cells = <2>;
174 gpio-controller;
175 };
176 };