ath79: etactica-eg200: fix restore button
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e314n-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca953x.dtsi"
8
9 / {
10 compatible = "comfast,cf-e314n-v2", "qca,qca9531";
11 model = "COMFAST CF-E314N v2";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &system;
16 led-failsafe = &system;
17 led-upgrade = &system;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>;
25
26 wan {
27 label = "cf-e314n-v2:green:wan";
28 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
29 };
30
31 lan {
32 label = "cf-e314n-v2:green:lan";
33 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
34 };
35
36 rssilow {
37 label = "cf-e314n-v2:red:signal1";
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 };
40
41 rssimediumlow {
42 label = "cf-e314n-v2:red:signal2";
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 };
45
46 rssimediumhigh {
47 label = "cf-e314n-v2:green:signal3";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 };
50
51 system: rssihigh {
52 label = "cf-e314n-v2:green:signal4";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 };
55
56 wlan {
57 label = "cf-e314n-v2:green:wlan";
58 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy0tpt";
60 };
61 };
62
63 keys {
64 compatible = "gpio-keys";
65
66 reset {
67 label = "reset";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
71 };
72 };
73 };
74
75 &pinmux {
76 led_rssilow_pin: pinmux_rssilow_pin {
77 pinctrl-single,bits = <0x8 0x0 0xff000000>;
78 };
79
80 led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
81 pinctrl-single,bits = <0xc 0x0 0x00ff0000>;
82 };
83
84 led_rssihigh_pin: pinmux_rssihigh_pin {
85 pinctrl-single,bits = <0x10 0x0 0x000000ff>;
86 };
87 };
88
89 &spi {
90 status = "okay";
91 num-cs = <1>;
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 reg = <0>;
96 spi-max-frequency = <25000000>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0x000000 0x010000>;
106 read-only;
107 };
108
109 art: partition@10000 {
110 label = "art";
111 reg = <0x010000 0x010000>;
112 read-only;
113 };
114
115 partition@20000 {
116 compatible = "denx,uimage";
117 label = "firmware";
118 reg = <0x020000 0x7c0000>;
119 };
120
121 partition@7e0000 {
122 label = "configs";
123 reg = <0x7e0000 0x010000>;
124 read-only;
125 };
126
127 partition@7f0000 {
128 label = "nvram";
129 reg = <0x7f0000 0x010000>;
130 read-only;
131 };
132 };
133 };
134 };
135
136 &uart {
137 status = "okay";
138 };
139
140 &eth0 {
141 status = "okay";
142 mtd-mac-address = <&art 0x0>;
143 phy-handle = <&swphy4>;
144 };
145
146 &eth1 {
147 status = "okay";
148 mtd-mac-address = <&art 0x6>;
149 };
150
151 &wmac {
152 status = "okay";
153 mtd-cal-data = <&art 0x1000>;
154 };