ath79: add support for Senao Engenius EnStationAC v1
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / qca9557_engenius_enstationac-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "engenius,enstationac-v1", "qca,qca9557";
10 model = "EnGenius EnStationAC 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 17 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 = "amber:power";
36 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan {
41 label = "green:wlan";
42 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 rssilow {
47 label = "red:rssilow";
48 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
49 };
50
51 rssimedium {
52 label = "amber:rssimedium";
53 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
54 };
55
56 rssihigh {
57 label = "green:rssihigh";
58 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
59 };
60 };
61
62 virtual_flash {
63 compatible = "mtd-concat";
64
65 devices = <&firmware1 &firmware2>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 compatible = "openwrt,okli";
74 label = "firmware";
75 reg = <0x0 0x0>;
76 };
77 };
78 };
79 };
80
81 &uart {
82 status = "okay";
83 };
84
85 &spi {
86 status = "okay";
87
88 flash@0 {
89 compatible = "jedec,spi-nor";
90 reg = <0>;
91 spi-max-frequency = <40000000>;
92
93 partitions {
94 compatible = "fixed-partitions";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 partition@0 {
99 label = "u-boot";
100 reg = <0x000000 0x040000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "u-boot-env";
106 reg = <0x040000 0x010000>;
107 };
108
109 partition@50000 {
110 label = "custom";
111 reg = <0x050000 0x050000>;
112 read-only;
113 };
114
115 partition@a0000 {
116 label = "loader";
117 reg = <0x0a0000 0x010000>;
118 read-only;
119 };
120
121 firmware2: partition@b0000 {
122 label = "firmware2";
123 reg = <0x0b0000 0x170000>;
124 };
125
126 partition@220000 {
127 label = "fakeroot";
128 reg = <0x220000 0x010000>;
129 read-only;
130 };
131
132 firmware1: partition@230000 {
133 label = "firmware1";
134 reg = <0x230000 0xb40000>;
135 };
136
137 partition@d70000 {
138 label = "failsafe";
139 reg = <0xd70000 0x280000>;
140 read-only;
141 };
142
143 art: partition@ff0000 {
144 label = "art";
145 reg = <0xff0000 0x010000>;
146 read-only;
147 };
148 };
149 };
150 };
151
152 &mdio0 {
153 status = "okay";
154
155 phy1: ethernet-phy@1 {
156 reg = <1>;
157 eee-broken-100tx;
158 eee-broken-1000t;
159 };
160
161 phy2: ethernet-phy@2 {
162 reg = <2>;
163 eee-broken-100tx;
164 eee-broken-1000t;
165 at803x-override-sgmii-link-check;
166 };
167 };
168
169 &eth0 {
170 status = "okay";
171
172 mtd-mac-address = <&art 0x0>;
173
174 phy-handle = <&phy1>;
175 phy-mode = "rgmii-id";
176
177 pll-data = <0x82000000 0x80000101 0x80001313>;
178 };
179
180 &eth1 {
181 status = "okay";
182
183 mtd-mac-address = <&art 0x0>;
184 mtd-mac-address-increment = <1>;
185
186 phy-handle = <&phy2>;
187
188 pll-data = <0x03000000 0x00000101 0x00001313>;
189
190 qca955x-sgmii-fixup;
191 };
192
193 &pcie0 {
194 status = "okay";
195
196 wifi@0,0,0 {
197 compatible = "qcom,ath10k";
198 reg = <0x0 0 0 0 0>;
199 qca,no-eeprom;
200 };
201 };