Masahiro Yamada | e1a0ebc | 2015-11-28 02:22:31 +0900 | [diff] [blame] | 1 | /* |
Masahiro Yamada | 65e4338 | 2016-02-26 16:18:28 +0900 | [diff] [blame] | 2 | * Device Tree Source for UniPhier PH1-LD20 SoC |
Masahiro Yamada | e1a0ebc | 2015-11-28 02:22:31 +0900 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com> |
| 5 | * |
| 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
| 10 | * |
| 11 | * a) This file is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of the |
| 14 | * License, or (at your option) any later version. |
| 15 | * |
| 16 | * This file is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * Or, alternatively, |
| 22 | * |
| 23 | * b) Permission is hereby granted, free of charge, to any person |
| 24 | * obtaining a copy of this software and associated documentation |
| 25 | * files (the "Software"), to deal in the Software without |
| 26 | * restriction, including without limitation the rights to use, |
| 27 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 28 | * sell copies of the Software, and to permit persons to whom the |
| 29 | * Software is furnished to do so, subject to the following |
| 30 | * conditions: |
| 31 | * |
| 32 | * The above copyright notice and this permission notice shall be |
| 33 | * included in all copies or substantial portions of the Software. |
| 34 | * |
| 35 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 36 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 37 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 38 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 39 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 40 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 41 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 42 | * OTHER DEALINGS IN THE SOFTWARE. |
| 43 | */ |
| 44 | |
| 45 | / { |
Masahiro Yamada | 65e4338 | 2016-02-26 16:18:28 +0900 | [diff] [blame] | 46 | compatible = "socionext,ph1-ld20"; |
Masahiro Yamada | e1a0ebc | 2015-11-28 02:22:31 +0900 | [diff] [blame] | 47 | #address-cells = <2>; |
| 48 | #size-cells = <2>; |
| 49 | interrupt-parent = <&gic>; |
| 50 | |
| 51 | cpus { |
| 52 | #address-cells = <2>; |
| 53 | #size-cells = <0>; |
| 54 | |
| 55 | cpu-map { |
| 56 | cluster0 { |
| 57 | core0 { |
| 58 | cpu = <&cpu0>; |
| 59 | }; |
| 60 | core1 { |
| 61 | cpu = <&cpu1>; |
| 62 | }; |
| 63 | }; |
| 64 | |
| 65 | cluster1 { |
| 66 | core0 { |
| 67 | cpu = <&cpu2>; |
| 68 | }; |
| 69 | core1 { |
| 70 | cpu = <&cpu3>; |
| 71 | }; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | cpu0: cpu@0 { |
| 76 | device_type = "cpu"; |
| 77 | compatible = "arm,cortex-a72", "arm,armv8"; |
| 78 | reg = <0 0x000>; |
| 79 | enable-method = "spin-table"; |
| 80 | cpu-release-addr = <0 0x80000100>; |
| 81 | }; |
| 82 | |
| 83 | cpu1: cpu@1 { |
| 84 | device_type = "cpu"; |
| 85 | compatible = "arm,cortex-a72", "arm,armv8"; |
| 86 | reg = <0 0x001>; |
| 87 | enable-method = "spin-table"; |
| 88 | cpu-release-addr = <0 0x80000100>; |
| 89 | }; |
| 90 | |
| 91 | cpu2: cpu@100 { |
| 92 | device_type = "cpu"; |
| 93 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 94 | reg = <0 0x100>; |
| 95 | enable-method = "spin-table"; |
| 96 | cpu-release-addr = <0 0x80000100>; |
| 97 | }; |
| 98 | |
| 99 | cpu3: cpu@101 { |
| 100 | device_type = "cpu"; |
| 101 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 102 | reg = <0 0x101>; |
| 103 | enable-method = "spin-table"; |
| 104 | cpu-release-addr = <0 0x80000100>; |
| 105 | }; |
| 106 | }; |
| 107 | |
| 108 | clocks { |
| 109 | uart_clk: uart_clk { |
| 110 | #clock-cells = <0>; |
| 111 | compatible = "fixed-clock"; |
| 112 | clock-frequency = <58820000>; |
| 113 | }; |
| 114 | |
| 115 | i2c_clk: i2c_clk { |
| 116 | #clock-cells = <0>; |
| 117 | compatible = "fixed-clock"; |
| 118 | clock-frequency = <50000000>; |
| 119 | }; |
| 120 | }; |
| 121 | |
| 122 | timer { |
| 123 | compatible = "arm,armv8-timer"; |
| 124 | interrupts = <1 13 0xf01>, |
| 125 | <1 14 0xf01>, |
| 126 | <1 11 0xf01>, |
| 127 | <1 10 0xf01>; |
| 128 | }; |
| 129 | |
| 130 | soc { |
| 131 | compatible = "simple-bus"; |
| 132 | #address-cells = <1>; |
| 133 | #size-cells = <1>; |
| 134 | ranges = <0 0 0 0xffffffff>; |
| 135 | |
Masahiro Yamada | e1a0ebc | 2015-11-28 02:22:31 +0900 | [diff] [blame] | 136 | serial0: serial@54006800 { |
| 137 | compatible = "socionext,uniphier-uart"; |
| 138 | status = "disabled"; |
| 139 | reg = <0x54006800 0x40>; |
| 140 | interrupts = <0 33 4>; |
| 141 | pinctrl-names = "default"; |
| 142 | pinctrl-0 = <&pinctrl_uart0>; |
| 143 | clocks = <&uart_clk>; |
| 144 | }; |
| 145 | |
| 146 | serial1: serial@54006900 { |
| 147 | compatible = "socionext,uniphier-uart"; |
| 148 | status = "disabled"; |
| 149 | reg = <0x54006900 0x40>; |
| 150 | interrupts = <0 35 4>; |
| 151 | pinctrl-names = "default"; |
| 152 | pinctrl-0 = <&pinctrl_uart1>; |
| 153 | clocks = <&uart_clk>; |
| 154 | }; |
| 155 | |
| 156 | serial2: serial@54006a00 { |
| 157 | compatible = "socionext,uniphier-uart"; |
| 158 | status = "disabled"; |
| 159 | reg = <0x54006a00 0x40>; |
| 160 | interrupts = <0 37 4>; |
| 161 | pinctrl-names = "default"; |
| 162 | pinctrl-0 = <&pinctrl_uart2>; |
| 163 | clocks = <&uart_clk>; |
| 164 | }; |
| 165 | |
| 166 | serial3: serial@54006b00 { |
| 167 | compatible = "socionext,uniphier-uart"; |
| 168 | status = "disabled"; |
| 169 | reg = <0x54006b00 0x40>; |
| 170 | interrupts = <0 177 4>; |
| 171 | pinctrl-names = "default"; |
| 172 | pinctrl-0 = <&pinctrl_uart3>; |
| 173 | clocks = <&uart_clk>; |
| 174 | }; |
| 175 | |
| 176 | i2c0: i2c@58780000 { |
| 177 | compatible = "socionext,uniphier-fi2c"; |
| 178 | status = "disabled"; |
| 179 | reg = <0x58780000 0x80>; |
| 180 | #address-cells = <1>; |
| 181 | #size-cells = <0>; |
| 182 | interrupts = <0 41 4>; |
| 183 | pinctrl-names = "default"; |
| 184 | pinctrl-0 = <&pinctrl_i2c0>; |
| 185 | clocks = <&i2c_clk>; |
| 186 | clock-frequency = <100000>; |
| 187 | }; |
| 188 | |
| 189 | i2c1: i2c@58781000 { |
| 190 | compatible = "socionext,uniphier-fi2c"; |
| 191 | status = "disabled"; |
| 192 | reg = <0x58781000 0x80>; |
| 193 | #address-cells = <1>; |
| 194 | #size-cells = <0>; |
| 195 | interrupts = <0 42 4>; |
| 196 | pinctrl-names = "default"; |
| 197 | pinctrl-0 = <&pinctrl_i2c1>; |
| 198 | clocks = <&i2c_clk>; |
| 199 | clock-frequency = <100000>; |
| 200 | }; |
| 201 | |
| 202 | i2c2: i2c@58782000 { |
| 203 | compatible = "socionext,uniphier-fi2c"; |
| 204 | status = "disabled"; |
| 205 | reg = <0x58782000 0x80>; |
| 206 | #address-cells = <1>; |
| 207 | #size-cells = <0>; |
| 208 | interrupts = <0 43 4>; |
| 209 | pinctrl-names = "default"; |
| 210 | pinctrl-0 = <&pinctrl_i2c2>; |
| 211 | clocks = <&i2c_clk>; |
| 212 | clock-frequency = <100000>; |
| 213 | }; |
| 214 | |
| 215 | i2c3: i2c@58783000 { |
| 216 | compatible = "socionext,uniphier-fi2c"; |
| 217 | status = "disabled"; |
| 218 | reg = <0x58783000 0x80>; |
| 219 | #address-cells = <1>; |
| 220 | #size-cells = <0>; |
| 221 | interrupts = <0 44 4>; |
| 222 | pinctrl-names = "default"; |
| 223 | pinctrl-0 = <&pinctrl_i2c3>; |
| 224 | clocks = <&i2c_clk>; |
| 225 | clock-frequency = <100000>; |
| 226 | }; |
| 227 | |
| 228 | i2c4: i2c@58784000 { |
| 229 | compatible = "socionext,uniphier-fi2c"; |
| 230 | reg = <0x58784000 0x80>; |
| 231 | #address-cells = <1>; |
| 232 | #size-cells = <0>; |
| 233 | interrupts = <0 45 4>; |
| 234 | clocks = <&i2c_clk>; |
| 235 | clock-frequency = <400000>; |
| 236 | }; |
| 237 | |
| 238 | i2c5: i2c@58785000 { |
| 239 | compatible = "socionext,uniphier-fi2c"; |
| 240 | reg = <0x58785000 0x80>; |
| 241 | #address-cells = <1>; |
| 242 | #size-cells = <0>; |
| 243 | interrupts = <0 25 4>; |
| 244 | clocks = <&i2c_clk>; |
| 245 | clock-frequency = <400000>; |
| 246 | }; |
| 247 | |
| 248 | i2c6: i2c@58786000 { |
| 249 | compatible = "socionext,uniphier-fi2c"; |
| 250 | reg = <0x58786000 0x80>; |
| 251 | #address-cells = <1>; |
| 252 | #size-cells = <0>; |
| 253 | interrupts = <0 26 4>; |
| 254 | clocks = <&i2c_clk>; |
| 255 | clock-frequency = <400000>; |
| 256 | }; |
| 257 | |
Masahiro Yamada | 14bae13 | 2016-02-26 16:18:30 +0900 | [diff] [blame] | 258 | system_bus: system-bus@58c00000 { |
| 259 | compatible = "socionext,uniphier-system-bus"; |
| 260 | status = "disabled"; |
| 261 | reg = <0x58c00000 0x400>; |
| 262 | #address-cells = <2>; |
| 263 | #size-cells = <1>; |
| 264 | }; |
| 265 | |
| 266 | smpctrl@59800000 { |
| 267 | compatible = "socionext,uniphier-smpctrl"; |
| 268 | reg = <0x59801000 0x400>; |
| 269 | }; |
| 270 | |
Masahiro Yamada | e1a0ebc | 2015-11-28 02:22:31 +0900 | [diff] [blame] | 271 | pinctrl: pinctrl@5f801000 { |
Masahiro Yamada | 65e4338 | 2016-02-26 16:18:28 +0900 | [diff] [blame] | 272 | compatible = "socionext,ph1-ld20-pinctrl", "syscon"; |
Masahiro Yamada | e1a0ebc | 2015-11-28 02:22:31 +0900 | [diff] [blame] | 273 | reg = <0x5f801000 0xe00>; |
| 274 | }; |
| 275 | |
| 276 | gic: interrupt-controller@5fe00000 { |
| 277 | compatible = "arm,gic-v3"; |
| 278 | reg = <0x5fe00000 0x10000>, /* GICD */ |
| 279 | <0x5fe80000 0x80000>; /* GICR */ |
| 280 | interrupt-controller; |
| 281 | #interrupt-cells = <3>; |
| 282 | interrupts = <1 9 4>; |
| 283 | }; |
| 284 | }; |
| 285 | }; |
| 286 | |
| 287 | /include/ "uniphier-pinctrl.dtsi" |