Masahiro Yamada | 3e98fc1 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | // |
| 3 | // Device Tree Source for UniPhier Pro4 SoC |
| 4 | // |
| 5 | // Copyright (C) 2015-2016 Socionext Inc. |
| 6 | // Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 7 | |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 8 | #include <dt-bindings/gpio/uniphier-gpio.h> |
| 9 | |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 10 | / { |
Masahiro Yamada | 52159d2 | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 11 | compatible = "socionext,uniphier-pro4"; |
Masahiro Yamada | f16eda9 | 2017-03-13 00:16:39 +0900 | [diff] [blame] | 12 | #address-cells = <1>; |
| 13 | #size-cells = <1>; |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 14 | |
| 15 | cpus { |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 16 | #address-cells = <1>; |
Masahiro Yamada | f5fd7af | 2014-12-06 00:03:23 +0900 | [diff] [blame] | 17 | #size-cells = <0>; |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 18 | |
| 19 | cpu@0 { |
| 20 | device_type = "cpu"; |
| 21 | compatible = "arm,cortex-a9"; |
| 22 | reg = <0>; |
Masahiro Yamada | 52159d2 | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 23 | enable-method = "psci"; |
Masahiro Yamada | 4e1f81d | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 24 | next-level-cache = <&l2>; |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | cpu@1 { |
| 28 | device_type = "cpu"; |
| 29 | compatible = "arm,cortex-a9"; |
| 30 | reg = <1>; |
Masahiro Yamada | 52159d2 | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 31 | enable-method = "psci"; |
Masahiro Yamada | 4e1f81d | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 32 | next-level-cache = <&l2>; |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 33 | }; |
| 34 | }; |
| 35 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 36 | psci { |
| 37 | compatible = "arm,psci-0.2"; |
| 38 | method = "smc"; |
| 39 | }; |
| 40 | |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 41 | clocks { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 42 | refclk: ref { |
| 43 | compatible = "fixed-clock"; |
| 44 | #clock-cells = <0>; |
| 45 | clock-frequency = <25000000>; |
| 46 | }; |
| 47 | |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 48 | arm_timer_clk: arm-timer { |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 49 | #clock-cells = <0>; |
| 50 | compatible = "fixed-clock"; |
| 51 | clock-frequency = <50000000>; |
| 52 | }; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 53 | }; |
Masahiro Yamada | d243c18 | 2015-08-28 22:33:13 +0900 | [diff] [blame] | 54 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 55 | soc { |
| 56 | compatible = "simple-bus"; |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <1>; |
| 59 | ranges; |
| 60 | interrupt-parent = <&intc>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 61 | |
| 62 | l2: l2-cache@500c0000 { |
| 63 | compatible = "socionext,uniphier-system-cache"; |
| 64 | reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, |
| 65 | <0x506c0000 0x400>; |
| 66 | interrupts = <0 174 4>, <0 175 4>; |
| 67 | cache-unified; |
| 68 | cache-size = <(768 * 1024)>; |
| 69 | cache-sets = <256>; |
| 70 | cache-line-size = <128>; |
| 71 | cache-level = <2>; |
| 72 | }; |
| 73 | |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 74 | spi0: spi@54006000 { |
| 75 | compatible = "socionext,uniphier-scssi"; |
| 76 | status = "disabled"; |
| 77 | reg = <0x54006000 0x100>; |
| 78 | interrupts = <0 39 4>; |
| 79 | pinctrl-names = "default"; |
| 80 | pinctrl-0 = <&pinctrl_spi0>; |
| 81 | clocks = <&peri_clk 11>; |
| 82 | resets = <&peri_rst 11>; |
| 83 | }; |
| 84 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 85 | serial0: serial@54006800 { |
| 86 | compatible = "socionext,uniphier-uart"; |
| 87 | status = "disabled"; |
| 88 | reg = <0x54006800 0x40>; |
| 89 | interrupts = <0 33 4>; |
| 90 | pinctrl-names = "default"; |
| 91 | pinctrl-0 = <&pinctrl_uart0>; |
| 92 | clocks = <&peri_clk 0>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 93 | resets = <&peri_rst 0>; |
Masahiro Yamada | d243c18 | 2015-08-28 22:33:13 +0900 | [diff] [blame] | 94 | }; |
| 95 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 96 | serial1: serial@54006900 { |
| 97 | compatible = "socionext,uniphier-uart"; |
| 98 | status = "disabled"; |
| 99 | reg = <0x54006900 0x40>; |
| 100 | interrupts = <0 35 4>; |
| 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&pinctrl_uart1>; |
| 103 | clocks = <&peri_clk 1>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 104 | resets = <&peri_rst 1>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 105 | }; |
| 106 | |
| 107 | serial2: serial@54006a00 { |
| 108 | compatible = "socionext,uniphier-uart"; |
| 109 | status = "disabled"; |
| 110 | reg = <0x54006a00 0x40>; |
| 111 | interrupts = <0 37 4>; |
| 112 | pinctrl-names = "default"; |
| 113 | pinctrl-0 = <&pinctrl_uart2>; |
| 114 | clocks = <&peri_clk 2>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 115 | resets = <&peri_rst 2>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 116 | }; |
| 117 | |
| 118 | serial3: serial@54006b00 { |
| 119 | compatible = "socionext,uniphier-uart"; |
| 120 | status = "disabled"; |
| 121 | reg = <0x54006b00 0x40>; |
| 122 | interrupts = <0 177 4>; |
| 123 | pinctrl-names = "default"; |
| 124 | pinctrl-0 = <&pinctrl_uart3>; |
| 125 | clocks = <&peri_clk 3>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 126 | resets = <&peri_rst 3>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 127 | }; |
| 128 | |
Masahiro Yamada | 0f72b74 | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 129 | gpio: gpio@55000000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 130 | compatible = "socionext,uniphier-gpio"; |
Masahiro Yamada | 0f72b74 | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 131 | reg = <0x55000000 0x200>; |
| 132 | interrupt-parent = <&aidet>; |
| 133 | interrupt-controller; |
| 134 | #interrupt-cells = <2>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 135 | gpio-controller; |
| 136 | #gpio-cells = <2>; |
Masahiro Yamada | 0f72b74 | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 137 | gpio-ranges = <&pinctrl 0 0 0>; |
| 138 | gpio-ranges-group-names = "gpio_range"; |
| 139 | ngpios = <248>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 140 | socionext,interrupt-ranges = <0 48 16>, <16 154 5>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 141 | }; |
| 142 | |
| 143 | i2c0: i2c@58780000 { |
| 144 | compatible = "socionext,uniphier-fi2c"; |
| 145 | status = "disabled"; |
| 146 | reg = <0x58780000 0x80>; |
| 147 | #address-cells = <1>; |
| 148 | #size-cells = <0>; |
| 149 | interrupts = <0 41 4>; |
| 150 | pinctrl-names = "default"; |
| 151 | pinctrl-0 = <&pinctrl_i2c0>; |
| 152 | clocks = <&peri_clk 4>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 153 | resets = <&peri_rst 4>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 154 | clock-frequency = <100000>; |
| 155 | }; |
| 156 | |
| 157 | i2c1: i2c@58781000 { |
| 158 | compatible = "socionext,uniphier-fi2c"; |
| 159 | status = "disabled"; |
| 160 | reg = <0x58781000 0x80>; |
| 161 | #address-cells = <1>; |
| 162 | #size-cells = <0>; |
| 163 | interrupts = <0 42 4>; |
| 164 | pinctrl-names = "default"; |
| 165 | pinctrl-0 = <&pinctrl_i2c1>; |
| 166 | clocks = <&peri_clk 5>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 167 | resets = <&peri_rst 5>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 168 | clock-frequency = <100000>; |
| 169 | }; |
| 170 | |
| 171 | i2c2: i2c@58782000 { |
| 172 | compatible = "socionext,uniphier-fi2c"; |
| 173 | status = "disabled"; |
| 174 | reg = <0x58782000 0x80>; |
| 175 | #address-cells = <1>; |
| 176 | #size-cells = <0>; |
| 177 | interrupts = <0 43 4>; |
| 178 | pinctrl-names = "default"; |
| 179 | pinctrl-0 = <&pinctrl_i2c2>; |
| 180 | clocks = <&peri_clk 6>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 181 | resets = <&peri_rst 6>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 182 | clock-frequency = <100000>; |
| 183 | }; |
| 184 | |
| 185 | i2c3: i2c@58783000 { |
| 186 | compatible = "socionext,uniphier-fi2c"; |
| 187 | status = "disabled"; |
| 188 | reg = <0x58783000 0x80>; |
| 189 | #address-cells = <1>; |
| 190 | #size-cells = <0>; |
| 191 | interrupts = <0 44 4>; |
| 192 | pinctrl-names = "default"; |
| 193 | pinctrl-0 = <&pinctrl_i2c3>; |
| 194 | clocks = <&peri_clk 7>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 195 | resets = <&peri_rst 7>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 196 | clock-frequency = <100000>; |
| 197 | }; |
| 198 | |
| 199 | /* i2c4 does not exist */ |
| 200 | |
| 201 | /* chip-internal connection for DMD */ |
| 202 | i2c5: i2c@58785000 { |
| 203 | compatible = "socionext,uniphier-fi2c"; |
| 204 | reg = <0x58785000 0x80>; |
| 205 | #address-cells = <1>; |
| 206 | #size-cells = <0>; |
| 207 | interrupts = <0 25 4>; |
| 208 | clocks = <&peri_clk 9>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 209 | resets = <&peri_rst 9>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 210 | clock-frequency = <400000>; |
| 211 | }; |
| 212 | |
| 213 | /* chip-internal connection for HDMI */ |
| 214 | i2c6: i2c@58786000 { |
| 215 | compatible = "socionext,uniphier-fi2c"; |
| 216 | reg = <0x58786000 0x80>; |
| 217 | #address-cells = <1>; |
| 218 | #size-cells = <0>; |
| 219 | interrupts = <0 26 4>; |
| 220 | clocks = <&peri_clk 10>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 221 | resets = <&peri_rst 10>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 222 | clock-frequency = <400000>; |
| 223 | }; |
| 224 | |
| 225 | system_bus: system-bus@58c00000 { |
| 226 | compatible = "socionext,uniphier-system-bus"; |
| 227 | status = "disabled"; |
| 228 | reg = <0x58c00000 0x400>; |
| 229 | #address-cells = <2>; |
| 230 | #size-cells = <1>; |
| 231 | pinctrl-names = "default"; |
| 232 | pinctrl-0 = <&pinctrl_system_bus>; |
| 233 | }; |
| 234 | |
Masahiro Yamada | abb6ac2 | 2017-05-15 14:23:46 +0900 | [diff] [blame] | 235 | smpctrl@59801000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 236 | compatible = "socionext,uniphier-smpctrl"; |
| 237 | reg = <0x59801000 0x400>; |
| 238 | }; |
| 239 | |
| 240 | mioctrl@59810000 { |
| 241 | compatible = "socionext,uniphier-pro4-mioctrl", |
| 242 | "simple-mfd", "syscon"; |
| 243 | reg = <0x59810000 0x800>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 244 | |
| 245 | mio_clk: clock { |
| 246 | compatible = "socionext,uniphier-pro4-mio-clock"; |
| 247 | #clock-cells = <1>; |
| 248 | }; |
| 249 | |
| 250 | mio_rst: reset { |
| 251 | compatible = "socionext,uniphier-pro4-mio-reset"; |
| 252 | #reset-cells = <1>; |
| 253 | }; |
| 254 | }; |
| 255 | |
| 256 | perictrl@59820000 { |
| 257 | compatible = "socionext,uniphier-pro4-perictrl", |
| 258 | "simple-mfd", "syscon"; |
| 259 | reg = <0x59820000 0x200>; |
| 260 | |
| 261 | peri_clk: clock { |
| 262 | compatible = "socionext,uniphier-pro4-peri-clock"; |
| 263 | #clock-cells = <1>; |
| 264 | }; |
| 265 | |
| 266 | peri_rst: reset { |
| 267 | compatible = "socionext,uniphier-pro4-peri-reset"; |
| 268 | #reset-cells = <1>; |
| 269 | }; |
| 270 | }; |
| 271 | |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 272 | dmac: dma-controller@5a000000 { |
| 273 | compatible = "socionext,uniphier-mio-dmac"; |
| 274 | reg = <0x5a000000 0x1000>; |
| 275 | interrupts = <0 68 4>, <0 68 4>, <0 69 4>, <0 70 4>, |
| 276 | <0 71 4>, <0 72 4>, <0 73 4>, <0 74 4>; |
| 277 | clocks = <&mio_clk 7>; |
| 278 | resets = <&mio_rst 7>; |
| 279 | #dma-cells = <1>; |
| 280 | }; |
| 281 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 282 | sd: sdhc@5a400000 { |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 283 | compatible = "socionext,uniphier-sd-v2.91"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 284 | status = "disabled"; |
| 285 | reg = <0x5a400000 0x200>; |
| 286 | interrupts = <0 76 4>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 287 | pinctrl-names = "default", "uhs"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 288 | pinctrl-0 = <&pinctrl_sd>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 289 | pinctrl-1 = <&pinctrl_sd_uhs>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 290 | clocks = <&mio_clk 0>; |
| 291 | reset-names = "host", "bridge"; |
| 292 | resets = <&mio_rst 0>, <&mio_rst 3>; |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 293 | dma-names = "rx-tx"; |
| 294 | dmas = <&dmac 4>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 295 | bus-width = <4>; |
| 296 | cap-sd-highspeed; |
| 297 | sd-uhs-sdr12; |
| 298 | sd-uhs-sdr25; |
| 299 | sd-uhs-sdr50; |
| 300 | }; |
| 301 | |
| 302 | emmc: sdhc@5a500000 { |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 303 | compatible = "socionext,uniphier-sd-v2.91"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 304 | status = "disabled"; |
| 305 | reg = <0x5a500000 0x200>; |
| 306 | interrupts = <0 78 4>; |
Masahiro Yamada | 33aae6b | 2018-09-10 12:58:32 +0900 | [diff] [blame] | 307 | pinctrl-names = "default"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 308 | pinctrl-0 = <&pinctrl_emmc>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 309 | clocks = <&mio_clk 1>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 310 | reset-names = "host", "bridge", "hw"; |
| 311 | resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>; |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 312 | dma-names = "rx-tx"; |
| 313 | dmas = <&dmac 5>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 314 | bus-width = <8>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 315 | cap-mmc-highspeed; |
| 316 | cap-mmc-hw-reset; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 317 | non-removable; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 318 | }; |
| 319 | |
| 320 | sd1: sdhc@5a600000 { |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 321 | compatible = "socionext,uniphier-sd-v2.91"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 322 | status = "disabled"; |
| 323 | reg = <0x5a600000 0x200>; |
| 324 | interrupts = <0 85 4>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 325 | pinctrl-names = "default"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 326 | pinctrl-0 = <&pinctrl_sd1>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 327 | clocks = <&mio_clk 2>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 328 | reset-names = "host", "bridge"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 329 | resets = <&mio_rst 2>, <&mio_rst 5>; |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 330 | dma-names = "rx-tx"; |
| 331 | dmas = <&dmac 6>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 332 | bus-width = <4>; |
| 333 | cap-sd-highspeed; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 334 | }; |
| 335 | |
| 336 | usb2: usb@5a800100 { |
| 337 | compatible = "socionext,uniphier-ehci", "generic-ehci"; |
| 338 | status = "disabled"; |
| 339 | reg = <0x5a800100 0x100>; |
| 340 | interrupts = <0 80 4>; |
| 341 | pinctrl-names = "default"; |
| 342 | pinctrl-0 = <&pinctrl_usb2>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 343 | clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>, |
| 344 | <&mio_clk 12>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 345 | resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>, |
| 346 | <&mio_rst 12>; |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 347 | phy-names = "usb"; |
| 348 | phys = <&usb_phy0>; |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 349 | has-transaction-translator; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 350 | }; |
| 351 | |
| 352 | usb3: usb@5a810100 { |
| 353 | compatible = "socionext,uniphier-ehci", "generic-ehci"; |
| 354 | status = "disabled"; |
| 355 | reg = <0x5a810100 0x100>; |
| 356 | interrupts = <0 81 4>; |
| 357 | pinctrl-names = "default"; |
| 358 | pinctrl-0 = <&pinctrl_usb3>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 359 | clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>, |
| 360 | <&mio_clk 13>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 361 | resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>, |
| 362 | <&mio_rst 13>; |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 363 | phy-names = "usb"; |
| 364 | phys = <&usb_phy1>; |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 365 | has-transaction-translator; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 366 | }; |
| 367 | |
Kunihiko Hayashi | 69b3d4e | 2018-05-11 18:49:14 +0900 | [diff] [blame] | 368 | soc_glue: soc-glue@5f800000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 369 | compatible = "socionext,uniphier-pro4-soc-glue", |
| 370 | "simple-mfd", "syscon"; |
| 371 | reg = <0x5f800000 0x2000>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 372 | |
| 373 | pinctrl: pinctrl { |
| 374 | compatible = "socionext,uniphier-pro4-pinctrl"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 375 | }; |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 376 | |
| 377 | usb-phy { |
| 378 | compatible = "socionext,uniphier-pro4-usb2-phy"; |
| 379 | #address-cells = <1>; |
| 380 | #size-cells = <0>; |
| 381 | |
| 382 | usb_phy0: phy@0 { |
| 383 | reg = <0>; |
| 384 | #phy-cells = <0>; |
| 385 | }; |
| 386 | |
| 387 | usb_phy1: phy@1 { |
| 388 | reg = <1>; |
| 389 | #phy-cells = <0>; |
| 390 | }; |
| 391 | |
| 392 | usb_phy2: phy@2 { |
| 393 | reg = <2>; |
| 394 | #phy-cells = <0>; |
| 395 | vbus-supply = <&usb0_vbus>; |
| 396 | }; |
| 397 | |
| 398 | usb_phy3: phy@3 { |
| 399 | reg = <3>; |
| 400 | #phy-cells = <0>; |
| 401 | vbus-supply = <&usb1_vbus>; |
| 402 | }; |
| 403 | }; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 404 | }; |
| 405 | |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 406 | soc-glue@5f900000 { |
| 407 | compatible = "socionext,uniphier-pro4-soc-glue-debug", |
| 408 | "simple-mfd"; |
| 409 | #address-cells = <1>; |
| 410 | #size-cells = <1>; |
| 411 | ranges = <0 0x5f900000 0x2000>; |
| 412 | |
| 413 | efuse@100 { |
| 414 | compatible = "socionext,uniphier-efuse"; |
| 415 | reg = <0x100 0x28>; |
| 416 | }; |
| 417 | |
| 418 | efuse@130 { |
| 419 | compatible = "socionext,uniphier-efuse"; |
| 420 | reg = <0x130 0x8>; |
| 421 | }; |
| 422 | |
| 423 | efuse@200 { |
| 424 | compatible = "socionext,uniphier-efuse"; |
| 425 | reg = <0x200 0x14>; |
| 426 | }; |
| 427 | }; |
| 428 | |
Masahiro Yamada | 6c9e46e | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 429 | aidet: aidet@5fc20000 { |
| 430 | compatible = "socionext,uniphier-pro4-aidet"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 431 | reg = <0x5fc20000 0x200>; |
Masahiro Yamada | 6c9e46e | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 432 | interrupt-controller; |
| 433 | #interrupt-cells = <2>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 434 | }; |
| 435 | |
| 436 | timer@60000200 { |
| 437 | compatible = "arm,cortex-a9-global-timer"; |
| 438 | reg = <0x60000200 0x20>; |
| 439 | interrupts = <1 11 0x304>; |
| 440 | clocks = <&arm_timer_clk>; |
| 441 | }; |
| 442 | |
| 443 | timer@60000600 { |
| 444 | compatible = "arm,cortex-a9-twd-timer"; |
| 445 | reg = <0x60000600 0x20>; |
| 446 | interrupts = <1 13 0x304>; |
| 447 | clocks = <&arm_timer_clk>; |
| 448 | }; |
| 449 | |
| 450 | intc: interrupt-controller@60001000 { |
| 451 | compatible = "arm,cortex-a9-gic"; |
| 452 | reg = <0x60001000 0x1000>, |
| 453 | <0x60000100 0x100>; |
| 454 | #interrupt-cells = <3>; |
| 455 | interrupt-controller; |
| 456 | }; |
| 457 | |
| 458 | sysctrl@61840000 { |
| 459 | compatible = "socionext,uniphier-pro4-sysctrl", |
| 460 | "simple-mfd", "syscon"; |
| 461 | reg = <0x61840000 0x10000>; |
| 462 | |
| 463 | sys_clk: clock { |
| 464 | compatible = "socionext,uniphier-pro4-clock"; |
| 465 | #clock-cells = <1>; |
| 466 | }; |
| 467 | |
| 468 | sys_rst: reset { |
| 469 | compatible = "socionext,uniphier-pro4-reset"; |
| 470 | #reset-cells = <1>; |
| 471 | }; |
| 472 | }; |
| 473 | |
Masahiro Yamada | 3e98fc1 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 474 | eth: ethernet@65000000 { |
| 475 | compatible = "socionext,uniphier-pro4-ave4"; |
| 476 | status = "disabled"; |
| 477 | reg = <0x65000000 0x8500>; |
| 478 | interrupts = <0 66 4>; |
| 479 | pinctrl-names = "default"; |
| 480 | pinctrl-0 = <&pinctrl_ether_rgmii>; |
Kunihiko Hayashi | 3c0fa6c | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 481 | clock-names = "gio", "ether", "ether-gb", "ether-phy"; |
Kunihiko Hayashi | 28cd3d2 | 2018-05-11 18:49:15 +0900 | [diff] [blame] | 482 | clocks = <&sys_clk 12>, <&sys_clk 6>, <&sys_clk 7>, |
Masahiro Yamada | e885c5a | 2018-06-19 16:11:46 +0900 | [diff] [blame] | 483 | <&sys_clk 10>; |
Kunihiko Hayashi | 3c0fa6c | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 484 | reset-names = "gio", "ether"; |
Kunihiko Hayashi | 28cd3d2 | 2018-05-11 18:49:15 +0900 | [diff] [blame] | 485 | resets = <&sys_rst 12>, <&sys_rst 6>; |
Masahiro Yamada | 3e98fc1 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 486 | phy-mode = "rgmii"; |
| 487 | local-mac-address = [00 00 00 00 00 00]; |
Kunihiko Hayashi | 69b3d4e | 2018-05-11 18:49:14 +0900 | [diff] [blame] | 488 | socionext,syscon-phy-mode = <&soc_glue 0>; |
Masahiro Yamada | 3e98fc1 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 489 | |
| 490 | mdio: mdio { |
| 491 | #address-cells = <1>; |
| 492 | #size-cells = <0>; |
| 493 | }; |
| 494 | }; |
| 495 | |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 496 | _usb0: usb@65a00000 { |
| 497 | compatible = "socionext,uniphier-dwc3", "snps,dwc3"; |
| 498 | status = "disabled"; |
| 499 | reg = <0x65a00000 0xcd00>; |
| 500 | interrupt-names = "host", "peripheral"; |
| 501 | interrupts = <0 134 4>, <0 135 4>; |
| 502 | pinctrl-names = "default"; |
| 503 | pinctrl-0 = <&pinctrl_usb0>; |
| 504 | clock-names = "ref", "bus_early", "suspend"; |
| 505 | clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>; |
| 506 | resets = <&usb0_rst 4>; |
| 507 | phys = <&usb_phy2>, <&usb0_ssphy>; |
| 508 | dr_mode = "host"; |
| 509 | }; |
| 510 | |
| 511 | usb-glue@65b00000 { |
| 512 | compatible = "socionext,uniphier-pro4-dwc3-glue", |
| 513 | "simple-mfd"; |
| 514 | #address-cells = <1>; |
| 515 | #size-cells = <1>; |
| 516 | ranges = <0 0x65b00000 0x100>; |
| 517 | |
| 518 | usb0_vbus: regulator@0 { |
| 519 | compatible = "socionext,uniphier-pro4-usb3-regulator"; |
| 520 | reg = <0 0x10>; |
| 521 | clock-names = "gio", "link"; |
| 522 | clocks = <&sys_clk 12>, <&sys_clk 14>; |
| 523 | reset-names = "gio", "link"; |
| 524 | resets = <&sys_rst 12>, <&sys_rst 14>; |
| 525 | }; |
| 526 | |
| 527 | usb0_ssphy: ss-phy@10 { |
| 528 | compatible = "socionext,uniphier-pro4-usb3-ssphy"; |
| 529 | reg = <0x10 0x10>; |
| 530 | #phy-cells = <0>; |
| 531 | clock-names = "gio", "link"; |
| 532 | clocks = <&sys_clk 12>, <&sys_clk 14>; |
| 533 | reset-names = "gio", "link"; |
| 534 | resets = <&sys_rst 12>, <&sys_rst 14>; |
| 535 | vbus-supply = <&usb0_vbus>; |
| 536 | }; |
| 537 | |
| 538 | usb0_rst: reset@40 { |
| 539 | compatible = "socionext,uniphier-pro4-usb3-reset"; |
| 540 | reg = <0x40 0x4>; |
| 541 | #reset-cells = <1>; |
| 542 | clock-names = "gio", "link"; |
| 543 | clocks = <&sys_clk 12>, <&sys_clk 14>; |
| 544 | reset-names = "gio", "link"; |
| 545 | resets = <&sys_rst 12>, <&sys_rst 14>; |
| 546 | }; |
| 547 | }; |
| 548 | |
| 549 | /* FIXME: U-Boot own node */ |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 550 | usb0: usb@65b00000 { |
| 551 | compatible = "socionext,uniphier-pro4-dwc3"; |
| 552 | status = "disabled"; |
| 553 | reg = <0x65b00000 0x1000>; |
| 554 | #address-cells = <1>; |
| 555 | #size-cells = <1>; |
| 556 | ranges; |
| 557 | pinctrl-names = "default"; |
| 558 | pinctrl-0 = <&pinctrl_usb0>; |
| 559 | dwc3@65a00000 { |
| 560 | compatible = "snps,dwc3"; |
| 561 | reg = <0x65a00000 0x10000>; |
| 562 | interrupts = <0 134 4>; |
Masahiro Yamada | 3444d1d | 2017-08-13 09:01:17 +0900 | [diff] [blame] | 563 | dr_mode = "host"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 564 | tx-fifo-resize; |
| 565 | }; |
| 566 | }; |
| 567 | |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 568 | _usb1: usb@65c00000 { |
| 569 | compatible = "socionext,uniphier-dwc3", "snps,dwc3"; |
| 570 | status = "disabled"; |
| 571 | reg = <0x65c00000 0xcd00>; |
| 572 | interrupt-names = "host", "peripheral"; |
| 573 | interrupts = <0 137 4>, <0 138 4>; |
| 574 | pinctrl-names = "default"; |
| 575 | pinctrl-0 = <&pinctrl_usb1>; |
| 576 | clock-names = "ref", "bus_early", "suspend"; |
| 577 | clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>; |
| 578 | resets = <&usb1_rst 4>; |
| 579 | phys = <&usb_phy3>; |
| 580 | dr_mode = "host"; |
| 581 | }; |
| 582 | |
| 583 | usb-glue@65d00000 { |
| 584 | compatible = "socionext,uniphier-pro4-dwc3-glue", |
| 585 | "simple-mfd"; |
| 586 | #address-cells = <1>; |
| 587 | #size-cells = <1>; |
| 588 | ranges = <0 0x65d00000 0x100>; |
| 589 | |
| 590 | usb1_vbus: regulator@0 { |
| 591 | compatible = "socionext,uniphier-pro4-usb3-regulator"; |
| 592 | reg = <0 0x10>; |
| 593 | clock-names = "gio", "link"; |
| 594 | clocks = <&sys_clk 12>, <&sys_clk 15>; |
| 595 | reset-names = "gio", "link"; |
| 596 | resets = <&sys_rst 12>, <&sys_rst 15>; |
| 597 | }; |
| 598 | |
| 599 | usb1_rst: reset@40 { |
| 600 | compatible = "socionext,uniphier-pro4-usb3-reset"; |
| 601 | reg = <0x40 0x4>; |
| 602 | #reset-cells = <1>; |
| 603 | clock-names = "gio", "link"; |
| 604 | clocks = <&sys_clk 12>, <&sys_clk 15>; |
| 605 | reset-names = "gio", "link"; |
| 606 | resets = <&sys_rst 12>, <&sys_rst 15>; |
| 607 | }; |
| 608 | }; |
| 609 | |
| 610 | /* FIXME: U-Boot own node */ |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 611 | usb1: usb@65d00000 { |
| 612 | compatible = "socionext,uniphier-pro4-dwc3"; |
| 613 | status = "disabled"; |
| 614 | reg = <0x65d00000 0x1000>; |
| 615 | #address-cells = <1>; |
| 616 | #size-cells = <1>; |
| 617 | ranges; |
| 618 | pinctrl-names = "default"; |
| 619 | pinctrl-0 = <&pinctrl_usb1>; |
| 620 | dwc3@65c00000 { |
| 621 | compatible = "snps,dwc3"; |
| 622 | reg = <0x65c00000 0x10000>; |
| 623 | interrupts = <0 137 4>; |
Masahiro Yamada | 3444d1d | 2017-08-13 09:01:17 +0900 | [diff] [blame] | 624 | dr_mode = "host"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 625 | tx-fifo-resize; |
| 626 | }; |
| 627 | }; |
| 628 | |
| 629 | nand: nand@68000000 { |
Masahiro Yamada | abb6ac2 | 2017-05-15 14:23:46 +0900 | [diff] [blame] | 630 | compatible = "socionext,uniphier-denali-nand-v5a"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 631 | status = "disabled"; |
| 632 | reg-names = "nand_data", "denali_reg"; |
| 633 | reg = <0x68000000 0x20>, <0x68100000 0x1000>; |
| 634 | interrupts = <0 65 4>; |
| 635 | pinctrl-names = "default"; |
| 636 | pinctrl-0 = <&pinctrl_nand>; |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 637 | clock-names = "nand", "nand_x", "ecc"; |
| 638 | clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 639 | resets = <&sys_rst 2>; |
Masahiro Yamada | d243c18 | 2015-08-28 22:33:13 +0900 | [diff] [blame] | 640 | }; |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 641 | }; |
Masahiro Yamada | 8f06243 | 2015-12-16 10:54:07 +0900 | [diff] [blame] | 642 | }; |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 643 | |
Masahiro Yamada | 6c9e46e | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 644 | #include "uniphier-pinctrl.dtsi" |