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 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 73 | /* dummy is 200M */ |
| 74 | cpu: cpu@01c20054 { |
| 75 | #clock-cells = <0>; |
| 76 | compatible = "allwinner,sun4i-cpu-clk"; |
| 77 | reg = <0x01c20054 0x4>; |
| 78 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; |
| 79 | }; |
| 80 | |
| 81 | axi: axi@01c20054 { |
| 82 | #clock-cells = <0>; |
| 83 | compatible = "allwinner,sun4i-axi-clk"; |
| 84 | reg = <0x01c20054 0x4>; |
| 85 | clocks = <&cpu>; |
| 86 | }; |
| 87 | |
| 88 | axi_gates: axi_gates@01c2005c { |
| 89 | #clock-cells = <1>; |
| 90 | compatible = "allwinner,sun4i-axi-gates-clk"; |
| 91 | reg = <0x01c2005c 0x4>; |
| 92 | clocks = <&axi>; |
| 93 | clock-output-names = "axi_dram"; |
| 94 | }; |
| 95 | |
| 96 | ahb: ahb@01c20054 { |
| 97 | #clock-cells = <0>; |
| 98 | compatible = "allwinner,sun4i-ahb-clk"; |
| 99 | reg = <0x01c20054 0x4>; |
| 100 | clocks = <&axi>; |
| 101 | }; |
| 102 | |
| 103 | ahb_gates: ahb_gates@01c20060 { |
| 104 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 105 | compatible = "allwinner,sun5i-a10s-ahb-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 106 | reg = <0x01c20060 0x8>; |
| 107 | clocks = <&ahb>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 108 | clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci", |
| 109 | "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0", |
| 110 | "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram", |
| 111 | "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1", |
| 112 | "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve", |
| 113 | "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi", |
| 114 | "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | apb0: apb0@01c20054 { |
| 118 | #clock-cells = <0>; |
| 119 | compatible = "allwinner,sun4i-apb0-clk"; |
| 120 | reg = <0x01c20054 0x4>; |
| 121 | clocks = <&ahb>; |
| 122 | }; |
| 123 | |
| 124 | apb0_gates: apb0_gates@01c20068 { |
| 125 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 126 | compatible = "allwinner,sun5i-a10s-apb0-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 127 | reg = <0x01c20068 0x4>; |
| 128 | clocks = <&apb0>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 129 | clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio", |
| 130 | "apb0_ir", "apb0_keypad"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 131 | }; |
| 132 | |
| 133 | /* dummy is pll62 */ |
| 134 | apb1_mux: apb1_mux@01c20058 { |
| 135 | #clock-cells = <0>; |
| 136 | compatible = "allwinner,sun4i-apb1-mux-clk"; |
| 137 | reg = <0x01c20058 0x4>; |
| 138 | clocks = <&osc24M>, <&dummy>, <&osc32k>; |
| 139 | }; |
| 140 | |
| 141 | apb1: apb1@01c20058 { |
| 142 | #clock-cells = <0>; |
| 143 | compatible = "allwinner,sun4i-apb1-clk"; |
| 144 | reg = <0x01c20058 0x4>; |
| 145 | clocks = <&apb1_mux>; |
| 146 | }; |
| 147 | |
| 148 | apb1_gates: apb1_gates@01c2006c { |
| 149 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 150 | compatible = "allwinner,sun5i-a10s-apb1-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 151 | reg = <0x01c2006c 0x4>; |
| 152 | clocks = <&apb1>; |
| 153 | clock-output-names = "apb1_i2c0", "apb1_i2c1", |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 154 | "apb1_i2c2", "apb1_uart0", "apb1_uart1", |
| 155 | "apb1_uart2", "apb1_uart3"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 156 | }; |
| 157 | }; |
| 158 | |
Maxime Ripard | 9e19929 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 159 | soc@01c00000 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 160 | compatible = "simple-bus"; |
| 161 | #address-cells = <1>; |
| 162 | #size-cells = <1>; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 163 | ranges; |
| 164 | |
| 165 | emac: ethernet@01c0b000 { |
| 166 | compatible = "allwinner,sun4i-emac"; |
| 167 | reg = <0x01c0b000 0x1000>; |
| 168 | interrupts = <55>; |
| 169 | clocks = <&ahb_gates 17>; |
| 170 | status = "disabled"; |
| 171 | }; |
| 172 | |
| 173 | mdio@01c0b080 { |
| 174 | compatible = "allwinner,sun4i-mdio"; |
| 175 | reg = <0x01c0b080 0x14>; |
| 176 | status = "disabled"; |
| 177 | #address-cells = <1>; |
| 178 | #size-cells = <0>; |
| 179 | }; |
| 180 | |
| 181 | intc: interrupt-controller@01c20400 { |
| 182 | compatible = "allwinner,sun4i-ic"; |
| 183 | reg = <0x01c20400 0x400>; |
| 184 | interrupt-controller; |
| 185 | #interrupt-cells = <1>; |
| 186 | }; |
| 187 | |
| 188 | pio: pinctrl@01c20800 { |
| 189 | compatible = "allwinner,sun5i-a10s-pinctrl"; |
| 190 | reg = <0x01c20800 0x400>; |
| 191 | interrupts = <28>; |
| 192 | clocks = <&apb0_gates 5>; |
| 193 | gpio-controller; |
| 194 | interrupt-controller; |
| 195 | #address-cells = <1>; |
| 196 | #size-cells = <0>; |
| 197 | #gpio-cells = <3>; |
| 198 | |
| 199 | uart0_pins_a: uart0@0 { |
| 200 | allwinner,pins = "PB19", "PB20"; |
| 201 | allwinner,function = "uart0"; |
| 202 | allwinner,drive = <0>; |
| 203 | allwinner,pull = <0>; |
| 204 | }; |
| 205 | |
| 206 | uart2_pins_a: uart2@0 { |
| 207 | allwinner,pins = "PC18", "PC19"; |
| 208 | allwinner,function = "uart2"; |
| 209 | allwinner,drive = <0>; |
| 210 | allwinner,pull = <0>; |
| 211 | }; |
| 212 | |
| 213 | uart3_pins_a: uart3@0 { |
| 214 | allwinner,pins = "PG9", "PG10"; |
| 215 | allwinner,function = "uart3"; |
| 216 | allwinner,drive = <0>; |
| 217 | allwinner,pull = <0>; |
| 218 | }; |
| 219 | |
| 220 | emac_pins_a: emac0@0 { |
| 221 | allwinner,pins = "PA0", "PA1", "PA2", |
| 222 | "PA3", "PA4", "PA5", "PA6", |
| 223 | "PA7", "PA8", "PA9", "PA10", |
| 224 | "PA11", "PA12", "PA13", "PA14", |
| 225 | "PA15", "PA16"; |
| 226 | allwinner,function = "emac"; |
| 227 | allwinner,drive = <0>; |
| 228 | allwinner,pull = <0>; |
| 229 | }; |
Emilio López | 170ab43 | 2013-07-07 18:31:56 -0300 | [diff] [blame] | 230 | |
| 231 | i2c0_pins_a: i2c0@0 { |
| 232 | allwinner,pins = "PB0", "PB1"; |
| 233 | allwinner,function = "i2c0"; |
| 234 | allwinner,drive = <0>; |
| 235 | allwinner,pull = <0>; |
| 236 | }; |
| 237 | |
| 238 | i2c1_pins_a: i2c1@0 { |
| 239 | allwinner,pins = "PB15", "PB16"; |
| 240 | allwinner,function = "i2c1"; |
| 241 | allwinner,drive = <0>; |
| 242 | allwinner,pull = <0>; |
| 243 | }; |
| 244 | |
| 245 | i2c2_pins_a: i2c2@0 { |
| 246 | allwinner,pins = "PB17", "PB18"; |
| 247 | allwinner,function = "i2c2"; |
| 248 | allwinner,drive = <0>; |
| 249 | allwinner,pull = <0>; |
| 250 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 251 | }; |
| 252 | |
| 253 | timer@01c20c00 { |
| 254 | compatible = "allwinner,sun4i-timer"; |
| 255 | reg = <0x01c20c00 0x90>; |
| 256 | interrupts = <22>; |
| 257 | clocks = <&osc24M>; |
| 258 | }; |
| 259 | |
| 260 | wdt: watchdog@01c20c90 { |
| 261 | compatible = "allwinner,sun4i-wdt"; |
| 262 | reg = <0x01c20c90 0x10>; |
| 263 | }; |
| 264 | |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 265 | sid: eeprom@01c23800 { |
| 266 | compatible = "allwinner,sun4i-sid"; |
| 267 | reg = <0x01c23800 0x10>; |
| 268 | }; |
| 269 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 270 | uart0: serial@01c28000 { |
| 271 | compatible = "snps,dw-apb-uart"; |
| 272 | reg = <0x01c28000 0x400>; |
| 273 | interrupts = <1>; |
| 274 | reg-shift = <2>; |
| 275 | reg-io-width = <4>; |
| 276 | clocks = <&apb1_gates 16>; |
| 277 | status = "disabled"; |
| 278 | }; |
| 279 | |
| 280 | uart1: serial@01c28400 { |
| 281 | compatible = "snps,dw-apb-uart"; |
| 282 | reg = <0x01c28400 0x400>; |
| 283 | interrupts = <2>; |
| 284 | reg-shift = <2>; |
| 285 | reg-io-width = <4>; |
| 286 | clocks = <&apb1_gates 17>; |
| 287 | status = "disabled"; |
| 288 | }; |
| 289 | |
| 290 | uart2: serial@01c28800 { |
| 291 | compatible = "snps,dw-apb-uart"; |
| 292 | reg = <0x01c28800 0x400>; |
| 293 | interrupts = <3>; |
| 294 | reg-shift = <2>; |
| 295 | reg-io-width = <4>; |
| 296 | clocks = <&apb1_gates 18>; |
| 297 | status = "disabled"; |
| 298 | }; |
| 299 | |
| 300 | uart3: serial@01c28c00 { |
| 301 | compatible = "snps,dw-apb-uart"; |
| 302 | reg = <0x01c28c00 0x400>; |
| 303 | interrupts = <4>; |
| 304 | reg-shift = <2>; |
| 305 | reg-io-width = <4>; |
| 306 | clocks = <&apb1_gates 19>; |
| 307 | status = "disabled"; |
| 308 | }; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 309 | |
| 310 | i2c0: i2c@01c2ac00 { |
| 311 | #address-cells = <1>; |
| 312 | #size-cells = <0>; |
| 313 | compatible = "allwinner,sun4i-i2c"; |
| 314 | reg = <0x01c2ac00 0x400>; |
| 315 | interrupts = <7>; |
| 316 | clocks = <&apb1_gates 0>; |
| 317 | clock-frequency = <100000>; |
| 318 | status = "disabled"; |
| 319 | }; |
| 320 | |
| 321 | i2c1: i2c@01c2b000 { |
| 322 | #address-cells = <1>; |
| 323 | #size-cells = <0>; |
| 324 | compatible = "allwinner,sun4i-i2c"; |
| 325 | reg = <0x01c2b000 0x400>; |
| 326 | interrupts = <8>; |
| 327 | clocks = <&apb1_gates 1>; |
| 328 | clock-frequency = <100000>; |
| 329 | status = "disabled"; |
| 330 | }; |
| 331 | |
| 332 | i2c2: i2c@01c2b400 { |
| 333 | #address-cells = <1>; |
| 334 | #size-cells = <0>; |
| 335 | compatible = "allwinner,sun4i-i2c"; |
| 336 | reg = <0x01c2b400 0x400>; |
| 337 | interrupts = <9>; |
| 338 | clocks = <&apb1_gates 2>; |
| 339 | clock-frequency = <100000>; |
| 340 | status = "disabled"; |
| 341 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 342 | }; |
| 343 | }; |