ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e560ac.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-e560ac", "qca,qca9531";
11 model = "COMFAST CF-E560AC";
12
13 aliases {
14 serial0 = &uart;
15 label-mac-device = &eth1;
16 led-boot = &led_system;
17 led-failsafe = &led_system;
18 led-upgrade = &led_system;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 pinctrl-names = "default";
36 pinctrl-0 = <&jtag_disable_pins>;
37
38 lan1 {
39 label = "cf-e560ac:blue:lan1";
40 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
41 };
42
43 lan2 {
44 label = "cf-e560ac:blue:lan2";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 };
47
48 lan3 {
49 label = "cf-e560ac:blue:lan3";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 };
52
53 lan4 {
54 label = "cf-e560ac:blue:lan4";
55 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
56 };
57
58 led_system: system {
59 label = "cf-e560ac:blue:system";
60 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
61 };
62
63 wan {
64 label = "cf-e560ac:blue:wan";
65 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
66 };
67
68 wlan {
69 label = "cf-e560ac:blue:wlan";
70 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
72 };
73 };
74
75 watchdog {
76 compatible = "linux,wdt-gpio";
77 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
78 hw_algo = "toggle";
79 hw_margin_ms = <1200>;
80 always-running;
81 };
82 };
83
84 &spi {
85 status = "okay";
86
87 num-cs = <1>;
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <25000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x010000>;
102 read-only;
103 };
104
105 art: partition@10000 {
106 label = "art";
107 reg = <0x010000 0x010000>;
108 read-only;
109 };
110
111 partition@20000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x020000 0xfc0000>;
115 };
116
117 partition@fe0000 {
118 label = "configs";
119 reg = <0xfe0000 0x010000>;
120 read-only;
121 };
122
123 partition@ff0000 {
124 label = "nvram";
125 reg = <0xff0000 0x010000>;
126 read-only;
127 };
128 };
129 };
130 };
131
132 &pcie0 {
133 status = "okay";
134 };
135
136 &uart {
137 status = "okay";
138 };
139
140 &usb_phy {
141 status = "okay";
142 };
143
144 &usb0 {
145 #address-cells = <1>;
146 #size-cells = <0>;
147 status = "okay";
148
149 port@1 {
150 reg = <1>;
151 #trigger-source-cells = <0>;
152 };
153 };
154
155 &eth0 {
156 status = "okay";
157
158 phy-handle = <&swphy4>;
159
160 mtd-mac-address = <&art 0x0>;
161 mtd-mac-address-increment = <1>;
162 };
163
164 &eth1 {
165 mtd-mac-address = <&art 0x0>;
166 };
167
168 &wmac {
169 status = "okay";
170
171 mtd-cal-data = <&art 0x1000>;
172 mtd-mac-address = <&art 0x0>;
173 mtd-mac-address-increment = <10>;
174 };