kernel: mtdsplit_uimage: replace "openwrt, okli" parser
[openwrt/staging/rmilecki.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 &uart {
84 status = "okay";
85 };
86
87 &spi {
88 status = "okay";
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <40000000>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 partition@0 {
101 label = "u-boot";
102 reg = <0x000000 0x040000>;
103 read-only;
104 };
105
106 partition@40000 {
107 label = "u-boot-env";
108 reg = <0x040000 0x010000>;
109 };
110
111 partition@50000 {
112 label = "custom";
113 reg = <0x050000 0x050000>;
114 read-only;
115 };
116
117 partition@a0000 {
118 label = "loader";
119 reg = <0x0a0000 0x010000>;
120 read-only;
121 };
122
123 fwconcat1: partition@b0000 {
124 label = "fwconcat1";
125 reg = <0x0b0000 0x170000>;
126 };
127
128 partition@220000 {
129 label = "fakeroot";
130 reg = <0x220000 0x010000>;
131 read-only;
132 };
133
134 fwconcat0: partition@230000 {
135 label = "fwconcat0";
136 reg = <0x230000 0xb40000>;
137 };
138
139 partition@d70000 {
140 label = "failsafe";
141 reg = <0xd70000 0x280000>;
142 read-only;
143 };
144
145 art: partition@ff0000 {
146 label = "art";
147 reg = <0xff0000 0x010000>;
148 read-only;
149 };
150 };
151 };
152 };
153
154 &mdio0 {
155 status = "okay";
156
157 phy1: ethernet-phy@1 {
158 reg = <1>;
159 eee-broken-100tx;
160 eee-broken-1000t;
161 };
162
163 phy2: ethernet-phy@2 {
164 reg = <2>;
165 eee-broken-100tx;
166 eee-broken-1000t;
167 at803x-override-sgmii-link-check;
168 };
169 };
170
171 &eth0 {
172 status = "okay";
173
174 mtd-mac-address = <&art 0x0>;
175
176 phy-handle = <&phy1>;
177 phy-mode = "rgmii-id";
178
179 pll-data = <0x82000000 0x80000101 0x80001313>;
180 };
181
182 &eth1 {
183 status = "okay";
184
185 mtd-mac-address = <&art 0x0>;
186 mtd-mac-address-increment = <1>;
187
188 phy-handle = <&phy2>;
189
190 pll-data = <0x03000000 0x00000101 0x00001313>;
191
192 qca955x-sgmii-fixup;
193 };
194
195 &pcie0 {
196 status = "okay";
197
198 wifi@0,0,0 {
199 compatible = "qcom,ath10k";
200 reg = <0x0 0 0 0 0>;
201 qca,no-eeprom;
202 };
203 };