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>; |
| 78 | interrupts = <0 180 4>; |
Padmavathi Venna | 0d8abbf | 2013-03-04 11:04:28 +0530 | [diff] [blame] | 79 | #dma-cells = <1>; |
| 80 | #dma-channels = <8>; |
| 81 | #dma-requests = <32>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 82 | }; |
| 83 | }; |
| 84 | |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 85 | clkmgr@ffd04000 { |
| 86 | compatible = "altr,clk-mgr"; |
| 87 | reg = <0xffd04000 0x1000>; |
| 88 | |
| 89 | clocks { |
| 90 | #address-cells = <1>; |
| 91 | #size-cells = <0>; |
| 92 | |
| 93 | osc: osc1 { |
| 94 | #clock-cells = <0>; |
| 95 | compatible = "fixed-clock"; |
| 96 | }; |
| 97 | |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 98 | f2s_periph_ref_clk: f2s_periph_ref_clk { |
| 99 | #clock-cells = <0>; |
| 100 | compatible = "fixed-clock"; |
| 101 | clock-frequency = <10000000>; |
| 102 | }; |
| 103 | |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 104 | main_pll: main_pll { |
| 105 | #address-cells = <1>; |
| 106 | #size-cells = <0>; |
| 107 | #clock-cells = <0>; |
| 108 | compatible = "altr,socfpga-pll-clock"; |
| 109 | clocks = <&osc>; |
| 110 | reg = <0x40>; |
| 111 | |
| 112 | mpuclk: mpuclk { |
| 113 | #clock-cells = <0>; |
| 114 | compatible = "altr,socfpga-perip-clk"; |
| 115 | clocks = <&main_pll>; |
| 116 | fixed-divider = <2>; |
| 117 | reg = <0x48>; |
| 118 | }; |
| 119 | |
| 120 | mainclk: mainclk { |
| 121 | #clock-cells = <0>; |
| 122 | compatible = "altr,socfpga-perip-clk"; |
| 123 | clocks = <&main_pll>; |
| 124 | fixed-divider = <4>; |
| 125 | reg = <0x4C>; |
| 126 | }; |
| 127 | |
| 128 | dbg_base_clk: dbg_base_clk { |
| 129 | #clock-cells = <0>; |
| 130 | compatible = "altr,socfpga-perip-clk"; |
| 131 | clocks = <&main_pll>; |
| 132 | fixed-divider = <4>; |
| 133 | reg = <0x50>; |
| 134 | }; |
| 135 | |
| 136 | main_qspi_clk: main_qspi_clk { |
| 137 | #clock-cells = <0>; |
| 138 | compatible = "altr,socfpga-perip-clk"; |
| 139 | clocks = <&main_pll>; |
| 140 | reg = <0x54>; |
| 141 | }; |
| 142 | |
| 143 | main_nand_sdmmc_clk: main_nand_sdmmc_clk { |
| 144 | #clock-cells = <0>; |
| 145 | compatible = "altr,socfpga-perip-clk"; |
| 146 | clocks = <&main_pll>; |
| 147 | reg = <0x58>; |
| 148 | }; |
| 149 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 150 | cfg_h2f_usr0_clk: cfg_h2f_usr0_clk { |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 151 | #clock-cells = <0>; |
| 152 | compatible = "altr,socfpga-perip-clk"; |
| 153 | clocks = <&main_pll>; |
| 154 | reg = <0x5C>; |
| 155 | }; |
| 156 | }; |
| 157 | |
| 158 | periph_pll: periph_pll { |
| 159 | #address-cells = <1>; |
| 160 | #size-cells = <0>; |
| 161 | #clock-cells = <0>; |
| 162 | compatible = "altr,socfpga-pll-clock"; |
| 163 | clocks = <&osc>; |
| 164 | reg = <0x80>; |
| 165 | |
| 166 | emac0_clk: emac0_clk { |
| 167 | #clock-cells = <0>; |
| 168 | compatible = "altr,socfpga-perip-clk"; |
| 169 | clocks = <&periph_pll>; |
| 170 | reg = <0x88>; |
| 171 | }; |
| 172 | |
| 173 | emac1_clk: emac1_clk { |
| 174 | #clock-cells = <0>; |
| 175 | compatible = "altr,socfpga-perip-clk"; |
| 176 | clocks = <&periph_pll>; |
| 177 | reg = <0x8C>; |
| 178 | }; |
| 179 | |
| 180 | per_qspi_clk: per_qsi_clk { |
| 181 | #clock-cells = <0>; |
| 182 | compatible = "altr,socfpga-perip-clk"; |
| 183 | clocks = <&periph_pll>; |
| 184 | reg = <0x90>; |
| 185 | }; |
| 186 | |
| 187 | per_nand_mmc_clk: per_nand_mmc_clk { |
| 188 | #clock-cells = <0>; |
| 189 | compatible = "altr,socfpga-perip-clk"; |
| 190 | clocks = <&periph_pll>; |
| 191 | reg = <0x94>; |
| 192 | }; |
| 193 | |
| 194 | per_base_clk: per_base_clk { |
| 195 | #clock-cells = <0>; |
| 196 | compatible = "altr,socfpga-perip-clk"; |
| 197 | clocks = <&periph_pll>; |
| 198 | reg = <0x98>; |
| 199 | }; |
| 200 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 201 | h2f_usr1_clk: h2f_usr1_clk { |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 202 | #clock-cells = <0>; |
| 203 | compatible = "altr,socfpga-perip-clk"; |
| 204 | clocks = <&periph_pll>; |
| 205 | reg = <0x9C>; |
| 206 | }; |
| 207 | }; |
| 208 | |
| 209 | sdram_pll: sdram_pll { |
| 210 | #address-cells = <1>; |
| 211 | #size-cells = <0>; |
| 212 | #clock-cells = <0>; |
| 213 | compatible = "altr,socfpga-pll-clock"; |
| 214 | clocks = <&osc>; |
| 215 | reg = <0xC0>; |
| 216 | |
| 217 | ddr_dqs_clk: ddr_dqs_clk { |
| 218 | #clock-cells = <0>; |
| 219 | compatible = "altr,socfpga-perip-clk"; |
| 220 | clocks = <&sdram_pll>; |
| 221 | reg = <0xC8>; |
| 222 | }; |
| 223 | |
| 224 | ddr_2x_dqs_clk: ddr_2x_dqs_clk { |
| 225 | #clock-cells = <0>; |
| 226 | compatible = "altr,socfpga-perip-clk"; |
| 227 | clocks = <&sdram_pll>; |
| 228 | reg = <0xCC>; |
| 229 | }; |
| 230 | |
| 231 | ddr_dq_clk: ddr_dq_clk { |
| 232 | #clock-cells = <0>; |
| 233 | compatible = "altr,socfpga-perip-clk"; |
| 234 | clocks = <&sdram_pll>; |
| 235 | reg = <0xD0>; |
| 236 | }; |
| 237 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 238 | h2f_usr2_clk: h2f_usr2_clk { |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 239 | #clock-cells = <0>; |
| 240 | compatible = "altr,socfpga-perip-clk"; |
| 241 | clocks = <&sdram_pll>; |
| 242 | reg = <0xD4>; |
| 243 | }; |
| 244 | }; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 245 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 246 | mpu_periph_clk: mpu_periph_clk { |
| 247 | #clock-cells = <0>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame^] | 248 | compatible = "altr,socfpga-perip-clk"; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 249 | clocks = <&mpuclk>; |
| 250 | fixed-divider = <4>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 251 | }; |
| 252 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 253 | mpu_l2_ram_clk: mpu_l2_ram_clk { |
| 254 | #clock-cells = <0>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame^] | 255 | compatible = "altr,socfpga-perip-clk"; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 256 | clocks = <&mpuclk>; |
| 257 | fixed-divider = <2>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 258 | }; |
| 259 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 260 | l4_main_clk: l4_main_clk { |
| 261 | #clock-cells = <0>; |
| 262 | compatible = "altr,socfpga-gate-clk"; |
| 263 | clocks = <&mainclk>; |
| 264 | clk-gate = <0x60 0>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 265 | }; |
| 266 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 267 | l3_main_clk: l3_main_clk { |
| 268 | #clock-cells = <0>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame^] | 269 | compatible = "altr,socfpga-perip-clk"; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 270 | clocks = <&mainclk>; |
Dinh Nguyen | a5c6e87 | 2013-12-03 14:32:10 -0600 | [diff] [blame^] | 271 | fixed-divider = <1>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 272 | }; |
| 273 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 274 | l3_mp_clk: l3_mp_clk { |
| 275 | #clock-cells = <0>; |
| 276 | compatible = "altr,socfpga-gate-clk"; |
| 277 | clocks = <&mainclk>; |
| 278 | div-reg = <0x64 0 2>; |
| 279 | clk-gate = <0x60 1>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 280 | }; |
| 281 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 282 | l3_sp_clk: l3_sp_clk { |
| 283 | #clock-cells = <0>; |
| 284 | compatible = "altr,socfpga-gate-clk"; |
| 285 | clocks = <&mainclk>; |
| 286 | div-reg = <0x64 2 2>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 287 | }; |
| 288 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 289 | l4_mp_clk: l4_mp_clk { |
| 290 | #clock-cells = <0>; |
| 291 | compatible = "altr,socfpga-gate-clk"; |
| 292 | clocks = <&mainclk>, <&per_base_clk>; |
| 293 | div-reg = <0x64 4 3>; |
| 294 | clk-gate = <0x60 2>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 295 | }; |
| 296 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 297 | l4_sp_clk: l4_sp_clk { |
| 298 | #clock-cells = <0>; |
| 299 | compatible = "altr,socfpga-gate-clk"; |
| 300 | clocks = <&mainclk>, <&per_base_clk>; |
| 301 | div-reg = <0x64 7 3>; |
| 302 | clk-gate = <0x60 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 303 | }; |
| 304 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 305 | dbg_at_clk: dbg_at_clk { |
| 306 | #clock-cells = <0>; |
| 307 | compatible = "altr,socfpga-gate-clk"; |
| 308 | clocks = <&dbg_base_clk>; |
| 309 | div-reg = <0x68 0 2>; |
| 310 | clk-gate = <0x60 4>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 311 | }; |
| 312 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 313 | dbg_clk: dbg_clk { |
| 314 | #clock-cells = <0>; |
| 315 | compatible = "altr,socfpga-gate-clk"; |
| 316 | clocks = <&dbg_base_clk>; |
| 317 | div-reg = <0x68 2 2>; |
| 318 | clk-gate = <0x60 5>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 319 | }; |
| 320 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 321 | dbg_trace_clk: dbg_trace_clk { |
| 322 | #clock-cells = <0>; |
| 323 | compatible = "altr,socfpga-gate-clk"; |
| 324 | clocks = <&dbg_base_clk>; |
| 325 | div-reg = <0x6C 0 3>; |
| 326 | clk-gate = <0x60 6>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 327 | }; |
| 328 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 329 | dbg_timer_clk: dbg_timer_clk { |
| 330 | #clock-cells = <0>; |
| 331 | compatible = "altr,socfpga-gate-clk"; |
| 332 | clocks = <&dbg_base_clk>; |
| 333 | clk-gate = <0x60 7>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 334 | }; |
| 335 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 336 | cfg_clk: cfg_clk { |
| 337 | #clock-cells = <0>; |
| 338 | compatible = "altr,socfpga-gate-clk"; |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 339 | clocks = <&cfg_h2f_usr0_clk>; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 340 | clk-gate = <0x60 8>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 341 | }; |
| 342 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 343 | h2f_user0_clk: h2f_user0_clk { |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 344 | #clock-cells = <0>; |
| 345 | compatible = "altr,socfpga-gate-clk"; |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 346 | clocks = <&cfg_h2f_usr0_clk>; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 347 | clk-gate = <0x60 9>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 348 | }; |
| 349 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 350 | emac_0_clk: emac_0_clk { |
| 351 | #clock-cells = <0>; |
| 352 | compatible = "altr,socfpga-gate-clk"; |
| 353 | clocks = <&emac0_clk>; |
| 354 | clk-gate = <0xa0 0>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 355 | }; |
| 356 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 357 | emac_1_clk: emac_1_clk { |
| 358 | #clock-cells = <0>; |
| 359 | compatible = "altr,socfpga-gate-clk"; |
| 360 | clocks = <&emac1_clk>; |
| 361 | clk-gate = <0xa0 1>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 362 | }; |
| 363 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 364 | usb_mp_clk: usb_mp_clk { |
| 365 | #clock-cells = <0>; |
| 366 | compatible = "altr,socfpga-gate-clk"; |
| 367 | clocks = <&per_base_clk>; |
| 368 | clk-gate = <0xa0 2>; |
| 369 | div-reg = <0xa4 0 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 370 | }; |
| 371 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 372 | spi_m_clk: spi_m_clk { |
| 373 | #clock-cells = <0>; |
| 374 | compatible = "altr,socfpga-gate-clk"; |
| 375 | clocks = <&per_base_clk>; |
| 376 | clk-gate = <0xa0 3>; |
| 377 | div-reg = <0xa4 3 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 378 | }; |
| 379 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 380 | can0_clk: can0_clk { |
| 381 | #clock-cells = <0>; |
| 382 | compatible = "altr,socfpga-gate-clk"; |
| 383 | clocks = <&per_base_clk>; |
| 384 | clk-gate = <0xa0 4>; |
| 385 | div-reg = <0xa4 6 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 386 | }; |
| 387 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 388 | can1_clk: can1_clk { |
| 389 | #clock-cells = <0>; |
| 390 | compatible = "altr,socfpga-gate-clk"; |
| 391 | clocks = <&per_base_clk>; |
| 392 | clk-gate = <0xa0 5>; |
| 393 | div-reg = <0xa4 9 3>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 394 | }; |
| 395 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 396 | gpio_db_clk: gpio_db_clk { |
| 397 | #clock-cells = <0>; |
| 398 | compatible = "altr,socfpga-gate-clk"; |
| 399 | clocks = <&per_base_clk>; |
| 400 | clk-gate = <0xa0 6>; |
| 401 | div-reg = <0xa8 0 24>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 402 | }; |
| 403 | |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 404 | h2f_user1_clk: h2f_user1_clk { |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 405 | #clock-cells = <0>; |
| 406 | compatible = "altr,socfpga-gate-clk"; |
Steffen Trumtrar | 01ed80b | 2013-10-07 11:11:38 -0500 | [diff] [blame] | 407 | clocks = <&h2f_usr1_clk>; |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 408 | clk-gate = <0xa0 7>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 409 | }; |
| 410 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 411 | sdmmc_clk: sdmmc_clk { |
| 412 | #clock-cells = <0>; |
| 413 | compatible = "altr,socfpga-gate-clk"; |
| 414 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 415 | clk-gate = <0xa0 8>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 416 | }; |
| 417 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 418 | nand_x_clk: nand_x_clk { |
| 419 | #clock-cells = <0>; |
| 420 | compatible = "altr,socfpga-gate-clk"; |
| 421 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 422 | clk-gate = <0xa0 9>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 423 | }; |
| 424 | |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 425 | nand_clk: nand_clk { |
| 426 | #clock-cells = <0>; |
| 427 | compatible = "altr,socfpga-gate-clk"; |
| 428 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 429 | clk-gate = <0xa0 10>; |
| 430 | fixed-divider = <4>; |
| 431 | }; |
| 432 | |
| 433 | qspi_clk: qspi_clk { |
| 434 | #clock-cells = <0>; |
| 435 | compatible = "altr,socfpga-gate-clk"; |
| 436 | clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>; |
| 437 | clk-gate = <0xa0 11>; |
Dinh Nguyen | a92b83a | 2013-06-05 10:02:54 -0500 | [diff] [blame] | 438 | }; |
Dinh Nguyen | 042000b | 2013-04-11 10:55:25 -0500 | [diff] [blame] | 439 | }; |
| 440 | }; |
| 441 | |
Dinh Nguyen | 3d954cf | 2013-06-05 10:02:53 -0500 | [diff] [blame] | 442 | gmac0: ethernet@ff700000 { |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 443 | compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; |
| 444 | reg = <0xff700000 0x2000>; |
| 445 | interrupts = <0 115 4>; |
| 446 | interrupt-names = "macirq"; |
| 447 | 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] | 448 | clocks = <&emac0_clk>; |
| 449 | clock-names = "stmmaceth"; |
| 450 | status = "disabled"; |
| 451 | }; |
| 452 | |
| 453 | gmac1: ethernet@ff702000 { |
| 454 | compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; |
| 455 | reg = <0xff702000 0x2000>; |
| 456 | interrupts = <0 120 4>; |
| 457 | interrupt-names = "macirq"; |
| 458 | mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */ |
| 459 | clocks = <&emac1_clk>; |
| 460 | clock-names = "stmmaceth"; |
| 461 | status = "disabled"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 462 | }; |
| 463 | |
| 464 | L2: l2-cache@fffef000 { |
| 465 | compatible = "arm,pl310-cache"; |
| 466 | reg = <0xfffef000 0x1000>; |
| 467 | interrupts = <0 38 0x04>; |
| 468 | cache-unified; |
| 469 | cache-level = <2>; |
| 470 | }; |
| 471 | |
| 472 | /* Local timer */ |
| 473 | timer@fffec600 { |
| 474 | compatible = "arm,cortex-a9-twd-timer"; |
| 475 | reg = <0xfffec600 0x100>; |
| 476 | interrupts = <1 13 0xf04>; |
Dinh Nguyen | 159c7f8 | 2013-10-01 14:42:27 -0500 | [diff] [blame] | 477 | clocks = <&mpu_periph_clk>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 478 | }; |
| 479 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 480 | timer0: timer0@ffc08000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 481 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 482 | interrupts = <0 167 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 483 | reg = <0xffc08000 0x1000>; |
| 484 | }; |
| 485 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 486 | timer1: timer1@ffc09000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 487 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 488 | interrupts = <0 168 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 489 | reg = <0xffc09000 0x1000>; |
| 490 | }; |
| 491 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 492 | timer2: timer2@ffd00000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 493 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 494 | interrupts = <0 169 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 495 | reg = <0xffd00000 0x1000>; |
| 496 | }; |
| 497 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 498 | timer3: timer3@ffd01000 { |
Dinh Nguyen | 620f5e1 | 2013-08-21 15:28:49 -0500 | [diff] [blame] | 499 | compatible = "snps,dw-apb-timer"; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 500 | interrupts = <0 170 4>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 501 | reg = <0xffd01000 0x1000>; |
| 502 | }; |
| 503 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 504 | uart0: serial0@ffc02000 { |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 505 | compatible = "snps,dw-apb-uart"; |
| 506 | reg = <0xffc02000 0x1000>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 507 | interrupts = <0 162 4>; |
| 508 | reg-shift = <2>; |
| 509 | reg-io-width = <4>; |
| 510 | }; |
| 511 | |
Dinh Nguyen | c2ad284 | 2013-02-11 17:30:30 -0600 | [diff] [blame] | 512 | uart1: serial1@ffc03000 { |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 513 | compatible = "snps,dw-apb-uart"; |
| 514 | reg = <0xffc03000 0x1000>; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 515 | interrupts = <0 163 4>; |
| 516 | reg-shift = <2>; |
| 517 | reg-io-width = <4>; |
| 518 | }; |
Dinh Nguyen | 9c4566a | 2012-10-25 10:41:39 -0600 | [diff] [blame] | 519 | |
| 520 | rstmgr@ffd05000 { |
Steffen Trumtrar | 7857d56 | 2013-10-07 10:44:07 -0500 | [diff] [blame] | 521 | compatible = "altr,rst-mgr"; |
| 522 | reg = <0xffd05000 0x1000>; |
| 523 | }; |
Dinh Nguyen | 9c4566a | 2012-10-25 10:41:39 -0600 | [diff] [blame] | 524 | |
| 525 | sysmgr@ffd08000 { |
| 526 | compatible = "altr,sys-mgr"; |
| 527 | reg = <0xffd08000 0x4000>; |
| 528 | }; |
Dinh Nguyen | 6631422 | 2012-07-18 16:07:18 -0600 | [diff] [blame] | 529 | }; |
| 530 | }; |