208840ebba2f04fd8ba5551e3cc57d465eddc1e2
[openwrt/staging/hauke.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
8 / {
9 compatible = "comfast,cf-e380ac-v2", "qca,qca9558";
10 model = "COMFAST CF-E380AC";
11
12 aliases {
13 serial0 = &uart;
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 label = "green:lan";
39 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
40 };
41
42 wlan2g {
43 label = "blue:wlan2g";
44 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "phy1tpt";
46 };
47
48 wlan5g {
49 label = "red:wlan5g";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
52 };
53 };
54
55 watchdog {
56 compatible = "linux,wdt-gpio";
57
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59 hw_algo = "toggle";
60 hw_margin_ms = <1200>;
61 always-running;
62 };
63 };
64
65 &eth0 {
66 status = "okay";
67 mtd-mac-address = <&art 0x0>;
68 };
69
70
71 &spi {
72 status = "okay";
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <50000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 art: partition@40000 {
91 label = "art";
92 reg = <0x040000 0x010000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 macaddr_art_0: macaddr@0 {
101 reg = <0x0 0x6>;
102 };
103 };
104 };
105
106 partition@50000 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x050000 0x0fa0000>;
110 };
111
112 partition@ff0000 {
113 label = "art-backup";
114 reg = <0xff0000 0x010000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &eth0 {
122 status = "okay";
123
124 nvmem-cells = <&macaddr_art_0>;
125 nvmem-cell-names = "mac-address";
126
127 pll-data = <0xbe000000 0xb0000101 0xb0001313>;
128
129 fixed-link {
130 speed = <1000>;
131 full-duplex;
132 };
133 };
134
135 &pcie0 {
136 status = "okay";
137 };
138
139 &wdt {
140 status = "okay";
141 };
142
143 &wmac {
144 status = "okay";
145
146 mtd-cal-data = <&art 0x1000>;
147 nvmem-cells = <&macaddr_art_0>;
148 nvmem-cell-names = "mac-address";
149 mac-address-increment = <10>;
150 };