Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Altera <www.altera.com> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | /include/ "skeleton.dtsi" |
| 19 | |
| 20 | / { |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <1>; |
| 23 | |
| 24 | aliases { |
| 25 | ethernet0 = &gmac0; |
Dinh Nguyen | 3d954cf | 2013-06-05 10:02:53 -0500 | [diff] [blame] | 26 | ethernet1 = &gmac1; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 27 | serial0 = &uart0; |
| 28 | serial1 = &uart1; |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 29 | timer0 = &timer0; |
| 30 | timer1 = &timer1; |
| 31 | timer2 = &timer2; |
| 32 | timer3 = &timer3; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | cpus { |
| 36 | #address-cells = <1>; |
| 37 | #size-cells = <0>; |
| 38 | |
| 39 | cpu@0 { |
| 40 | compatible = "arm,cortex-a9"; |
| 41 | device_type = "cpu"; |
| 42 | reg = <0>; |
| 43 | next-level-cache = <&L2>; |
| 44 | }; |
| 45 | cpu@1 { |
| 46 | compatible = "arm,cortex-a9"; |
| 47 | device_type = "cpu"; |
| 48 | reg = <1>; |
| 49 | next-level-cache = <&L2>; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | intc: intc@fffed000 { |
| 54 | compatible = "arm,cortex-a9-gic"; |
| 55 | #interrupt-cells = <3>; |
| 56 | interrupt-controller; |
| 57 | reg = <0xfffed000 0x1000>, |
| 58 | <0xfffec100 0x100>; |
| 59 | }; |
| 60 | |
| 61 | soc { |
| 62 | #address-cells = <1>; |
| 63 | #size-cells = <1>; |
| 64 | compatible = "simple-bus"; |
| 65 | device_type = "soc"; |
| 66 | interrupt-parent = <&intc>; |
| 67 | ranges; |
| 68 | |
| 69 | amba { |
| 70 | compatible = "arm,amba-bus"; |
| 71 | #address-cells = <1>; |
| 72 | #size-cells = <1>; |
| 73 | ranges; |
| 74 | |
| 75 | pdma: pdma@ffe01000 { |
| 76 | compatible = "arm,pl330", "arm,primecell"; |
| 77 | reg = <0xffe01000 0x1000>; |
Steffen Trumtrar | 18d5619 | 2014-04-02 10:40:30 -0500 | [diff] [blame^] | 78 | interrupts = <0 104 4>, |
| 79 | <0 105 4>, |
| 80 | <0 106 4>, |
| 81 | <0 107 4>, |
| 82 | <0 108 4>, |
| 83 | <0 109 4>, |
| 84 | <0 110 4>, |
| 85 | <0 111 4>; |
Padmavathi Venna | 0d8abbf | 2013-03-04 11:04:28 +0530 | [diff] [blame] | 86 | #dma-cells = <1>; |
| 87 | #dma-channels = <8>; |
| 88 | #dma-requests = <32>; |
Steffen Trumtrar | 672ef90 | 2014-01-08 12:01:26 -0600 | [diff] [blame] | 89 | clocks = <&l4_main_clk>; |
| 90 | clock-names = "apb_pclk"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 91 | }; |
| 92 | }; |
| 93 | |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 94 | clkmgr@ffd04000 { |
| 95 | compatible = "altr,clk-mgr"; |
| 96 | reg = <0xffd04000 0x1000>; |
| 97 | |
| 98 | clocks { |
| 99 | #address-cells = <1>; |
| 100 | #size-cells = <0>; |
| 101 | |
Dinh Nguyen | f1ce1a9 | 2014-02-19 14:56:38 -0600 | [diff] [blame] | 102 | osc1: osc1 { |
| 103 | #clock-cells = <0>; |
| 104 | compatible = "fixed-clock"; |
| 105 | }; |
| 106 | |
| 107 | osc2: osc2 { |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 108 | #clock-cells = <0>; |
| 109 | compatible = "fixed-clock"; |
| 110 | }; |
| 111 | |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 112 | f2s_periph_ref_clk: f2s_periph_ref_clk { |
| 113 | #clock-cells = <0>; |
| 114 | compatible = "fixed-clock"; |
Dinh Nguyen | f1ce1a9 | 2014-02-19 14:56:38 -0600 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | f2s_sdram_ref_clk: f2s_sdram_ref_clk { |
| 118 | #clock-cells = <0>; |
| 119 | compatible = "fixed-clock"; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 120 | }; |
| 121 | |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 122 | main_pll: main_pll { |
| 123 | #address-cells = <1>; |
| 124 | #size-cells = <0>; |
| 125 | #clock-cells = <0>; |
| 126 | compatible = "altr,socfpga-pll-clock"; |
Dinh Nguyen | f1ce1a9 | 2014-02-19 14:56:38 -0600 | [diff] [blame] | 127 | clocks = <&osc1>; |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 128 | reg = <0x40>; |
| 129 | |
| 130 | mpuclk: mpuclk { |
| 131 | #clock-cells = <0>; |
| 132 | compatible = "altr,socfpga-perip-clk"; |
| 133 | clocks = <&main_pll>; |
| 134 | fixed-divider = <2>; |
| 135 | reg = <0x48>; |
| 136 | }; |
| 137 | |
| 138 | mainclk: mainclk { |
| 139 | #clock-cells = <0>; |
| 140 | compatible = "altr,socfpga-perip-clk"; |
| 141 | clocks = <&main_pll>; |
| 142 | fixed-divider = <4>; |
| 143 | reg = <0x4C>; |
| 144 | }; |
| 145 | |
| 146 | dbg_base_clk: dbg_base_clk { |
| 147 | #clock-cells = <0>; |
| 148 | compatible = "altr,socfpga-perip-clk"; |
| 149 | clocks = <&main_pll>; |
| 150 | fixed-divider = <4>; |
| 151 | reg = <0x50>; |
| 152 | }; |
| 153 | |
| 154 | main_qspi_clk: main_qspi_clk { |
| 155 | #clock-cells = <0>; |
| 156 | compatible = "altr,socfpga-perip-clk"; |
| 157 | clocks = <&main_pll>; |
| 158 | reg = <0x54>; |
| 159 | }; |
| 160 | |
| 161 | main_nand_sdmmc_clk: main_nand_sdmmc_clk { |
| 162 | #clock-cells = <0>; |
| 163 | compatible = "altr,socfpga-perip-clk"; |
| 164 | clocks = <&main_pll>; |
| 165 | reg = <0x58>; |
| 166 | }; |
| 167 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 168 | cfg_h2f_usr0_clk: cfg_h2f_usr0_clk { |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 169 | #clock-cells = <0>; |
| 170 | compatible = "altr,socfpga-perip-clk"; |
| 171 | clocks = <&main_pll>; |
| 172 | reg = <0x5C>; |
| 173 | }; |
| 174 | }; |
| 175 | |
| 176 | periph_pll: periph_pll { |
| 177 | #address-cells = <1>; |
| 178 | #size-cells = <0>; |
| 179 | #clock-cells = <0>; |
| 180 | compatible = "altr,socfpga-pll-clock"; |
Dinh Nguyen | f1ce1a9 | 2014-02-19 14:56:38 -0600 | [diff] [blame] | 181 | clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>; |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 182 | reg = <0x80>; |
| 183 | |
| 184 | emac0_clk: emac0_clk { |
| 185 | #clock-cells = <0>; |
| 186 | compatible = "altr,socfpga-perip-clk"; |
| 187 | clocks = <&periph_pll>; |
| 188 | reg = <0x88>; |
| 189 | }; |
| 190 | |
| 191 | emac1_clk: emac1_clk { |
| 192 | #clock-cells = <0>; |
| 193 | compatible = "altr,socfpga-perip-clk"; |
| 194 | clocks = <&periph_pll>; |
| 195 | reg = <0x8C>; |
| 196 | }; |
| 197 | |
| 198 | per_qspi_clk: per_qsi_clk { |
| 199 | #clock-cells = <0>; |
| 200 | compatible = "altr,socfpga-perip-clk"; |
| 201 | clocks = <&periph_pll>; |
| 202 | reg = <0x90>; |
| 203 | }; |
| 204 | |
| 205 | per_nand_mmc_clk: per_nand_mmc_clk { |
| 206 | #clock-cells = <0>; |
| 207 | compatible = "altr,socfpga-perip-clk"; |
| 208 | clocks = <&periph_pll>; |
| 209 | reg = <0x94>; |
| 210 | }; |
| 211 | |
| 212 | per_base_clk: per_base_clk { |
| 213 | #clock-cells = <0>; |
| 214 | compatible = "altr,socfpga-perip-clk"; |
| 215 | clocks = <&periph_pll>; |
| 216 | reg = <0x98>; |
| 217 | }; |
| 218 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 219 | h2f_usr1_clk: h2f_usr1_clk { |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 220 | #clock-cells = <0>; |
| 221 | compatible = "altr,socfpga-perip-clk"; |
| 222 | clocks = <&periph_pll>; |
| 223 | reg = <0x9C>; |
| 224 | }; |
| 225 | }; |
| 226 | |
| 227 | sdram_pll: sdram_pll { |
| 228 | #address-cells = <1>; |
| 229 | #size-cells = <0>; |
| 230 | #clock-cells = <0>; |
| 231 | compatible = "altr,socfpga-pll-clock"; |
Dinh Nguyen | f1ce1a9 | 2014-02-19 14:56:38 -0600 | [diff] [blame] | 232 | clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>; |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 233 | reg = <0xC0>; |
| 234 | |
| 235 | ddr_dqs_clk: ddr_dqs_clk { |
| 236 | #clock-cells = <0>; |
| 237 | compatible = "altr,socfpga-perip-clk"; |
| 238 | clocks = <&sdram_pll>; |
| 239 | reg = <0xC8>; |
| 240 | }; |
| 241 | |
| 242 | ddr_2x_dqs_clk: ddr_2x_dqs_clk { |
| 243 | #clock-cells = <0>; |
| 244 | compatible = "altr,socfpga-perip-clk"; |
| 245 | clocks = <&sdram_pll>; |
| 246 | reg = <0xCC>; |
| 247 | }; |
| 248 | |
| 249 | ddr_dq_clk: ddr_dq_clk { |
| 250 | #clock-cells = <0>; |
| 251 | compatible = "altr,socfpga-perip-clk"; |
| 252 | clocks = <&sdram_pll>; |
| 253 | reg = <0xD0>; |
| 254 | }; |
| 255 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 256 | h2f_usr2_clk: h2f_usr2_clk { |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 257 | #clock-cells = <0>; |
| 258 | compatible = "altr,socfpga-perip-clk"; |
| 259 | clocks = <&sdram_pll>; |
| 260 | reg = <0xD4>; |
| 261 | }; |
| 262 | }; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 263 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 264 | mpu_periph_clk: mpu_periph_clk { |
| 265 | #clock-cells = <0>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame] | 266 | compatible = "altr,socfpga-perip-clk"; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 267 | clocks = <&mpuclk>; |
| 268 | fixed-divider = <4>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 269 | }; |
| 270 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 271 | mpu_l2_ram_clk: mpu_l2_ram_clk { |
| 272 | #clock-cells = <0>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame] | 273 | compatible = "altr,socfpga-perip-clk"; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 274 | clocks = <&mpuclk>; |
| 275 | fixed-divider = <2>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 276 | }; |
| 277 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 278 | l4_main_clk: l4_main_clk { |
| 279 | #clock-cells = <0>; |
| 280 | compatible = "altr,socfpga-gate-clk"; |
| 281 | clocks = <&mainclk>; |
| 282 | clk-gate = <0x60 0>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 283 | }; |
| 284 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 285 | l3_main_clk: l3_main_clk { |
| 286 | #clock-cells = <0>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame] | 287 | compatible = "altr,socfpga-perip-clk"; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 288 | clocks = <&mainclk>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame] | 289 | fixed-divider = <1>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 290 | }; |
| 291 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 292 | l3_mp_clk: l3_mp_clk { |
| 293 | #clock-cells = <0>; |
| 294 | compatible = "altr,socfpga-gate-clk"; |
| 295 | clocks = <&mainclk>; |
| 296 | div-reg = <0x64 0 2>; |
| 297 | clk-gate = <0x60 1>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 298 | }; |
| 299 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 300 | l3_sp_clk: l3_sp_clk { |
| 301 | #clock-cells = <0>; |
| 302 | compatible = "altr,socfpga-gate-clk"; |
| 303 | clocks = <&mainclk>; |
| 304 | div-reg = <0x64 2 2>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 305 | }; |
| 306 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 307 | l4_mp_clk: l4_mp_clk { |
| 308 | #clock-cells = <0>; |
| 309 | compatible = "altr,socfpga-gate-clk"; |
| 310 | clocks = <&mainclk>, <&per_base_clk>; |
| 311 | div-reg = <0x64 4 3>; |
| 312 | clk-gate = <0x60 2>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 313 | }; |
| 314 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 315 | l4_sp_clk: l4_sp_clk { |
| 316 | #clock-cells = <0>; |
| 317 | compatible = "altr,socfpga-gate-clk"; |
| 318 | clocks = <&mainclk>, <&per_base_clk>; |
| 319 | div-reg = <0x64 7 3>; |
| 320 | clk-gate = <0x60 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 321 | }; |
| 322 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 323 | dbg_at_clk: dbg_at_clk { |
| 324 | #clock-cells = <0>; |
| 325 | compatible = "altr,socfpga-gate-clk"; |
| 326 | clocks = <&dbg_base_clk>; |
| 327 | div-reg = <0x68 0 2>; |
| 328 | clk-gate = <0x60 4>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 329 | }; |
| 330 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 331 | dbg_clk: dbg_clk { |
| 332 | #clock-cells = <0>; |
| 333 | compatible = "altr,socfpga-gate-clk"; |
| 334 | clocks = <&dbg_base_clk>; |
| 335 | div-reg = <0x68 2 2>; |
| 336 | clk-gate = <0x60 5>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 337 | }; |
| 338 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 339 | dbg_trace_clk: dbg_trace_clk { |
| 340 | #clock-cells = <0>; |
| 341 | compatible = "altr,socfpga-gate-clk"; |
| 342 | clocks = <&dbg_base_clk>; |
| 343 | div-reg = <0x6C 0 3>; |
| 344 | clk-gate = <0x60 6>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 345 | }; |
| 346 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 347 | dbg_timer_clk: dbg_timer_clk { |
| 348 | #clock-cells = <0>; |
| 349 | compatible = "altr,socfpga-gate-clk"; |
| 350 | clocks = <&dbg_base_clk>; |
| 351 | clk-gate = <0x60 7>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 352 | }; |
| 353 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 354 | cfg_clk: cfg_clk { |
| 355 | #clock-cells = <0>; |
| 356 | compatible = "altr,socfpga-gate-clk"; |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 357 | clocks = <&cfg_h2f_usr0_clk>; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 358 | clk-gate = <0x60 8>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 359 | }; |
| 360 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 361 | h2f_user0_clk: h2f_user0_clk { |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 362 | #clock-cells = <0>; |
| 363 | compatible = "altr,socfpga-gate-clk"; |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 364 | clocks = <&cfg_h2f_usr0_clk>; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 365 | clk-gate = <0x60 9>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 366 | }; |
| 367 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 368 | emac_0_clk: emac_0_clk { |
| 369 | #clock-cells = <0>; |
| 370 | compatible = "altr,socfpga-gate-clk"; |
| 371 | clocks = <&emac0_clk>; |
| 372 | clk-gate = <0xa0 0>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 373 | }; |
| 374 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 375 | emac_1_clk: emac_1_clk { |
| 376 | #clock-cells = <0>; |
| 377 | compatible = "altr,socfpga-gate-clk"; |
| 378 | clocks = <&emac1_clk>; |
| 379 | clk-gate = <0xa0 1>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 380 | }; |
| 381 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 382 | usb_mp_clk: usb_mp_clk { |
| 383 | #clock-cells = <0>; |
| 384 | compatible = "altr,socfpga-gate-clk"; |
| 385 | clocks = <&per_base_clk>; |
| 386 | clk-gate = <0xa0 2>; |
| 387 | div-reg = <0xa4 0 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 388 | }; |
| 389 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 390 | spi_m_clk: spi_m_clk { |
| 391 | #clock-cells = <0>; |
| 392 | compatible = "altr,socfpga-gate-clk"; |
| 393 | clocks = <&per_base_clk>; |
| 394 | clk-gate = <0xa0 3>; |
| 395 | div-reg = <0xa4 3 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 396 | }; |
| 397 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 398 | can0_clk: can0_clk { |
| 399 | #clock-cells = <0>; |
| 400 | compatible = "altr,socfpga-gate-clk"; |
| 401 | clocks = <&per_base_clk>; |
| 402 | clk-gate = <0xa0 4>; |
| 403 | div-reg = <0xa4 6 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 404 | }; |
| 405 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 406 | can1_clk: can1_clk { |
| 407 | #clock-cells = <0>; |
| 408 | compatible = "altr,socfpga-gate-clk"; |
| 409 | clocks = <&per_base_clk>; |
| 410 | clk-gate = <0xa0 5>; |
| 411 | div-reg = <0xa4 9 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 412 | }; |
| 413 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 414 | gpio_db_clk: gpio_db_clk { |
| 415 | #clock-cells = <0>; |
| 416 | compatible = "altr,socfpga-gate-clk"; |
| 417 | clocks = <&per_base_clk>; |
| 418 | clk-gate = <0xa0 6>; |
| 419 | div-reg = <0xa8 0 24>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 420 | }; |
| 421 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 422 | h2f_user1_clk: h2f_user1_clk { |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 423 | #clock-cells = <0>; |
| 424 | compatible = "altr,socfpga-gate-clk"; |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 425 | clocks = <&h2f_usr1_clk>; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 426 | clk-gate = <0xa0 7>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 427 | }; |
| 428 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 429 | sdmmc_clk: sdmmc_clk { |
| 430 | #clock-cells = <0>; |
| 431 | compatible = "altr,socfpga-gate-clk"; |
| 432 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 433 | clk-gate = <0xa0 8>; |
Dinh Nguyen | 044abbd | 2014-01-06 12:17:24 -0600 | [diff] [blame] | 434 | clk-phase = <0 135>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 435 | }; |
| 436 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 437 | nand_x_clk: nand_x_clk { |
| 438 | #clock-cells = <0>; |
| 439 | compatible = "altr,socfpga-gate-clk"; |
| 440 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 441 | clk-gate = <0xa0 9>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 442 | }; |
| 443 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 444 | nand_clk: nand_clk { |
| 445 | #clock-cells = <0>; |
| 446 | compatible = "altr,socfpga-gate-clk"; |
| 447 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 448 | clk-gate = <0xa0 10>; |
| 449 | fixed-divider = <4>; |
| 450 | }; |
| 451 | |
| 452 | qspi_clk: qspi_clk { |
| 453 | #clock-cells = <0>; |
| 454 | compatible = "altr,socfpga-gate-clk"; |
| 455 | clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>; |
| 456 | clk-gate = <0xa0 11>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 457 | }; |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 458 | }; |
| 459 | }; |
| 460 | |
Dinh Nguyen | 3d954cf | 2013-06-05 10:02:53 -0500 | [diff] [blame] | 461 | gmac0: ethernet@ff700000 { |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 462 | compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; |
Dinh Nguyen | 2755e18 | 2014-03-26 22:45:11 -0500 | [diff] [blame] | 463 | altr,sysmgr-syscon = <&sysmgr 0x60 0>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 464 | reg = <0xff700000 0x2000>; |
| 465 | interrupts = <0 115 4>; |
| 466 | interrupt-names = "macirq"; |
| 467 | mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */ |
Dinh Nguyen | 3d954cf | 2013-06-05 10:02:53 -0500 | [diff] [blame] | 468 | clocks = <&emac0_clk>; |
| 469 | clock-names = "stmmaceth"; |
| 470 | status = "disabled"; |
| 471 | }; |
| 472 | |
| 473 | gmac1: ethernet@ff702000 { |
| 474 | compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; |
Dinh Nguyen | 2755e18 | 2014-03-26 22:45:11 -0500 | [diff] [blame] | 475 | altr,sysmgr-syscon = <&sysmgr 0x60 2>; |
Dinh Nguyen | 3d954cf | 2013-06-05 10:02:53 -0500 | [diff] [blame] | 476 | reg = <0xff702000 0x2000>; |
| 477 | interrupts = <0 120 4>; |
| 478 | interrupt-names = "macirq"; |
| 479 | mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */ |
| 480 | clocks = <&emac1_clk>; |
| 481 | clock-names = "stmmaceth"; |
| 482 | status = "disabled"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 483 | }; |
| 484 | |
| 485 | L2: l2-cache@fffef000 { |
| 486 | compatible = "arm,pl310-cache"; |
| 487 | reg = <0xfffef000 0x1000>; |
| 488 | interrupts = <0 38 0x04>; |
| 489 | cache-unified; |
| 490 | cache-level = <2>; |
Dinh Nguyen | 9a21e55 | 2014-01-06 20:54:43 -0600 | [diff] [blame] | 491 | arm,tag-latency = <1 1 1>; |
| 492 | arm,data-latency = <2 1 1>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 493 | }; |
| 494 | |
Dinh Nguyen | 9b93136 | 2014-02-17 20:31:02 -0600 | [diff] [blame] | 495 | mmc: dwmmc0@ff704000 { |
| 496 | compatible = "altr,socfpga-dw-mshc"; |
| 497 | reg = <0xff704000 0x1000>; |
| 498 | interrupts = <0 139 4>; |
| 499 | fifo-depth = <0x400>; |
| 500 | #address-cells = <1>; |
| 501 | #size-cells = <0>; |
| 502 | clocks = <&l4_mp_clk>, <&sdmmc_clk>; |
| 503 | clock-names = "biu", "ciu"; |
| 504 | }; |
| 505 | |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 506 | /* Local timer */ |
| 507 | timer@fffec600 { |
| 508 | compatible = "arm,cortex-a9-twd-timer"; |
| 509 | reg = <0xfffec600 0x100>; |
| 510 | interrupts = <1 13 0xf04>; |
Dinh Nguyen | 159c7f8 | 2013-10-01 14:42:27 -0500 | [diff] [blame] | 511 | clocks = <&mpu_periph_clk>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 512 | }; |
| 513 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 514 | timer0: timer0@ffc08000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 515 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 516 | interrupts = <0 167 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 517 | reg = <0xffc08000 0x1000>; |
| 518 | }; |
| 519 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 520 | timer1: timer1@ffc09000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 521 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 522 | interrupts = <0 168 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 523 | reg = <0xffc09000 0x1000>; |
| 524 | }; |
| 525 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 526 | timer2: timer2@ffd00000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 527 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 528 | interrupts = <0 169 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 529 | reg = <0xffd00000 0x1000>; |
| 530 | }; |
| 531 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 532 | timer3: timer3@ffd01000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 533 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 534 | interrupts = <0 170 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 535 | reg = <0xffd01000 0x1000>; |
| 536 | }; |
| 537 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 538 | uart0: serial0@ffc02000 { |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 539 | compatible = "snps,dw-apb-uart"; |
| 540 | reg = <0xffc02000 0x1000>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 541 | interrupts = <0 162 4>; |
| 542 | reg-shift = <2>; |
| 543 | reg-io-width = <4>; |
| 544 | }; |
| 545 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 546 | uart1: serial1@ffc03000 { |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 547 | compatible = "snps,dw-apb-uart"; |
| 548 | reg = <0xffc03000 0x1000>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 549 | interrupts = <0 163 4>; |
| 550 | reg-shift = <2>; |
| 551 | reg-io-width = <4>; |
| 552 | }; |
Dinh Nguyen | 9c4566a | 2012-10-25 10:41:39 -0600 | [diff] [blame] | 553 | |
| 554 | rstmgr@ffd05000 { |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 555 | compatible = "altr,rst-mgr"; |
| 556 | reg = <0xffd05000 0x1000>; |
| 557 | }; |
Dinh Nguyen | 9c4566a | 2012-10-25 10:41:39 -0600 | [diff] [blame] | 558 | |
Dinh Nguyen | a5d6ac2 | 2014-03-09 23:12:14 -0500 | [diff] [blame] | 559 | sysmgr: sysmgr@ffd08000 { |
Dinh Nguyen | 9b93136 | 2014-02-17 20:31:02 -0600 | [diff] [blame] | 560 | compatible = "altr,sys-mgr", "syscon"; |
| 561 | reg = <0xffd08000 0x4000>; |
| 562 | }; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 563 | }; |
| 564 | }; |