20c970095200eb3d07eb4bf045e08bc5d5af46b9
[openwrt/staging/hauke.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
89 partition@50000 {
90 compatible = "denx,uimage";
91 label = "firmware";
92 reg = <0x050000 0xfa0000>;
93 };
94
95 partition@ff0000 {
96 label = "art-backup";
97 reg = <0xff0000 0x010000>;
98 read-only;
99 };
100 };
101 };
102 };
103
104 &mdio0 {
105 status = "okay";
106
107 phy0: ethernet-phy@0 {
108 reg = <0>;
109 phy-mode = "sgmii";
110 qca,mib-poll-interval = <500>;
111
112 qca,ar8327-initvals = <
113 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
114 0x7c 0x0000007e /* PORT0_STATUS */
115 >;
116 };
117 };
118
119 &eth0 {
120 status = "okay";
121
122 pll-data = <0x03000101 0x00000101 0x00001919>;
123
124 phy-mode = "sgmii";
125 nvmem-cells = <&macaddr_art_0>;
126 nvmem-cell-names = "mac-address";
127 phy-handle = <&phy0>;
128 };
129
130 &wmac {
131 status = "okay";
132
133 mtd-cal-data = <&art 0x1000>;
134 nvmem-cells = <&macaddr_art_0>;
135 nvmem-cell-names = "mac-address";
136 mac-address-increment = <10>;
137 };
138
139 &art {
140 compatible = "nvmem-cells";
141 #address-cells = <1>;
142 #size-cells = <1>;
143
144 macaddr_art_0: macaddr@0 {
145 reg = <0x0 0x6>;
146 };
147 };