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 LD4 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> |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 9 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 10 | |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 11 | / { |
Masahiro Yamada | 52159d2 | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 12 | compatible = "socionext,uniphier-ld4"; |
Masahiro Yamada | f16eda9 | 2017-03-13 00:16:39 +0900 | [diff] [blame] | 13 | #address-cells = <1>; |
| 14 | #size-cells = <1>; |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 15 | |
| 16 | cpus { |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 17 | #address-cells = <1>; |
Masahiro Yamada | f5fd7af | 2014-12-06 00:03:23 +0900 | [diff] [blame] | 18 | #size-cells = <0>; |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 19 | |
| 20 | cpu@0 { |
| 21 | device_type = "cpu"; |
| 22 | compatible = "arm,cortex-a9"; |
| 23 | reg = <0>; |
Masahiro Yamada | 52159d2 | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 24 | enable-method = "psci"; |
Masahiro Yamada | 4e1f81d | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 25 | next-level-cache = <&l2>; |
Masahiro Yamada | 509eb67 | 2014-11-26 18:33:59 +0900 | [diff] [blame] | 26 | }; |
| 27 | }; |
| 28 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 29 | psci { |
| 30 | compatible = "arm,psci-0.2"; |
| 31 | method = "smc"; |
| 32 | }; |
| 33 | |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 34 | clocks { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 35 | refclk: ref { |
| 36 | compatible = "fixed-clock"; |
| 37 | #clock-cells = <0>; |
| 38 | clock-frequency = <24576000>; |
| 39 | }; |
| 40 | |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 41 | arm_timer_clk: arm-timer { |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 42 | #clock-cells = <0>; |
| 43 | compatible = "fixed-clock"; |
| 44 | clock-frequency = <50000000>; |
| 45 | }; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 46 | }; |
Masahiro Yamada | d243c18 | 2015-08-28 22:33:13 +0900 | [diff] [blame] | 47 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 48 | soc { |
| 49 | compatible = "simple-bus"; |
| 50 | #address-cells = <1>; |
| 51 | #size-cells = <1>; |
| 52 | ranges; |
| 53 | interrupt-parent = <&intc>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 54 | |
Masahiro Yamada | 44ebaa8 | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 55 | l2: cache-controller@500c0000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 56 | compatible = "socionext,uniphier-system-cache"; |
| 57 | reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, |
| 58 | <0x506c0000 0x400>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 59 | interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>, |
| 60 | <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 61 | cache-unified; |
| 62 | cache-size = <(512 * 1024)>; |
| 63 | cache-sets = <256>; |
| 64 | cache-line-size = <128>; |
| 65 | cache-level = <2>; |
| 66 | }; |
| 67 | |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 68 | spi: spi@54006000 { |
| 69 | compatible = "socionext,uniphier-scssi"; |
| 70 | status = "disabled"; |
| 71 | reg = <0x54006000 0x100>; |
Masahiro Yamada | 0852033 | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 72 | #address-cells = <1>; |
| 73 | #size-cells = <0>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 74 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 75 | pinctrl-names = "default"; |
| 76 | pinctrl-0 = <&pinctrl_spi0>; |
| 77 | clocks = <&peri_clk 11>; |
| 78 | resets = <&peri_rst 11>; |
| 79 | }; |
| 80 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 81 | serial0: serial@54006800 { |
| 82 | compatible = "socionext,uniphier-uart"; |
| 83 | status = "disabled"; |
| 84 | reg = <0x54006800 0x40>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 85 | interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&pinctrl_uart0>; |
| 88 | clocks = <&peri_clk 0>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 89 | resets = <&peri_rst 0>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 90 | }; |
| 91 | |
| 92 | serial1: serial@54006900 { |
| 93 | compatible = "socionext,uniphier-uart"; |
| 94 | status = "disabled"; |
| 95 | reg = <0x54006900 0x40>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 96 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 97 | pinctrl-names = "default"; |
| 98 | pinctrl-0 = <&pinctrl_uart1>; |
| 99 | clocks = <&peri_clk 1>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 100 | resets = <&peri_rst 1>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | serial2: serial@54006a00 { |
| 104 | compatible = "socionext,uniphier-uart"; |
| 105 | status = "disabled"; |
| 106 | reg = <0x54006a00 0x40>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 107 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 108 | pinctrl-names = "default"; |
| 109 | pinctrl-0 = <&pinctrl_uart2>; |
| 110 | clocks = <&peri_clk 2>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 111 | resets = <&peri_rst 2>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 112 | }; |
| 113 | |
| 114 | serial3: serial@54006b00 { |
| 115 | compatible = "socionext,uniphier-uart"; |
| 116 | status = "disabled"; |
| 117 | reg = <0x54006b00 0x40>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 118 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 119 | pinctrl-names = "default"; |
| 120 | pinctrl-0 = <&pinctrl_uart3>; |
| 121 | clocks = <&peri_clk 3>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 122 | resets = <&peri_rst 3>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 123 | }; |
| 124 | |
Masahiro Yamada | 0f72b74 | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 125 | gpio: gpio@55000000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 126 | compatible = "socionext,uniphier-gpio"; |
Masahiro Yamada | 0f72b74 | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 127 | reg = <0x55000000 0x200>; |
| 128 | interrupt-parent = <&aidet>; |
| 129 | interrupt-controller; |
| 130 | #interrupt-cells = <2>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 131 | gpio-controller; |
| 132 | #gpio-cells = <2>; |
Masahiro Yamada | 0f72b74 | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 133 | gpio-ranges = <&pinctrl 0 0 0>; |
| 134 | gpio-ranges-group-names = "gpio_range"; |
| 135 | ngpios = <136>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 136 | socionext,interrupt-ranges = <0 48 13>, <14 62 2>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 137 | }; |
| 138 | |
| 139 | i2c0: i2c@58400000 { |
| 140 | compatible = "socionext,uniphier-i2c"; |
| 141 | status = "disabled"; |
| 142 | reg = <0x58400000 0x40>; |
| 143 | #address-cells = <1>; |
| 144 | #size-cells = <0>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 145 | interrupts = <GIC_SPI 41 IRQ_TYPE_EDGE_RISING>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 146 | pinctrl-names = "default"; |
| 147 | pinctrl-0 = <&pinctrl_i2c0>; |
| 148 | clocks = <&peri_clk 4>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 149 | resets = <&peri_rst 4>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 150 | clock-frequency = <100000>; |
| 151 | }; |
| 152 | |
| 153 | i2c1: i2c@58480000 { |
| 154 | compatible = "socionext,uniphier-i2c"; |
| 155 | status = "disabled"; |
| 156 | reg = <0x58480000 0x40>; |
| 157 | #address-cells = <1>; |
| 158 | #size-cells = <0>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 159 | interrupts = <GIC_SPI 42 IRQ_TYPE_EDGE_RISING>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 160 | pinctrl-names = "default"; |
| 161 | pinctrl-0 = <&pinctrl_i2c1>; |
| 162 | clocks = <&peri_clk 5>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 163 | resets = <&peri_rst 5>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 164 | clock-frequency = <100000>; |
| 165 | }; |
| 166 | |
| 167 | /* chip-internal connection for DMD */ |
| 168 | i2c2: i2c@58500000 { |
| 169 | compatible = "socionext,uniphier-i2c"; |
| 170 | reg = <0x58500000 0x40>; |
| 171 | #address-cells = <1>; |
| 172 | #size-cells = <0>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 173 | interrupts = <GIC_SPI 43 IRQ_TYPE_EDGE_RISING>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 174 | pinctrl-names = "default"; |
| 175 | pinctrl-0 = <&pinctrl_i2c2>; |
| 176 | clocks = <&peri_clk 6>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 177 | resets = <&peri_rst 6>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 178 | clock-frequency = <400000>; |
| 179 | }; |
| 180 | |
| 181 | i2c3: i2c@58580000 { |
| 182 | compatible = "socionext,uniphier-i2c"; |
| 183 | status = "disabled"; |
| 184 | reg = <0x58580000 0x40>; |
| 185 | #address-cells = <1>; |
| 186 | #size-cells = <0>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 187 | interrupts = <GIC_SPI 44 IRQ_TYPE_EDGE_RISING>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 188 | pinctrl-names = "default"; |
| 189 | pinctrl-0 = <&pinctrl_i2c3>; |
| 190 | clocks = <&peri_clk 7>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 191 | resets = <&peri_rst 7>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 192 | clock-frequency = <100000>; |
| 193 | }; |
| 194 | |
| 195 | system_bus: system-bus@58c00000 { |
| 196 | compatible = "socionext,uniphier-system-bus"; |
| 197 | status = "disabled"; |
| 198 | reg = <0x58c00000 0x400>; |
| 199 | #address-cells = <2>; |
| 200 | #size-cells = <1>; |
| 201 | pinctrl-names = "default"; |
| 202 | pinctrl-0 = <&pinctrl_system_bus>; |
| 203 | }; |
| 204 | |
Masahiro Yamada | abb6ac2 | 2017-05-15 14:23:46 +0900 | [diff] [blame] | 205 | smpctrl@59801000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 206 | compatible = "socionext,uniphier-smpctrl"; |
| 207 | reg = <0x59801000 0x400>; |
| 208 | }; |
| 209 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 210 | syscon@59810000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 211 | compatible = "socionext,uniphier-ld4-mioctrl", |
| 212 | "simple-mfd", "syscon"; |
| 213 | reg = <0x59810000 0x800>; |
| 214 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 215 | mio_clk: clock-controller { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 216 | compatible = "socionext,uniphier-ld4-mio-clock"; |
| 217 | #clock-cells = <1>; |
| 218 | }; |
| 219 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 220 | mio_rst: reset-controller { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 221 | compatible = "socionext,uniphier-ld4-mio-reset"; |
| 222 | #reset-cells = <1>; |
| 223 | }; |
| 224 | }; |
| 225 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 226 | syscon@59820000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 227 | compatible = "socionext,uniphier-ld4-perictrl", |
| 228 | "simple-mfd", "syscon"; |
| 229 | reg = <0x59820000 0x200>; |
| 230 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 231 | peri_clk: clock-controller { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 232 | compatible = "socionext,uniphier-ld4-peri-clock"; |
| 233 | #clock-cells = <1>; |
| 234 | }; |
| 235 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 236 | peri_rst: reset-controller { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 237 | compatible = "socionext,uniphier-ld4-peri-reset"; |
| 238 | #reset-cells = <1>; |
| 239 | }; |
| 240 | }; |
| 241 | |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 242 | dmac: dma-controller@5a000000 { |
| 243 | compatible = "socionext,uniphier-mio-dmac"; |
| 244 | reg = <0x5a000000 0x1000>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 245 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, |
| 246 | <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, |
| 247 | <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, |
| 248 | <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>, |
| 249 | <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>, |
| 250 | <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>, |
| 251 | <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 252 | clocks = <&mio_clk 7>; |
| 253 | resets = <&mio_rst 7>; |
| 254 | #dma-cells = <1>; |
| 255 | }; |
| 256 | |
Masahiro Yamada | 44ebaa8 | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 257 | sd: mmc@5a400000 { |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 258 | compatible = "socionext,uniphier-sd-v2.91"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 259 | status = "disabled"; |
| 260 | reg = <0x5a400000 0x200>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 261 | interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 262 | pinctrl-names = "default", "uhs"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 263 | pinctrl-0 = <&pinctrl_sd>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 264 | pinctrl-1 = <&pinctrl_sd_uhs>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 265 | clocks = <&mio_clk 0>; |
| 266 | reset-names = "host", "bridge"; |
| 267 | resets = <&mio_rst 0>, <&mio_rst 3>; |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 268 | dma-names = "rx-tx"; |
| 269 | dmas = <&dmac 4>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 270 | bus-width = <4>; |
| 271 | cap-sd-highspeed; |
| 272 | sd-uhs-sdr12; |
| 273 | sd-uhs-sdr25; |
| 274 | sd-uhs-sdr50; |
| 275 | }; |
| 276 | |
Masahiro Yamada | 44ebaa8 | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 277 | emmc: mmc@5a500000 { |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 278 | compatible = "socionext,uniphier-sd-v2.91"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 279 | status = "disabled"; |
| 280 | reg = <0x5a500000 0x200>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 281 | interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 33aae6b | 2018-09-10 12:58:32 +0900 | [diff] [blame] | 282 | pinctrl-names = "default"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 283 | pinctrl-0 = <&pinctrl_emmc>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 284 | clocks = <&mio_clk 1>; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 285 | reset-names = "host", "bridge", "hw"; |
| 286 | resets = <&mio_rst 1>, <&mio_rst 4>, <&mio_rst 6>; |
Masahiro Yamada | cd33fed | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 287 | dma-names = "rx-tx"; |
| 288 | dmas = <&dmac 6>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 289 | bus-width = <8>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 290 | cap-mmc-highspeed; |
| 291 | cap-mmc-hw-reset; |
Masahiro Yamada | c3ab1e1 | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 292 | non-removable; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 293 | }; |
| 294 | |
| 295 | usb0: usb@5a800100 { |
| 296 | compatible = "socionext,uniphier-ehci", "generic-ehci"; |
| 297 | status = "disabled"; |
| 298 | reg = <0x5a800100 0x100>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 299 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 300 | pinctrl-names = "default"; |
| 301 | pinctrl-0 = <&pinctrl_usb0>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 302 | clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>, |
| 303 | <&mio_clk 12>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 304 | resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>, |
| 305 | <&mio_rst 12>; |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 306 | has-transaction-translator; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 307 | }; |
| 308 | |
| 309 | usb1: usb@5a810100 { |
| 310 | compatible = "socionext,uniphier-ehci", "generic-ehci"; |
| 311 | status = "disabled"; |
| 312 | reg = <0x5a810100 0x100>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 313 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 314 | pinctrl-names = "default"; |
| 315 | pinctrl-0 = <&pinctrl_usb1>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 316 | clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>, |
| 317 | <&mio_clk 13>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 318 | resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>, |
| 319 | <&mio_rst 13>; |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 320 | has-transaction-translator; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 321 | }; |
| 322 | |
| 323 | usb2: usb@5a820100 { |
| 324 | compatible = "socionext,uniphier-ehci", "generic-ehci"; |
| 325 | status = "disabled"; |
| 326 | reg = <0x5a820100 0x100>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 327 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 328 | pinctrl-names = "default"; |
| 329 | pinctrl-0 = <&pinctrl_usb2>; |
Masahiro Yamada | b443fb4 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 330 | clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>, |
| 331 | <&mio_clk 14>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 332 | resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>, |
| 333 | <&mio_rst 14>; |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 334 | has-transaction-translator; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 335 | }; |
| 336 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 337 | syscon@5f800000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 338 | compatible = "socionext,uniphier-ld4-soc-glue", |
| 339 | "simple-mfd", "syscon"; |
| 340 | reg = <0x5f800000 0x2000>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 341 | |
| 342 | pinctrl: pinctrl { |
| 343 | compatible = "socionext,uniphier-ld4-pinctrl"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 344 | }; |
| 345 | }; |
| 346 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 347 | syscon@5f900000 { |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 348 | compatible = "socionext,uniphier-ld4-soc-glue-debug", |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 349 | "simple-mfd", "syscon"; |
| 350 | reg = <0x5f900000 0x2000>; |
Masahiro Yamada | 46820e3 | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 351 | #address-cells = <1>; |
| 352 | #size-cells = <1>; |
| 353 | ranges = <0 0x5f900000 0x2000>; |
| 354 | |
| 355 | efuse@100 { |
| 356 | compatible = "socionext,uniphier-efuse"; |
| 357 | reg = <0x100 0x28>; |
| 358 | }; |
| 359 | |
| 360 | efuse@130 { |
| 361 | compatible = "socionext,uniphier-efuse"; |
| 362 | reg = <0x130 0x8>; |
| 363 | }; |
| 364 | }; |
| 365 | |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 366 | timer@60000200 { |
| 367 | compatible = "arm,cortex-a9-global-timer"; |
| 368 | reg = <0x60000200 0x20>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 369 | interrupts = <GIC_PPI 11 |
| 370 | (GIC_CPU_MASK_RAW(1) | IRQ_TYPE_LEVEL_HIGH)>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 371 | clocks = <&arm_timer_clk>; |
| 372 | }; |
| 373 | |
| 374 | timer@60000600 { |
| 375 | compatible = "arm,cortex-a9-twd-timer"; |
| 376 | reg = <0x60000600 0x20>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 377 | interrupts = <GIC_PPI 13 |
| 378 | (GIC_CPU_MASK_RAW(1) | IRQ_TYPE_LEVEL_HIGH)>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 379 | clocks = <&arm_timer_clk>; |
| 380 | }; |
| 381 | |
| 382 | intc: interrupt-controller@60001000 { |
| 383 | compatible = "arm,cortex-a9-gic"; |
| 384 | reg = <0x60001000 0x1000>, |
| 385 | <0x60000100 0x100>; |
| 386 | #interrupt-cells = <3>; |
| 387 | interrupt-controller; |
| 388 | }; |
| 389 | |
Masahiro Yamada | 44ebaa8 | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 390 | aidet: interrupt-controller@61830000 { |
Masahiro Yamada | 6c9e46e | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 391 | compatible = "socionext,uniphier-ld4-aidet"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 392 | reg = <0x61830000 0x200>; |
Masahiro Yamada | 6c9e46e | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 393 | interrupt-controller; |
| 394 | #interrupt-cells = <2>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 395 | }; |
| 396 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 397 | syscon@61840000 { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 398 | compatible = "socionext,uniphier-ld4-sysctrl", |
| 399 | "simple-mfd", "syscon"; |
| 400 | reg = <0x61840000 0x10000>; |
| 401 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 402 | sys_clk: clock-controller { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 403 | compatible = "socionext,uniphier-ld4-clock"; |
| 404 | #clock-cells = <1>; |
| 405 | }; |
| 406 | |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 407 | sys_rst: reset-controller { |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 408 | compatible = "socionext,uniphier-ld4-reset"; |
| 409 | #reset-cells = <1>; |
| 410 | }; |
| 411 | }; |
| 412 | |
Masahiro Yamada | 44ebaa8 | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 413 | nand: nand-controller@68000000 { |
Masahiro Yamada | abb6ac2 | 2017-05-15 14:23:46 +0900 | [diff] [blame] | 414 | compatible = "socionext,uniphier-denali-nand-v5a"; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 415 | status = "disabled"; |
| 416 | reg-names = "nand_data", "denali_reg"; |
| 417 | reg = <0x68000000 0x20>, <0x68100000 0x1000>; |
Kunihiko Hayashi | 051451a | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 418 | #address-cells = <1>; |
| 419 | #size-cells = <0>; |
| 420 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | cd62214 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 421 | pinctrl-names = "default"; |
Masahiro Yamada | 6c9e46e | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 422 | pinctrl-0 = <&pinctrl_nand2cs>; |
Masahiro Yamada | 2001a81 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 423 | clock-names = "nand", "nand_x", "ecc"; |
| 424 | clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>; |
Masahiro Yamada | 5ad1596 | 2020-02-28 21:57:20 +0900 | [diff] [blame] | 425 | reset-names = "nand", "reg"; |
| 426 | resets = <&sys_rst 2>, <&sys_rst 2>; |
Masahiro Yamada | d243c18 | 2015-08-28 22:33:13 +0900 | [diff] [blame] | 427 | }; |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 428 | }; |
Masahiro Yamada | 8f06243 | 2015-12-16 10:54:07 +0900 | [diff] [blame] | 429 | }; |
Masahiro Yamada | edcfaeb | 2015-06-30 18:27:00 +0900 | [diff] [blame] | 430 | |
Masahiro Yamada | 6c9e46e | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 431 | #include "uniphier-pinctrl.dtsi" |