Masahiro Yamada | 0bc5684 | 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 PXs3 SoC |
| 4 | // |
| 5 | // Copyright (C) 2017 Socionext Inc. |
| 6 | // Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 7 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | #include <dt-bindings/gpio/uniphier-gpio.h> |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 10 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 11 | #include <dt-bindings/thermal/thermal.h> |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 12 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 13 | / { |
| 14 | compatible = "socionext,uniphier-pxs3"; |
| 15 | #address-cells = <2>; |
| 16 | #size-cells = <2>; |
| 17 | interrupt-parent = <&gic>; |
| 18 | |
| 19 | cpus { |
| 20 | #address-cells = <2>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | cpu-map { |
| 24 | cluster0 { |
| 25 | core0 { |
| 26 | cpu = <&cpu0>; |
| 27 | }; |
| 28 | core1 { |
| 29 | cpu = <&cpu1>; |
| 30 | }; |
| 31 | core2 { |
| 32 | cpu = <&cpu2>; |
| 33 | }; |
| 34 | core3 { |
| 35 | cpu = <&cpu3>; |
| 36 | }; |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | cpu0: cpu@0 { |
| 41 | device_type = "cpu"; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 42 | compatible = "arm,cortex-a53"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 43 | reg = <0 0x000>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 44 | clocks = <&sys_clk 33>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 45 | enable-method = "psci"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 46 | next-level-cache = <&l2>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 47 | operating-points-v2 = <&cluster0_opp>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 48 | #cooling-cells = <2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | cpu1: cpu@1 { |
| 52 | device_type = "cpu"; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 53 | compatible = "arm,cortex-a53"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 54 | reg = <0 0x001>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 55 | clocks = <&sys_clk 33>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 56 | enable-method = "psci"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 57 | next-level-cache = <&l2>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 58 | operating-points-v2 = <&cluster0_opp>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 59 | #cooling-cells = <2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 60 | }; |
| 61 | |
| 62 | cpu2: cpu@2 { |
| 63 | device_type = "cpu"; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 64 | compatible = "arm,cortex-a53"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 65 | reg = <0 0x002>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 66 | clocks = <&sys_clk 33>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 67 | enable-method = "psci"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 68 | next-level-cache = <&l2>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 69 | operating-points-v2 = <&cluster0_opp>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 70 | #cooling-cells = <2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | cpu3: cpu@3 { |
| 74 | device_type = "cpu"; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 75 | compatible = "arm,cortex-a53"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 76 | reg = <0 0x003>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 77 | clocks = <&sys_clk 33>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 78 | enable-method = "psci"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 79 | next-level-cache = <&l2>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 80 | operating-points-v2 = <&cluster0_opp>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 81 | #cooling-cells = <2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 82 | }; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 83 | |
| 84 | l2: l2-cache { |
| 85 | compatible = "cache"; |
| 86 | }; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 87 | }; |
| 88 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 89 | cluster0_opp: opp-table { |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 90 | compatible = "operating-points-v2"; |
| 91 | opp-shared; |
| 92 | |
| 93 | opp-250000000 { |
| 94 | opp-hz = /bits/ 64 <250000000>; |
| 95 | clock-latency-ns = <300>; |
| 96 | }; |
| 97 | opp-325000000 { |
| 98 | opp-hz = /bits/ 64 <325000000>; |
| 99 | clock-latency-ns = <300>; |
| 100 | }; |
| 101 | opp-500000000 { |
| 102 | opp-hz = /bits/ 64 <500000000>; |
| 103 | clock-latency-ns = <300>; |
| 104 | }; |
| 105 | opp-650000000 { |
| 106 | opp-hz = /bits/ 64 <650000000>; |
| 107 | clock-latency-ns = <300>; |
| 108 | }; |
| 109 | opp-666667000 { |
| 110 | opp-hz = /bits/ 64 <666667000>; |
| 111 | clock-latency-ns = <300>; |
| 112 | }; |
| 113 | opp-866667000 { |
| 114 | opp-hz = /bits/ 64 <866667000>; |
| 115 | clock-latency-ns = <300>; |
| 116 | }; |
| 117 | opp-1000000000 { |
| 118 | opp-hz = /bits/ 64 <1000000000>; |
| 119 | clock-latency-ns = <300>; |
| 120 | }; |
| 121 | opp-1300000000 { |
| 122 | opp-hz = /bits/ 64 <1300000000>; |
| 123 | clock-latency-ns = <300>; |
| 124 | }; |
| 125 | }; |
| 126 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 127 | psci { |
| 128 | compatible = "arm,psci-1.0"; |
| 129 | method = "smc"; |
| 130 | }; |
| 131 | |
| 132 | clocks { |
| 133 | refclk: ref { |
| 134 | compatible = "fixed-clock"; |
| 135 | #clock-cells = <0>; |
| 136 | clock-frequency = <25000000>; |
| 137 | }; |
| 138 | }; |
| 139 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 140 | emmc_pwrseq: emmc-pwrseq { |
| 141 | compatible = "mmc-pwrseq-emmc"; |
| 142 | reset-gpios = <&gpio UNIPHIER_GPIO_PORT(5, 7) GPIO_ACTIVE_LOW>; |
| 143 | }; |
| 144 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 145 | timer { |
| 146 | compatible = "arm,armv8-timer"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 147 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, |
| 148 | <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, |
| 149 | <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 150 | <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 151 | }; |
| 152 | |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 153 | thermal-zones { |
| 154 | cpu-thermal { |
| 155 | polling-delay-passive = <250>; /* 250ms */ |
| 156 | polling-delay = <1000>; /* 1000ms */ |
| 157 | thermal-sensors = <&pvtctl>; |
| 158 | |
| 159 | trips { |
| 160 | cpu_crit: cpu-crit { |
| 161 | temperature = <110000>; /* 110C */ |
| 162 | hysteresis = <2000>; |
| 163 | type = "critical"; |
| 164 | }; |
| 165 | cpu_alert: cpu-alert { |
| 166 | temperature = <100000>; /* 100C */ |
| 167 | hysteresis = <2000>; |
| 168 | type = "passive"; |
| 169 | }; |
| 170 | }; |
| 171 | |
| 172 | cooling-maps { |
| 173 | map0 { |
| 174 | trip = <&cpu_alert>; |
| 175 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 176 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 177 | <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 178 | <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 179 | }; |
| 180 | }; |
| 181 | }; |
| 182 | }; |
| 183 | |
Masahiro Yamada | 83701f2 | 2019-07-10 20:07:29 +0900 | [diff] [blame] | 184 | reserved-memory { |
| 185 | #address-cells = <2>; |
| 186 | #size-cells = <2>; |
| 187 | ranges; |
| 188 | |
| 189 | secure-memory@81000000 { |
| 190 | reg = <0x0 0x81000000 0x0 0x01000000>; |
| 191 | no-map; |
| 192 | }; |
| 193 | }; |
| 194 | |
Masahiro Yamada | ce6ca3c | 2017-03-13 00:16:40 +0900 | [diff] [blame] | 195 | soc@0 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 196 | compatible = "simple-bus"; |
| 197 | #address-cells = <1>; |
| 198 | #size-cells = <1>; |
| 199 | ranges = <0 0 0 0xffffffff>; |
| 200 | |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 201 | spi0: spi@54006000 { |
| 202 | compatible = "socionext,uniphier-scssi"; |
| 203 | status = "disabled"; |
| 204 | reg = <0x54006000 0x100>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 205 | #address-cells = <1>; |
| 206 | #size-cells = <0>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 207 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 208 | pinctrl-names = "default"; |
| 209 | pinctrl-0 = <&pinctrl_spi0>; |
| 210 | clocks = <&peri_clk 11>; |
| 211 | resets = <&peri_rst 11>; |
| 212 | }; |
| 213 | |
| 214 | spi1: spi@54006100 { |
| 215 | compatible = "socionext,uniphier-scssi"; |
| 216 | status = "disabled"; |
| 217 | reg = <0x54006100 0x100>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 218 | #address-cells = <1>; |
| 219 | #size-cells = <0>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 220 | interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 221 | pinctrl-names = "default"; |
| 222 | pinctrl-0 = <&pinctrl_spi1>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 223 | clocks = <&peri_clk 12>; |
| 224 | resets = <&peri_rst 12>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 225 | }; |
| 226 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 227 | serial0: serial@54006800 { |
| 228 | compatible = "socionext,uniphier-uart"; |
| 229 | status = "disabled"; |
| 230 | reg = <0x54006800 0x40>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 231 | interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 232 | pinctrl-names = "default"; |
| 233 | pinctrl-0 = <&pinctrl_uart0>; |
| 234 | clocks = <&peri_clk 0>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 235 | resets = <&peri_rst 0>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 236 | }; |
| 237 | |
| 238 | serial1: serial@54006900 { |
| 239 | compatible = "socionext,uniphier-uart"; |
| 240 | status = "disabled"; |
| 241 | reg = <0x54006900 0x40>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 242 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 243 | pinctrl-names = "default"; |
| 244 | pinctrl-0 = <&pinctrl_uart1>; |
| 245 | clocks = <&peri_clk 1>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 246 | resets = <&peri_rst 1>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 247 | }; |
| 248 | |
| 249 | serial2: serial@54006a00 { |
| 250 | compatible = "socionext,uniphier-uart"; |
| 251 | status = "disabled"; |
| 252 | reg = <0x54006a00 0x40>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 253 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 254 | pinctrl-names = "default"; |
| 255 | pinctrl-0 = <&pinctrl_uart2>; |
| 256 | clocks = <&peri_clk 2>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 257 | resets = <&peri_rst 2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 258 | }; |
| 259 | |
| 260 | serial3: serial@54006b00 { |
| 261 | compatible = "socionext,uniphier-uart"; |
| 262 | status = "disabled"; |
| 263 | reg = <0x54006b00 0x40>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 264 | interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 265 | pinctrl-names = "default"; |
| 266 | pinctrl-0 = <&pinctrl_uart3>; |
| 267 | clocks = <&peri_clk 3>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 268 | resets = <&peri_rst 3>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 269 | }; |
| 270 | |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 271 | gpio: gpio@55000000 { |
Masahiro Yamada | 964edbf | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 272 | compatible = "socionext,uniphier-gpio"; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 273 | reg = <0x55000000 0x200>; |
| 274 | interrupt-parent = <&aidet>; |
| 275 | interrupt-controller; |
| 276 | #interrupt-cells = <2>; |
| 277 | gpio-controller; |
| 278 | #gpio-cells = <2>; |
| 279 | gpio-ranges = <&pinctrl 0 0 0>, |
Masahiro Yamada | b61327d | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 280 | <&pinctrl 104 0 0>, |
| 281 | <&pinctrl 168 0 0>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 282 | gpio-ranges-group-names = "gpio_range0", |
| 283 | "gpio_range1", |
| 284 | "gpio_range2"; |
Masahiro Yamada | 964edbf | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 285 | ngpios = <286>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 286 | socionext,interrupt-ranges = <0 48 16>, <16 154 5>, |
| 287 | <21 217 3>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 288 | }; |
| 289 | |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 290 | i2c0: i2c@58780000 { |
| 291 | compatible = "socionext,uniphier-fi2c"; |
| 292 | status = "disabled"; |
| 293 | reg = <0x58780000 0x80>; |
| 294 | #address-cells = <1>; |
| 295 | #size-cells = <0>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 296 | interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 297 | pinctrl-names = "default"; |
| 298 | pinctrl-0 = <&pinctrl_i2c0>; |
| 299 | clocks = <&peri_clk 4>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 300 | resets = <&peri_rst 4>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 301 | clock-frequency = <100000>; |
| 302 | }; |
| 303 | |
| 304 | i2c1: i2c@58781000 { |
| 305 | compatible = "socionext,uniphier-fi2c"; |
| 306 | status = "disabled"; |
| 307 | reg = <0x58781000 0x80>; |
| 308 | #address-cells = <1>; |
| 309 | #size-cells = <0>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 310 | interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 311 | pinctrl-names = "default"; |
| 312 | pinctrl-0 = <&pinctrl_i2c1>; |
| 313 | clocks = <&peri_clk 5>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 314 | resets = <&peri_rst 5>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 315 | clock-frequency = <100000>; |
| 316 | }; |
| 317 | |
| 318 | i2c2: i2c@58782000 { |
| 319 | compatible = "socionext,uniphier-fi2c"; |
| 320 | status = "disabled"; |
| 321 | reg = <0x58782000 0x80>; |
| 322 | #address-cells = <1>; |
| 323 | #size-cells = <0>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 324 | interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 325 | pinctrl-names = "default"; |
| 326 | pinctrl-0 = <&pinctrl_i2c2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 327 | clocks = <&peri_clk 6>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 328 | resets = <&peri_rst 6>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 329 | clock-frequency = <100000>; |
| 330 | }; |
| 331 | |
| 332 | i2c3: i2c@58783000 { |
| 333 | compatible = "socionext,uniphier-fi2c"; |
| 334 | status = "disabled"; |
| 335 | reg = <0x58783000 0x80>; |
| 336 | #address-cells = <1>; |
| 337 | #size-cells = <0>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 338 | interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 339 | pinctrl-names = "default"; |
| 340 | pinctrl-0 = <&pinctrl_i2c3>; |
| 341 | clocks = <&peri_clk 7>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 342 | resets = <&peri_rst 7>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 343 | clock-frequency = <100000>; |
| 344 | }; |
| 345 | |
| 346 | /* chip-internal connection for HDMI */ |
| 347 | i2c6: i2c@58786000 { |
| 348 | compatible = "socionext,uniphier-fi2c"; |
| 349 | reg = <0x58786000 0x80>; |
| 350 | #address-cells = <1>; |
| 351 | #size-cells = <0>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 352 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 353 | clocks = <&peri_clk 10>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 354 | resets = <&peri_rst 10>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 355 | clock-frequency = <400000>; |
| 356 | }; |
| 357 | |
| 358 | system_bus: system-bus@58c00000 { |
| 359 | compatible = "socionext,uniphier-system-bus"; |
| 360 | status = "disabled"; |
| 361 | reg = <0x58c00000 0x400>; |
| 362 | #address-cells = <2>; |
| 363 | #size-cells = <1>; |
| 364 | pinctrl-names = "default"; |
| 365 | pinctrl-0 = <&pinctrl_system_bus>; |
| 366 | }; |
| 367 | |
Masahiro Yamada | 938ab16 | 2017-05-15 14:23:46 +0900 | [diff] [blame] | 368 | smpctrl@59801000 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 369 | compatible = "socionext,uniphier-smpctrl"; |
| 370 | reg = <0x59801000 0x400>; |
| 371 | }; |
| 372 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 373 | sdctrl: syscon@59810000 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 374 | compatible = "socionext,uniphier-pxs3-sdctrl", |
| 375 | "simple-mfd", "syscon"; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 376 | reg = <0x59810000 0x400>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 377 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 378 | sd_clk: clock-controller { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 379 | compatible = "socionext,uniphier-pxs3-sd-clock"; |
| 380 | #clock-cells = <1>; |
| 381 | }; |
| 382 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 383 | sd_rst: reset-controller { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 384 | compatible = "socionext,uniphier-pxs3-sd-reset"; |
| 385 | #reset-cells = <1>; |
| 386 | }; |
| 387 | }; |
| 388 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 389 | syscon@59820000 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 390 | compatible = "socionext,uniphier-pxs3-perictrl", |
| 391 | "simple-mfd", "syscon"; |
| 392 | reg = <0x59820000 0x200>; |
| 393 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 394 | peri_clk: clock-controller { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 395 | compatible = "socionext,uniphier-pxs3-peri-clock"; |
| 396 | #clock-cells = <1>; |
| 397 | }; |
| 398 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 399 | peri_rst: reset-controller { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 400 | compatible = "socionext,uniphier-pxs3-peri-reset"; |
| 401 | #reset-cells = <1>; |
| 402 | }; |
| 403 | }; |
| 404 | |
Masahiro Yamada | 277516a | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 405 | emmc: mmc@5a000000 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 406 | compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 407 | reg = <0x5a000000 0x400>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 408 | interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 409 | pinctrl-names = "default"; |
Masahiro Yamada | 5ac92d8 | 2018-09-10 12:58:32 +0900 | [diff] [blame] | 410 | pinctrl-0 = <&pinctrl_emmc>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 411 | clocks = <&sys_clk 4>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 412 | resets = <&sys_rst 4>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 413 | bus-width = <8>; |
| 414 | mmc-ddr-1_8v; |
| 415 | mmc-hs200-1_8v; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 416 | mmc-pwrseq = <&emmc_pwrseq>; |
Masahiro Yamada | 76b37e7 | 2018-05-23 00:30:54 +0900 | [diff] [blame] | 417 | cdns,phy-input-delay-legacy = <9>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 418 | cdns,phy-input-delay-mmc-highspeed = <2>; |
| 419 | cdns,phy-input-delay-mmc-ddr = <3>; |
| 420 | cdns,phy-dll-delay-sdclk = <21>; |
| 421 | cdns,phy-dll-delay-sdclk-hsmmc = <21>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 422 | }; |
| 423 | |
Masahiro Yamada | 277516a | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 424 | sd: mmc@5a400000 { |
Masahiro Yamada | 6c7ad4d | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 425 | compatible = "socionext,uniphier-sd-v3.1.1"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 426 | status = "disabled"; |
| 427 | reg = <0x5a400000 0x800>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 428 | interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 6c7ad4d | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 429 | pinctrl-names = "default", "uhs"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 430 | pinctrl-0 = <&pinctrl_sd>; |
Masahiro Yamada | 6c7ad4d | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 431 | pinctrl-1 = <&pinctrl_sd_uhs>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 432 | clocks = <&sd_clk 0>; |
| 433 | reset-names = "host"; |
| 434 | resets = <&sd_rst 0>; |
| 435 | bus-width = <4>; |
| 436 | cap-sd-highspeed; |
Masahiro Yamada | 6c7ad4d | 2018-09-10 12:58:35 +0900 | [diff] [blame] | 437 | sd-uhs-sdr12; |
| 438 | sd-uhs-sdr25; |
| 439 | sd-uhs-sdr50; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 440 | socionext,syscon-uhs-mode = <&sdctrl 0>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 441 | }; |
| 442 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 443 | soc_glue: syscon@5f800000 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 444 | compatible = "socionext,uniphier-pxs3-soc-glue", |
| 445 | "simple-mfd", "syscon"; |
| 446 | reg = <0x5f800000 0x2000>; |
| 447 | |
| 448 | pinctrl: pinctrl { |
| 449 | compatible = "socionext,uniphier-pxs3-pinctrl"; |
| 450 | }; |
| 451 | }; |
| 452 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 453 | syscon@5f900000 { |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 454 | compatible = "socionext,uniphier-pxs3-soc-glue-debug", |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 455 | "simple-mfd", "syscon"; |
| 456 | reg = <0x5f900000 0x2000>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 457 | #address-cells = <1>; |
| 458 | #size-cells = <1>; |
| 459 | ranges = <0 0x5f900000 0x2000>; |
| 460 | |
| 461 | efuse@100 { |
| 462 | compatible = "socionext,uniphier-efuse"; |
| 463 | reg = <0x100 0x28>; |
| 464 | }; |
| 465 | |
| 466 | efuse@200 { |
| 467 | compatible = "socionext,uniphier-efuse"; |
| 468 | reg = <0x200 0x68>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 469 | #address-cells = <1>; |
| 470 | #size-cells = <1>; |
| 471 | |
| 472 | /* USB cells */ |
| 473 | usb_rterm0: trim@54,4 { |
| 474 | reg = <0x54 1>; |
| 475 | bits = <4 2>; |
| 476 | }; |
| 477 | usb_rterm1: trim@55,4 { |
| 478 | reg = <0x55 1>; |
| 479 | bits = <4 2>; |
| 480 | }; |
| 481 | usb_rterm2: trim@58,4 { |
| 482 | reg = <0x58 1>; |
| 483 | bits = <4 2>; |
| 484 | }; |
| 485 | usb_rterm3: trim@59,4 { |
| 486 | reg = <0x59 1>; |
| 487 | bits = <4 2>; |
| 488 | }; |
| 489 | usb_sel_t0: trim@54,0 { |
| 490 | reg = <0x54 1>; |
| 491 | bits = <0 4>; |
| 492 | }; |
| 493 | usb_sel_t1: trim@55,0 { |
| 494 | reg = <0x55 1>; |
| 495 | bits = <0 4>; |
| 496 | }; |
| 497 | usb_sel_t2: trim@58,0 { |
| 498 | reg = <0x58 1>; |
| 499 | bits = <0 4>; |
| 500 | }; |
| 501 | usb_sel_t3: trim@59,0 { |
| 502 | reg = <0x59 1>; |
| 503 | bits = <0 4>; |
| 504 | }; |
| 505 | usb_hs_i0: trim@56,0 { |
| 506 | reg = <0x56 1>; |
| 507 | bits = <0 4>; |
| 508 | }; |
| 509 | usb_hs_i2: trim@5a,0 { |
| 510 | reg = <0x5a 1>; |
| 511 | bits = <0 4>; |
| 512 | }; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 513 | }; |
| 514 | }; |
| 515 | |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 516 | xdmac: dma-controller@5fc10000 { |
| 517 | compatible = "socionext,uniphier-xdmac"; |
| 518 | reg = <0x5fc10000 0x5300>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 519 | interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 520 | dma-channels = <16>; |
| 521 | #dma-cells = <2>; |
| 522 | }; |
| 523 | |
Masahiro Yamada | 277516a | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 524 | aidet: interrupt-controller@5fc20000 { |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 525 | compatible = "socionext,uniphier-pxs3-aidet"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 526 | reg = <0x5fc20000 0x200>; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 527 | interrupt-controller; |
| 528 | #interrupt-cells = <2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 529 | }; |
| 530 | |
| 531 | gic: interrupt-controller@5fe00000 { |
| 532 | compatible = "arm,gic-v3"; |
| 533 | reg = <0x5fe00000 0x10000>, /* GICD */ |
| 534 | <0x5fe80000 0x80000>; /* GICR */ |
| 535 | interrupt-controller; |
| 536 | #interrupt-cells = <3>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 537 | interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 538 | }; |
| 539 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 540 | syscon@61840000 { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 541 | compatible = "socionext,uniphier-pxs3-sysctrl", |
| 542 | "simple-mfd", "syscon"; |
| 543 | reg = <0x61840000 0x10000>; |
| 544 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 545 | sys_clk: clock-controller { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 546 | compatible = "socionext,uniphier-pxs3-clock"; |
| 547 | #clock-cells = <1>; |
| 548 | }; |
| 549 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 550 | sys_rst: reset-controller { |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 551 | compatible = "socionext,uniphier-pxs3-reset"; |
| 552 | #reset-cells = <1>; |
| 553 | }; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 554 | |
| 555 | watchdog { |
| 556 | compatible = "socionext,uniphier-wdt"; |
| 557 | }; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 558 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 559 | pvtctl: thermal-sensor { |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 560 | compatible = "socionext,uniphier-pxs3-thermal"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 561 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 423471f | 2020-07-09 15:08:14 +0900 | [diff] [blame] | 562 | #thermal-sensor-cells = <0>; |
| 563 | socionext,tmod-calibration = <0x0f22 0x68ee>; |
| 564 | }; |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 565 | }; |
| 566 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 567 | eth0: ethernet@65000000 { |
| 568 | compatible = "socionext,uniphier-pxs3-ave4"; |
| 569 | status = "disabled"; |
| 570 | reg = <0x65000000 0x8500>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 571 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 572 | pinctrl-names = "default"; |
| 573 | pinctrl-0 = <&pinctrl_ether_rgmii>; |
Kunihiko Hayashi | 0ed9d14 | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 574 | clock-names = "ether"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 575 | clocks = <&sys_clk 6>; |
Kunihiko Hayashi | 0ed9d14 | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 576 | reset-names = "ether"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 577 | resets = <&sys_rst 6>; |
Kunihiko Hayashi | b805579 | 2022-07-13 10:59:45 +0900 | [diff] [blame] | 578 | phy-mode = "rgmii-id"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 579 | local-mac-address = [00 00 00 00 00 00]; |
Kunihiko Hayashi | b57334d | 2018-05-11 18:49:14 +0900 | [diff] [blame] | 580 | socionext,syscon-phy-mode = <&soc_glue 0>; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 581 | |
| 582 | mdio0: mdio { |
| 583 | #address-cells = <1>; |
| 584 | #size-cells = <0>; |
| 585 | }; |
| 586 | }; |
| 587 | |
| 588 | eth1: ethernet@65200000 { |
| 589 | compatible = "socionext,uniphier-pxs3-ave4"; |
| 590 | status = "disabled"; |
| 591 | reg = <0x65200000 0x8500>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 592 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 593 | pinctrl-names = "default"; |
| 594 | pinctrl-0 = <&pinctrl_ether1_rgmii>; |
Kunihiko Hayashi | 0ed9d14 | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 595 | clock-names = "ether"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 596 | clocks = <&sys_clk 7>; |
Kunihiko Hayashi | 0ed9d14 | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 597 | reset-names = "ether"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 598 | resets = <&sys_rst 7>; |
Kunihiko Hayashi | b805579 | 2022-07-13 10:59:45 +0900 | [diff] [blame] | 599 | phy-mode = "rgmii-id"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 600 | local-mac-address = [00 00 00 00 00 00]; |
Kunihiko Hayashi | b57334d | 2018-05-11 18:49:14 +0900 | [diff] [blame] | 601 | socionext,syscon-phy-mode = <&soc_glue 1>; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 602 | |
| 603 | mdio1: mdio { |
| 604 | #address-cells = <1>; |
| 605 | #size-cells = <0>; |
| 606 | }; |
| 607 | }; |
| 608 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 609 | ahci0: sata@65600000 { |
| 610 | compatible = "socionext,uniphier-pxs3-ahci", |
| 611 | "generic-ahci"; |
| 612 | status = "disabled"; |
| 613 | reg = <0x65600000 0x10000>; |
| 614 | interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>; |
| 615 | clocks = <&sys_clk 28>; |
| 616 | resets = <&sys_rst 28>, <&ahci0_rst 0>; |
| 617 | ports-implemented = <1>; |
| 618 | phys = <&ahci0_phy>; |
| 619 | }; |
| 620 | |
| 621 | sata-controller@65700000 { |
| 622 | compatible = "socionext,uniphier-pxs3-ahci-glue", |
| 623 | "simple-mfd"; |
| 624 | reg = <0x65700000 0x100>; |
| 625 | #address-cells = <1>; |
| 626 | #size-cells = <1>; |
| 627 | ranges = <0 0x65700000 0x100>; |
| 628 | |
| 629 | ahci0_rst: reset-controller@0 { |
| 630 | compatible = "socionext,uniphier-pxs3-ahci-reset"; |
| 631 | reg = <0x0 0x4>; |
| 632 | clock-names = "link"; |
| 633 | clocks = <&sys_clk 28>; |
| 634 | reset-names = "link"; |
| 635 | resets = <&sys_rst 28>; |
| 636 | #reset-cells = <1>; |
| 637 | }; |
| 638 | |
| 639 | ahci0_phy: phy@10 { |
| 640 | compatible = "socionext,uniphier-pxs3-ahci-phy"; |
| 641 | reg = <0x10 0x10>; |
| 642 | clock-names = "link", "phy"; |
| 643 | clocks = <&sys_clk 28>, <&sys_clk 30>; |
| 644 | reset-names = "link", "phy"; |
| 645 | resets = <&sys_rst 28>, <&sys_rst 30>; |
| 646 | #phy-cells = <0>; |
| 647 | }; |
| 648 | }; |
| 649 | |
| 650 | ahci1: sata@65800000 { |
| 651 | compatible = "socionext,uniphier-pxs3-ahci", |
| 652 | "generic-ahci"; |
| 653 | status = "disabled"; |
| 654 | reg = <0x65800000 0x10000>; |
| 655 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; |
| 656 | clocks = <&sys_clk 29>; |
| 657 | resets = <&sys_rst 29>, <&ahci1_rst 0>; |
| 658 | ports-implemented = <1>; |
| 659 | phys = <&ahci1_phy>; |
| 660 | }; |
| 661 | |
| 662 | sata-controller@65900000 { |
| 663 | compatible = "socionext,uniphier-pxs3-ahci-glue", |
| 664 | "simple-mfd"; |
| 665 | reg = <0x65900000 0x100>; |
| 666 | #address-cells = <1>; |
| 667 | #size-cells = <1>; |
| 668 | ranges = <0 0x65900000 0x100>; |
| 669 | |
| 670 | ahci1_rst: reset-controller@0 { |
| 671 | compatible = "socionext,uniphier-pxs3-ahci-reset"; |
| 672 | reg = <0x0 0x4>; |
| 673 | clock-names = "link"; |
| 674 | clocks = <&sys_clk 29>; |
| 675 | reset-names = "link"; |
| 676 | resets = <&sys_rst 29>; |
| 677 | #reset-cells = <1>; |
| 678 | }; |
| 679 | |
| 680 | ahci1_phy: phy@10 { |
| 681 | compatible = "socionext,uniphier-pxs3-ahci-phy"; |
| 682 | reg = <0x10 0x10>; |
| 683 | clock-names = "link", "phy"; |
| 684 | clocks = <&sys_clk 29>, <&sys_clk 30>; |
| 685 | reset-names = "link", "phy"; |
| 686 | resets = <&sys_rst 29>, <&sys_rst 30>; |
| 687 | #phy-cells = <0>; |
| 688 | }; |
| 689 | }; |
| 690 | |
Kunihiko Hayashi | 99eda99 | 2023-02-28 11:37:08 +0900 | [diff] [blame] | 691 | usb0: usb@65a00000 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 692 | compatible = "socionext,uniphier-dwc3", "snps,dwc3"; |
| 693 | status = "disabled"; |
| 694 | reg = <0x65a00000 0xcd00>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 695 | interrupt-names = "dwc_usb3"; |
| 696 | interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 697 | pinctrl-names = "default"; |
| 698 | pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>; |
| 699 | clock-names = "ref", "bus_early", "suspend"; |
| 700 | clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>; |
| 701 | resets = <&usb0_rst 15>; |
| 702 | phys = <&usb0_hsphy0>, <&usb0_hsphy1>, |
| 703 | <&usb0_ssphy0>, <&usb0_ssphy1>; |
| 704 | dr_mode = "host"; |
| 705 | }; |
| 706 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 707 | usb-controller@65b00000 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 708 | compatible = "socionext,uniphier-pxs3-dwc3-glue", |
| 709 | "simple-mfd"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 710 | reg = <0x65b00000 0x400>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 711 | #address-cells = <1>; |
| 712 | #size-cells = <1>; |
| 713 | ranges = <0 0x65b00000 0x400>; |
| 714 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 715 | usb0_rst: reset-controller@0 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 716 | compatible = "socionext,uniphier-pxs3-usb3-reset"; |
| 717 | reg = <0x0 0x4>; |
| 718 | #reset-cells = <1>; |
| 719 | clock-names = "link"; |
| 720 | clocks = <&sys_clk 12>; |
| 721 | reset-names = "link"; |
| 722 | resets = <&sys_rst 12>; |
| 723 | }; |
| 724 | |
| 725 | usb0_vbus0: regulator@100 { |
| 726 | compatible = "socionext,uniphier-pxs3-usb3-regulator"; |
| 727 | reg = <0x100 0x10>; |
| 728 | clock-names = "link"; |
| 729 | clocks = <&sys_clk 12>; |
| 730 | reset-names = "link"; |
| 731 | resets = <&sys_rst 12>; |
| 732 | }; |
| 733 | |
| 734 | usb0_vbus1: regulator@110 { |
| 735 | compatible = "socionext,uniphier-pxs3-usb3-regulator"; |
| 736 | reg = <0x110 0x10>; |
| 737 | clock-names = "link"; |
| 738 | clocks = <&sys_clk 12>; |
| 739 | reset-names = "link"; |
| 740 | resets = <&sys_rst 12>; |
| 741 | }; |
| 742 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 743 | usb0_hsphy0: phy@200 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 744 | compatible = "socionext,uniphier-pxs3-usb3-hsphy"; |
| 745 | reg = <0x200 0x10>; |
| 746 | #phy-cells = <0>; |
| 747 | clock-names = "link", "phy"; |
| 748 | clocks = <&sys_clk 12>, <&sys_clk 16>; |
| 749 | reset-names = "link", "phy"; |
| 750 | resets = <&sys_rst 12>, <&sys_rst 16>; |
| 751 | vbus-supply = <&usb0_vbus0>; |
| 752 | nvmem-cell-names = "rterm", "sel_t", "hs_i"; |
| 753 | nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>, |
| 754 | <&usb_hs_i0>; |
| 755 | }; |
| 756 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 757 | usb0_hsphy1: phy@210 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 758 | compatible = "socionext,uniphier-pxs3-usb3-hsphy"; |
| 759 | reg = <0x210 0x10>; |
| 760 | #phy-cells = <0>; |
| 761 | clock-names = "link", "phy"; |
| 762 | clocks = <&sys_clk 12>, <&sys_clk 16>; |
| 763 | reset-names = "link", "phy"; |
| 764 | resets = <&sys_rst 12>, <&sys_rst 16>; |
| 765 | vbus-supply = <&usb0_vbus1>; |
| 766 | nvmem-cell-names = "rterm", "sel_t", "hs_i"; |
| 767 | nvmem-cells = <&usb_rterm1>, <&usb_sel_t1>, |
| 768 | <&usb_hs_i0>; |
| 769 | }; |
| 770 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 771 | usb0_ssphy0: phy@300 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 772 | compatible = "socionext,uniphier-pxs3-usb3-ssphy"; |
| 773 | reg = <0x300 0x10>; |
| 774 | #phy-cells = <0>; |
| 775 | clock-names = "link", "phy"; |
| 776 | clocks = <&sys_clk 12>, <&sys_clk 17>; |
| 777 | reset-names = "link", "phy"; |
| 778 | resets = <&sys_rst 12>, <&sys_rst 17>; |
| 779 | vbus-supply = <&usb0_vbus0>; |
| 780 | }; |
| 781 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 782 | usb0_ssphy1: phy@310 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 783 | compatible = "socionext,uniphier-pxs3-usb3-ssphy"; |
| 784 | reg = <0x310 0x10>; |
| 785 | #phy-cells = <0>; |
| 786 | clock-names = "link", "phy"; |
| 787 | clocks = <&sys_clk 12>, <&sys_clk 18>; |
| 788 | reset-names = "link", "phy"; |
| 789 | resets = <&sys_rst 12>, <&sys_rst 18>; |
| 790 | vbus-supply = <&usb0_vbus1>; |
| 791 | }; |
| 792 | }; |
| 793 | |
Kunihiko Hayashi | 99eda99 | 2023-02-28 11:37:08 +0900 | [diff] [blame] | 794 | usb1: usb@65c00000 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 795 | compatible = "socionext,uniphier-dwc3", "snps,dwc3"; |
| 796 | status = "disabled"; |
| 797 | reg = <0x65c00000 0xcd00>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 798 | interrupt-names = "dwc_usb3"; |
| 799 | interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 800 | pinctrl-names = "default"; |
| 801 | pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>; |
| 802 | clock-names = "ref", "bus_early", "suspend"; |
| 803 | clocks = <&sys_clk 13>, <&sys_clk 13>, <&sys_clk 13>; |
| 804 | resets = <&usb1_rst 15>; |
| 805 | phys = <&usb1_hsphy0>, <&usb1_hsphy1>, |
| 806 | <&usb1_ssphy0>; |
| 807 | dr_mode = "host"; |
| 808 | }; |
| 809 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 810 | usb-controller@65d00000 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 811 | compatible = "socionext,uniphier-pxs3-dwc3-glue", |
| 812 | "simple-mfd"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 813 | reg = <0x65d00000 0x400>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 814 | #address-cells = <1>; |
| 815 | #size-cells = <1>; |
| 816 | ranges = <0 0x65d00000 0x400>; |
| 817 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 818 | usb1_rst: reset-controller@0 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 819 | compatible = "socionext,uniphier-pxs3-usb3-reset"; |
| 820 | reg = <0x0 0x4>; |
| 821 | #reset-cells = <1>; |
| 822 | clock-names = "link"; |
| 823 | clocks = <&sys_clk 13>; |
| 824 | reset-names = "link"; |
| 825 | resets = <&sys_rst 13>; |
| 826 | }; |
| 827 | |
| 828 | usb1_vbus0: regulator@100 { |
| 829 | compatible = "socionext,uniphier-pxs3-usb3-regulator"; |
| 830 | reg = <0x100 0x10>; |
| 831 | clock-names = "link"; |
| 832 | clocks = <&sys_clk 13>; |
| 833 | reset-names = "link"; |
| 834 | resets = <&sys_rst 13>; |
| 835 | }; |
| 836 | |
| 837 | usb1_vbus1: regulator@110 { |
| 838 | compatible = "socionext,uniphier-pxs3-usb3-regulator"; |
| 839 | reg = <0x110 0x10>; |
| 840 | clock-names = "link"; |
| 841 | clocks = <&sys_clk 13>; |
| 842 | reset-names = "link"; |
| 843 | resets = <&sys_rst 13>; |
| 844 | }; |
| 845 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 846 | usb1_hsphy0: phy@200 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 847 | compatible = "socionext,uniphier-pxs3-usb3-hsphy"; |
| 848 | reg = <0x200 0x10>; |
| 849 | #phy-cells = <0>; |
| 850 | clock-names = "link", "phy", "phy-ext"; |
| 851 | clocks = <&sys_clk 13>, <&sys_clk 20>, |
| 852 | <&sys_clk 14>; |
| 853 | reset-names = "link", "phy"; |
| 854 | resets = <&sys_rst 13>, <&sys_rst 20>; |
| 855 | vbus-supply = <&usb1_vbus0>; |
| 856 | nvmem-cell-names = "rterm", "sel_t", "hs_i"; |
| 857 | nvmem-cells = <&usb_rterm2>, <&usb_sel_t2>, |
| 858 | <&usb_hs_i2>; |
| 859 | }; |
| 860 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 861 | usb1_hsphy1: phy@210 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 862 | compatible = "socionext,uniphier-pxs3-usb3-hsphy"; |
| 863 | reg = <0x210 0x10>; |
| 864 | #phy-cells = <0>; |
| 865 | clock-names = "link", "phy", "phy-ext"; |
| 866 | clocks = <&sys_clk 13>, <&sys_clk 20>, |
| 867 | <&sys_clk 14>; |
| 868 | reset-names = "link", "phy"; |
| 869 | resets = <&sys_rst 13>, <&sys_rst 20>; |
| 870 | vbus-supply = <&usb1_vbus1>; |
| 871 | nvmem-cell-names = "rterm", "sel_t", "hs_i"; |
| 872 | nvmem-cells = <&usb_rterm3>, <&usb_sel_t3>, |
| 873 | <&usb_hs_i2>; |
| 874 | }; |
| 875 | |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 876 | usb1_ssphy0: phy@300 { |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 877 | compatible = "socionext,uniphier-pxs3-usb3-ssphy"; |
| 878 | reg = <0x300 0x10>; |
| 879 | #phy-cells = <0>; |
| 880 | clock-names = "link", "phy", "phy-ext"; |
| 881 | clocks = <&sys_clk 13>, <&sys_clk 21>, |
| 882 | <&sys_clk 14>; |
| 883 | reset-names = "link", "phy"; |
| 884 | resets = <&sys_rst 13>, <&sys_rst 21>; |
| 885 | vbus-supply = <&usb1_vbus0>; |
| 886 | }; |
| 887 | }; |
| 888 | |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 889 | pcie: pcie@66000000 { |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 890 | compatible = "socionext,uniphier-pcie"; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 891 | status = "disabled"; |
| 892 | reg-names = "dbi", "link", "config"; |
| 893 | reg = <0x66000000 0x1000>, <0x66010000 0x10000>, |
| 894 | <0x2fff0000 0x10000>; |
| 895 | #address-cells = <3>; |
| 896 | #size-cells = <2>; |
| 897 | clocks = <&sys_clk 24>; |
| 898 | resets = <&sys_rst 24>; |
| 899 | num-lanes = <1>; |
| 900 | num-viewport = <1>; |
| 901 | bus-range = <0x0 0xff>; |
| 902 | device_type = "pci"; |
| 903 | ranges = |
| 904 | /* downstream I/O */ |
| 905 | <0x81000000 0 0x00000000 0x2ffe0000 0 0x00010000>, |
| 906 | /* non-prefetchable memory */ |
| 907 | <0x82000000 0 0x20000000 0x20000000 0 0x0ffe0000>; |
| 908 | #interrupt-cells = <1>; |
| 909 | interrupt-names = "dma", "msi"; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 910 | interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>, |
| 911 | <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 912 | interrupt-map-mask = <0 0 0 7>; |
| 913 | interrupt-map = <0 0 0 1 &pcie_intc 0>, /* INTA */ |
| 914 | <0 0 0 2 &pcie_intc 1>, /* INTB */ |
| 915 | <0 0 0 3 &pcie_intc 2>, /* INTC */ |
| 916 | <0 0 0 4 &pcie_intc 3>; /* INTD */ |
| 917 | phy-names = "pcie-phy"; |
| 918 | phys = <&pcie_phy>; |
| 919 | |
| 920 | pcie_intc: legacy-interrupt-controller { |
| 921 | interrupt-controller; |
| 922 | #interrupt-cells = <1>; |
| 923 | interrupt-parent = <&gic>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 924 | interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 925 | }; |
| 926 | }; |
| 927 | |
| 928 | pcie_phy: phy@66038000 { |
| 929 | compatible = "socionext,uniphier-pxs3-pcie-phy"; |
| 930 | reg = <0x66038000 0x4000>; |
| 931 | #phy-cells = <0>; |
Masahiro Yamada | 5e8f4ad | 2020-08-04 14:41:09 +0900 | [diff] [blame] | 932 | clock-names = "link"; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 933 | clocks = <&sys_clk 24>; |
Masahiro Yamada | 5e8f4ad | 2020-08-04 14:41:09 +0900 | [diff] [blame] | 934 | reset-names = "link"; |
Masahiro Yamada | c902688 | 2019-04-12 18:55:50 +0900 | [diff] [blame] | 935 | resets = <&sys_rst 24>; |
| 936 | socionext,syscon = <&soc_glue>; |
| 937 | }; |
| 938 | |
Masahiro Yamada | 277516a | 2020-02-28 21:57:19 +0900 | [diff] [blame] | 939 | nand: nand-controller@68000000 { |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 940 | compatible = "socionext,uniphier-denali-nand-v5b"; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 941 | status = "disabled"; |
| 942 | reg-names = "nand_data", "denali_reg"; |
| 943 | reg = <0x68000000 0x20>, <0x68100000 0x1000>; |
Kunihiko Hayashi | c13863f | 2023-02-28 11:37:09 +0900 | [diff] [blame] | 944 | #address-cells = <1>; |
| 945 | #size-cells = <0>; |
| 946 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 947 | pinctrl-names = "default"; |
| 948 | pinctrl-0 = <&pinctrl_nand>; |
Masahiro Yamada | 6bd84d7 | 2018-12-19 20:03:21 +0900 | [diff] [blame] | 949 | clock-names = "nand", "nand_x", "ecc"; |
| 950 | clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>; |
Masahiro Yamada | b226e52 | 2020-02-28 21:57:20 +0900 | [diff] [blame] | 951 | reset-names = "nand", "reg"; |
| 952 | resets = <&sys_rst 2>, <&sys_rst 2>; |
Masahiro Yamada | 47ff9d5 | 2017-01-21 18:05:30 +0900 | [diff] [blame] | 953 | }; |
| 954 | }; |
| 955 | }; |
| 956 | |
Masahiro Yamada | 23bdb3d | 2017-08-29 12:20:53 +0900 | [diff] [blame] | 957 | #include "uniphier-pinctrl.dtsi" |