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