ath79: drop num-cs for SPI controller
[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
8 / {
9 model = "PowerCloud Systems CR3000";
10 compatible = "pcs,cr3000", "qca,ar9341";
11
12 aliases {
13 serial0 = &uart;
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 label = "amber:power";
46 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 default-state = "on";
48 };
49
50 wlan2g {
51 label = "blue:wlan";
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
54 };
55
56 wan {
57 label = "blue:wan";
58 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
59 };
60
61 lan1 {
62 label = "blue:lan1";
63 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
64 };
65
66 lan2 {
67 label = "blue:lan2";
68 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
69 };
70
71 lan3 {
72 label = "blue:lan3";
73 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
74 };
75
76 lan4 {
77 label = "blue:lan4";
78 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
79 };
80 };
81 };
82
83 &ref {
84 clock-frequency = <25000000>;
85 };
86
87 &uart {
88 status = "okay";
89 };
90
91 &spi {
92 status = "okay";
93
94 flash@0 {
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <25000000>;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 uboot: partition@0 {
105 label = "u-boot";
106 reg = <0x000000 0x040000>;
107 read-only;
108 };
109
110 partition@40000 {
111 label = "u-boot-env";
112 reg = <0x040000 0x010000>;
113 read-only;
114 };
115
116 partition@50000 {
117 compatible = "denx,uimage";
118 label = "firmware";
119 reg = <0x050000 0x07a0000>;
120 };
121
122 art: partition@7f0000 {
123 label = "art";
124 reg = <0x7f0000 0x010000>;
125 read-only;
126 };
127 };
128 };
129 };
130
131 &wmac {
132 status = "okay";
133
134 mtd-cal-data = <&art 0x1000>;
135 };
136
137 &eth0 {
138 status = "okay";
139
140 phy-handle = <&swphy0>;
141 mtd-mac-address = <&art 0x0>;
142 mtd-mac-address-increment = <1>;
143 };
144
145 &eth1 {
146 phy-handle = <&swphy4>;
147 pll-data = <0x06000000 0x00000101 0x00001616>;
148
149 mtd-mac-address = <&art 0x0>;
150
151 gmac-config {
152 device = <&gmac>;
153 switch-phy-swap = <1>;
154 };
155 };