xref: /freebsd/sys/contrib/device-tree/src/arm/renesas/emev2.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree Source for the Emma Mobile EV2 SoC
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2012 Renesas Solutions Corp.
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
9*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/ {
12*f126890aSEmmanuel Vadot	compatible = "renesas,emev2";
13*f126890aSEmmanuel Vadot	interrupt-parent = <&gic>;
14*f126890aSEmmanuel Vadot	#address-cells = <1>;
15*f126890aSEmmanuel Vadot	#size-cells = <1>;
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	aliases {
18*f126890aSEmmanuel Vadot		gpio0 = &gpio0;
19*f126890aSEmmanuel Vadot		gpio1 = &gpio1;
20*f126890aSEmmanuel Vadot		gpio2 = &gpio2;
21*f126890aSEmmanuel Vadot		gpio3 = &gpio3;
22*f126890aSEmmanuel Vadot		gpio4 = &gpio4;
23*f126890aSEmmanuel Vadot		i2c0 = &iic0;
24*f126890aSEmmanuel Vadot		i2c1 = &iic1;
25*f126890aSEmmanuel Vadot	};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot	cpus {
28*f126890aSEmmanuel Vadot		#address-cells = <1>;
29*f126890aSEmmanuel Vadot		#size-cells = <0>;
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot		cpu0: cpu@0 {
32*f126890aSEmmanuel Vadot			device_type = "cpu";
33*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a9";
34*f126890aSEmmanuel Vadot			reg = <0>;
35*f126890aSEmmanuel Vadot			clock-frequency = <533000000>;
36*f126890aSEmmanuel Vadot		};
37*f126890aSEmmanuel Vadot		cpu1: cpu@1 {
38*f126890aSEmmanuel Vadot			device_type = "cpu";
39*f126890aSEmmanuel Vadot			compatible = "arm,cortex-a9";
40*f126890aSEmmanuel Vadot			reg = <1>;
41*f126890aSEmmanuel Vadot			clock-frequency = <533000000>;
42*f126890aSEmmanuel Vadot		};
43*f126890aSEmmanuel Vadot	};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot	gic: interrupt-controller@e0020000 {
46*f126890aSEmmanuel Vadot		compatible = "arm,pl390";
47*f126890aSEmmanuel Vadot		interrupt-controller;
48*f126890aSEmmanuel Vadot		#interrupt-cells = <3>;
49*f126890aSEmmanuel Vadot		reg = <0xe0028000 0x1000>,
50*f126890aSEmmanuel Vadot		      <0xe0020000 0x0100>;
51*f126890aSEmmanuel Vadot	};
52*f126890aSEmmanuel Vadot
53*f126890aSEmmanuel Vadot	pmu {
54*f126890aSEmmanuel Vadot		compatible = "arm,cortex-a9-pmu";
55*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
56*f126890aSEmmanuel Vadot			     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
57*f126890aSEmmanuel Vadot		interrupt-affinity = <&cpu0>, <&cpu1>;
58*f126890aSEmmanuel Vadot	};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot	clocks@e0110000 {
61*f126890aSEmmanuel Vadot		compatible = "renesas,emev2-smu";
62*f126890aSEmmanuel Vadot		reg = <0xe0110000 0x10000>;
63*f126890aSEmmanuel Vadot		#address-cells = <2>;
64*f126890aSEmmanuel Vadot		#size-cells = <0>;
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot		c32ki: c32ki {
67*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
68*f126890aSEmmanuel Vadot			clock-frequency = <32768>;
69*f126890aSEmmanuel Vadot			#clock-cells = <0>;
70*f126890aSEmmanuel Vadot		};
71*f126890aSEmmanuel Vadot		iic0_sclkdiv: iic0_sclkdiv@624,0 {
72*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-clkdiv";
73*f126890aSEmmanuel Vadot			reg = <0x624 0>;
74*f126890aSEmmanuel Vadot			clocks = <&pll3_fo>;
75*f126890aSEmmanuel Vadot			#clock-cells = <0>;
76*f126890aSEmmanuel Vadot		};
77*f126890aSEmmanuel Vadot		iic0_sclk: iic0_sclk@48c,1 {
78*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-gclk";
79*f126890aSEmmanuel Vadot			reg = <0x48c 1>;
80*f126890aSEmmanuel Vadot			clocks = <&iic0_sclkdiv>;
81*f126890aSEmmanuel Vadot			#clock-cells = <0>;
82*f126890aSEmmanuel Vadot		};
83*f126890aSEmmanuel Vadot		iic1_sclkdiv: iic1_sclkdiv@624,16 {
84*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-clkdiv";
85*f126890aSEmmanuel Vadot			reg = <0x624 16>;
86*f126890aSEmmanuel Vadot			clocks = <&pll3_fo>;
87*f126890aSEmmanuel Vadot			#clock-cells = <0>;
88*f126890aSEmmanuel Vadot		};
89*f126890aSEmmanuel Vadot		iic1_sclk: iic1_sclk@490,1 {
90*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-gclk";
91*f126890aSEmmanuel Vadot			reg = <0x490 1>;
92*f126890aSEmmanuel Vadot			clocks = <&iic1_sclkdiv>;
93*f126890aSEmmanuel Vadot			#clock-cells = <0>;
94*f126890aSEmmanuel Vadot		};
95*f126890aSEmmanuel Vadot		pll3_fo: pll3_fo {
96*f126890aSEmmanuel Vadot			compatible = "fixed-factor-clock";
97*f126890aSEmmanuel Vadot			clocks = <&c32ki>;
98*f126890aSEmmanuel Vadot			clock-div = <1>;
99*f126890aSEmmanuel Vadot			clock-mult = <7000>;
100*f126890aSEmmanuel Vadot			#clock-cells = <0>;
101*f126890aSEmmanuel Vadot		};
102*f126890aSEmmanuel Vadot		usia_u0_sclkdiv: usia_u0_sclkdiv@610,0 {
103*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-clkdiv";
104*f126890aSEmmanuel Vadot			reg = <0x610 0>;
105*f126890aSEmmanuel Vadot			clocks = <&pll3_fo>;
106*f126890aSEmmanuel Vadot			#clock-cells = <0>;
107*f126890aSEmmanuel Vadot		};
108*f126890aSEmmanuel Vadot		usib_u1_sclkdiv: usib_u1_sclkdiv@65c,0 {
109*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-clkdiv";
110*f126890aSEmmanuel Vadot			reg = <0x65c 0>;
111*f126890aSEmmanuel Vadot			clocks = <&pll3_fo>;
112*f126890aSEmmanuel Vadot			#clock-cells = <0>;
113*f126890aSEmmanuel Vadot		};
114*f126890aSEmmanuel Vadot		usib_u2_sclkdiv: usib_u2_sclkdiv@65c,16 {
115*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-clkdiv";
116*f126890aSEmmanuel Vadot			reg = <0x65c 16>;
117*f126890aSEmmanuel Vadot			clocks = <&pll3_fo>;
118*f126890aSEmmanuel Vadot			#clock-cells = <0>;
119*f126890aSEmmanuel Vadot		};
120*f126890aSEmmanuel Vadot		usib_u3_sclkdiv: usib_u3_sclkdiv@660,0 {
121*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-clkdiv";
122*f126890aSEmmanuel Vadot			reg = <0x660 0>;
123*f126890aSEmmanuel Vadot			clocks = <&pll3_fo>;
124*f126890aSEmmanuel Vadot			#clock-cells = <0>;
125*f126890aSEmmanuel Vadot		};
126*f126890aSEmmanuel Vadot		usia_u0_sclk: usia_u0_sclk@4a0,1 {
127*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-gclk";
128*f126890aSEmmanuel Vadot			reg = <0x4a0 1>;
129*f126890aSEmmanuel Vadot			clocks = <&usia_u0_sclkdiv>;
130*f126890aSEmmanuel Vadot			#clock-cells = <0>;
131*f126890aSEmmanuel Vadot		};
132*f126890aSEmmanuel Vadot		usib_u1_sclk: usib_u1_sclk@4b8,1 {
133*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-gclk";
134*f126890aSEmmanuel Vadot			reg = <0x4b8 1>;
135*f126890aSEmmanuel Vadot			clocks = <&usib_u1_sclkdiv>;
136*f126890aSEmmanuel Vadot			#clock-cells = <0>;
137*f126890aSEmmanuel Vadot		};
138*f126890aSEmmanuel Vadot		usib_u2_sclk: usib_u2_sclk@4bc,1 {
139*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-gclk";
140*f126890aSEmmanuel Vadot			reg = <0x4bc 1>;
141*f126890aSEmmanuel Vadot			clocks = <&usib_u2_sclkdiv>;
142*f126890aSEmmanuel Vadot			#clock-cells = <0>;
143*f126890aSEmmanuel Vadot		};
144*f126890aSEmmanuel Vadot		usib_u3_sclk: usib_u3_sclk@4c0,1 {
145*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-gclk";
146*f126890aSEmmanuel Vadot			reg = <0x4c0 1>;
147*f126890aSEmmanuel Vadot			clocks = <&usib_u3_sclkdiv>;
148*f126890aSEmmanuel Vadot			#clock-cells = <0>;
149*f126890aSEmmanuel Vadot		};
150*f126890aSEmmanuel Vadot		sti_sclk: sti_sclk@528,1 {
151*f126890aSEmmanuel Vadot			compatible = "renesas,emev2-smu-gclk";
152*f126890aSEmmanuel Vadot			reg = <0x528 1>;
153*f126890aSEmmanuel Vadot			clocks = <&c32ki>;
154*f126890aSEmmanuel Vadot			#clock-cells = <0>;
155*f126890aSEmmanuel Vadot		};
156*f126890aSEmmanuel Vadot	};
157*f126890aSEmmanuel Vadot
158*f126890aSEmmanuel Vadot	timer@e0180000 {
159*f126890aSEmmanuel Vadot		compatible = "renesas,em-sti";
160*f126890aSEmmanuel Vadot		reg = <0xe0180000 0x54>;
161*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
162*f126890aSEmmanuel Vadot		clocks = <&sti_sclk>;
163*f126890aSEmmanuel Vadot		clock-names = "sclk";
164*f126890aSEmmanuel Vadot	};
165*f126890aSEmmanuel Vadot
166*f126890aSEmmanuel Vadot	uart0: serial@e1020000 {
167*f126890aSEmmanuel Vadot		compatible = "renesas,em-uart";
168*f126890aSEmmanuel Vadot		reg = <0xe1020000 0x38>;
169*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
170*f126890aSEmmanuel Vadot		clocks = <&usia_u0_sclk>;
171*f126890aSEmmanuel Vadot		clock-names = "sclk";
172*f126890aSEmmanuel Vadot	};
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot	uart1: serial@e1030000 {
175*f126890aSEmmanuel Vadot		compatible = "renesas,em-uart";
176*f126890aSEmmanuel Vadot		reg = <0xe1030000 0x38>;
177*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
178*f126890aSEmmanuel Vadot		clocks = <&usib_u1_sclk>;
179*f126890aSEmmanuel Vadot		clock-names = "sclk";
180*f126890aSEmmanuel Vadot	};
181*f126890aSEmmanuel Vadot
182*f126890aSEmmanuel Vadot	uart2: serial@e1040000 {
183*f126890aSEmmanuel Vadot		compatible = "renesas,em-uart";
184*f126890aSEmmanuel Vadot		reg = <0xe1040000 0x38>;
185*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
186*f126890aSEmmanuel Vadot		clocks = <&usib_u2_sclk>;
187*f126890aSEmmanuel Vadot		clock-names = "sclk";
188*f126890aSEmmanuel Vadot	};
189*f126890aSEmmanuel Vadot
190*f126890aSEmmanuel Vadot	uart3: serial@e1050000 {
191*f126890aSEmmanuel Vadot		compatible = "renesas,em-uart";
192*f126890aSEmmanuel Vadot		reg = <0xe1050000 0x38>;
193*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
194*f126890aSEmmanuel Vadot		clocks = <&usib_u3_sclk>;
195*f126890aSEmmanuel Vadot		clock-names = "sclk";
196*f126890aSEmmanuel Vadot	};
197*f126890aSEmmanuel Vadot
198*f126890aSEmmanuel Vadot	pfc: pinctrl@e0140200 {
199*f126890aSEmmanuel Vadot		compatible = "renesas,pfc-emev2";
200*f126890aSEmmanuel Vadot		reg = <0xe0140200 0x100>;
201*f126890aSEmmanuel Vadot	};
202*f126890aSEmmanuel Vadot
203*f126890aSEmmanuel Vadot	gpio0: gpio@e0050000 {
204*f126890aSEmmanuel Vadot		compatible = "renesas,em-gio";
205*f126890aSEmmanuel Vadot		reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
206*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
207*f126890aSEmmanuel Vadot			     <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
208*f126890aSEmmanuel Vadot		gpio-controller;
209*f126890aSEmmanuel Vadot		gpio-ranges = <&pfc 0 0 32>;
210*f126890aSEmmanuel Vadot		#gpio-cells = <2>;
211*f126890aSEmmanuel Vadot		ngpios = <32>;
212*f126890aSEmmanuel Vadot		interrupt-controller;
213*f126890aSEmmanuel Vadot		#interrupt-cells = <2>;
214*f126890aSEmmanuel Vadot	};
215*f126890aSEmmanuel Vadot
216*f126890aSEmmanuel Vadot	gpio1: gpio@e0050080 {
217*f126890aSEmmanuel Vadot		compatible = "renesas,em-gio";
218*f126890aSEmmanuel Vadot		reg = <0xe0050080 0x2c>, <0xe00500c0 0x20>;
219*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
220*f126890aSEmmanuel Vadot			     <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
221*f126890aSEmmanuel Vadot		gpio-controller;
222*f126890aSEmmanuel Vadot		gpio-ranges = <&pfc 0 32 32>;
223*f126890aSEmmanuel Vadot		#gpio-cells = <2>;
224*f126890aSEmmanuel Vadot		ngpios = <32>;
225*f126890aSEmmanuel Vadot		interrupt-controller;
226*f126890aSEmmanuel Vadot		#interrupt-cells = <2>;
227*f126890aSEmmanuel Vadot	};
228*f126890aSEmmanuel Vadot
229*f126890aSEmmanuel Vadot	gpio2: gpio@e0050100 {
230*f126890aSEmmanuel Vadot		compatible = "renesas,em-gio";
231*f126890aSEmmanuel Vadot		reg = <0xe0050100 0x2c>, <0xe0050140 0x20>;
232*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
233*f126890aSEmmanuel Vadot			     <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
234*f126890aSEmmanuel Vadot		gpio-controller;
235*f126890aSEmmanuel Vadot		gpio-ranges = <&pfc 0 64 32>;
236*f126890aSEmmanuel Vadot		#gpio-cells = <2>;
237*f126890aSEmmanuel Vadot		ngpios = <32>;
238*f126890aSEmmanuel Vadot		interrupt-controller;
239*f126890aSEmmanuel Vadot		#interrupt-cells = <2>;
240*f126890aSEmmanuel Vadot	};
241*f126890aSEmmanuel Vadot
242*f126890aSEmmanuel Vadot	gpio3: gpio@e0050180 {
243*f126890aSEmmanuel Vadot		compatible = "renesas,em-gio";
244*f126890aSEmmanuel Vadot		reg = <0xe0050180 0x2c>, <0xe00501c0 0x20>;
245*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
246*f126890aSEmmanuel Vadot			     <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
247*f126890aSEmmanuel Vadot		gpio-controller;
248*f126890aSEmmanuel Vadot		gpio-ranges = <&pfc 0 96 32>;
249*f126890aSEmmanuel Vadot		#gpio-cells = <2>;
250*f126890aSEmmanuel Vadot		ngpios = <32>;
251*f126890aSEmmanuel Vadot		interrupt-controller;
252*f126890aSEmmanuel Vadot		#interrupt-cells = <2>;
253*f126890aSEmmanuel Vadot	};
254*f126890aSEmmanuel Vadot
255*f126890aSEmmanuel Vadot	gpio4: gpio@e0050200 {
256*f126890aSEmmanuel Vadot		compatible = "renesas,em-gio";
257*f126890aSEmmanuel Vadot		reg = <0xe0050200 0x2c>, <0xe0050240 0x20>;
258*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
259*f126890aSEmmanuel Vadot			     <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
260*f126890aSEmmanuel Vadot		gpio-controller;
261*f126890aSEmmanuel Vadot		gpio-ranges = <&pfc 0 128 31>;
262*f126890aSEmmanuel Vadot		#gpio-cells = <2>;
263*f126890aSEmmanuel Vadot		ngpios = <31>;
264*f126890aSEmmanuel Vadot		interrupt-controller;
265*f126890aSEmmanuel Vadot		#interrupt-cells = <2>;
266*f126890aSEmmanuel Vadot	};
267*f126890aSEmmanuel Vadot
268*f126890aSEmmanuel Vadot	iic0: i2c@e0070000 {
269*f126890aSEmmanuel Vadot		#address-cells = <1>;
270*f126890aSEmmanuel Vadot		#size-cells = <0>;
271*f126890aSEmmanuel Vadot		compatible = "renesas,iic-emev2";
272*f126890aSEmmanuel Vadot		reg = <0xe0070000 0x28>;
273*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
274*f126890aSEmmanuel Vadot		clocks = <&iic0_sclk>;
275*f126890aSEmmanuel Vadot		clock-names = "sclk";
276*f126890aSEmmanuel Vadot		status = "disabled";
277*f126890aSEmmanuel Vadot	};
278*f126890aSEmmanuel Vadot
279*f126890aSEmmanuel Vadot	iic1: i2c@e10a0000 {
280*f126890aSEmmanuel Vadot		#address-cells = <1>;
281*f126890aSEmmanuel Vadot		#size-cells = <0>;
282*f126890aSEmmanuel Vadot		compatible = "renesas,iic-emev2";
283*f126890aSEmmanuel Vadot		reg = <0xe10a0000 0x28>;
284*f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 33 IRQ_TYPE_EDGE_RISING>;
285*f126890aSEmmanuel Vadot		clocks = <&iic1_sclk>;
286*f126890aSEmmanuel Vadot		clock-names = "sclk";
287*f126890aSEmmanuel Vadot		status = "disabled";
288*f126890aSEmmanuel Vadot	};
289*f126890aSEmmanuel Vadot};
290