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