Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
| 6 | * The code contained herein is licensed under the GNU General Public |
| 7 | * License. You may obtain a copy of the GNU General Public License |
| 8 | * Version 2 or later at the following locations: |
| 9 | * |
| 10 | * http://www.opensource.org/licenses/gpl-license.html |
| 11 | * http://www.gnu.org/copyleft/gpl.html |
| 12 | */ |
| 13 | |
| 14 | /include/ "skeleton.dtsi" |
| 15 | |
| 16 | / { |
| 17 | interrupt-parent = <&intc>; |
| 18 | |
| 19 | cpus { |
| 20 | cpu@0 { |
| 21 | compatible = "arm,cortex-a8"; |
| 22 | }; |
| 23 | }; |
| 24 | |
| 25 | memory { |
| 26 | reg = <0x40000000 0x20000000>; |
| 27 | }; |
| 28 | |
| 29 | clocks { |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <1>; |
| 32 | ranges; |
| 33 | |
| 34 | /* |
| 35 | * This is a dummy clock, to be used as placeholder on |
| 36 | * other mux clocks when a specific parent clock is not |
| 37 | * yet implemented. It should be dropped when the driver |
| 38 | * is complete. |
| 39 | */ |
| 40 | dummy: dummy { |
| 41 | #clock-cells = <0>; |
| 42 | compatible = "fixed-clock"; |
| 43 | clock-frequency = <0>; |
| 44 | }; |
| 45 | |
| 46 | osc24M: osc24M@01c20050 { |
| 47 | #clock-cells = <0>; |
| 48 | compatible = "allwinner,sun4i-osc-clk"; |
| 49 | reg = <0x01c20050 0x4>; |
| 50 | clock-frequency = <24000000>; |
| 51 | }; |
| 52 | |
| 53 | osc32k: osc32k { |
| 54 | #clock-cells = <0>; |
| 55 | compatible = "fixed-clock"; |
| 56 | clock-frequency = <32768>; |
| 57 | }; |
| 58 | |
| 59 | pll1: pll1@01c20000 { |
| 60 | #clock-cells = <0>; |
| 61 | compatible = "allwinner,sun4i-pll1-clk"; |
| 62 | reg = <0x01c20000 0x4>; |
| 63 | clocks = <&osc24M>; |
| 64 | }; |
| 65 | |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 66 | pll4: pll4@01c20018 { |
| 67 | #clock-cells = <0>; |
| 68 | compatible = "allwinner,sun4i-pll1-clk"; |
| 69 | reg = <0x01c20018 0x4>; |
| 70 | clocks = <&osc24M>; |
| 71 | }; |
| 72 | |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 73 | pll5: pll5@01c20020 { |
| 74 | #clock-cells = <1>; |
| 75 | compatible = "allwinner,sun4i-pll5-clk"; |
| 76 | reg = <0x01c20020 0x4>; |
| 77 | clocks = <&osc24M>; |
| 78 | clock-output-names = "pll5_ddr", "pll5_other"; |
| 79 | }; |
| 80 | |
| 81 | pll6: pll6@01c20028 { |
| 82 | #clock-cells = <1>; |
| 83 | compatible = "allwinner,sun4i-pll6-clk"; |
| 84 | reg = <0x01c20028 0x4>; |
| 85 | clocks = <&osc24M>; |
| 86 | clock-output-names = "pll6_sata", "pll6_other", "pll6"; |
| 87 | }; |
| 88 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 89 | /* dummy is 200M */ |
| 90 | cpu: cpu@01c20054 { |
| 91 | #clock-cells = <0>; |
| 92 | compatible = "allwinner,sun4i-cpu-clk"; |
| 93 | reg = <0x01c20054 0x4>; |
| 94 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; |
| 95 | }; |
| 96 | |
| 97 | axi: axi@01c20054 { |
| 98 | #clock-cells = <0>; |
| 99 | compatible = "allwinner,sun4i-axi-clk"; |
| 100 | reg = <0x01c20054 0x4>; |
| 101 | clocks = <&cpu>; |
| 102 | }; |
| 103 | |
| 104 | axi_gates: axi_gates@01c2005c { |
| 105 | #clock-cells = <1>; |
| 106 | compatible = "allwinner,sun4i-axi-gates-clk"; |
| 107 | reg = <0x01c2005c 0x4>; |
| 108 | clocks = <&axi>; |
| 109 | clock-output-names = "axi_dram"; |
| 110 | }; |
| 111 | |
| 112 | ahb: ahb@01c20054 { |
| 113 | #clock-cells = <0>; |
| 114 | compatible = "allwinner,sun4i-ahb-clk"; |
| 115 | reg = <0x01c20054 0x4>; |
| 116 | clocks = <&axi>; |
| 117 | }; |
| 118 | |
| 119 | ahb_gates: ahb_gates@01c20060 { |
| 120 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 121 | compatible = "allwinner,sun5i-a10s-ahb-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 122 | reg = <0x01c20060 0x8>; |
| 123 | clocks = <&ahb>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 124 | clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci", |
| 125 | "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0", |
| 126 | "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram", |
| 127 | "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1", |
| 128 | "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve", |
| 129 | "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi", |
| 130 | "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 131 | }; |
| 132 | |
| 133 | apb0: apb0@01c20054 { |
| 134 | #clock-cells = <0>; |
| 135 | compatible = "allwinner,sun4i-apb0-clk"; |
| 136 | reg = <0x01c20054 0x4>; |
| 137 | clocks = <&ahb>; |
| 138 | }; |
| 139 | |
| 140 | apb0_gates: apb0_gates@01c20068 { |
| 141 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 142 | compatible = "allwinner,sun5i-a10s-apb0-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 143 | reg = <0x01c20068 0x4>; |
| 144 | clocks = <&apb0>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 145 | clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio", |
| 146 | "apb0_ir", "apb0_keypad"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 147 | }; |
| 148 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 149 | apb1_mux: apb1_mux@01c20058 { |
| 150 | #clock-cells = <0>; |
| 151 | compatible = "allwinner,sun4i-apb1-mux-clk"; |
| 152 | reg = <0x01c20058 0x4>; |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 153 | clocks = <&osc24M>, <&pll6 1>, <&osc32k>; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 154 | }; |
| 155 | |
| 156 | apb1: apb1@01c20058 { |
| 157 | #clock-cells = <0>; |
| 158 | compatible = "allwinner,sun4i-apb1-clk"; |
| 159 | reg = <0x01c20058 0x4>; |
| 160 | clocks = <&apb1_mux>; |
| 161 | }; |
| 162 | |
| 163 | apb1_gates: apb1_gates@01c2006c { |
| 164 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 165 | compatible = "allwinner,sun5i-a10s-apb1-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 166 | reg = <0x01c2006c 0x4>; |
| 167 | clocks = <&apb1>; |
| 168 | clock-output-names = "apb1_i2c0", "apb1_i2c1", |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 169 | "apb1_i2c2", "apb1_uart0", "apb1_uart1", |
| 170 | "apb1_uart2", "apb1_uart3"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 171 | }; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame^] | 172 | |
| 173 | nand_clk: clk@01c20080 { |
| 174 | #clock-cells = <0>; |
| 175 | compatible = "allwinner,sun4i-mod0-clk"; |
| 176 | reg = <0x01c20080 0x4>; |
| 177 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 178 | clock-output-names = "nand"; |
| 179 | }; |
| 180 | |
| 181 | ms_clk: clk@01c20084 { |
| 182 | #clock-cells = <0>; |
| 183 | compatible = "allwinner,sun4i-mod0-clk"; |
| 184 | reg = <0x01c20084 0x4>; |
| 185 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 186 | clock-output-names = "ms"; |
| 187 | }; |
| 188 | |
| 189 | mmc0_clk: clk@01c20088 { |
| 190 | #clock-cells = <0>; |
| 191 | compatible = "allwinner,sun4i-mod0-clk"; |
| 192 | reg = <0x01c20088 0x4>; |
| 193 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 194 | clock-output-names = "mmc0"; |
| 195 | }; |
| 196 | |
| 197 | mmc1_clk: clk@01c2008c { |
| 198 | #clock-cells = <0>; |
| 199 | compatible = "allwinner,sun4i-mod0-clk"; |
| 200 | reg = <0x01c2008c 0x4>; |
| 201 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 202 | clock-output-names = "mmc1"; |
| 203 | }; |
| 204 | |
| 205 | mmc2_clk: clk@01c20090 { |
| 206 | #clock-cells = <0>; |
| 207 | compatible = "allwinner,sun4i-mod0-clk"; |
| 208 | reg = <0x01c20090 0x4>; |
| 209 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 210 | clock-output-names = "mmc2"; |
| 211 | }; |
| 212 | |
| 213 | ts_clk: clk@01c20098 { |
| 214 | #clock-cells = <0>; |
| 215 | compatible = "allwinner,sun4i-mod0-clk"; |
| 216 | reg = <0x01c20098 0x4>; |
| 217 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 218 | clock-output-names = "ts"; |
| 219 | }; |
| 220 | |
| 221 | ss_clk: clk@01c2009c { |
| 222 | #clock-cells = <0>; |
| 223 | compatible = "allwinner,sun4i-mod0-clk"; |
| 224 | reg = <0x01c2009c 0x4>; |
| 225 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 226 | clock-output-names = "ss"; |
| 227 | }; |
| 228 | |
| 229 | spi0_clk: clk@01c200a0 { |
| 230 | #clock-cells = <0>; |
| 231 | compatible = "allwinner,sun4i-mod0-clk"; |
| 232 | reg = <0x01c200a0 0x4>; |
| 233 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 234 | clock-output-names = "spi0"; |
| 235 | }; |
| 236 | |
| 237 | spi1_clk: clk@01c200a4 { |
| 238 | #clock-cells = <0>; |
| 239 | compatible = "allwinner,sun4i-mod0-clk"; |
| 240 | reg = <0x01c200a4 0x4>; |
| 241 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 242 | clock-output-names = "spi1"; |
| 243 | }; |
| 244 | |
| 245 | spi2_clk: clk@01c200a8 { |
| 246 | #clock-cells = <0>; |
| 247 | compatible = "allwinner,sun4i-mod0-clk"; |
| 248 | reg = <0x01c200a8 0x4>; |
| 249 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 250 | clock-output-names = "spi2"; |
| 251 | }; |
| 252 | |
| 253 | ir0_clk: clk@01c200b0 { |
| 254 | #clock-cells = <0>; |
| 255 | compatible = "allwinner,sun4i-mod0-clk"; |
| 256 | reg = <0x01c200b0 0x4>; |
| 257 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 258 | clock-output-names = "ir0"; |
| 259 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 260 | }; |
| 261 | |
Maxime Ripard | 9e19929 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 262 | soc@01c00000 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 263 | compatible = "simple-bus"; |
| 264 | #address-cells = <1>; |
| 265 | #size-cells = <1>; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 266 | ranges; |
| 267 | |
| 268 | emac: ethernet@01c0b000 { |
| 269 | compatible = "allwinner,sun4i-emac"; |
| 270 | reg = <0x01c0b000 0x1000>; |
| 271 | interrupts = <55>; |
| 272 | clocks = <&ahb_gates 17>; |
| 273 | status = "disabled"; |
| 274 | }; |
| 275 | |
| 276 | mdio@01c0b080 { |
| 277 | compatible = "allwinner,sun4i-mdio"; |
| 278 | reg = <0x01c0b080 0x14>; |
| 279 | status = "disabled"; |
| 280 | #address-cells = <1>; |
| 281 | #size-cells = <0>; |
| 282 | }; |
| 283 | |
| 284 | intc: interrupt-controller@01c20400 { |
| 285 | compatible = "allwinner,sun4i-ic"; |
| 286 | reg = <0x01c20400 0x400>; |
| 287 | interrupt-controller; |
| 288 | #interrupt-cells = <1>; |
| 289 | }; |
| 290 | |
| 291 | pio: pinctrl@01c20800 { |
| 292 | compatible = "allwinner,sun5i-a10s-pinctrl"; |
| 293 | reg = <0x01c20800 0x400>; |
| 294 | interrupts = <28>; |
| 295 | clocks = <&apb0_gates 5>; |
| 296 | gpio-controller; |
| 297 | interrupt-controller; |
| 298 | #address-cells = <1>; |
| 299 | #size-cells = <0>; |
| 300 | #gpio-cells = <3>; |
| 301 | |
| 302 | uart0_pins_a: uart0@0 { |
| 303 | allwinner,pins = "PB19", "PB20"; |
| 304 | allwinner,function = "uart0"; |
| 305 | allwinner,drive = <0>; |
| 306 | allwinner,pull = <0>; |
| 307 | }; |
| 308 | |
| 309 | uart2_pins_a: uart2@0 { |
| 310 | allwinner,pins = "PC18", "PC19"; |
| 311 | allwinner,function = "uart2"; |
| 312 | allwinner,drive = <0>; |
| 313 | allwinner,pull = <0>; |
| 314 | }; |
| 315 | |
| 316 | uart3_pins_a: uart3@0 { |
| 317 | allwinner,pins = "PG9", "PG10"; |
| 318 | allwinner,function = "uart3"; |
| 319 | allwinner,drive = <0>; |
| 320 | allwinner,pull = <0>; |
| 321 | }; |
| 322 | |
| 323 | emac_pins_a: emac0@0 { |
| 324 | allwinner,pins = "PA0", "PA1", "PA2", |
| 325 | "PA3", "PA4", "PA5", "PA6", |
| 326 | "PA7", "PA8", "PA9", "PA10", |
| 327 | "PA11", "PA12", "PA13", "PA14", |
| 328 | "PA15", "PA16"; |
| 329 | allwinner,function = "emac"; |
| 330 | allwinner,drive = <0>; |
| 331 | allwinner,pull = <0>; |
| 332 | }; |
Emilio López | 170ab43 | 2013-07-07 18:31:56 -0300 | [diff] [blame] | 333 | |
| 334 | i2c0_pins_a: i2c0@0 { |
| 335 | allwinner,pins = "PB0", "PB1"; |
| 336 | allwinner,function = "i2c0"; |
| 337 | allwinner,drive = <0>; |
| 338 | allwinner,pull = <0>; |
| 339 | }; |
| 340 | |
| 341 | i2c1_pins_a: i2c1@0 { |
| 342 | allwinner,pins = "PB15", "PB16"; |
| 343 | allwinner,function = "i2c1"; |
| 344 | allwinner,drive = <0>; |
| 345 | allwinner,pull = <0>; |
| 346 | }; |
| 347 | |
| 348 | i2c2_pins_a: i2c2@0 { |
| 349 | allwinner,pins = "PB17", "PB18"; |
| 350 | allwinner,function = "i2c2"; |
| 351 | allwinner,drive = <0>; |
| 352 | allwinner,pull = <0>; |
| 353 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 354 | }; |
| 355 | |
| 356 | timer@01c20c00 { |
| 357 | compatible = "allwinner,sun4i-timer"; |
| 358 | reg = <0x01c20c00 0x90>; |
| 359 | interrupts = <22>; |
| 360 | clocks = <&osc24M>; |
| 361 | }; |
| 362 | |
| 363 | wdt: watchdog@01c20c90 { |
| 364 | compatible = "allwinner,sun4i-wdt"; |
| 365 | reg = <0x01c20c90 0x10>; |
| 366 | }; |
| 367 | |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 368 | sid: eeprom@01c23800 { |
| 369 | compatible = "allwinner,sun4i-sid"; |
| 370 | reg = <0x01c23800 0x10>; |
| 371 | }; |
| 372 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 373 | uart0: serial@01c28000 { |
| 374 | compatible = "snps,dw-apb-uart"; |
| 375 | reg = <0x01c28000 0x400>; |
| 376 | interrupts = <1>; |
| 377 | reg-shift = <2>; |
| 378 | reg-io-width = <4>; |
| 379 | clocks = <&apb1_gates 16>; |
| 380 | status = "disabled"; |
| 381 | }; |
| 382 | |
| 383 | uart1: serial@01c28400 { |
| 384 | compatible = "snps,dw-apb-uart"; |
| 385 | reg = <0x01c28400 0x400>; |
| 386 | interrupts = <2>; |
| 387 | reg-shift = <2>; |
| 388 | reg-io-width = <4>; |
| 389 | clocks = <&apb1_gates 17>; |
| 390 | status = "disabled"; |
| 391 | }; |
| 392 | |
| 393 | uart2: serial@01c28800 { |
| 394 | compatible = "snps,dw-apb-uart"; |
| 395 | reg = <0x01c28800 0x400>; |
| 396 | interrupts = <3>; |
| 397 | reg-shift = <2>; |
| 398 | reg-io-width = <4>; |
| 399 | clocks = <&apb1_gates 18>; |
| 400 | status = "disabled"; |
| 401 | }; |
| 402 | |
| 403 | uart3: serial@01c28c00 { |
| 404 | compatible = "snps,dw-apb-uart"; |
| 405 | reg = <0x01c28c00 0x400>; |
| 406 | interrupts = <4>; |
| 407 | reg-shift = <2>; |
| 408 | reg-io-width = <4>; |
| 409 | clocks = <&apb1_gates 19>; |
| 410 | status = "disabled"; |
| 411 | }; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 412 | |
| 413 | i2c0: i2c@01c2ac00 { |
| 414 | #address-cells = <1>; |
| 415 | #size-cells = <0>; |
| 416 | compatible = "allwinner,sun4i-i2c"; |
| 417 | reg = <0x01c2ac00 0x400>; |
| 418 | interrupts = <7>; |
| 419 | clocks = <&apb1_gates 0>; |
| 420 | clock-frequency = <100000>; |
| 421 | status = "disabled"; |
| 422 | }; |
| 423 | |
| 424 | i2c1: i2c@01c2b000 { |
| 425 | #address-cells = <1>; |
| 426 | #size-cells = <0>; |
| 427 | compatible = "allwinner,sun4i-i2c"; |
| 428 | reg = <0x01c2b000 0x400>; |
| 429 | interrupts = <8>; |
| 430 | clocks = <&apb1_gates 1>; |
| 431 | clock-frequency = <100000>; |
| 432 | status = "disabled"; |
| 433 | }; |
| 434 | |
| 435 | i2c2: i2c@01c2b400 { |
| 436 | #address-cells = <1>; |
| 437 | #size-cells = <0>; |
| 438 | compatible = "allwinner,sun4i-i2c"; |
| 439 | reg = <0x01c2b400 0x400>; |
| 440 | interrupts = <9>; |
| 441 | clocks = <&apb1_gates 2>; |
| 442 | clock-frequency = <100000>; |
| 443 | status = "disabled"; |
| 444 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 445 | }; |
| 446 | }; |