diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-11-18 21:18:25 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-10 03:27:07 -0500 |
commit | 5f75e73c376c247a2c7bbe6f3fa3901b2d8f1a9c (patch) | |
tree | 442757dadcd8e07c5e578a438bda15951a5c3b31 /arch/arm/boot/dts/r8a7790.dtsi | |
parent | 31c46cbf5b8bab87e89028977521c84f2d871040 (diff) |
ARM: shmobile: Use interrupt macros in SoC DT files
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/boot/dts/r8a7790.dtsi')
-rw-r--r-- | arch/arm/boot/dts/r8a7790.dtsi | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 5ae7db640e75..3800952f139f 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi | |||
@@ -8,6 +8,9 @@ | |||
8 | * kind, whether express or implied. | 8 | * kind, whether express or implied. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
12 | #include <dt-bindings/interrupt-controller/irq.h> | ||
13 | |||
11 | / { | 14 | / { |
12 | compatible = "renesas,r8a7790"; | 15 | compatible = "renesas,r8a7790"; |
13 | interrupt-parent = <&gic>; | 16 | interrupt-parent = <&gic>; |
@@ -84,14 +87,14 @@ | |||
84 | <0 0xf1002000 0 0x1000>, | 87 | <0 0xf1002000 0 0x1000>, |
85 | <0 0xf1004000 0 0x2000>, | 88 | <0 0xf1004000 0 0x2000>, |
86 | <0 0xf1006000 0 0x2000>; | 89 | <0 0xf1006000 0 0x2000>; |
87 | interrupts = <1 9 0xf04>; | 90 | interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
88 | }; | 91 | }; |
89 | 92 | ||
90 | gpio0: gpio@ffc40000 { | 93 | gpio0: gpio@ffc40000 { |
91 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; | 94 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; |
92 | reg = <0 0xffc40000 0 0x2c>; | 95 | reg = <0 0xffc40000 0 0x2c>; |
93 | interrupt-parent = <&gic>; | 96 | interrupt-parent = <&gic>; |
94 | interrupts = <0 4 0x4>; | 97 | interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>; |
95 | #gpio-cells = <2>; | 98 | #gpio-cells = <2>; |
96 | gpio-controller; | 99 | gpio-controller; |
97 | gpio-ranges = <&pfc 0 0 32>; | 100 | gpio-ranges = <&pfc 0 0 32>; |
@@ -103,7 +106,7 @@ | |||
103 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; | 106 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; |
104 | reg = <0 0xffc41000 0 0x2c>; | 107 | reg = <0 0xffc41000 0 0x2c>; |
105 | interrupt-parent = <&gic>; | 108 | interrupt-parent = <&gic>; |
106 | interrupts = <0 5 0x4>; | 109 | interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>; |
107 | #gpio-cells = <2>; | 110 | #gpio-cells = <2>; |
108 | gpio-controller; | 111 | gpio-controller; |
109 | gpio-ranges = <&pfc 0 32 32>; | 112 | gpio-ranges = <&pfc 0 32 32>; |
@@ -115,7 +118,7 @@ | |||
115 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; | 118 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; |
116 | reg = <0 0xffc42000 0 0x2c>; | 119 | reg = <0 0xffc42000 0 0x2c>; |
117 | interrupt-parent = <&gic>; | 120 | interrupt-parent = <&gic>; |
118 | interrupts = <0 6 0x4>; | 121 | interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>; |
119 | #gpio-cells = <2>; | 122 | #gpio-cells = <2>; |
120 | gpio-controller; | 123 | gpio-controller; |
121 | gpio-ranges = <&pfc 0 64 32>; | 124 | gpio-ranges = <&pfc 0 64 32>; |
@@ -127,7 +130,7 @@ | |||
127 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; | 130 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; |
128 | reg = <0 0xffc43000 0 0x2c>; | 131 | reg = <0 0xffc43000 0 0x2c>; |
129 | interrupt-parent = <&gic>; | 132 | interrupt-parent = <&gic>; |
130 | interrupts = <0 7 0x4>; | 133 | interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>; |
131 | #gpio-cells = <2>; | 134 | #gpio-cells = <2>; |
132 | gpio-controller; | 135 | gpio-controller; |
133 | gpio-ranges = <&pfc 0 96 32>; | 136 | gpio-ranges = <&pfc 0 96 32>; |
@@ -139,7 +142,7 @@ | |||
139 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; | 142 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; |
140 | reg = <0 0xffc44000 0 0x2c>; | 143 | reg = <0 0xffc44000 0 0x2c>; |
141 | interrupt-parent = <&gic>; | 144 | interrupt-parent = <&gic>; |
142 | interrupts = <0 8 0x4>; | 145 | interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>; |
143 | #gpio-cells = <2>; | 146 | #gpio-cells = <2>; |
144 | gpio-controller; | 147 | gpio-controller; |
145 | gpio-ranges = <&pfc 0 128 32>; | 148 | gpio-ranges = <&pfc 0 128 32>; |
@@ -151,7 +154,7 @@ | |||
151 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; | 154 | compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar"; |
152 | reg = <0 0xffc45000 0 0x2c>; | 155 | reg = <0 0xffc45000 0 0x2c>; |
153 | interrupt-parent = <&gic>; | 156 | interrupt-parent = <&gic>; |
154 | interrupts = <0 9 0x4>; | 157 | interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; |
155 | #gpio-cells = <2>; | 158 | #gpio-cells = <2>; |
156 | gpio-controller; | 159 | gpio-controller; |
157 | gpio-ranges = <&pfc 0 160 32>; | 160 | gpio-ranges = <&pfc 0 160 32>; |
@@ -161,10 +164,10 @@ | |||
161 | 164 | ||
162 | timer { | 165 | timer { |
163 | compatible = "arm,armv7-timer"; | 166 | compatible = "arm,armv7-timer"; |
164 | interrupts = <1 13 0xf08>, | 167 | interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
165 | <1 14 0xf08>, | 168 | <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
166 | <1 11 0xf08>, | 169 | <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
167 | <1 10 0xf08>; | 170 | <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
168 | }; | 171 | }; |
169 | 172 | ||
170 | irqc0: interrupt-controller@e61c0000 { | 173 | irqc0: interrupt-controller@e61c0000 { |
@@ -173,7 +176,10 @@ | |||
173 | interrupt-controller; | 176 | interrupt-controller; |
174 | reg = <0 0xe61c0000 0 0x200>; | 177 | reg = <0 0xe61c0000 0 0x200>; |
175 | interrupt-parent = <&gic>; | 178 | interrupt-parent = <&gic>; |
176 | interrupts = <0 0 4>, <0 1 4>, <0 2 4>, <0 3 4>; | 179 | interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>, |
180 | <0 1 IRQ_TYPE_LEVEL_HIGH>, | ||
181 | <0 2 IRQ_TYPE_LEVEL_HIGH>, | ||
182 | <0 3 IRQ_TYPE_LEVEL_HIGH>; | ||
177 | }; | 183 | }; |
178 | 184 | ||
179 | i2c0: i2c@e6508000 { | 185 | i2c0: i2c@e6508000 { |
@@ -182,7 +188,7 @@ | |||
182 | compatible = "renesas,i2c-r8a7790"; | 188 | compatible = "renesas,i2c-r8a7790"; |
183 | reg = <0 0xe6508000 0 0x40>; | 189 | reg = <0 0xe6508000 0 0x40>; |
184 | interrupt-parent = <&gic>; | 190 | interrupt-parent = <&gic>; |
185 | interrupts = <0 287 0x4>; | 191 | interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>; |
186 | status = "disabled"; | 192 | status = "disabled"; |
187 | }; | 193 | }; |
188 | 194 | ||
@@ -192,7 +198,7 @@ | |||
192 | compatible = "renesas,i2c-r8a7790"; | 198 | compatible = "renesas,i2c-r8a7790"; |
193 | reg = <0 0xe6518000 0 0x40>; | 199 | reg = <0 0xe6518000 0 0x40>; |
194 | interrupt-parent = <&gic>; | 200 | interrupt-parent = <&gic>; |
195 | interrupts = <0 288 0x4>; | 201 | interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>; |
196 | status = "disabled"; | 202 | status = "disabled"; |
197 | }; | 203 | }; |
198 | 204 | ||
@@ -202,7 +208,7 @@ | |||
202 | compatible = "renesas,i2c-r8a7790"; | 208 | compatible = "renesas,i2c-r8a7790"; |
203 | reg = <0 0xe6530000 0 0x40>; | 209 | reg = <0 0xe6530000 0 0x40>; |
204 | interrupt-parent = <&gic>; | 210 | interrupt-parent = <&gic>; |
205 | interrupts = <0 286 0x4>; | 211 | interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>; |
206 | status = "disabled"; | 212 | status = "disabled"; |
207 | }; | 213 | }; |
208 | 214 | ||
@@ -212,7 +218,7 @@ | |||
212 | compatible = "renesas,i2c-r8a7790"; | 218 | compatible = "renesas,i2c-r8a7790"; |
213 | reg = <0 0xe6540000 0 0x40>; | 219 | reg = <0 0xe6540000 0 0x40>; |
214 | interrupt-parent = <&gic>; | 220 | interrupt-parent = <&gic>; |
215 | interrupts = <0 290 0x4>; | 221 | interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>; |
216 | status = "disabled"; | 222 | status = "disabled"; |
217 | }; | 223 | }; |
218 | 224 | ||
@@ -220,7 +226,7 @@ | |||
220 | compatible = "renesas,sh-mmcif"; | 226 | compatible = "renesas,sh-mmcif"; |
221 | reg = <0 0xee200000 0 0x80>; | 227 | reg = <0 0xee200000 0 0x80>; |
222 | interrupt-parent = <&gic>; | 228 | interrupt-parent = <&gic>; |
223 | interrupts = <0 169 0x4>; | 229 | interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>; |
224 | reg-io-width = <4>; | 230 | reg-io-width = <4>; |
225 | status = "disabled"; | 231 | status = "disabled"; |
226 | }; | 232 | }; |
@@ -229,7 +235,7 @@ | |||
229 | compatible = "renesas,sh-mmcif"; | 235 | compatible = "renesas,sh-mmcif"; |
230 | reg = <0 0xee220000 0 0x80>; | 236 | reg = <0 0xee220000 0 0x80>; |
231 | interrupt-parent = <&gic>; | 237 | interrupt-parent = <&gic>; |
232 | interrupts = <0 170 0x4>; | 238 | interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>; |
233 | reg-io-width = <4>; | 239 | reg-io-width = <4>; |
234 | status = "disabled"; | 240 | status = "disabled"; |
235 | }; | 241 | }; |
@@ -243,7 +249,7 @@ | |||
243 | compatible = "renesas,sdhi-r8a7790"; | 249 | compatible = "renesas,sdhi-r8a7790"; |
244 | reg = <0 0xee100000 0 0x100>; | 250 | reg = <0 0xee100000 0 0x100>; |
245 | interrupt-parent = <&gic>; | 251 | interrupt-parent = <&gic>; |
246 | interrupts = <0 165 4>; | 252 | interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>; |
247 | cap-sd-highspeed; | 253 | cap-sd-highspeed; |
248 | status = "disabled"; | 254 | status = "disabled"; |
249 | }; | 255 | }; |
@@ -252,7 +258,7 @@ | |||
252 | compatible = "renesas,sdhi-r8a7790"; | 258 | compatible = "renesas,sdhi-r8a7790"; |
253 | reg = <0 0xee120000 0 0x100>; | 259 | reg = <0 0xee120000 0 0x100>; |
254 | interrupt-parent = <&gic>; | 260 | interrupt-parent = <&gic>; |
255 | interrupts = <0 166 4>; | 261 | interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>; |
256 | cap-sd-highspeed; | 262 | cap-sd-highspeed; |
257 | status = "disabled"; | 263 | status = "disabled"; |
258 | }; | 264 | }; |
@@ -261,7 +267,7 @@ | |||
261 | compatible = "renesas,sdhi-r8a7790"; | 267 | compatible = "renesas,sdhi-r8a7790"; |
262 | reg = <0 0xee140000 0 0x100>; | 268 | reg = <0 0xee140000 0 0x100>; |
263 | interrupt-parent = <&gic>; | 269 | interrupt-parent = <&gic>; |
264 | interrupts = <0 167 4>; | 270 | interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>; |
265 | cap-sd-highspeed; | 271 | cap-sd-highspeed; |
266 | status = "disabled"; | 272 | status = "disabled"; |
267 | }; | 273 | }; |
@@ -270,7 +276,7 @@ | |||
270 | compatible = "renesas,sdhi-r8a7790"; | 276 | compatible = "renesas,sdhi-r8a7790"; |
271 | reg = <0 0xee160000 0 0x100>; | 277 | reg = <0 0xee160000 0 0x100>; |
272 | interrupt-parent = <&gic>; | 278 | interrupt-parent = <&gic>; |
273 | interrupts = <0 168 4>; | 279 | interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>; |
274 | cap-sd-highspeed; | 280 | cap-sd-highspeed; |
275 | status = "disabled"; | 281 | status = "disabled"; |
276 | }; | 282 | }; |