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