blob: 42ea246e71cb4e207d2e451da2df4d7ce465856f [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
Simon Hormanb14ce232016-01-28 10:29:54 +090011#include <dt-bindings/interrupt-controller/arm-gic.h>
Laurent Pinchart3dc76082013-11-28 17:37:50 +010012#include <dt-bindings/interrupt-controller/irq.h>
Magnus Damm3d5de272012-05-16 15:45:54 +090013
14/ {
15 compatible = "renesas,emev2";
16 interrupt-parent = <&gic>;
Geert Uytterhoeven51b884d2016-10-21 11:16:06 +020017 #address-cells = <1>;
18 #size-cells = <1>;
Magnus Damm3d5de272012-05-16 15:45:54 +090019
Magnus Damm12d035b2013-07-02 18:27:57 +090020 aliases {
21 gpio0 = &gpio0;
22 gpio1 = &gpio1;
23 gpio2 = &gpio2;
24 gpio3 = &gpio3;
25 gpio4 = &gpio4;
Wolfram Sangcd42d042015-07-11 09:46:25 +020026 i2c0 = &iic0;
27 i2c1 = &iic1;
Magnus Damm12d035b2013-07-02 18:27:57 +090028 };
29
Magnus Damm3d5de272012-05-16 15:45:54 +090030 cpus {
Simon Hormanfe681d22013-01-28 09:41:40 +090031 #address-cells = <1>;
32 #size-cells = <0>;
33
Magnus Damm3d5de272012-05-16 15:45:54 +090034 cpu@0 {
Simon Hormanfe681d22013-01-28 09:41:40 +090035 device_type = "cpu";
Magnus Damm3d5de272012-05-16 15:45:54 +090036 compatible = "arm,cortex-a9";
Simon Hormanfe681d22013-01-28 09:41:40 +090037 reg = <0>;
Magnus Damm11f1ca12014-06-05 14:31:56 +090038 clock-frequency = <533000000>;
Magnus Damm3d5de272012-05-16 15:45:54 +090039 };
40 cpu@1 {
Simon Hormanfe681d22013-01-28 09:41:40 +090041 device_type = "cpu";
Magnus Damm3d5de272012-05-16 15:45:54 +090042 compatible = "arm,cortex-a9";
Simon Hormanfe681d22013-01-28 09:41:40 +090043 reg = <1>;
Magnus Damm11f1ca12014-06-05 14:31:56 +090044 clock-frequency = <533000000>;
Magnus Damm3d5de272012-05-16 15:45:54 +090045 };
46 };
47
48 gic: interrupt-controller@e0020000 {
Geert Uytterhoevenc8a58802015-11-20 13:36:54 +010049 compatible = "arm,pl390";
Magnus Damm3d5de272012-05-16 15:45:54 +090050 interrupt-controller;
51 #interrupt-cells = <3>;
52 reg = <0xe0028000 0x1000>,
53 <0xe0020000 0x0100>;
54 };
55
Magnus Dammc95ebbb2013-07-24 12:42:40 +090056 pmu {
57 compatible = "arm,cortex-a9-pmu";
Simon Hormanb14ce232016-01-28 10:29:54 +090058 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
59 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammc95ebbb2013-07-24 12:42:40 +090060 };
61
Geert Uytterhoeven87982b22014-10-03 17:11:32 +020062 clocks@e0110000 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +090063 compatible = "renesas,emev2-smu";
64 reg = <0xe0110000 0x10000>;
65 #address-cells = <2>;
66 #size-cells = <0>;
67
68 c32ki: c32ki {
69 compatible = "fixed-clock";
70 clock-frequency = <32768>;
71 #clock-cells = <0>;
72 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020073 iic0_sclkdiv: iic0_sclkdiv@624,0 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020074 compatible = "renesas,emev2-smu-clkdiv";
75 reg = <0x624 0>;
76 clocks = <&pll3_fo>;
77 #clock-cells = <0>;
78 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020079 iic0_sclk: iic0_sclk@48c,1 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020080 compatible = "renesas,emev2-smu-gclk";
81 reg = <0x48c 1>;
82 clocks = <&iic0_sclkdiv>;
83 #clock-cells = <0>;
84 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020085 iic1_sclkdiv: iic1_sclkdiv@624,16 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020086 compatible = "renesas,emev2-smu-clkdiv";
87 reg = <0x624 16>;
88 clocks = <&pll3_fo>;
89 #clock-cells = <0>;
90 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +020091 iic1_sclk: iic1_sclk@490,1 {
Wolfram Sangcd42d042015-07-11 09:46:25 +020092 compatible = "renesas,emev2-smu-gclk";
93 reg = <0x490 1>;
94 clocks = <&iic1_sclkdiv>;
95 #clock-cells = <0>;
96 };
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +090097 pll3_fo: pll3_fo {
98 compatible = "fixed-factor-clock";
99 clocks = <&c32ki>;
100 clock-div = <1>;
101 clock-mult = <7000>;
102 #clock-cells = <0>;
103 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200104 usia_u0_sclkdiv: usia_u0_sclkdiv@610,0 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900105 compatible = "renesas,emev2-smu-clkdiv";
106 reg = <0x610 0>;
107 clocks = <&pll3_fo>;
108 #clock-cells = <0>;
109 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200110 usib_u1_sclkdiv: usib_u1_sclkdiv@65c,0 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900111 compatible = "renesas,emev2-smu-clkdiv";
112 reg = <0x65c 0>;
113 clocks = <&pll3_fo>;
114 #clock-cells = <0>;
115 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200116 usib_u2_sclkdiv: usib_u2_sclkdiv@65c,16 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900117 compatible = "renesas,emev2-smu-clkdiv";
118 reg = <0x65c 16>;
119 clocks = <&pll3_fo>;
120 #clock-cells = <0>;
121 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200122 usib_u3_sclkdiv: usib_u3_sclkdiv@660,0 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900123 compatible = "renesas,emev2-smu-clkdiv";
124 reg = <0x660 0>;
125 clocks = <&pll3_fo>;
126 #clock-cells = <0>;
127 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200128 usia_u0_sclk: usia_u0_sclk@4a0,1 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900129 compatible = "renesas,emev2-smu-gclk";
130 reg = <0x4a0 1>;
131 clocks = <&usia_u0_sclkdiv>;
132 #clock-cells = <0>;
133 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200134 usib_u1_sclk: usib_u1_sclk@4b8,1 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900135 compatible = "renesas,emev2-smu-gclk";
136 reg = <0x4b8 1>;
137 clocks = <&usib_u1_sclkdiv>;
138 #clock-cells = <0>;
139 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200140 usib_u2_sclk: usib_u2_sclk@4bc,1 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900141 compatible = "renesas,emev2-smu-gclk";
142 reg = <0x4bc 1>;
143 clocks = <&usib_u2_sclkdiv>;
144 #clock-cells = <0>;
145 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200146 usib_u3_sclk: usib_u3_sclk@4c0,1 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900147 compatible = "renesas,emev2-smu-gclk";
148 reg = <0x4c0 1>;
149 clocks = <&usib_u3_sclkdiv>;
150 #clock-cells = <0>;
151 };
Geert Uytterhoeven33df2752016-05-20 09:09:52 +0200152 sti_sclk: sti_sclk@528,1 {
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900153 compatible = "renesas,emev2-smu-gclk";
154 reg = <0x528 1>;
155 clocks = <&c32ki>;
156 #clock-cells = <0>;
157 };
158 };
159
Geert Uytterhoeven87982b22014-10-03 17:11:32 +0200160 timer@e0180000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900161 compatible = "renesas,em-sti";
162 reg = <0xe0180000 0x54>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900163 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900164 clocks = <&sti_sclk>;
165 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900166 };
167
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200168 uart0: serial@e1020000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900169 compatible = "renesas,em-uart";
170 reg = <0xe1020000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900171 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900172 clocks = <&usia_u0_sclk>;
173 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900174 };
175
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200176 uart1: serial@e1030000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900177 compatible = "renesas,em-uart";
178 reg = <0xe1030000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900179 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900180 clocks = <&usib_u1_sclk>;
181 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900182 };
183
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200184 uart2: serial@e1040000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900185 compatible = "renesas,em-uart";
186 reg = <0xe1040000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900187 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900188 clocks = <&usib_u2_sclk>;
189 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900190 };
191
Geert Uytterhoevene87aaba2014-10-03 17:11:33 +0200192 uart3: serial@e1050000 {
Magnus Damm3d5de272012-05-16 15:45:54 +0900193 compatible = "renesas,em-uart";
194 reg = <0xe1050000 0x38>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900195 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Takashi Yoshiifdf6fd222013-10-08 14:33:07 +0900196 clocks = <&usib_u3_sclk>;
197 clock-names = "sclk";
Magnus Damm3d5de272012-05-16 15:45:54 +0900198 };
Magnus Damm12d035b2013-07-02 18:27:57 +0900199
Simon Horman6559b392017-04-26 12:05:30 +0200200 pfc: pin-controller@e0140200 {
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100201 compatible = "renesas,pfc-emev2";
202 reg = <0xe0140200 0x100>;
203 };
204
Magnus Damm12d035b2013-07-02 18:27:57 +0900205 gpio0: gpio@e0050000 {
206 compatible = "renesas,em-gio";
207 reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900208 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
209 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900210 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100211 gpio-ranges = <&pfc 0 0 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900212 #gpio-cells = <2>;
213 ngpios = <32>;
214 interrupt-controller;
215 #interrupt-cells = <2>;
216 };
217 gpio1: gpio@e0050080 {
218 compatible = "renesas,em-gio";
219 reg = <0xe0050080 0x2c>, <0xe00500c0 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900220 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
221 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900222 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100223 gpio-ranges = <&pfc 0 32 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900224 #gpio-cells = <2>;
225 ngpios = <32>;
226 interrupt-controller;
227 #interrupt-cells = <2>;
228 };
229 gpio2: gpio@e0050100 {
230 compatible = "renesas,em-gio";
231 reg = <0xe0050100 0x2c>, <0xe0050140 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900232 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
233 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900234 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100235 gpio-ranges = <&pfc 0 64 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900236 #gpio-cells = <2>;
237 ngpios = <32>;
238 interrupt-controller;
239 #interrupt-cells = <2>;
240 };
241 gpio3: gpio@e0050180 {
242 compatible = "renesas,em-gio";
243 reg = <0xe0050180 0x2c>, <0xe00501c0 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900244 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
245 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900246 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100247 gpio-ranges = <&pfc 0 96 32>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900248 #gpio-cells = <2>;
249 ngpios = <32>;
250 interrupt-controller;
251 #interrupt-cells = <2>;
252 };
253 gpio4: gpio@e0050200 {
254 compatible = "renesas,em-gio";
255 reg = <0xe0050200 0x2c>, <0xe0050240 0x20>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900256 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
257 <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900258 gpio-controller;
Niklas Söderlunde7cdf792015-02-17 14:31:54 +0100259 gpio-ranges = <&pfc 0 128 31>;
Magnus Damm12d035b2013-07-02 18:27:57 +0900260 #gpio-cells = <2>;
261 ngpios = <31>;
262 interrupt-controller;
263 #interrupt-cells = <2>;
264 };
Wolfram Sangcd42d042015-07-11 09:46:25 +0200265
266 iic0: i2c@e0070000 {
267 #address-cells = <1>;
268 #size-cells = <0>;
269 compatible = "renesas,iic-emev2";
270 reg = <0xe0070000 0x28>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900271 interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
Wolfram Sangcd42d042015-07-11 09:46:25 +0200272 clocks = <&iic0_sclk>;
273 clock-names = "sclk";
274 status = "disabled";
275 };
276
277 iic1: i2c@e10a0000 {
278 #address-cells = <1>;
279 #size-cells = <0>;
280 compatible = "renesas,iic-emev2";
281 reg = <0xe10a0000 0x28>;
Simon Hormanb14ce232016-01-28 10:29:54 +0900282 interrupts = <GIC_SPI 33 IRQ_TYPE_EDGE_RISING>;
Wolfram Sangcd42d042015-07-11 09:46:25 +0200283 clocks = <&iic1_sclk>;
284 clock-names = "sclk";
285 status = "disabled";
286 };
Magnus Damm3d5de272012-05-16 15:45:54 +0900287};