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