ath79: add support for Senao Engenius EAP350 v1
[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
8 / {
9 compatible = "engenius,eap350-v1", "qca,ar7242";
10 model = "EnGenius EAP350 v1";
11
12 aliases {
13 label-mac-device = &eth0;
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 0 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 17 GPIO_ACTIVE_HIGH>;
37 default-state = "on";
38 };
39 };
40
41 ath9k-leds {
42 compatible = "gpio-leds";
43
44 wlan {
45 label = "blue:wlan";
46 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
48 };
49 };
50
51 virtual_flash {
52 compatible = "mtd-concat";
53
54 devices = <&firmware1 &firmware2>;
55
56 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 compatible = "openwrt,okli";
63 label = "firmware";
64 reg = <0x0 0x0>;
65 };
66 };
67 };
68 };
69
70 &uart {
71 status = "okay";
72 };
73
74 &spi {
75 status = "okay";
76
77 flash@0 {
78 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <20000000>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x40000>;
90 read-only;
91 };
92
93 partition@40000 {
94 label = "u-boot-env";
95 reg = <0x40000 0x10000>;
96 };
97
98 partition@50000 {
99 label = "custom";
100 reg = <0x50000 0x50000>;
101 read-only;
102 };
103
104 partition@a0000 {
105 label = "loader";
106 reg = <0xa0000 0x10000>;
107 read-only;
108 };
109
110 firmware2: partition@b0000 {
111 label = "firmware2";
112 reg = <0xb0000 0xf0000>;
113 };
114
115 partition@1a0000 {
116 label = "fakeroot";
117 reg = <0x1a0000 0x10000>;
118 read-only;
119 };
120
121 firmware1: partition@1b0000 {
122 label = "firmware1";
123 reg = <0x1b0000 0x4c0000>;
124 };
125
126 partition@670000 {
127 label = "failsafe";
128 reg = <0x670000 0x180000>;
129 read-only;
130 };
131
132 art: partition@7f0000 {
133 label = "art";
134 reg = <0x7f0000 0x10000>;
135 read-only;
136 };
137 };
138 };
139 };
140
141 &mdio0 {
142 status = "okay";
143
144 phy4: ethernet-phy@4 {
145 reg = <4>;
146 eee-broken-100tx;
147 eee-broken-1000t;
148 };
149 };
150
151 &eth0 {
152 status = "okay";
153
154 mtd-mac-address = <&art 0x0>;
155
156 phy-handle = <&phy4>;
157 phy-mode = "rgmii-id";
158
159 pll-data = <0x02000000 0x00000101 0x00001313>;
160 };
161
162 &pcie {
163 status = "okay";
164
165 ath9k: wifi@0,0,0 {
166 compatible = "pci168c,002a";
167 reg = <0x0 0 0 0 0>;
168 mtd-mac-address = <&art 0x0>;
169 mtd-mac-address-increment = <1>;
170 qca,no-eeprom;
171 #gpio-cells = <2>;
172 gpio-controller;
173 };
174 };