Kuninori Morimoto | ccb7cc7 | 2013-03-21 03:01:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for Renesas r8a7778 |
| 3 | * |
| 4 | * Copyright (C) 2013 Renesas Solutions Corp. |
| 5 | * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| 6 | * |
| 7 | * based on r8a7779 |
| 8 | * |
| 9 | * Copyright (C) 2013 Renesas Solutions Corp. |
| 10 | * Copyright (C) 2013 Simon Horman |
| 11 | * |
| 12 | * This file is licensed under the terms of the GNU General Public License |
| 13 | * version 2. This program is licensed "as is" without any warranty of any |
| 14 | * kind, whether express or implied. |
| 15 | */ |
| 16 | |
| 17 | /include/ "skeleton.dtsi" |
| 18 | |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 19 | #include <dt-bindings/interrupt-controller/irq.h> |
| 20 | |
Kuninori Morimoto | ccb7cc7 | 2013-03-21 03:01:36 -0700 | [diff] [blame] | 21 | / { |
| 22 | compatible = "renesas,r8a7778"; |
| 23 | |
| 24 | cpus { |
| 25 | cpu@0 { |
| 26 | compatible = "arm,cortex-a9"; |
| 27 | }; |
| 28 | }; |
| 29 | |
Kuninori Morimoto | a50da08 | 2013-10-31 18:22:21 -0700 | [diff] [blame] | 30 | aliases { |
| 31 | spi0 = &hspi0; |
| 32 | spi1 = &hspi1; |
| 33 | spi2 = &hspi2; |
| 34 | }; |
| 35 | |
Kuninori Morimoto | ccb7cc7 | 2013-03-21 03:01:36 -0700 | [diff] [blame] | 36 | gic: interrupt-controller@fe438000 { |
| 37 | compatible = "arm,cortex-a9-gic"; |
| 38 | #interrupt-cells = <3>; |
| 39 | interrupt-controller; |
| 40 | reg = <0xfe438000 0x1000>, |
| 41 | <0xfe430000 0x100>; |
| 42 | }; |
Laurent Pinchart | 0697ccc | 2013-05-09 15:05:57 +0200 | [diff] [blame] | 43 | |
Kuninori Morimoto | 87f1ba8 | 2013-10-02 01:32:12 -0700 | [diff] [blame] | 44 | /* irqpin: IRQ0 - IRQ3 */ |
| 45 | irqpin: irqpin@fe78001c { |
Magnus Damm | d79af22 | 2013-11-28 08:15:11 +0900 | [diff] [blame] | 46 | compatible = "renesas,intc-irqpin-r8a7778", "renesas,intc-irqpin"; |
Kuninori Morimoto | 87f1ba8 | 2013-10-02 01:32:12 -0700 | [diff] [blame] | 47 | #interrupt-cells = <2>; |
| 48 | interrupt-controller; |
| 49 | status = "disabled"; /* default off */ |
| 50 | reg = <0xfe78001c 4>, |
| 51 | <0xfe780010 4>, |
| 52 | <0xfe780024 4>, |
| 53 | <0xfe780044 4>, |
| 54 | <0xfe780064 4>; |
| 55 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 56 | interrupts = <0 27 IRQ_TYPE_LEVEL_HIGH |
| 57 | 0 28 IRQ_TYPE_LEVEL_HIGH |
| 58 | 0 29 IRQ_TYPE_LEVEL_HIGH |
| 59 | 0 30 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 87f1ba8 | 2013-10-02 01:32:12 -0700 | [diff] [blame] | 60 | sense-bitfield-width = <2>; |
| 61 | }; |
| 62 | |
Laurent Pinchart | aaf7eda | 2013-05-10 15:51:14 +0200 | [diff] [blame] | 63 | gpio0: gpio@ffc40000 { |
| 64 | compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar"; |
| 65 | reg = <0xffc40000 0x2c>; |
| 66 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 67 | interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>; |
Laurent Pinchart | aaf7eda | 2013-05-10 15:51:14 +0200 | [diff] [blame] | 68 | #gpio-cells = <2>; |
| 69 | gpio-controller; |
| 70 | gpio-ranges = <&pfc 0 0 32>; |
| 71 | #interrupt-cells = <2>; |
| 72 | interrupt-controller; |
| 73 | }; |
| 74 | |
| 75 | gpio1: gpio@ffc41000 { |
| 76 | compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar"; |
| 77 | reg = <0xffc41000 0x2c>; |
| 78 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 79 | interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>; |
Laurent Pinchart | aaf7eda | 2013-05-10 15:51:14 +0200 | [diff] [blame] | 80 | #gpio-cells = <2>; |
| 81 | gpio-controller; |
| 82 | gpio-ranges = <&pfc 0 32 32>; |
| 83 | #interrupt-cells = <2>; |
| 84 | interrupt-controller; |
| 85 | }; |
| 86 | |
| 87 | gpio2: gpio@ffc42000 { |
| 88 | compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar"; |
| 89 | reg = <0xffc42000 0x2c>; |
| 90 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 91 | interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>; |
Laurent Pinchart | aaf7eda | 2013-05-10 15:51:14 +0200 | [diff] [blame] | 92 | #gpio-cells = <2>; |
| 93 | gpio-controller; |
| 94 | gpio-ranges = <&pfc 0 64 32>; |
| 95 | #interrupt-cells = <2>; |
| 96 | interrupt-controller; |
| 97 | }; |
| 98 | |
| 99 | gpio3: gpio@ffc43000 { |
| 100 | compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar"; |
| 101 | reg = <0xffc43000 0x2c>; |
| 102 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 103 | interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>; |
Laurent Pinchart | aaf7eda | 2013-05-10 15:51:14 +0200 | [diff] [blame] | 104 | #gpio-cells = <2>; |
| 105 | gpio-controller; |
| 106 | gpio-ranges = <&pfc 0 96 32>; |
| 107 | #interrupt-cells = <2>; |
| 108 | interrupt-controller; |
| 109 | }; |
| 110 | |
| 111 | gpio4: gpio@ffc44000 { |
| 112 | compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar"; |
| 113 | reg = <0xffc44000 0x2c>; |
| 114 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 115 | interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>; |
Laurent Pinchart | aaf7eda | 2013-05-10 15:51:14 +0200 | [diff] [blame] | 116 | #gpio-cells = <2>; |
| 117 | gpio-controller; |
| 118 | gpio-ranges = <&pfc 0 128 27>; |
| 119 | #interrupt-cells = <2>; |
| 120 | interrupt-controller; |
| 121 | }; |
| 122 | |
Laurent Pinchart | 0697ccc | 2013-05-09 15:05:57 +0200 | [diff] [blame] | 123 | pfc: pfc@fffc0000 { |
| 124 | compatible = "renesas,pfc-r8a7778"; |
Laurent Pinchart | 80d01fe | 2013-10-03 19:35:41 +0200 | [diff] [blame] | 125 | reg = <0xfffc0000 0x118>; |
Laurent Pinchart | 0697ccc | 2013-05-09 15:05:57 +0200 | [diff] [blame] | 126 | }; |
Kuninori Morimoto | 3acb51b | 2013-10-03 23:44:15 -0700 | [diff] [blame] | 127 | |
| 128 | i2c0: i2c@ffc70000 { |
| 129 | #address-cells = <1>; |
| 130 | #size-cells = <0>; |
| 131 | compatible = "renesas,i2c-r8a7778"; |
| 132 | reg = <0xffc70000 0x1000>; |
| 133 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 134 | interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 3acb51b | 2013-10-03 23:44:15 -0700 | [diff] [blame] | 135 | status = "disabled"; |
| 136 | }; |
| 137 | |
| 138 | i2c1: i2c@ffc71000 { |
| 139 | #address-cells = <1>; |
| 140 | #size-cells = <0>; |
| 141 | compatible = "renesas,i2c-r8a7778"; |
| 142 | reg = <0xffc71000 0x1000>; |
| 143 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 144 | interrupts = <0 78 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 3acb51b | 2013-10-03 23:44:15 -0700 | [diff] [blame] | 145 | status = "disabled"; |
| 146 | }; |
| 147 | |
| 148 | i2c2: i2c@ffc72000 { |
| 149 | #address-cells = <1>; |
| 150 | #size-cells = <0>; |
| 151 | compatible = "renesas,i2c-r8a7778"; |
| 152 | reg = <0xffc72000 0x1000>; |
| 153 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 154 | interrupts = <0 76 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 3acb51b | 2013-10-03 23:44:15 -0700 | [diff] [blame] | 155 | status = "disabled"; |
| 156 | }; |
| 157 | |
| 158 | i2c3: i2c@ffc73000 { |
| 159 | #address-cells = <1>; |
| 160 | #size-cells = <0>; |
| 161 | compatible = "renesas,i2c-r8a7778"; |
| 162 | reg = <0xffc73000 0x1000>; |
| 163 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 164 | interrupts = <0 77 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 3acb51b | 2013-10-03 23:44:15 -0700 | [diff] [blame] | 165 | status = "disabled"; |
| 166 | }; |
Kuninori Morimoto | f7b90175 | 2013-10-03 18:32:22 -0700 | [diff] [blame] | 167 | |
Kuninori Morimoto | 14e1d91 | 2013-10-21 19:35:42 -0700 | [diff] [blame] | 168 | mmcif: mmc@ffe4e000 { |
Kuninori Morimoto | f7b90175 | 2013-10-03 18:32:22 -0700 | [diff] [blame] | 169 | compatible = "renesas,sh-mmcif"; |
| 170 | reg = <0xffe4e000 0x100>; |
| 171 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 172 | interrupts = <0 61 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | f7b90175 | 2013-10-03 18:32:22 -0700 | [diff] [blame] | 173 | status = "disabled"; |
| 174 | }; |
Kuninori Morimoto | 04cbd88 | 2013-10-10 23:35:46 -0700 | [diff] [blame] | 175 | |
Kuninori Morimoto | 14e1d91 | 2013-10-21 19:35:42 -0700 | [diff] [blame] | 176 | sdhi0: sd@ffe4c000 { |
Kuninori Morimoto | 04cbd88 | 2013-10-10 23:35:46 -0700 | [diff] [blame] | 177 | compatible = "renesas,sdhi-r8a7778"; |
| 178 | reg = <0xffe4c000 0x100>; |
| 179 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 180 | interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 04cbd88 | 2013-10-10 23:35:46 -0700 | [diff] [blame] | 181 | cap-sd-highspeed; |
| 182 | cap-sdio-irq; |
| 183 | status = "disabled"; |
| 184 | }; |
| 185 | |
Kuninori Morimoto | 14e1d91 | 2013-10-21 19:35:42 -0700 | [diff] [blame] | 186 | sdhi1: sd@ffe4d000 { |
Kuninori Morimoto | 04cbd88 | 2013-10-10 23:35:46 -0700 | [diff] [blame] | 187 | compatible = "renesas,sdhi-r8a7778"; |
| 188 | reg = <0xffe4d000 0x100>; |
| 189 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 190 | interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 04cbd88 | 2013-10-10 23:35:46 -0700 | [diff] [blame] | 191 | cap-sd-highspeed; |
| 192 | cap-sdio-irq; |
| 193 | status = "disabled"; |
| 194 | }; |
| 195 | |
Kuninori Morimoto | 14e1d91 | 2013-10-21 19:35:42 -0700 | [diff] [blame] | 196 | sdhi2: sd@ffe4f000 { |
Kuninori Morimoto | 04cbd88 | 2013-10-10 23:35:46 -0700 | [diff] [blame] | 197 | compatible = "renesas,sdhi-r8a7778"; |
| 198 | reg = <0xffe4f000 0x100>; |
| 199 | interrupt-parent = <&gic>; |
Laurent Pinchart | 5f75e73 | 2013-11-19 03:18:25 +0100 | [diff] [blame] | 200 | interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | 04cbd88 | 2013-10-10 23:35:46 -0700 | [diff] [blame] | 201 | cap-sd-highspeed; |
| 202 | cap-sdio-irq; |
| 203 | status = "disabled"; |
| 204 | }; |
Kuninori Morimoto | ae4273e | 2013-10-03 23:44:15 -0700 | [diff] [blame] | 205 | |
Kuninori Morimoto | a50da08 | 2013-10-31 18:22:21 -0700 | [diff] [blame] | 206 | hspi0: spi@fffc7000 { |
| 207 | compatible = "renesas,hspi"; |
| 208 | reg = <0xfffc7000 0x18>; |
| 209 | interrupt-controller = <&gic>; |
Laurent Pinchart | d6dd131 | 2013-11-28 17:22:13 +0100 | [diff] [blame] | 210 | interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | a50da08 | 2013-10-31 18:22:21 -0700 | [diff] [blame] | 211 | status = "disabled"; |
| 212 | }; |
| 213 | |
| 214 | hspi1: spi@fffc8000 { |
| 215 | compatible = "renesas,hspi"; |
| 216 | reg = <0xfffc8000 0x18>; |
| 217 | interrupt-controller = <&gic>; |
Laurent Pinchart | d6dd131 | 2013-11-28 17:22:13 +0100 | [diff] [blame] | 218 | interrupts = <0 84 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | a50da08 | 2013-10-31 18:22:21 -0700 | [diff] [blame] | 219 | status = "disabled"; |
| 220 | }; |
| 221 | |
| 222 | hspi2: spi@fffc6000 { |
| 223 | compatible = "renesas,hspi"; |
| 224 | reg = <0xfffc6000 0x18>; |
| 225 | interrupt-controller = <&gic>; |
Laurent Pinchart | d6dd131 | 2013-11-28 17:22:13 +0100 | [diff] [blame] | 226 | interrupts = <0 85 IRQ_TYPE_LEVEL_HIGH>; |
Kuninori Morimoto | a50da08 | 2013-10-31 18:22:21 -0700 | [diff] [blame] | 227 | status = "disabled"; |
| 228 | }; |
Kuninori Morimoto | ccb7cc7 | 2013-03-21 03:01:36 -0700 | [diff] [blame] | 229 | }; |