Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 1 | /* |
| 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 Damm | cef20af0 | 2013-11-14 08:03:45 +0900 | [diff] [blame] | 11 | #include "skeleton.dtsi" |
Laurent Pinchart | 3dc7608 | 2013-11-28 17:37:50 +0100 | [diff] [blame] | 12 | #include <dt-bindings/interrupt-controller/irq.h> |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | compatible = "renesas,emev2"; |
| 16 | interrupt-parent = <&gic>; |
| 17 | |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 18 | aliases { |
| 19 | gpio0 = &gpio0; |
| 20 | gpio1 = &gpio1; |
| 21 | gpio2 = &gpio2; |
| 22 | gpio3 = &gpio3; |
| 23 | gpio4 = &gpio4; |
| 24 | }; |
| 25 | |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 26 | cpus { |
Simon Horman | fe681d2 | 2013-01-28 09:41:40 +0900 | [diff] [blame] | 27 | #address-cells = <1>; |
| 28 | #size-cells = <0>; |
| 29 | |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 30 | cpu@0 { |
Simon Horman | fe681d2 | 2013-01-28 09:41:40 +0900 | [diff] [blame] | 31 | device_type = "cpu"; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 32 | compatible = "arm,cortex-a9"; |
Simon Horman | fe681d2 | 2013-01-28 09:41:40 +0900 | [diff] [blame] | 33 | reg = <0>; |
Magnus Damm | 11f1ca1 | 2014-06-05 14:31:56 +0900 | [diff] [blame] | 34 | clock-frequency = <533000000>; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 35 | }; |
| 36 | cpu@1 { |
Simon Horman | fe681d2 | 2013-01-28 09:41:40 +0900 | [diff] [blame] | 37 | device_type = "cpu"; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 38 | compatible = "arm,cortex-a9"; |
Simon Horman | fe681d2 | 2013-01-28 09:41:40 +0900 | [diff] [blame] | 39 | reg = <1>; |
Magnus Damm | 11f1ca1 | 2014-06-05 14:31:56 +0900 | [diff] [blame] | 40 | clock-frequency = <533000000>; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 41 | }; |
| 42 | }; |
| 43 | |
| 44 | gic: interrupt-controller@e0020000 { |
| 45 | compatible = "arm,cortex-a9-gic"; |
| 46 | interrupt-controller; |
| 47 | #interrupt-cells = <3>; |
| 48 | reg = <0xe0028000 0x1000>, |
| 49 | <0xe0020000 0x0100>; |
| 50 | }; |
| 51 | |
Magnus Damm | c95ebbb | 2013-07-24 12:42:40 +0900 | [diff] [blame] | 52 | pmu { |
| 53 | compatible = "arm,cortex-a9-pmu"; |
Laurent Pinchart | 3dc7608 | 2013-11-28 17:37:50 +0100 | [diff] [blame] | 54 | interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>, |
| 55 | <0 121 IRQ_TYPE_LEVEL_HIGH>; |
Magnus Damm | c95ebbb | 2013-07-24 12:42:40 +0900 | [diff] [blame] | 56 | }; |
| 57 | |
Geert Uytterhoeven | 87982b2 | 2014-10-03 17:11:32 +0200 | [diff] [blame] | 58 | clocks@e0110000 { |
Takashi Yoshii | fdf6fd2 | 2013-10-08 14:33:07 +0900 | [diff] [blame] | 59 | compatible = "renesas,emev2-smu"; |
| 60 | reg = <0xe0110000 0x10000>; |
| 61 | #address-cells = <2>; |
| 62 | #size-cells = <0>; |
| 63 | |
| 64 | c32ki: c32ki { |
| 65 | compatible = "fixed-clock"; |
| 66 | clock-frequency = <32768>; |
| 67 | #clock-cells = <0>; |
| 68 | }; |
| 69 | pll3_fo: pll3_fo { |
| 70 | compatible = "fixed-factor-clock"; |
| 71 | clocks = <&c32ki>; |
| 72 | clock-div = <1>; |
| 73 | clock-mult = <7000>; |
| 74 | #clock-cells = <0>; |
| 75 | }; |
| 76 | usia_u0_sclkdiv: usia_u0_sclkdiv { |
| 77 | compatible = "renesas,emev2-smu-clkdiv"; |
| 78 | reg = <0x610 0>; |
| 79 | clocks = <&pll3_fo>; |
| 80 | #clock-cells = <0>; |
| 81 | }; |
| 82 | usib_u1_sclkdiv: usib_u1_sclkdiv { |
| 83 | compatible = "renesas,emev2-smu-clkdiv"; |
| 84 | reg = <0x65c 0>; |
| 85 | clocks = <&pll3_fo>; |
| 86 | #clock-cells = <0>; |
| 87 | }; |
| 88 | usib_u2_sclkdiv: usib_u2_sclkdiv { |
| 89 | compatible = "renesas,emev2-smu-clkdiv"; |
| 90 | reg = <0x65c 16>; |
| 91 | clocks = <&pll3_fo>; |
| 92 | #clock-cells = <0>; |
| 93 | }; |
| 94 | usib_u3_sclkdiv: usib_u3_sclkdiv { |
| 95 | compatible = "renesas,emev2-smu-clkdiv"; |
| 96 | reg = <0x660 0>; |
| 97 | clocks = <&pll3_fo>; |
| 98 | #clock-cells = <0>; |
| 99 | }; |
| 100 | usia_u0_sclk: usia_u0_sclk { |
| 101 | compatible = "renesas,emev2-smu-gclk"; |
| 102 | reg = <0x4a0 1>; |
| 103 | clocks = <&usia_u0_sclkdiv>; |
| 104 | #clock-cells = <0>; |
| 105 | }; |
| 106 | usib_u1_sclk: usib_u1_sclk { |
| 107 | compatible = "renesas,emev2-smu-gclk"; |
| 108 | reg = <0x4b8 1>; |
| 109 | clocks = <&usib_u1_sclkdiv>; |
| 110 | #clock-cells = <0>; |
| 111 | }; |
| 112 | usib_u2_sclk: usib_u2_sclk { |
| 113 | compatible = "renesas,emev2-smu-gclk"; |
| 114 | reg = <0x4bc 1>; |
| 115 | clocks = <&usib_u2_sclkdiv>; |
| 116 | #clock-cells = <0>; |
| 117 | }; |
| 118 | usib_u3_sclk: usib_u3_sclk { |
| 119 | compatible = "renesas,emev2-smu-gclk"; |
| 120 | reg = <0x4c0 1>; |
| 121 | clocks = <&usib_u3_sclkdiv>; |
| 122 | #clock-cells = <0>; |
| 123 | }; |
| 124 | sti_sclk: sti_sclk { |
| 125 | compatible = "renesas,emev2-smu-gclk"; |
| 126 | reg = <0x528 1>; |
| 127 | clocks = <&c32ki>; |
| 128 | #clock-cells = <0>; |
| 129 | }; |
| 130 | }; |
| 131 | |
Geert Uytterhoeven | 87982b2 | 2014-10-03 17:11:32 +0200 | [diff] [blame] | 132 | timer@e0180000 { |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 133 | compatible = "renesas,em-sti"; |
| 134 | reg = <0xe0180000 0x54>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 135 | interrupts = <0 125 IRQ_TYPE_LEVEL_HIGH>; |
Takashi Yoshii | fdf6fd2 | 2013-10-08 14:33:07 +0900 | [diff] [blame] | 136 | clocks = <&sti_sclk>; |
| 137 | clock-names = "sclk"; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 138 | }; |
| 139 | |
Geert Uytterhoeven | e87aaba | 2014-10-03 17:11:33 +0200 | [diff] [blame] | 140 | uart0: serial@e1020000 { |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 141 | compatible = "renesas,em-uart"; |
| 142 | reg = <0xe1020000 0x38>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 143 | interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>; |
Takashi Yoshii | fdf6fd2 | 2013-10-08 14:33:07 +0900 | [diff] [blame] | 144 | clocks = <&usia_u0_sclk>; |
| 145 | clock-names = "sclk"; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 146 | }; |
| 147 | |
Geert Uytterhoeven | e87aaba | 2014-10-03 17:11:33 +0200 | [diff] [blame] | 148 | uart1: serial@e1030000 { |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 149 | compatible = "renesas,em-uart"; |
| 150 | reg = <0xe1030000 0x38>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 151 | interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; |
Takashi Yoshii | fdf6fd2 | 2013-10-08 14:33:07 +0900 | [diff] [blame] | 152 | clocks = <&usib_u1_sclk>; |
| 153 | clock-names = "sclk"; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 154 | }; |
| 155 | |
Geert Uytterhoeven | e87aaba | 2014-10-03 17:11:33 +0200 | [diff] [blame] | 156 | uart2: serial@e1040000 { |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 157 | compatible = "renesas,em-uart"; |
| 158 | reg = <0xe1040000 0x38>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 159 | interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>; |
Takashi Yoshii | fdf6fd2 | 2013-10-08 14:33:07 +0900 | [diff] [blame] | 160 | clocks = <&usib_u2_sclk>; |
| 161 | clock-names = "sclk"; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 162 | }; |
| 163 | |
Geert Uytterhoeven | e87aaba | 2014-10-03 17:11:33 +0200 | [diff] [blame] | 164 | uart3: serial@e1050000 { |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 165 | compatible = "renesas,em-uart"; |
| 166 | reg = <0xe1050000 0x38>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 167 | interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>; |
Takashi Yoshii | fdf6fd2 | 2013-10-08 14:33:07 +0900 | [diff] [blame] | 168 | clocks = <&usib_u3_sclk>; |
| 169 | clock-names = "sclk"; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 170 | }; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 171 | |
Niklas Söderlund | e7cdf79 | 2015-02-17 14:31:54 +0100 | [diff] [blame] | 172 | pfc: pfc@e0140200 { |
| 173 | compatible = "renesas,pfc-emev2"; |
| 174 | reg = <0xe0140200 0x100>; |
| 175 | }; |
| 176 | |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 177 | gpio0: gpio@e0050000 { |
| 178 | compatible = "renesas,em-gio"; |
| 179 | reg = <0xe0050000 0x2c>, <0xe0050040 0x20>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 180 | interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>, |
| 181 | <0 68 IRQ_TYPE_LEVEL_HIGH>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 182 | gpio-controller; |
Niklas Söderlund | e7cdf79 | 2015-02-17 14:31:54 +0100 | [diff] [blame] | 183 | gpio-ranges = <&pfc 0 0 32>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 184 | #gpio-cells = <2>; |
| 185 | ngpios = <32>; |
| 186 | interrupt-controller; |
| 187 | #interrupt-cells = <2>; |
| 188 | }; |
| 189 | gpio1: gpio@e0050080 { |
| 190 | compatible = "renesas,em-gio"; |
| 191 | reg = <0xe0050080 0x2c>, <0xe00500c0 0x20>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 192 | interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>, |
| 193 | <0 70 IRQ_TYPE_LEVEL_HIGH>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 194 | gpio-controller; |
Niklas Söderlund | e7cdf79 | 2015-02-17 14:31:54 +0100 | [diff] [blame] | 195 | gpio-ranges = <&pfc 0 32 32>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 196 | #gpio-cells = <2>; |
| 197 | ngpios = <32>; |
| 198 | interrupt-controller; |
| 199 | #interrupt-cells = <2>; |
| 200 | }; |
| 201 | gpio2: gpio@e0050100 { |
| 202 | compatible = "renesas,em-gio"; |
| 203 | reg = <0xe0050100 0x2c>, <0xe0050140 0x20>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 204 | interrupts = <0 71 IRQ_TYPE_LEVEL_HIGH>, |
| 205 | <0 72 IRQ_TYPE_LEVEL_HIGH>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 206 | gpio-controller; |
Niklas Söderlund | e7cdf79 | 2015-02-17 14:31:54 +0100 | [diff] [blame] | 207 | gpio-ranges = <&pfc 0 64 32>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 208 | #gpio-cells = <2>; |
| 209 | ngpios = <32>; |
| 210 | interrupt-controller; |
| 211 | #interrupt-cells = <2>; |
| 212 | }; |
| 213 | gpio3: gpio@e0050180 { |
| 214 | compatible = "renesas,em-gio"; |
| 215 | reg = <0xe0050180 0x2c>, <0xe00501c0 0x20>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 216 | interrupts = <0 73 IRQ_TYPE_LEVEL_HIGH>, |
| 217 | <0 74 IRQ_TYPE_LEVEL_HIGH>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 218 | gpio-controller; |
Niklas Söderlund | e7cdf79 | 2015-02-17 14:31:54 +0100 | [diff] [blame] | 219 | gpio-ranges = <&pfc 0 96 32>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 220 | #gpio-cells = <2>; |
| 221 | ngpios = <32>; |
| 222 | interrupt-controller; |
| 223 | #interrupt-cells = <2>; |
| 224 | }; |
| 225 | gpio4: gpio@e0050200 { |
| 226 | compatible = "renesas,em-gio"; |
| 227 | reg = <0xe0050200 0x2c>, <0xe0050240 0x20>; |
Laurent Pinchart | e05ab0b | 2013-11-28 17:37:51 +0100 | [diff] [blame] | 228 | interrupts = <0 75 IRQ_TYPE_LEVEL_HIGH>, |
| 229 | <0 76 IRQ_TYPE_LEVEL_HIGH>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 230 | gpio-controller; |
Niklas Söderlund | e7cdf79 | 2015-02-17 14:31:54 +0100 | [diff] [blame] | 231 | gpio-ranges = <&pfc 0 128 31>; |
Magnus Damm | 12d035b | 2013-07-02 18:27:57 +0900 | [diff] [blame] | 232 | #gpio-cells = <2>; |
| 233 | ngpios = <31>; |
| 234 | interrupt-controller; |
| 235 | #interrupt-cells = <2>; |
| 236 | }; |
Magnus Damm | 3d5de27 | 2012-05-16 15:45:54 +0900 | [diff] [blame] | 237 | }; |