linux-atm: fix build with GCC 14
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_comfast_cf-e380ac-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "comfast,cf-e380ac-v2", "qca,qca9558";
11 model = "COMFAST CF-E380AC";
12
13 aliases {
14 label-mac-device = &eth1;
15 led-boot = &led_lan;
16 led-failsafe = &led_lan;
17 led-upgrade = &led_lan;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 19 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 led_lan: lan {
38 function = LED_FUNCTION_LAN;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan2g {
44 label = "blue:wlan2g";
45 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "phy1tpt";
47 };
48
49 wlan5g {
50 label = "red:wlan5g";
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54 };
55
56 watchdog {
57 compatible = "linux,wdt-gpio";
58
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
60 hw_algo = "toggle";
61 hw_margin_ms = <1200>;
62 always-running;
63 };
64 };
65
66 &eth0 {
67 status = "okay";
68 mtd-mac-address = <&art 0x0>;
69 };
70
71
72 &spi {
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <50000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x000000 0x040000>;
88 read-only;
89 };
90
91 art: partition@40000 {
92 label = "art";
93 reg = <0x040000 0x010000>;
94 read-only;
95
96 nvmem-layout {
97 compatible = "fixed-layout";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 macaddr_art_0: macaddr@0 {
102 compatible = "mac-base";
103 reg = <0x0 0x6>;
104 #nvmem-cell-cells = <1>;
105 };
106
107 cal_art_5000: calibration@5000 {
108 reg = <0x5000 0x844>;
109 };
110 };
111 };
112
113 partition@50000 {
114 compatible = "denx,uimage";
115 label = "firmware";
116 reg = <0x050000 0x0fa0000>;
117 };
118
119 partition@ff0000 {
120 label = "art-backup";
121 reg = <0xff0000 0x010000>;
122 read-only;
123 };
124 };
125 };
126 };
127
128 &eth0 {
129 status = "okay";
130
131 nvmem-cells = <&macaddr_art_0 0>;
132 nvmem-cell-names = "mac-address";
133
134 pll-data = <0xbe000000 0xb0000101 0xb0001313>;
135
136 fixed-link {
137 speed = <1000>;
138 full-duplex;
139 };
140 };
141
142 &pcie0 {
143 status = "okay";
144
145 wifi@0,0 {
146 compatible = "qcom,ath10k";
147 reg = <0x0000 0 0 0 0>;
148 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
149 nvmem-cell-names = "calibration", "mac-address";
150 };
151 };
152
153 &wdt {
154 status = "okay";
155 };
156
157 &wmac {
158 status = "okay";
159
160 mtd-cal-data = <&art 0x1000>;
161 nvmem-cells = <&macaddr_art_0 10>;
162 nvmem-cell-names = "mac-address";
163 };