kirkwood: set testing kernel version to 5.10
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar7100.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ath79.dtsi"
4
5 / {
6 compatible = "qca,ar7100";
7
8 chosen {
9 bootargs = "console=ttyS0,115200";
10 };
11
12 cpus {
13 #address-cells = <1>;
14 #size-cells = <0>;
15
16 cpu@0 {
17 device_type = "cpu";
18 compatible = "mips,mips24Kc";
19 clocks = <&pll ATH79_CLK_CPU>;
20 reg = <0>;
21 };
22 };
23
24 ahb {
25 apb {
26 ddr_ctrl: memory-controller@18000000 {
27 compatible = "qca,ar7100-ddr-controller";
28 reg = <0x18000000 0x100>;
29
30 #qca,ddr-wb-channel-cells = <1>;
31 };
32
33 uart: uart@18020000 {
34 compatible = "ns16550a";
35 reg = <0x18020000 0x20>;
36 interrupts = <3>;
37
38 clocks = <&pll ATH79_CLK_AHB>;
39 clock-names = "uart";
40
41 reg-io-width = <4>;
42 reg-shift = <2>;
43 no-loopback-test;
44
45 status = "disabled";
46 };
47
48 usb_phy: usb-phy@18030000 {
49 compatible = "qca,ar7100-usb-phy";
50 reg = <0x18030000 0x10>;
51
52 reset-names = "usb-phy", "usb-host", "usb-ohci-dll";
53 resets = <&rst 4>, <&rst 5>, <&rst 6>;
54
55 #phy-cells = <0>;
56
57 status = "disabled";
58 };
59
60 gpio: gpio@18040000 {
61 compatible = "qca,ar7100-gpio";
62 reg = <0x18040000 0x30>;
63 interrupts = <2>;
64
65 ngpios = <16>;
66
67 gpio-controller;
68 #gpio-cells = <2>;
69
70 interrupt-controller;
71 #interrupt-cells = <2>;
72 };
73
74 pll: pll-controller@18050000 {
75 compatible = "qca,ar7100-pll", "syscon";
76 reg = <0x18050000 0x20>;
77
78 clock-names = "ref";
79 /* The board must provides the ref clock */
80
81 #clock-cells = <1>;
82 clock-output-names = "cpu", "ddr", "ahb";
83 };
84
85 wdt: wdt@18060008 {
86 compatible = "qca,ar7130-wdt";
87 reg = <0x18060008 0x8>;
88
89 interrupts = <4>;
90
91 clocks = <&pll ATH79_CLK_AHB>;
92 clock-names = "wdt";
93 };
94
95 pci_intc: interrupt-controller@18060018 {
96 compatible = "qca,ar7100-misc-intc";
97 reg = <0x18060018 0x4>;
98 interrupt-parent = <&cpuintc>;
99 interrupts = <2>;
100 interrupt-controller;
101 #interrupt-cells = <1>;
102 };
103
104 rst: reset-controller@18060024 {
105 compatible = "qca,ar7100-reset";
106 reg = <0x18060024 0x4>;
107
108 #reset-cells = <1>;
109 };
110
111 pcie0: pcie-controller@17010000 {
112 compatible = "qca,ar7100-pci";
113 #address-cells = <3>;
114 #size-cells = <2>;
115 bus-range = <0x0 0x0>;
116 reg = <0x17010000 0x100>;
117 reg-names = "cfg_base";
118 ranges = <0x2000000 0 0x10000000 0x10000000 0 0x07000000 /* pci memory */
119 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
120
121 device_type = "pci";
122
123 interrupt-parent = <&pci_intc>;
124 interrupts = <4>;
125
126 #interrupt-cells = <1>;
127
128 interrupt-map-mask = <0xf800 0 0 0>;
129 interrupt-map = <0x8800 0 0 0 &pci_intc 0
130 0x9000 0 0 0 &pci_intc 1
131 0x9800 0 0 0 &pci_intc 2>;
132
133 status = "disabled";
134 };
135 };
136 };
137
138 usb2: usb@1b000000 {
139 compatible = "generic-ehci";
140 reg = <0x1b000000 0x1000>;
141
142 interrupt-parent = <&cpuintc>;
143 interrupts = <3>;
144
145 phy-names = "usb-phy";
146 phys = <&usb_phy>;
147
148 has-synopsys-hc-bug;
149
150 status = "disabled";
151 };
152
153 usb1: usb@1c000000 {
154 compatible = "generic-ohci";
155 reg = <0x1c000000 0x1000>;
156
157 interrupt-parent = <&miscintc>;
158 interrupts = <6>;
159
160 phy-names = "usb-phy";
161 phys = <&usb_phy>;
162
163 status = "disabled";
164 };
165
166 spi: spi@1f000000 {
167 compatible = "qca,ar7100-spi";
168 reg = <0x1f000000 0x10>;
169
170 clocks = <&pll ATH79_CLK_AHB>;
171 clock-names = "ahb";
172
173 #address-cells = <1>;
174 #size-cells = <0>;
175
176 status = "disabled";
177 };
178 };
179
180 &cpuintc {
181 qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
182 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
183 <&ddr_ctrl 0>, <&ddr_ctrl 1>;
184 };
185
186 &miscintc {
187 compatible = "qca,ar7100-misc-intc";
188 };
189
190 &eth0 {
191 compatible = "qca,ar7100-eth", "syscon";
192 reg = <0x19000000 0x200
193 0x18070000 0x4>;
194
195 pll-data = <0x00110000 0x00001099 0x00991099>;
196 pll-reg = <0x4 0x10 17>;
197 pll-handle = <&pll>;
198 phy-mode = "rgmii";
199
200 resets = <&rst 9>;
201 reset-names = "mac";
202 qca,mac-idx = <0>;
203 };
204
205 &mdio1 {
206 builtin-switch;
207 };
208
209 &eth1 {
210 compatible = "qca,ar7100-eth", "syscon";
211 reg = <0x1a000000 0x200
212 0x18070004 0x4>;
213
214 pll-data = <0x00110000 0x00001099 0x00991099>;
215 pll-reg = <0x4 0x14 19>;
216 pll-handle = <&pll>;
217
218 phy-mode = "rgmii";
219
220 resets = <&rst 13>;
221 reset-names = "mac";
222 qca,mac-idx = <1>;
223 };