ath79: qca: remove mac-address-increment
[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 = "blue:lan1";
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 };
41
42 lan2 {
43 label = "blue:lan2";
44 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
45 };
46
47 lan3 {
48 label = "blue:lan3";
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
50 };
51
52 lan4 {
53 label = "blue:lan4";
54 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
55 };
56
57 led_system: system {
58 label = "blue:system";
59 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
60 };
61
62 wan {
63 label = "blue:wan";
64 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
65 };
66
67 wlan {
68 label = "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 flash@0 {
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <25000000>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 partition@0 {
97 label = "u-boot";
98 reg = <0x000000 0x010000>;
99 read-only;
100 };
101
102 art: partition@10000 {
103 label = "art";
104 reg = <0x010000 0x010000>;
105 read-only;
106
107 nvmem-layout {
108 compatible = "fixed-layout";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 macaddr_art_0: macaddr@0 {
113 compatible = "mac-base";
114 reg = <0x0 0x6>;
115 #nvmem-cell-cells = <1>;
116 };
117 };
118 };
119
120 partition@20000 {
121 compatible = "denx,uimage";
122 label = "firmware";
123 reg = <0x020000 0xfc0000>;
124 };
125
126 partition@fe0000 {
127 label = "configs";
128 reg = <0xfe0000 0x010000>;
129 read-only;
130 };
131
132 partition@ff0000 {
133 label = "nvram";
134 reg = <0xff0000 0x010000>;
135 read-only;
136 };
137 };
138 };
139 };
140
141 &pcie0 {
142 status = "okay";
143 };
144
145 &usb_phy {
146 status = "okay";
147 };
148
149 &usb0 {
150 status = "okay";
151 };
152
153 &eth0 {
154 status = "okay";
155
156 phy-handle = <&swphy4>;
157
158 nvmem-cells = <&macaddr_art_0 1>;
159 nvmem-cell-names = "mac-address";
160 };
161
162 &eth1 {
163 nvmem-cells = <&macaddr_art_0 0>;
164 nvmem-cell-names = "mac-address";
165 };
166
167 &wmac {
168 status = "okay";
169
170 mtd-cal-data = <&art 0x1000>;
171 nvmem-cells = <&macaddr_art_0 10>;
172 nvmem-cell-names = "mac-address";
173 };