ath79: qca: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_comfast_cf-e375ac.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "COMFAST CF-E375AC";
10 compatible = "comfast,cf-e375ac", "qca,qca9563";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_lan;
15 led-failsafe = &led_lan;
16 led-running = &led_lan;
17 led-upgrade = &led_lan;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_lan: lan {
24 label = "green:lan";
25 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
26 };
27
28 wan {
29 label = "red:wan";
30 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
31 };
32
33 wlan2g {
34 label = "blue:wlan2g";
35 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
36 linux,default-trigger = "phy1tpt";
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys";
42
43 reset {
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
47 };
48 };
49
50 watchdog {
51 compatible = "linux,wdt-gpio";
52
53 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
54 hw_algo = "toggle";
55 hw_margin_ms = <500>;
56 always-running;
57 };
58 };
59
60 &pcie {
61 status = "okay";
62 };
63
64 &spi {
65 status = "okay";
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <25000000>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x000000 0x040000>;
80 read-only;
81 };
82
83 art: partition@40000 {
84 label = "art";
85 reg = <0x040000 0x010000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 macaddr_art_0: macaddr@0 {
94 compatible = "mac-base";
95 reg = <0x0 0x6>;
96 #nvmem-cell-cells = <1>;
97 };
98 };
99 };
100
101 partition@50000 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x050000 0xfa0000>;
105 };
106
107 partition@ff0000 {
108 label = "art-backup";
109 reg = <0xff0000 0x010000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &mdio0 {
117 status = "okay";
118
119 phy0: ethernet-phy@0 {
120 reg = <0>;
121 phy-mode = "sgmii";
122 qca,mib-poll-interval = <500>;
123
124 qca,ar8327-initvals = <
125 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
126 0x7c 0x0000007e /* PORT0_STATUS */
127 >;
128 };
129 };
130
131 &eth0 {
132 status = "okay";
133
134 pll-data = <0x03000101 0x00000101 0x00001919>;
135
136 phy-mode = "sgmii";
137 nvmem-cells = <&macaddr_art_0 0>;
138 nvmem-cell-names = "mac-address";
139 phy-handle = <&phy0>;
140 };
141
142 &wmac {
143 status = "okay";
144
145 mtd-cal-data = <&art 0x1000>;
146 nvmem-cells = <&macaddr_art_0 10>;
147 nvmem-cell-names = "mac-address";
148 };