mt76: mt7996: select required kernel and hostap options
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_pcs_cr3000.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.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 model = "PowerCloud Systems CR3000";
11 compatible = "pcs,cr3000", "qca,ar9341";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins>;
25
26 reset {
27 label = "Reset button";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32
33 wps {
34 label = "WPS button";
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_AMBER>;
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 default-state = "on";
49 };
50
51 wlan2g {
52 function = LED_FUNCTION_WLAN;
53 color = <LED_COLOR_ID_BLUE>;
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy0tpt";
56 };
57
58 wan {
59 function = LED_FUNCTION_WAN;
60 color = <LED_COLOR_ID_BLUE>;
61 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
62 };
63
64 lan1 {
65 label = "blue:lan1";
66 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
67 };
68
69 lan2 {
70 label = "blue:lan2";
71 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
72 };
73
74 lan3 {
75 label = "blue:lan3";
76 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
77 };
78
79 lan4 {
80 label = "blue:lan4";
81 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
82 };
83 };
84 };
85
86 &ref {
87 clock-frequency = <25000000>;
88 };
89
90 &spi {
91 status = "okay";
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 reg = <0>;
96 spi-max-frequency = <25000000>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 uboot: partition@0 {
104 label = "u-boot";
105 reg = <0x000000 0x040000>;
106 read-only;
107 };
108
109 partition@40000 {
110 label = "u-boot-env";
111 reg = <0x040000 0x010000>;
112 read-only;
113 };
114
115 partition@50000 {
116 compatible = "denx,uimage";
117 label = "firmware";
118 reg = <0x050000 0x07a0000>;
119 };
120
121 partition@7f0000 {
122 label = "art";
123 reg = <0x7f0000 0x010000>;
124 read-only;
125
126 nvmem-layout {
127 compatible = "fixed-layout";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 macaddr_art_0: macaddr@0 {
132 compatible = "mac-base";
133 reg = <0x0 0x6>;
134 #nvmem-cell-cells = <1>;
135 };
136
137 cal_art_1000: calibration@1000 {
138 reg = <0x1000 0x440>;
139 };
140 };
141 };
142 };
143 };
144 };
145
146 &wmac {
147 status = "okay";
148
149 nvmem-cells = <&cal_art_1000>;
150 nvmem-cell-names = "calibration";
151 };
152
153 &eth0 {
154 status = "okay";
155
156 phy-handle = <&swphy0>;
157 nvmem-cells = <&macaddr_art_0 1>;
158 nvmem-cell-names = "mac-address";
159 };
160
161 &eth1 {
162 phy-handle = <&swphy4>;
163 pll-data = <0x06000000 0x00000101 0x00001616>;
164
165 nvmem-cells = <&macaddr_art_0 0>;
166 nvmem-cell-names = "mac-address";
167
168 gmac-config {
169 device = <&gmac>;
170 switch-phy-swap = <1>;
171 };
172 };