xref: /freebsd/sys/contrib/device-tree/src/arm/st/spear310.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * DTS file for SPEAr310 SoC
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright 2012 Viresh Kumar <vireshk@kernel.org>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/include/ "spear3xx.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	ahb {
12*f126890aSEmmanuel Vadot		#address-cells = <1>;
13*f126890aSEmmanuel Vadot		#size-cells = <1>;
14*f126890aSEmmanuel Vadot		compatible = "simple-bus";
15*f126890aSEmmanuel Vadot		ranges = <0x40000000 0x40000000 0x10000000
16*f126890aSEmmanuel Vadot			  0xb0000000 0xb0000000 0x10000000
17*f126890aSEmmanuel Vadot			  0xd0000000 0xd0000000 0x30000000>;
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot		pinmux: pinmux@b4000000 {
20*f126890aSEmmanuel Vadot			compatible = "st,spear310-pinmux";
21*f126890aSEmmanuel Vadot			reg = <0xb4000000 0x1000>;
22*f126890aSEmmanuel Vadot			#gpio-range-cells = <3>;
23*f126890aSEmmanuel Vadot		};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot		fsmc: flash@44000000 {
26*f126890aSEmmanuel Vadot			compatible = "st,spear600-fsmc-nand";
27*f126890aSEmmanuel Vadot			#address-cells = <1>;
28*f126890aSEmmanuel Vadot			#size-cells = <1>;
29*f126890aSEmmanuel Vadot			reg = <0x44000000 0x1000	/* FSMC Register */
30*f126890aSEmmanuel Vadot			       0x40000000 0x0010	/* NAND Base DATA */
31*f126890aSEmmanuel Vadot			       0x40020000 0x0010	/* NAND Base ADDR */
32*f126890aSEmmanuel Vadot			       0x40010000 0x0010>;	/* NAND Base CMD */
33*f126890aSEmmanuel Vadot			reg-names = "fsmc_regs", "nand_data", "nand_addr", "nand_cmd";
34*f126890aSEmmanuel Vadot			status = "disabled";
35*f126890aSEmmanuel Vadot		};
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot		shirq: interrupt-controller@b4000000 {
38*f126890aSEmmanuel Vadot			compatible = "st,spear310-shirq";
39*f126890aSEmmanuel Vadot			reg = <0xb4000000 0x1000>;
40*f126890aSEmmanuel Vadot			interrupts = <28 29 30 1>;
41*f126890aSEmmanuel Vadot			#interrupt-cells = <1>;
42*f126890aSEmmanuel Vadot			interrupt-controller;
43*f126890aSEmmanuel Vadot		};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot		apb {
46*f126890aSEmmanuel Vadot			#address-cells = <1>;
47*f126890aSEmmanuel Vadot			#size-cells = <1>;
48*f126890aSEmmanuel Vadot			compatible = "simple-bus";
49*f126890aSEmmanuel Vadot			ranges = <0xb0000000 0xb0000000 0x10000000
50*f126890aSEmmanuel Vadot				  0xd0000000 0xd0000000 0x30000000>;
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot			serial@b2000000 {
53*f126890aSEmmanuel Vadot				compatible = "arm,pl011", "arm,primecell";
54*f126890aSEmmanuel Vadot				reg = <0xb2000000 0x1000>;
55*f126890aSEmmanuel Vadot				interrupts = <8>;
56*f126890aSEmmanuel Vadot				interrupt-parent = <&shirq>;
57*f126890aSEmmanuel Vadot				status = "disabled";
58*f126890aSEmmanuel Vadot			};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot			serial@b2080000 {
61*f126890aSEmmanuel Vadot				compatible = "arm,pl011", "arm,primecell";
62*f126890aSEmmanuel Vadot				reg = <0xb2080000 0x1000>;
63*f126890aSEmmanuel Vadot				interrupts = <9>;
64*f126890aSEmmanuel Vadot				interrupt-parent = <&shirq>;
65*f126890aSEmmanuel Vadot				status = "disabled";
66*f126890aSEmmanuel Vadot			};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot			serial@b2100000 {
69*f126890aSEmmanuel Vadot				compatible = "arm,pl011", "arm,primecell";
70*f126890aSEmmanuel Vadot				reg = <0xb2100000 0x1000>;
71*f126890aSEmmanuel Vadot				interrupts = <10>;
72*f126890aSEmmanuel Vadot				interrupt-parent = <&shirq>;
73*f126890aSEmmanuel Vadot				status = "disabled";
74*f126890aSEmmanuel Vadot			};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot			serial@b2180000 {
77*f126890aSEmmanuel Vadot				compatible = "arm,pl011", "arm,primecell";
78*f126890aSEmmanuel Vadot				reg = <0xb2180000 0x1000>;
79*f126890aSEmmanuel Vadot				interrupts = <11>;
80*f126890aSEmmanuel Vadot				interrupt-parent = <&shirq>;
81*f126890aSEmmanuel Vadot				status = "disabled";
82*f126890aSEmmanuel Vadot			};
83*f126890aSEmmanuel Vadot
84*f126890aSEmmanuel Vadot			serial@b2200000 {
85*f126890aSEmmanuel Vadot				compatible = "arm,pl011", "arm,primecell";
86*f126890aSEmmanuel Vadot				reg = <0xb2200000 0x1000>;
87*f126890aSEmmanuel Vadot				interrupts = <12>;
88*f126890aSEmmanuel Vadot				interrupt-parent = <&shirq>;
89*f126890aSEmmanuel Vadot				status = "disabled";
90*f126890aSEmmanuel Vadot			};
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot			gpiopinctrl: gpio@b4000000 {
93*f126890aSEmmanuel Vadot				compatible = "st,spear-plgpio";
94*f126890aSEmmanuel Vadot				reg = <0xb4000000 0x1000>;
95*f126890aSEmmanuel Vadot				regmap = <&pinmux>;
96*f126890aSEmmanuel Vadot				#interrupt-cells = <1>;
97*f126890aSEmmanuel Vadot				interrupt-controller;
98*f126890aSEmmanuel Vadot				gpio-controller;
99*f126890aSEmmanuel Vadot				#gpio-cells = <2>;
100*f126890aSEmmanuel Vadot				gpio-ranges = <&pinmux 0 0 102>;
101*f126890aSEmmanuel Vadot				status = "disabled";
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot				st-plgpio,ngpio = <102>;
104*f126890aSEmmanuel Vadot				st-plgpio,enb-reg = <0x10>;
105*f126890aSEmmanuel Vadot				st-plgpio,wdata-reg = <0x20>;
106*f126890aSEmmanuel Vadot				st-plgpio,dir-reg = <0x30>;
107*f126890aSEmmanuel Vadot				st-plgpio,ie-reg = <0x50>;
108*f126890aSEmmanuel Vadot				st-plgpio,rdata-reg = <0x40>;
109*f126890aSEmmanuel Vadot				st-plgpio,mis-reg = <0x60>;
110*f126890aSEmmanuel Vadot			};
111*f126890aSEmmanuel Vadot		};
112*f126890aSEmmanuel Vadot	};
113*f126890aSEmmanuel Vadot};
114