ath79: enable UART in SoC DTSI files
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9341_engenius_eap300-v2.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 EAP300 v2";
11 compatible = "engenius,eap300-v2", "qca,ar9341";
12
13 aliases {
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 1 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 = "blue:power";
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan {
41 label = "blue:wlan";
42 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45 };
46
47 virtual_flash {
48 compatible = "mtd-concat";
49
50 devices = <&fwconcat0 &fwconcat1>;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partition@0 {
58 compatible = "openwrt,uimage", "denx,uimage";
59 openwrt,ih-magic = <IH_MAGIC_OKLI>;
60 label = "firmware";
61 reg = <0x0 0x0>;
62 };
63 };
64 };
65 };
66
67 &ref {
68 clock-frequency = <40000000>;
69 };
70
71 &spi {
72 status = "okay";
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <20000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 partition@40000 {
91 label = "u-boot-env";
92 reg = <0x040000 0x010000>;
93 };
94
95 partition@50000 {
96 label = "custom";
97 reg = <0x050000 0x050000>;
98 read-only;
99 };
100
101 partition@a0000 {
102 label = "loader";
103 reg = <0x0a0000 0x010000>;
104 read-only;
105 };
106
107 fwconcat1: partition@b0000 {
108 label = "fwconcat1";
109 reg = <0x0b0000 0x170000>;
110 };
111
112 partition@220000 {
113 label = "fakeroot";
114 reg = <0x220000 0x010000>;
115 read-only;
116 };
117
118 fwconcat0: partition@230000 {
119 label = "fwconcat0";
120 reg = <0x230000 0xbc0000>;
121 };
122
123 partition@df0000 {
124 label = "failsafe";
125 reg = <0xdf0000 0x200000>;
126 read-only;
127 };
128
129 art: partition@ff0000 {
130 label = "art";
131 reg = <0xff0000 0x010000>;
132 read-only;
133 };
134 };
135 };
136 };
137
138 &eth1 {
139 mtd-mac-address = <&art 0x0>;
140 };
141
142 &wmac {
143 status = "okay";
144
145 mtd-cal-data = <&art 0x1000>;
146 };