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