kernel: mtdsplit_uimage: replace "openwrt, okli" parser
[openwrt/staging/neocturne.git] / target / linux / ath79 / dts / ar9341_engenius_ens202ext-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.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 model = "Engenius ENS202EXT v1";
11 compatible = "engenius,ens202ext-v1", "qca,ar9341";
12
13 aliases {
14 serial0 = &uart;
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 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "amber:power";
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 wlan {
42 label = "amber:wlan";
43 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46
47 rssilow {
48 label = "red:rssilow";
49 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
50 };
51
52 rssimedium {
53 label = "amber:rssimedium";
54 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
55 };
56
57 rssihigh {
58 label = "green:rssihigh";
59 gpios = <&gpio 0 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 &ref {
84 clock-frequency = <40000000>;
85 };
86
87 &uart {
88 status = "okay";
89 };
90
91 &spi {
92 status = "okay";
93
94 flash@0 {
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <40000000>;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x000000 0x040000>;
107 read-only;
108 };
109
110 partition@40000 {
111 label = "u-boot-env";
112 reg = <0x040000 0x010000>;
113 };
114
115 partition@50000 {
116 label = "custom";
117 reg = <0x050000 0x050000>;
118 read-only;
119 };
120
121 partition@a0000 {
122 label = "loader";
123 reg = <0x0a0000 0x010000>;
124 read-only;
125 };
126
127 fwconcat1: partition@b0000 {
128 label = "fwconcat1";
129 reg = <0x0b0000 0x170000>;
130 };
131
132 partition@220000 {
133 label = "fakeroot";
134 reg = <0x220000 0x010000>;
135 read-only;
136 };
137
138 fwconcat0: partition@230000 {
139 label = "fwconcat0";
140 reg = <0x230000 0xbc0000>;
141 };
142
143 partition@df0000 {
144 label = "failsafe";
145 reg = <0xdf0000 0x200000>;
146 read-only;
147 };
148
149 art: partition@ff0000 {
150 label = "art";
151 reg = <0xff0000 0x010000>;
152 read-only;
153 };
154 };
155 };
156 };
157
158 &eth0 {
159 status = "okay";
160
161 phy-handle = <&swphy0>;
162
163 mtd-mac-address = <&art 0x0>;
164 };
165
166 &eth1 {
167 status = "okay";
168
169 mtd-mac-address = <&art 0x0>;
170
171 gmac-config {
172 device = <&gmac>;
173 switch-phy-swap = <1>;
174 };
175 };
176
177 &wmac {
178 status = "okay";
179
180 mtd-cal-data = <&art 0x1000>;
181 };