1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for Cortina systems Gemini SoC
6 /include/ "skeleton.dtsi"
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/clock/cortina,gemini-clock.h>
10 #include <dt-bindings/reset/cortina,gemini-reset.h>
11 #include <dt-bindings/gpio/gpio.h>
18 compatible = "simple-bus";
19 interrupt-parent = <&intcon>;
22 compatible = "cortina,gemini-flash", "cfi-flash";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pflash_default_pins>;
32 syscon: syscon@40000000 {
33 compatible = "cortina,gemini-syscon",
34 "syscon", "simple-mfd";
35 reg = <0x40000000 0x1000>;
40 compatible = "syscon-reboot";
42 /* GLOBAL_RESET register */
44 /* RESET_GLOBAL | RESET_CPU1 */
49 compatible = "cortina,gemini-pinctrl";
51 /* Hog the DRAM pins */
52 pinctrl-names = "default";
53 pinctrl-0 = <&dram_default_pins>, <&system_default_pins>,
54 <&vcontrol_default_pins>;
56 dram_default_pins: pinctrl-dram {
62 rtc_default_pins: pinctrl-rtc {
68 power_default_pins: pinctrl-power {
74 cir_default_pins: pinctrl-cir {
80 system_default_pins: pinctrl-system {
86 vcontrol_default_pins: pinctrl-vcontrol {
88 function = "vcontrol";
89 groups = "vcontrolgrp";
92 ice_default_pins: pinctrl-ice {
98 uart_default_pins: pinctrl-uart {
101 groups = "uartrxtxgrp";
104 pflash_default_pins: pinctrl-pflash {
107 groups = "pflashgrp";
110 usb_default_pins: pinctrl-usb {
116 gmii_default_pins: pinctrl-gmii {
118 * Only activate GMAC0 by default since
119 * GMAC1 will overlap with 8 GPIO lines
120 * gpio2a, gpio2b. Overlay groups with
121 * "gmii_gmac0_grp", "gmii_gmac1_grp" for
122 * both ethernet interfaces.
126 groups = "gmii_gmac0_grp";
129 pci_default_pins: pinctrl-pci {
135 sata_default_pins: pinctrl-sata {
141 /* Activate both groups of pins for this state */
142 sata_and_ide_pins: pinctrl-sata-ide {
152 tvc_default_pins: pinctrl-tvc {
162 compatible = "cortina,gemini-watchdog", "faraday,ftwdt010";
163 reg = <0x41000000 0x1000>;
164 interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
165 resets = <&syscon GEMINI_RESET_WDOG>;
166 clocks = <&syscon GEMINI_CLK_APB>;
167 clock-names = "PCLK";
170 uart0: serial@42000000 {
171 compatible = "ns16550a";
172 reg = <0x42000000 0x100>;
173 resets = <&syscon GEMINI_RESET_UART>;
174 clocks = <&syscon GEMINI_CLK_UART>;
175 interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&uart_default_pins>;
182 compatible = "faraday,fttmr010";
183 reg = <0x43000000 0x1000>;
184 interrupt-parent = <&intcon>;
185 interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */
186 <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */
187 <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */
188 resets = <&syscon GEMINI_RESET_TIMER>;
189 /* APB clock or RTC clock */
190 clocks = <&syscon GEMINI_CLK_APB>, <&syscon GEMINI_CLK_RTC>;
191 clock-names = "PCLK", "EXTCLK";
196 compatible = "cortina,gemini-rtc";
197 reg = <0x45000000 0x100>;
198 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
199 resets = <&syscon GEMINI_RESET_RTC>;
200 clocks = <&syscon GEMINI_CLK_APB>, <&syscon GEMINI_CLK_RTC>;
201 clock-names = "PCLK", "EXTCLK";
202 pinctrl-names = "default";
203 pinctrl-0 = <&rtc_default_pins>;
206 sata: sata@46000000 {
207 compatible = "cortina,gemini-sata-bridge";
208 reg = <0x46000000 0x100>;
209 resets = <&syscon GEMINI_RESET_SATA0>,
210 <&syscon GEMINI_RESET_SATA1>;
211 reset-names = "sata0", "sata1";
212 clocks = <&syscon GEMINI_CLK_GATE_SATA0>,
213 <&syscon GEMINI_CLK_GATE_SATA1>;
214 clock-names = "SATA0_PCLK", "SATA1_PCLK";
216 * This defines the special "ide" state that needs
217 * to be explicitly enabled to enable the IDE pins,
218 * as these pins are normally used for other things.
220 pinctrl-names = "default", "ide";
221 pinctrl-0 = <&sata_default_pins>;
222 pinctrl-1 = <&sata_and_ide_pins>;
227 intcon: interrupt-controller@48000000 {
228 compatible = "faraday,ftintc010";
229 reg = <0x48000000 0x1000>;
230 resets = <&syscon GEMINI_RESET_INTCON0>;
231 interrupt-controller;
232 #interrupt-cells = <2>;
235 power-controller@4b000000 {
236 compatible = "cortina,gemini-power-controller";
237 reg = <0x4b000000 0x100>;
238 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
239 pinctrl-names = "default";
240 pinctrl-0 = <&power_default_pins>;
243 gpio0: gpio@4d000000 {
244 compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
245 reg = <0x4d000000 0x100>;
246 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
247 resets = <&syscon GEMINI_RESET_GPIO0>;
248 clocks = <&syscon GEMINI_CLK_APB>;
251 interrupt-controller;
252 #interrupt-cells = <2>;
255 gpio1: gpio@4e000000 {
256 compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
257 reg = <0x4e000000 0x100>;
258 interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
259 resets = <&syscon GEMINI_RESET_GPIO1>;
260 clocks = <&syscon GEMINI_CLK_APB>;
263 interrupt-controller;
264 #interrupt-cells = <2>;
267 gpio2: gpio@4f000000 {
268 compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
269 reg = <0x4f000000 0x100>;
270 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
271 resets = <&syscon GEMINI_RESET_GPIO2>;
272 clocks = <&syscon GEMINI_CLK_APB>;
275 interrupt-controller;
276 #interrupt-cells = <2>;
280 compatible = "cortina,gemini-pci", "faraday,ftpci100";
282 * The first 256 bytes in the IO range is actually used
283 * to configure the host bridge.
285 reg = <0x50000000 0x100>;
286 resets = <&syscon GEMINI_RESET_PCI>;
287 clocks = <&syscon GEMINI_CLK_GATE_PCI>, <&syscon GEMINI_CLK_PCI>;
288 clock-names = "PCLK", "PCICLK";
289 pinctrl-names = "default";
290 pinctrl-0 = <&pci_default_pins>;
291 #address-cells = <3>;
293 #interrupt-cells = <1>;
296 bus-range = <0x00 0xff>;
297 /* PCI ranges mappings */
299 /* 1MiB I/O space 0x50000000-0x500fffff */
300 <0x01000000 0 0 0x50000000 0 0x00100000>,
301 /* 128MiB non-prefetchable memory 0x58000000-0x5fffffff */
302 <0x02000000 0 0x58000000 0x58000000 0 0x08000000>;
306 /* 128MiB at 0x00000000-0x07ffffff */
307 <0x02000000 0 0x00000000 0x00000000 0 0x08000000>,
308 /* 64MiB at 0x00000000-0x03ffffff */
309 <0x02000000 0 0x00000000 0x00000000 0 0x04000000>,
310 /* 64MiB at 0x00000000-0x03ffffff */
311 <0x02000000 0 0x00000000 0x00000000 0 0x04000000>;
314 * This PCI host bridge variant has a cascaded interrupt
315 * controller embedded in the host bridge.
317 pci_intc: interrupt-controller {
318 interrupt-parent = <&intcon>;
319 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
320 interrupt-controller;
321 #address-cells = <0>;
322 #interrupt-cells = <1>;
327 compatible = "cortina,gemini-ethernet";
328 reg = <0x60000000 0x4000>, /* Global registers, queue */
329 <0x60004000 0x2000>, /* V-bit */
330 <0x60006000 0x2000>; /* A-bit */
331 pinctrl-names = "default";
332 pinctrl-0 = <&gmii_default_pins>;
334 #address-cells = <1>;
338 gmac0: ethernet-port@0 {
339 compatible = "cortina,gemini-ethernet-port";
340 reg = <0x60008000 0x2000>, /* Port 0 DMA/TOE */
341 <0x6000a000 0x2000>; /* Port 0 GMAC */
342 interrupt-parent = <&intcon>;
343 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
344 resets = <&syscon GEMINI_RESET_GMAC0>;
345 clocks = <&syscon GEMINI_CLK_GATE_GMAC0>;
346 clock-names = "PCLK";
349 gmac1: ethernet-port@1 {
350 compatible = "cortina,gemini-ethernet-port";
351 reg = <0x6000c000 0x2000>, /* Port 1 DMA/TOE */
352 <0x6000e000 0x2000>; /* Port 1 GMAC */
353 interrupt-parent = <&intcon>;
354 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
355 resets = <&syscon GEMINI_RESET_GMAC1>;
356 clocks = <&syscon GEMINI_CLK_GATE_GMAC1>;
357 clock-names = "PCLK";
362 compatible = "cortina,gemini-pata", "faraday,ftide010";
363 reg = <0x63000000 0x1000>;
364 interrupts = <4 IRQ_TYPE_EDGE_RISING>;
365 resets = <&syscon GEMINI_RESET_IDE>;
366 clocks = <&syscon GEMINI_CLK_GATE_IDE>;
367 clock-names = "PCLK";
373 compatible = "cortina,gemini-pata", "faraday,ftide010";
374 reg = <0x63400000 0x1000>;
375 interrupts = <5 IRQ_TYPE_EDGE_RISING>;
376 resets = <&syscon GEMINI_RESET_IDE>;
377 clocks = <&syscon GEMINI_CLK_GATE_IDE>;
378 clock-names = "PCLK";
383 dma-controller@67000000 {
384 compatible = "faraday,ftdma020", "arm,pl080", "arm,primecell";
385 /* Faraday Technology FTDMAC020 variant */
386 arm,primecell-periphid = <0x0003b080>;
387 reg = <0x67000000 0x1000>;
388 interrupts = <9 IRQ_TYPE_EDGE_RISING>;
389 resets = <&syscon GEMINI_RESET_DMAC>;
390 clocks = <&syscon GEMINI_CLK_AHB>;
391 clock-names = "apb_pclk";
392 /* Bus interface AHB1 (AHB0) is totally tilted */
393 lli-bus-interface-ahb2;
394 mem-bus-interface-ahb2;
395 memcpy-burst-size = <256>;
396 memcpy-bus-width = <32>;
400 display-controller@6a000000 {
401 compatible = "cortina,gemini-tvc", "faraday,tve200";
402 reg = <0x6a000000 0x1000>;
403 interrupts = <13 IRQ_TYPE_EDGE_RISING>;
404 resets = <&syscon GEMINI_RESET_TVC>;
405 clocks = <&syscon GEMINI_CLK_GATE_TVC>,
406 <&syscon GEMINI_CLK_TVC>;
407 clock-names = "PCLK", "TVE";
408 pinctrl-names = "default";
409 pinctrl-0 = <&tvc_default_pins>;
410 #address-cells = <1>;