kernel: mtdsplit_uimage: replace "openwrt, okli" parser
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar7240_engenius_enh202-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7240.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,enh202-v1", "qca,ar7240";
11 model = "EnGenius ENH202 v1";
12
13 aliases {
14 led-boot = &led_rssihigh;
15 led-failsafe = &led_rssihigh;
16 led-running = &led_rssihigh;
17 led-upgrade = &led_rssihigh;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 pinctrl-names = "default";
35 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
36
37 rssilow {
38 label = "red:rssilow";
39 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
40 };
41
42 rssimedium {
43 label = "amber:rssimedium";
44 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
45 };
46
47 led_rssihigh: rssihigh {
48 label = "green:rssihigh";
49 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 };
51
52 lan {
53 label = "amber:lan";
54 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
55 };
56
57 wan {
58 label = "green:wan";
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 ath9k-leds {
64 compatible = "gpio-leds";
65
66 wlan {
67 label = "green:wlan";
68 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy0tpt";
70 };
71 };
72
73 virtual_flash {
74 compatible = "mtd-concat";
75
76 devices = <&fwconcat0 &fwconcat1>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 compatible = "openwrt,uimage", "denx,uimage";
85 openwrt,ih-magic = <IH_MAGIC_OKLI>;
86 label = "firmware";
87 reg = <0x0 0x0>;
88 };
89 };
90 };
91 };
92
93 &uart {
94 status = "okay";
95 };
96
97 &spi {
98 status = "okay";
99
100 flash@0 {
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <20000000>;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 partition@0 {
111 label = "u-boot";
112 reg = <0x0 0x40000>;
113 read-only;
114 };
115
116 partition@40000 {
117 label = "u-boot-env";
118 reg = <0x40000 0x10000>;
119 };
120
121 partition@50000 {
122 label = "custom";
123 reg = <0x50000 0x50000>;
124 read-only;
125 };
126
127 partition@a0000 {
128 label = "loader";
129 reg = <0xa0000 0x10000>;
130 read-only;
131 };
132
133 fwconcat1: partition@b0000 {
134 label = "fwconcat1";
135 reg = <0xb0000 0xf0000>;
136 };
137
138 partition@1a0000 {
139 label = "fakeroot";
140 reg = <0x1a0000 0x10000>;
141 read-only;
142 };
143
144 fwconcat0: partition@1b0000 {
145 label = "fwconcat0";
146 reg = <0x1b0000 0x4c0000>;
147 };
148
149 partition@670000 {
150 label = "failsafe";
151 reg = <0x670000 0x180000>;
152 read-only;
153 };
154
155 art: partition@7f0000 {
156 label = "art";
157 reg = <0x7f0000 0x10000>;
158 read-only;
159 };
160 };
161 };
162 };
163
164 &eth0 {
165 mtd-mac-address = <&art 0x0>;
166 };
167
168 &eth1 {
169 status = "okay";
170
171 mtd-mac-address = <&art 0x0>;
172 };
173
174 &pcie {
175 status = "okay";
176
177 ath9k: wifi@0,0 {
178 compatible = "pci168c,002a";
179 reg = <0x0000 0 0 0 0>;
180 qca,no-eeprom;
181 #gpio-cells = <2>;
182 gpio-controller;
183 };
184 };