blob: cd119400f440bb5a0dea1cf9b6002f76040ecf26 [file] [log] [blame]
Magnus Damm3d5de272012-05-16 15:45:54 +09001/*
2 * Device Tree Source for the EMEV2 SoC
3 *
4 * Copyright (C) 2012 Renesas Solutions Corp.
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
Magnus Dammcef20af02013-11-14 08:03:45 +090011#include "skeleton.dtsi"
Simon Hormanb14ce232016-01-28 10:29:54 +090012#include <dt-bindings/interrupt-controller/arm-gic.h>
Laurent Pinchart3dc76082013-11-28 17:37:50 +010013#include <dt-bindings/interrupt-controller/irq.h>
Magnus Damm3d5de272012-05-16 15:45:54 +090014
15/ {
16 compatible = "renesas,emev2";
17 interrupt-parent = <&gic>;
18
Magnus Damm12d035b2013-07-02 18:27:57 +090019 aliases {
20 gpio0 = &gpio0;
21 gpio1 = &gpio1;
22 gpio2 = &gpio2;
23 gpio3 = &gpio3;
24 gpio4 = &gpio4;
Wolfram Sangcd42d042015-07-11 09:46:25 +020025 i2c0 = &iic0;
26 i2c1 = &iic1;
Magnus Damm12d035b2013-07-02 18:27:57 +090027 };
28
Magnus Damm3d5de272012-05-16 15:45:54 +090029 cpus {
Simon Hormanfe681d22013-01-28 09:41:40 +090030 #address-cells = <1>;
31 #size-cells = <0>;
32
Magnus Damm3d5de272012-05-16 15:45:54 +090033 cpu@0 {
Simon Hormanfe681d22013-01-28 09:41:40 +090034 device_type = "cpu";
Magnus Damm3d5de272012-05-16 15:45:54 +090035 compatible = "arm,cortex-a9";
Simon Hormanfe681d22013-01-28 09:41:40 +090036 reg = <0>;
Magnus Damm11f1ca12014-06-05 14:31:56 +090037 clock-frequency = <533000000>;
Magnus Damm3d5de272012-05-16 15:45:54 +090038 };
39 cpu@1 {
Simon Hormanfe681d22013-01-28 09:41:40 +090040 device_type = "cpu";
Magnus Damm3d5de272012-05-16 15:45:54 +090041 compatible = "arm,cortex-a9";
Simon Hormanfe681d22013-01-28 09:41:40 +090042 reg = <1>;
Magnus Damm11f1ca12014-06-05 14:31:56 +090043 clock-frequency = <533000000>;
Magnus Damm3d5de272012-05-16 15:45:54 +090044 };
45 };
46
47 gic: interrupt-controller@e0020000 {
Geert Uytterhoevenc8a58802015-11-20 13:36:54 +010048 compatible = "arm,pl390";
Magnus Damm3d5de272012-05-16 15:45:54 +090049 interrupt-controller;
50 #interrupt-cells = <3>;
51 reg = <0xe0028000 0x1000>,
52 <0xe0020000 0x0100>;
53 };
54
Magnus Dammc95ebbb2013-07-24 12:42:40 +090055 pmu {
56 compatible = "arm,cortex-a9-pmu";
Simon Hormanb14ce232016-01-28 10:29:54 +090057 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
58 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammc95ebbb2013-07-24 12:42:40 +090059 };
60
Geert Uytterhoeven87982b22014-10-03 17:11:32 +020061 clocks@e0110000 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +090062 compatible = "renesas,emev2-smu";
63 reg = <0xe0110000 0x10000>;
64 #address-cells = <2>;
65 #size-cells = <0>;
66
67 c32ki: c32ki {
68 compatible = "fixed-clock";
69 clock-frequency = <32768>;
70 #clock-cells = <0>;
71 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020072 iic0_sclkdiv: iic0_sclkdiv@624,0 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020073 compatible = "renesas,emev2-smu-clkdiv";
74 reg = <0x624 0>;
75 clocks = <&pll3_fo>;
76 #clock-cells = <0>;
77 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020078 iic0_sclk: iic0_sclk@48c,1 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020079 compatible = "renesas,emev2-smu-gclk";
80 reg = <0x48c 1>;
81 clocks = <&iic0_sclkdiv>;
82 #clock-cells = <0>;
83 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020084 iic1_sclkdiv: iic1_sclkdiv@624,16 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020085 compatible = "renesas,emev2-smu-clkdiv";
86 reg = <0x624 16>;
87 clocks = <&pll3_fo>;
88 #clock-cells = <0>;
89 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020090 iic1_sclk: iic1_sclk@490,1 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020091 compatible = "renesas,emev2-smu-gclk";
92 reg = <0x490 1>;
93 clocks = <&iic1_sclkdiv>;
94 #clock-cells = <0>;
95 };
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +090096 pll3_fo: pll3_fo {
97 compatible = "fixed-factor-clock";
98 clocks = <&c32ki>;
99 clock-div = <1>;
100 clock-mult = <7000>;
101 #clock-cells = <0>;
102 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200103 usia_u0_sclkdiv: usia_u0_sclkdiv@610,0 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900104 compatible = "renesas,emev2-smu-clkdiv";
105 reg = <0x610 0>;
106 clocks = <&pll3_fo>;
107 #clock-cells = <0>;
108 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200109 usib_u1_sclkdiv: usib_u1_sclkdiv@65c,0 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900110 compatible = "renesas,emev2-smu-clkdiv";
111 reg = <0x65c 0>;
112 clocks = <&pll3_fo>;
113 #clock-cells = <0>;
114 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200115 usib_u2_sclkdiv: usib_u2_sclkdiv@65c,16 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900116 compatible = "renesas,emev2-smu-clkdiv";
117 reg = <0x65c 16>;
118 clocks = <&pll3_fo>;
119 #clock-cells = <0>;
120 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200121 usib_u3_sclkdiv: usib_u3_sclkdiv@660,0 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900122 compatible = "renesas,emev2-smu-clkdiv";
123 reg = <0x660 0>;
124 clocks = <&pll3_fo>;
125 #clock-cells = <0>;
126 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200127 usia_u0_sclk: usia_u0_sclk@4a0,1 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900128 compatible = "renesas,emev2-smu-gclk";
129 reg = <0x4a0 1>;
130 clocks = <&usia_u0_sclkdiv>;
131 #clock-cells = <0>;
132 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200133 usib_u1_sclk: usib_u1_sclk@4b8,1 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900134 compatible = "renesas,emev2-smu-gclk";
135 reg = <0x4b8 1>;
136 clocks = <&usib_u1_sclkdiv>;
137 #clock-cells = <0>;
138 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200139 usib_u2_sclk: usib_u2_sclk@4bc,1 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900140 compatible = "renesas,emev2-smu-gclk";
141 reg = <0x4bc 1>;
142 clocks = <&usib_u2_sclkdiv>;
143 #clock-cells = <0>;
144 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200145 usib_u3_sclk: usib_u3_sclk@4c0,1 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900146 compatible = "renesas,emev2-smu-gclk";
147 reg = <0x4c0 1>;
148 clocks = <&usib_u3_sclkdiv>;
149 #clock-cells = <0>;
150 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200151 sti_sclk: sti_sclk@528,1 {
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900152 compatible = "renesas,emev2-smu-gclk";
153 reg = <0x528 1>;
154 clocks = <&c32ki>;
155 #clock-cells = <0>;
156 };
157 };
158
Geert Uytterhoeven87982b22014-10-03 17:11:32 +0200159 timer@e0180000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900160 compatible = "renesas,em-sti";
161 reg = <0xe0180000 0x54>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900162 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900163 clocks = <&sti_sclk>;
164 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900165 };
166
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200167 uart0: serial@e1020000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900168 compatible = "renesas,em-uart";
169 reg = <0xe1020000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900170 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900171 clocks = <&usia_u0_sclk>;
172 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900173 };
174
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200175 uart1: serial@e1030000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900176 compatible = "renesas,em-uart";
177 reg = <0xe1030000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900178 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900179 clocks = <&usib_u1_sclk>;
180 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900181 };
182
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200183 uart2: serial@e1040000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900184 compatible = "renesas,em-uart";
185 reg = <0xe1040000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900186 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900187 clocks = <&usib_u2_sclk>;
188 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900189 };
190
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200191 uart3: serial@e1050000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900192 compatible = "renesas,em-uart";
193 reg = <0xe1050000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900194 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd22013-10-08 14:33:07 +0900195 clocks = <&usib_u3_sclk>;
196 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900197 };
Magnus Damm12d035b2013-07-02 18:27:57 +0900198
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100199 pfc: pfc@e0140200 {
200 compatible = "renesas,pfc-emev2";
201 reg = <0xe0140200 0x100>;
202 };
203
Magnus Damm12d035b2013-07-02 18:27:57 +0900204 gpio0: gpio@e0050000 {
205 compatible = "renesas,em-gio";
206 reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900207 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
208 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900209 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100210 gpio-ranges = <&pfc 0 0 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900211 #gpio-cells = <2>;
212 ngpios = <32>;
213 interrupt-controller;
214 #interrupt-cells = <2>;
215 };
216 gpio1: gpio@e0050080 {
217 compatible = "renesas,em-gio";
218 reg = <0xe0050080 0x2c>, <0xe00500c0 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900219 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
220 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900221 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100222 gpio-ranges = <&pfc 0 32 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900223 #gpio-cells = <2>;
224 ngpios = <32>;
225 interrupt-controller;
226 #interrupt-cells = <2>;
227 };
228 gpio2: gpio@e0050100 {
229 compatible = "renesas,em-gio";
230 reg = <0xe0050100 0x2c>, <0xe0050140 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900231 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
232 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900233 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100234 gpio-ranges = <&pfc 0 64 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900235 #gpio-cells = <2>;
236 ngpios = <32>;
237 interrupt-controller;
238 #interrupt-cells = <2>;
239 };
240 gpio3: gpio@e0050180 {
241 compatible = "renesas,em-gio";
242 reg = <0xe0050180 0x2c>, <0xe00501c0 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900243 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
244 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900245 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100246 gpio-ranges = <&pfc 0 96 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900247 #gpio-cells = <2>;
248 ngpios = <32>;
249 interrupt-controller;
250 #interrupt-cells = <2>;
251 };
252 gpio4: gpio@e0050200 {
253 compatible = "renesas,em-gio";
254 reg = <0xe0050200 0x2c>, <0xe0050240 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900255 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
256 <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900257 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100258 gpio-ranges = <&pfc 0 128 31>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900259 #gpio-cells = <2>;
260 ngpios = <31>;
261 interrupt-controller;
262 #interrupt-cells = <2>;
263 };
Wolfram Sangcd42d042015-07-11 09:46:25 +0200264
265 iic0: i2c@e0070000 {
266 #address-cells = <1>;
267 #size-cells = <0>;
268 compatible = "renesas,iic-emev2";
269 reg = <0xe0070000 0x28>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900270 interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
Wolfram Sangcd42d042015-07-11 09:46:25 +0200271 clocks = <&iic0_sclk>;
272 clock-names = "sclk";
273 status = "disabled";
274 };
275
276 iic1: i2c@e10a0000 {
277 #address-cells = <1>;
278 #size-cells = <0>;
279 compatible = "renesas,iic-emev2";
280 reg = <0xe10a0000 0x28>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900281 interrupts = <GIC_SPI 33 IRQ_TYPE_EDGE_RISING>;
Wolfram Sangcd42d042015-07-11 09:46:25 +0200282 clocks = <&iic1_sclk>;
283 clock-names = "sclk";
284 status = "disabled";
285 };
Magnus Damm3d5de272012-05-16 15:45:54 +0900286};