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