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 PXs2 SoC |
| 4 | // |
| 5 | // Copyright (C) 2015-2016 Socionext Inc. |
| 6 | // Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 7 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 8 | #include <dt-bindings/gpio/uniphier-gpio.h> |
| 9 | #include <dt-bindings/thermal/thermal.h> |
| 10 | |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 11 | / { |
Masahiro Yamada | 39a67ff | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 12 | compatible = "socionext,uniphier-pxs2"; |
Masahiro Yamada | 6cd78f7 | 2017-03-13 00:16:39 +0900 | [diff] [blame] | 13 | #address-cells = <1>; |
| 14 | #size-cells = <1>; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 15 | |
| 16 | cpus { |
| 17 | #address-cells = <1>; |
| 18 | #size-cells = <0>; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 19 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 20 | cpu0: cpu@0 { |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 21 | device_type = "cpu"; |
| 22 | compatible = "arm,cortex-a9"; |
| 23 | reg = <0>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 24 | clocks = <&sys_clk 32>; |
Masahiro Yamada | 39a67ff | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 25 | enable-method = "psci"; |
Masahiro Yamada | b36f305 | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 26 | next-level-cache = <&l2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 27 | operating-points-v2 = <&cpu_opp>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 28 | #cooling-cells = <2>; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 29 | }; |
| 30 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 31 | cpu1: cpu@1 { |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 32 | device_type = "cpu"; |
| 33 | compatible = "arm,cortex-a9"; |
| 34 | reg = <1>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 35 | clocks = <&sys_clk 32>; |
Masahiro Yamada | 39a67ff | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 36 | enable-method = "psci"; |
Masahiro Yamada | b36f305 | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 37 | next-level-cache = <&l2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 38 | operating-points-v2 = <&cpu_opp>; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 39 | }; |
| 40 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 41 | cpu2: cpu@2 { |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 42 | device_type = "cpu"; |
| 43 | compatible = "arm,cortex-a9"; |
| 44 | reg = <2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 45 | clocks = <&sys_clk 32>; |
Masahiro Yamada | 39a67ff | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 46 | enable-method = "psci"; |
Masahiro Yamada | b36f305 | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 47 | next-level-cache = <&l2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 48 | operating-points-v2 = <&cpu_opp>; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 49 | }; |
| 50 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 51 | cpu3: cpu@3 { |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 52 | device_type = "cpu"; |
| 53 | compatible = "arm,cortex-a9"; |
| 54 | reg = <3>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 55 | clocks = <&sys_clk 32>; |
Masahiro Yamada | 39a67ff | 2016-10-07 16:43:00 +0900 | [diff] [blame] | 56 | enable-method = "psci"; |
Masahiro Yamada | b36f305 | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 57 | next-level-cache = <&l2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 58 | operating-points-v2 = <&cpu_opp>; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 59 | }; |
| 60 | }; |
| 61 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 62 | cpu_opp: opp-table { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 63 | compatible = "operating-points-v2"; |
| 64 | opp-shared; |
| 65 | |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 66 | opp-100000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 67 | opp-hz = /bits/ 64 <100000000>; |
| 68 | clock-latency-ns = <300>; |
| 69 | }; |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 70 | opp-150000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 71 | opp-hz = /bits/ 64 <150000000>; |
| 72 | clock-latency-ns = <300>; |
| 73 | }; |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 74 | opp-200000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 75 | opp-hz = /bits/ 64 <200000000>; |
| 76 | clock-latency-ns = <300>; |
| 77 | }; |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 78 | opp-300000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 79 | opp-hz = /bits/ 64 <300000000>; |
| 80 | clock-latency-ns = <300>; |
| 81 | }; |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 82 | opp-400000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 83 | opp-hz = /bits/ 64 <400000000>; |
| 84 | clock-latency-ns = <300>; |
| 85 | }; |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 86 | opp-600000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 87 | opp-hz = /bits/ 64 <600000000>; |
| 88 | clock-latency-ns = <300>; |
| 89 | }; |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 90 | opp-800000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 91 | opp-hz = /bits/ 64 <800000000>; |
| 92 | clock-latency-ns = <300>; |
| 93 | }; |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 94 | opp-1200000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 95 | opp-hz = /bits/ 64 <1200000000>; |
| 96 | clock-latency-ns = <300>; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | psci { |
| 101 | compatible = "arm,psci-0.2"; |
| 102 | method = "smc"; |
| 103 | }; |
| 104 | |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 105 | clocks { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 106 | refclk: ref { |
| 107 | compatible = "fixed-clock"; |
| 108 | #clock-cells = <0>; |
| 109 | clock-frequency = <25000000>; |
| 110 | }; |
| 111 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 112 | arm_timer_clk: arm-timer { |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 113 | #clock-cells = <0>; |
| 114 | compatible = "fixed-clock"; |
| 115 | clock-frequency = <50000000>; |
| 116 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 117 | }; |
| 118 | |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 119 | thermal-zones { |
| 120 | cpu-thermal { |
| 121 | polling-delay-passive = <250>; /* 250ms */ |
| 122 | polling-delay = <1000>; /* 1000ms */ |
| 123 | thermal-sensors = <&pvtctl>; |
| 124 | |
| 125 | trips { |
| 126 | cpu_crit: cpu-crit { |
| 127 | temperature = <95000>; /* 95C */ |
| 128 | hysteresis = <2000>; |
| 129 | type = "critical"; |
| 130 | }; |
| 131 | cpu_alert: cpu-alert { |
| 132 | temperature = <85000>; /* 85C */ |
| 133 | hysteresis = <2000>; |
| 134 | type = "passive"; |
| 135 | }; |
| 136 | }; |
| 137 | |
| 138 | cooling-maps { |
| 139 | map { |
| 140 | trip = <&cpu_alert>; |
| 141 | cooling-device = <&cpu0 |
| 142 | THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 143 | }; |
| 144 | }; |
| 145 | }; |
| 146 | }; |
| 147 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 148 | soc { |
| 149 | compatible = "simple-bus"; |
| 150 | #address-cells = <1>; |
| 151 | #size-cells = <1>; |
| 152 | ranges; |
| 153 | interrupt-parent = <&intc>; |
Masahiro Yamada | b36f305 | 2015-12-16 10:54:08 +0900 | [diff] [blame] | 154 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 155 | l2: l2-cache@500c0000 { |
| 156 | compatible = "socionext,uniphier-system-cache"; |
| 157 | reg = <0x500c0000 0x2000>, <0x503c0100 0x8>, |
| 158 | <0x506c0000 0x400>; |
| 159 | interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>; |
| 160 | cache-unified; |
| 161 | cache-size = <(1280 * 1024)>; |
| 162 | cache-sets = <512>; |
| 163 | cache-line-size = <128>; |
| 164 | cache-level = <2>; |
| 165 | }; |
Masahiro Yamada | 6835b45 | 2016-02-16 17:03:51 +0900 | [diff] [blame] | 166 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 167 | serial0: serial@54006800 { |
| 168 | compatible = "socionext,uniphier-uart"; |
| 169 | status = "disabled"; |
| 170 | reg = <0x54006800 0x40>; |
| 171 | interrupts = <0 33 4>; |
| 172 | pinctrl-names = "default"; |
| 173 | pinctrl-0 = <&pinctrl_uart0>; |
| 174 | clocks = <&peri_clk 0>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 175 | resets = <&peri_rst 0>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 176 | }; |
Masahiro Yamada | 6835b45 | 2016-02-16 17:03:51 +0900 | [diff] [blame] | 177 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 178 | serial1: serial@54006900 { |
| 179 | compatible = "socionext,uniphier-uart"; |
| 180 | status = "disabled"; |
| 181 | reg = <0x54006900 0x40>; |
| 182 | interrupts = <0 35 4>; |
| 183 | pinctrl-names = "default"; |
| 184 | pinctrl-0 = <&pinctrl_uart1>; |
| 185 | clocks = <&peri_clk 1>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 186 | resets = <&peri_rst 1>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 187 | }; |
Masahiro Yamada | 6835b45 | 2016-02-16 17:03:51 +0900 | [diff] [blame] | 188 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 189 | serial2: serial@54006a00 { |
| 190 | compatible = "socionext,uniphier-uart"; |
| 191 | status = "disabled"; |
| 192 | reg = <0x54006a00 0x40>; |
| 193 | interrupts = <0 37 4>; |
| 194 | pinctrl-names = "default"; |
| 195 | pinctrl-0 = <&pinctrl_uart2>; |
| 196 | clocks = <&peri_clk 2>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 197 | resets = <&peri_rst 2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 198 | }; |
Masahiro Yamada | 6835b45 | 2016-02-16 17:03:51 +0900 | [diff] [blame] | 199 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 200 | serial3: serial@54006b00 { |
| 201 | compatible = "socionext,uniphier-uart"; |
| 202 | status = "disabled"; |
| 203 | reg = <0x54006b00 0x40>; |
| 204 | interrupts = <0 177 4>; |
| 205 | pinctrl-names = "default"; |
| 206 | pinctrl-0 = <&pinctrl_uart3>; |
| 207 | clocks = <&peri_clk 3>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 208 | resets = <&peri_rst 3>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 209 | }; |
Masahiro Yamada | 6835b45 | 2016-02-16 17:03:51 +0900 | [diff] [blame] | 210 | |
Masahiro Yamada | 964edbf | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 211 | gpio: gpio@55000000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 212 | compatible = "socionext,uniphier-gpio"; |
Masahiro Yamada | 964edbf | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 213 | reg = <0x55000000 0x200>; |
| 214 | interrupt-parent = <&aidet>; |
| 215 | interrupt-controller; |
| 216 | #interrupt-cells = <2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 217 | gpio-controller; |
| 218 | #gpio-cells = <2>; |
Masahiro Yamada | 964edbf | 2017-10-13 19:21:52 +0900 | [diff] [blame] | 219 | gpio-ranges = <&pinctrl 0 0 0>, |
| 220 | <&pinctrl 96 0 0>; |
| 221 | gpio-ranges-group-names = "gpio_range0", |
| 222 | "gpio_range1"; |
| 223 | ngpios = <232>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 224 | socionext,interrupt-ranges = <0 48 16>, <16 154 5>, |
| 225 | <21 217 3>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 226 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 227 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 228 | audio@56000000 { |
| 229 | compatible = "socionext,uniphier-pxs2-aio"; |
| 230 | reg = <0x56000000 0x80000>; |
| 231 | interrupts = <0 144 4>; |
| 232 | pinctrl-names = "default"; |
| 233 | pinctrl-0 = <&pinctrl_ain1>, |
| 234 | <&pinctrl_ain2>, |
| 235 | <&pinctrl_ainiec1>, |
| 236 | <&pinctrl_aout2>, |
| 237 | <&pinctrl_aout3>, |
| 238 | <&pinctrl_aoutiec1>, |
| 239 | <&pinctrl_aoutiec2>; |
| 240 | clock-names = "aio"; |
| 241 | clocks = <&sys_clk 40>; |
| 242 | reset-names = "aio"; |
| 243 | resets = <&sys_rst 40>; |
| 244 | #sound-dai-cells = <1>; |
| 245 | socionext,syscon = <&soc_glue>; |
| 246 | |
| 247 | i2s_port0: port@0 { |
| 248 | i2s_hdmi: endpoint { |
| 249 | }; |
| 250 | }; |
| 251 | |
| 252 | i2s_port1: port@1 { |
| 253 | i2s_line: endpoint { |
| 254 | }; |
| 255 | }; |
| 256 | |
| 257 | i2s_port2: port@2 { |
| 258 | i2s_aux: endpoint { |
| 259 | }; |
| 260 | }; |
| 261 | |
| 262 | spdif_port0: port@3 { |
| 263 | spdif_hiecout1: endpoint { |
| 264 | }; |
| 265 | }; |
| 266 | |
| 267 | spdif_port1: port@4 { |
| 268 | spdif_iecout1: endpoint { |
| 269 | }; |
| 270 | }; |
| 271 | |
| 272 | comp_spdif_port0: port@5 { |
| 273 | comp_spdif_hiecout1: endpoint { |
| 274 | }; |
| 275 | }; |
| 276 | |
| 277 | comp_spdif_port1: port@6 { |
| 278 | comp_spdif_iecout1: endpoint { |
| 279 | }; |
| 280 | }; |
| 281 | }; |
| 282 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 283 | i2c0: i2c@58780000 { |
| 284 | compatible = "socionext,uniphier-fi2c"; |
| 285 | status = "disabled"; |
| 286 | reg = <0x58780000 0x80>; |
| 287 | #address-cells = <1>; |
| 288 | #size-cells = <0>; |
| 289 | interrupts = <0 41 4>; |
| 290 | pinctrl-names = "default"; |
| 291 | pinctrl-0 = <&pinctrl_i2c0>; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 292 | clocks = <&peri_clk 4>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 293 | resets = <&peri_rst 4>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 294 | clock-frequency = <100000>; |
| 295 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 296 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 297 | i2c1: i2c@58781000 { |
| 298 | compatible = "socionext,uniphier-fi2c"; |
| 299 | status = "disabled"; |
| 300 | reg = <0x58781000 0x80>; |
| 301 | #address-cells = <1>; |
| 302 | #size-cells = <0>; |
| 303 | interrupts = <0 42 4>; |
| 304 | pinctrl-names = "default"; |
| 305 | pinctrl-0 = <&pinctrl_i2c1>; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 306 | clocks = <&peri_clk 5>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 307 | resets = <&peri_rst 5>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 308 | clock-frequency = <100000>; |
| 309 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 310 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 311 | i2c2: i2c@58782000 { |
| 312 | compatible = "socionext,uniphier-fi2c"; |
| 313 | status = "disabled"; |
| 314 | reg = <0x58782000 0x80>; |
| 315 | #address-cells = <1>; |
| 316 | #size-cells = <0>; |
| 317 | interrupts = <0 43 4>; |
| 318 | pinctrl-names = "default"; |
| 319 | pinctrl-0 = <&pinctrl_i2c2>; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 320 | clocks = <&peri_clk 6>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 321 | resets = <&peri_rst 6>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 322 | clock-frequency = <100000>; |
| 323 | }; |
Masahiro Yamada | 299307d | 2016-02-18 19:52:50 +0900 | [diff] [blame] | 324 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 325 | i2c3: i2c@58783000 { |
| 326 | compatible = "socionext,uniphier-fi2c"; |
| 327 | status = "disabled"; |
| 328 | reg = <0x58783000 0x80>; |
| 329 | #address-cells = <1>; |
| 330 | #size-cells = <0>; |
| 331 | interrupts = <0 44 4>; |
| 332 | pinctrl-names = "default"; |
| 333 | pinctrl-0 = <&pinctrl_i2c3>; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 334 | clocks = <&peri_clk 7>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 335 | resets = <&peri_rst 7>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 336 | clock-frequency = <100000>; |
| 337 | }; |
Masahiro Yamada | 299307d | 2016-02-18 19:52:50 +0900 | [diff] [blame] | 338 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 339 | /* chip-internal connection for DMD */ |
| 340 | i2c4: i2c@58784000 { |
| 341 | compatible = "socionext,uniphier-fi2c"; |
| 342 | reg = <0x58784000 0x80>; |
| 343 | #address-cells = <1>; |
| 344 | #size-cells = <0>; |
| 345 | interrupts = <0 45 4>; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 346 | clocks = <&peri_clk 8>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 347 | resets = <&peri_rst 8>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 348 | clock-frequency = <400000>; |
| 349 | }; |
Masahiro Yamada | 2707e83 | 2016-06-29 19:39:02 +0900 | [diff] [blame] | 350 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 351 | /* chip-internal connection for STM */ |
| 352 | i2c5: i2c@58785000 { |
| 353 | compatible = "socionext,uniphier-fi2c"; |
| 354 | reg = <0x58785000 0x80>; |
| 355 | #address-cells = <1>; |
| 356 | #size-cells = <0>; |
| 357 | interrupts = <0 25 4>; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 358 | clocks = <&peri_clk 9>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 359 | resets = <&peri_rst 9>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 360 | clock-frequency = <400000>; |
| 361 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 362 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 363 | /* chip-internal connection for HDMI */ |
| 364 | i2c6: i2c@58786000 { |
| 365 | compatible = "socionext,uniphier-fi2c"; |
| 366 | reg = <0x58786000 0x80>; |
| 367 | #address-cells = <1>; |
| 368 | #size-cells = <0>; |
| 369 | interrupts = <0 26 4>; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 370 | clocks = <&peri_clk 10>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 371 | resets = <&peri_rst 10>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 372 | clock-frequency = <400000>; |
| 373 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 374 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 375 | system_bus: system-bus@58c00000 { |
| 376 | compatible = "socionext,uniphier-system-bus"; |
| 377 | status = "disabled"; |
| 378 | reg = <0x58c00000 0x400>; |
| 379 | #address-cells = <2>; |
| 380 | #size-cells = <1>; |
| 381 | pinctrl-names = "default"; |
| 382 | pinctrl-0 = <&pinctrl_system_bus>; |
| 383 | }; |
Masahiro Yamada | 224e2f7 | 2016-02-02 21:11:33 +0900 | [diff] [blame] | 384 | |
Masahiro Yamada | 938ab16 | 2017-05-15 14:23:46 +0900 | [diff] [blame] | 385 | smpctrl@59801000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 386 | compatible = "socionext,uniphier-smpctrl"; |
| 387 | reg = <0x59801000 0x400>; |
| 388 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 389 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 390 | sdctrl@59810000 { |
| 391 | compatible = "socionext,uniphier-pxs2-sdctrl", |
| 392 | "simple-mfd", "syscon"; |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 393 | reg = <0x59810000 0x400>; |
Masahiro Yamada | a4e54cc | 2015-11-04 21:56:07 +0900 | [diff] [blame] | 394 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 395 | sd_clk: clock { |
| 396 | compatible = "socionext,uniphier-pxs2-sd-clock"; |
| 397 | #clock-cells = <1>; |
| 398 | }; |
Masahiro Yamada | a4e54cc | 2015-11-04 21:56:07 +0900 | [diff] [blame] | 399 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 400 | sd_rst: reset { |
| 401 | compatible = "socionext,uniphier-pxs2-sd-reset"; |
| 402 | #reset-cells = <1>; |
| 403 | }; |
| 404 | }; |
Masahiro Yamada | edbecf5 | 2015-08-28 22:33:15 +0900 | [diff] [blame] | 405 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 406 | perictrl@59820000 { |
| 407 | compatible = "socionext,uniphier-pxs2-perictrl", |
| 408 | "simple-mfd", "syscon"; |
| 409 | reg = <0x59820000 0x200>; |
Masahiro Yamada | 02bf5b8 | 2016-09-22 07:42:23 +0900 | [diff] [blame] | 410 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 411 | peri_clk: clock { |
| 412 | compatible = "socionext,uniphier-pxs2-peri-clock"; |
| 413 | #clock-cells = <1>; |
| 414 | }; |
Masahiro Yamada | 02bf5b8 | 2016-09-22 07:42:23 +0900 | [diff] [blame] | 415 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 416 | peri_rst: reset { |
| 417 | compatible = "socionext,uniphier-pxs2-peri-reset"; |
| 418 | #reset-cells = <1>; |
| 419 | }; |
| 420 | }; |
Masahiro Yamada | 1d5df7b | 2016-02-02 21:11:36 +0900 | [diff] [blame] | 421 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 422 | emmc: sdhc@5a000000 { |
| 423 | compatible = "socionext,uniphier-sdhc"; |
| 424 | status = "disabled"; |
| 425 | reg = <0x5a000000 0x800>; |
| 426 | interrupts = <0 78 4>; |
| 427 | pinctrl-names = "default"; |
| 428 | pinctrl-0 = <&pinctrl_emmc>; |
| 429 | clocks = <&sd_clk 1>; |
| 430 | reset-names = "host"; |
| 431 | resets = <&sd_rst 1>; |
| 432 | bus-width = <8>; |
| 433 | non-removable; |
| 434 | cap-mmc-highspeed; |
| 435 | cap-mmc-hw-reset; |
| 436 | no-3-3-v; |
| 437 | }; |
Masahiro Yamada | 8095183 | 2016-02-02 21:11:35 +0900 | [diff] [blame] | 438 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 439 | sd: sdhc@5a400000 { |
| 440 | compatible = "socionext,uniphier-sdhc"; |
| 441 | status = "disabled"; |
| 442 | reg = <0x5a400000 0x800>; |
| 443 | interrupts = <0 76 4>; |
| 444 | pinctrl-names = "default", "1.8v"; |
| 445 | pinctrl-0 = <&pinctrl_sd>; |
| 446 | pinctrl-1 = <&pinctrl_sd_1v8>; |
| 447 | clocks = <&sd_clk 0>; |
| 448 | reset-names = "host"; |
| 449 | resets = <&sd_rst 0>; |
| 450 | bus-width = <4>; |
| 451 | cap-sd-highspeed; |
| 452 | sd-uhs-sdr12; |
| 453 | sd-uhs-sdr25; |
| 454 | sd-uhs-sdr50; |
| 455 | }; |
Masahiro Yamada | e84513b | 2016-02-02 21:11:34 +0900 | [diff] [blame] | 456 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 457 | soc_glue: soc-glue@5f800000 { |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 458 | compatible = "socionext,uniphier-pxs2-soc-glue", |
| 459 | "simple-mfd", "syscon"; |
| 460 | reg = <0x5f800000 0x2000>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 461 | |
| 462 | pinctrl: pinctrl { |
| 463 | compatible = "socionext,uniphier-pxs2-pinctrl"; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 464 | }; |
| 465 | }; |
Masahiro Yamada | 02bf5b8 | 2016-09-22 07:42:23 +0900 | [diff] [blame] | 466 | |
Masahiro Yamada | b61327d | 2018-03-15 11:43:03 +0900 | [diff] [blame] | 467 | soc-glue@5f900000 { |
| 468 | compatible = "socionext,uniphier-pxs2-soc-glue-debug", |
| 469 | "simple-mfd"; |
| 470 | #address-cells = <1>; |
| 471 | #size-cells = <1>; |
| 472 | ranges = <0 0x5f900000 0x2000>; |
| 473 | |
| 474 | efuse@100 { |
| 475 | compatible = "socionext,uniphier-efuse"; |
| 476 | reg = <0x100 0x28>; |
| 477 | }; |
| 478 | |
| 479 | efuse@200 { |
| 480 | compatible = "socionext,uniphier-efuse"; |
| 481 | reg = <0x200 0x58>; |
| 482 | }; |
| 483 | }; |
| 484 | |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 485 | aidet: aidet@5fc20000 { |
| 486 | compatible = "socionext,uniphier-pxs2-aidet"; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 487 | reg = <0x5fc20000 0x200>; |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 488 | interrupt-controller; |
| 489 | #interrupt-cells = <2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 490 | }; |
| 491 | |
| 492 | timer@60000200 { |
| 493 | compatible = "arm,cortex-a9-global-timer"; |
| 494 | reg = <0x60000200 0x20>; |
| 495 | interrupts = <1 11 0xf04>; |
| 496 | clocks = <&arm_timer_clk>; |
| 497 | }; |
| 498 | |
| 499 | timer@60000600 { |
| 500 | compatible = "arm,cortex-a9-twd-timer"; |
| 501 | reg = <0x60000600 0x20>; |
| 502 | interrupts = <1 13 0xf04>; |
| 503 | clocks = <&arm_timer_clk>; |
| 504 | }; |
| 505 | |
| 506 | intc: interrupt-controller@60001000 { |
| 507 | compatible = "arm,cortex-a9-gic"; |
| 508 | reg = <0x60001000 0x1000>, |
| 509 | <0x60000100 0x100>; |
| 510 | #interrupt-cells = <3>; |
| 511 | interrupt-controller; |
| 512 | }; |
| 513 | |
| 514 | sysctrl@61840000 { |
| 515 | compatible = "socionext,uniphier-pxs2-sysctrl", |
| 516 | "simple-mfd", "syscon"; |
Masahiro Yamada | bf3b721 | 2017-03-13 00:16:41 +0900 | [diff] [blame] | 517 | reg = <0x61840000 0x10000>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 518 | |
| 519 | sys_clk: clock { |
| 520 | compatible = "socionext,uniphier-pxs2-clock"; |
| 521 | #clock-cells = <1>; |
| 522 | }; |
| 523 | |
| 524 | sys_rst: reset { |
| 525 | compatible = "socionext,uniphier-pxs2-reset"; |
| 526 | #reset-cells = <1>; |
| 527 | }; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 528 | |
| 529 | pvtctl: pvtctl { |
| 530 | compatible = "socionext,uniphier-pxs2-thermal"; |
| 531 | interrupts = <0 3 4>; |
| 532 | #thermal-sensor-cells = <0>; |
| 533 | socionext,tmod-calibration = <0x0f86 0x6844>; |
| 534 | }; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 535 | }; |
| 536 | |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 537 | eth: ethernet@65000000 { |
| 538 | compatible = "socionext,uniphier-pxs2-ave4"; |
| 539 | status = "disabled"; |
| 540 | reg = <0x65000000 0x8500>; |
| 541 | interrupts = <0 66 4>; |
| 542 | pinctrl-names = "default"; |
| 543 | pinctrl-0 = <&pinctrl_ether_rgmii>; |
Kunihiko Hayashi | 0ed9d14 | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 544 | clock-names = "ether"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 545 | clocks = <&sys_clk 6>; |
Kunihiko Hayashi | 0ed9d14 | 2018-05-11 18:49:16 +0900 | [diff] [blame] | 546 | reset-names = "ether"; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 547 | resets = <&sys_rst 6>; |
| 548 | phy-mode = "rgmii"; |
| 549 | local-mac-address = [00 00 00 00 00 00]; |
Kunihiko Hayashi | b57334d | 2018-05-11 18:49:14 +0900 | [diff] [blame] | 550 | socionext,syscon-phy-mode = <&soc_glue 0>; |
Masahiro Yamada | 0bc5684 | 2018-04-16 12:35:33 +0900 | [diff] [blame] | 551 | |
| 552 | mdio: mdio { |
| 553 | #address-cells = <1>; |
| 554 | #size-cells = <0>; |
| 555 | }; |
| 556 | }; |
| 557 | |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 558 | usb0: usb@65b00000 { |
| 559 | compatible = "socionext,uniphier-pxs2-dwc3"; |
| 560 | status = "disabled"; |
| 561 | reg = <0x65b00000 0x1000>; |
| 562 | #address-cells = <1>; |
| 563 | #size-cells = <1>; |
| 564 | ranges; |
| 565 | pinctrl-names = "default"; |
| 566 | pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>; |
| 567 | dwc3@65a00000 { |
| 568 | compatible = "snps,dwc3"; |
| 569 | reg = <0x65a00000 0x10000>; |
| 570 | interrupts = <0 134 4>; |
Masahiro Yamada | d2c8abd | 2017-08-13 09:01:17 +0900 | [diff] [blame] | 571 | dr_mode = "host"; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 572 | tx-fifo-resize; |
| 573 | }; |
| 574 | }; |
| 575 | |
| 576 | usb1: usb@65d00000 { |
| 577 | compatible = "socionext,uniphier-pxs2-dwc3"; |
| 578 | status = "disabled"; |
| 579 | reg = <0x65d00000 0x1000>; |
| 580 | #address-cells = <1>; |
| 581 | #size-cells = <1>; |
| 582 | ranges; |
| 583 | pinctrl-names = "default"; |
| 584 | pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>; |
| 585 | dwc3@65c00000 { |
| 586 | compatible = "snps,dwc3"; |
| 587 | reg = <0x65c00000 0x10000>; |
| 588 | interrupts = <0 137 4>; |
Masahiro Yamada | d2c8abd | 2017-08-13 09:01:17 +0900 | [diff] [blame] | 589 | dr_mode = "host"; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 590 | tx-fifo-resize; |
| 591 | }; |
| 592 | }; |
| 593 | |
| 594 | nand: nand@68000000 { |
Masahiro Yamada | 552acbf | 2017-04-20 16:54:44 +0900 | [diff] [blame] | 595 | compatible = "socionext,uniphier-denali-nand-v5b"; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 596 | status = "disabled"; |
| 597 | reg-names = "nand_data", "denali_reg"; |
| 598 | reg = <0x68000000 0x20>, <0x68100000 0x1000>; |
| 599 | interrupts = <0 65 4>; |
| 600 | pinctrl-names = "default"; |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 601 | pinctrl-0 = <&pinctrl_nand2cs>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 602 | clocks = <&sys_clk 2>; |
Masahiro Yamada | 6c086d0 | 2017-11-25 00:25:35 +0900 | [diff] [blame] | 603 | resets = <&sys_rst 2>; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 604 | }; |
| 605 | }; |
Masahiro Yamada | e84513b | 2016-02-02 21:11:34 +0900 | [diff] [blame] | 606 | }; |
Masahiro Yamada | 6e485b2 | 2016-12-05 18:31:39 +0900 | [diff] [blame] | 607 | |
Masahiro Yamada | 1a420bd | 2017-08-29 12:20:52 +0900 | [diff] [blame] | 608 | #include "uniphier-pinctrl.dtsi" |