Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 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 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 14 | /include/ "skeleton.dtsi" |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 15 | |
| 16 | / { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 17 | interrupt-parent = <&intc>; |
| 18 | |
| 19 | cpus { |
| 20 | cpu@0 { |
| 21 | compatible = "arm,cortex-a8"; |
| 22 | }; |
| 23 | }; |
| 24 | |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 25 | memory { |
| 26 | reg = <0x40000000 0x20000000>; |
| 27 | }; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 28 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 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 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 46 | osc24M: osc24M@01c20050 { |
| 47 | #clock-cells = <0>; |
| 48 | compatible = "allwinner,sun4i-osc-clk"; |
| 49 | reg = <0x01c20050 0x4>; |
Emilio López | 92fd6e0 | 2013-04-09 10:48:04 -0300 | [diff] [blame] | 50 | clock-frequency = <24000000>; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 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 | |
| 66 | /* dummy is 200M */ |
| 67 | cpu: cpu@01c20054 { |
| 68 | #clock-cells = <0>; |
| 69 | compatible = "allwinner,sun4i-cpu-clk"; |
| 70 | reg = <0x01c20054 0x4>; |
| 71 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; |
| 72 | }; |
| 73 | |
| 74 | axi: axi@01c20054 { |
| 75 | #clock-cells = <0>; |
| 76 | compatible = "allwinner,sun4i-axi-clk"; |
| 77 | reg = <0x01c20054 0x4>; |
| 78 | clocks = <&cpu>; |
| 79 | }; |
| 80 | |
| 81 | axi_gates: axi_gates@01c2005c { |
| 82 | #clock-cells = <1>; |
| 83 | compatible = "allwinner,sun4i-axi-gates-clk"; |
| 84 | reg = <0x01c2005c 0x4>; |
| 85 | clocks = <&axi>; |
| 86 | clock-output-names = "axi_dram"; |
| 87 | }; |
| 88 | |
| 89 | ahb: ahb@01c20054 { |
| 90 | #clock-cells = <0>; |
| 91 | compatible = "allwinner,sun4i-ahb-clk"; |
| 92 | reg = <0x01c20054 0x4>; |
| 93 | clocks = <&axi>; |
| 94 | }; |
| 95 | |
| 96 | ahb_gates: ahb_gates@01c20060 { |
| 97 | #clock-cells = <1>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 98 | compatible = "allwinner,sun5i-a13-ahb-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 99 | reg = <0x01c20060 0x8>; |
| 100 | clocks = <&ahb>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 101 | clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci", |
| 102 | "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0", |
| 103 | "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram", |
| 104 | "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer", |
| 105 | "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be", |
| 106 | "ahb_de_fe", "ahb_iep", "ahb_mali400"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 107 | }; |
| 108 | |
| 109 | apb0: apb0@01c20054 { |
| 110 | #clock-cells = <0>; |
| 111 | compatible = "allwinner,sun4i-apb0-clk"; |
| 112 | reg = <0x01c20054 0x4>; |
| 113 | clocks = <&ahb>; |
| 114 | }; |
| 115 | |
| 116 | apb0_gates: apb0_gates@01c20068 { |
| 117 | #clock-cells = <1>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 118 | compatible = "allwinner,sun5i-a13-apb0-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 119 | reg = <0x01c20068 0x4>; |
| 120 | clocks = <&apb0>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 121 | clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 122 | }; |
| 123 | |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 124 | /* dummy is pll6 */ |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 125 | apb1_mux: apb1_mux@01c20058 { |
| 126 | #clock-cells = <0>; |
| 127 | compatible = "allwinner,sun4i-apb1-mux-clk"; |
| 128 | reg = <0x01c20058 0x4>; |
| 129 | clocks = <&osc24M>, <&dummy>, <&osc32k>; |
| 130 | }; |
| 131 | |
| 132 | apb1: apb1@01c20058 { |
| 133 | #clock-cells = <0>; |
| 134 | compatible = "allwinner,sun4i-apb1-clk"; |
| 135 | reg = <0x01c20058 0x4>; |
| 136 | clocks = <&apb1_mux>; |
| 137 | }; |
| 138 | |
| 139 | apb1_gates: apb1_gates@01c2006c { |
| 140 | #clock-cells = <1>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 141 | compatible = "allwinner,sun5i-a13-apb1-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 142 | reg = <0x01c2006c 0x4>; |
| 143 | clocks = <&apb1>; |
| 144 | clock-output-names = "apb1_i2c0", "apb1_i2c1", |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 145 | "apb1_i2c2", "apb1_uart1", "apb1_uart3"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 146 | }; |
| 147 | }; |
| 148 | |
| 149 | soc@01c20000 { |
| 150 | compatible = "simple-bus"; |
| 151 | #address-cells = <1>; |
| 152 | #size-cells = <1>; |
| 153 | reg = <0x01c20000 0x300000>; |
| 154 | ranges; |
| 155 | |
| 156 | intc: interrupt-controller@01c20400 { |
Maxime Ripard | 6def126 | 2013-03-24 19:20:52 +0100 | [diff] [blame] | 157 | compatible = "allwinner,sun4i-ic"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 158 | reg = <0x01c20400 0x400>; |
| 159 | interrupt-controller; |
| 160 | #interrupt-cells = <1>; |
| 161 | }; |
| 162 | |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 163 | pio: pinctrl@01c20800 { |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 164 | compatible = "allwinner,sun5i-a13-pinctrl"; |
| 165 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 39138bc | 2013-04-06 15:00:48 +0200 | [diff] [blame] | 166 | interrupts = <28>; |
Emilio López | 36386d6 | 2013-03-27 18:20:41 -0300 | [diff] [blame] | 167 | clocks = <&apb0_gates 5>; |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 168 | gpio-controller; |
Maxime Ripard | 39138bc | 2013-04-06 15:00:48 +0200 | [diff] [blame] | 169 | interrupt-controller; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 170 | #address-cells = <1>; |
| 171 | #size-cells = <0>; |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 172 | #gpio-cells = <3>; |
Maxime Ripard | 4348cc6 | 2013-01-18 22:30:37 +0100 | [diff] [blame] | 173 | |
| 174 | uart1_pins_a: uart1@0 { |
| 175 | allwinner,pins = "PE10", "PE11"; |
| 176 | allwinner,function = "uart1"; |
| 177 | allwinner,drive = <0>; |
| 178 | allwinner,pull = <0>; |
| 179 | }; |
| 180 | |
| 181 | uart1_pins_b: uart1@1 { |
| 182 | allwinner,pins = "PG3", "PG4"; |
| 183 | allwinner,function = "uart1"; |
| 184 | allwinner,drive = <0>; |
| 185 | allwinner,pull = <0>; |
| 186 | }; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 187 | }; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 188 | |
| 189 | timer@01c20c00 { |
Maxime Ripard | b6e1a53 | 2013-03-24 19:00:17 +0100 | [diff] [blame] | 190 | compatible = "allwinner,sun4i-timer"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 191 | reg = <0x01c20c00 0x90>; |
| 192 | interrupts = <22>; |
| 193 | clocks = <&osc24M>; |
| 194 | }; |
| 195 | |
| 196 | wdt: watchdog@01c20c90 { |
Maxime Ripard | 0b19b7c | 2013-03-24 19:32:34 +0100 | [diff] [blame] | 197 | compatible = "allwinner,sun4i-wdt"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 198 | reg = <0x01c20c90 0x10>; |
| 199 | }; |
| 200 | |
| 201 | uart1: serial@01c28400 { |
| 202 | compatible = "snps,dw-apb-uart"; |
| 203 | reg = <0x01c28400 0x400>; |
| 204 | interrupts = <2>; |
| 205 | reg-shift = <2>; |
| 206 | reg-io-width = <4>; |
| 207 | clocks = <&apb1_gates 17>; |
| 208 | status = "disabled"; |
| 209 | }; |
| 210 | |
| 211 | uart3: serial@01c28c00 { |
| 212 | compatible = "snps,dw-apb-uart"; |
| 213 | reg = <0x01c28c00 0x400>; |
| 214 | interrupts = <4>; |
| 215 | reg-shift = <2>; |
| 216 | reg-io-width = <4>; |
| 217 | clocks = <&apb1_gates 19>; |
| 218 | status = "disabled"; |
| 219 | }; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame^] | 220 | |
| 221 | i2c0: i2c@01c2ac00 { |
| 222 | compatible = "allwinner,sun4i-i2c"; |
| 223 | reg = <0x01c2ac00 0x400>; |
| 224 | interrupts = <7>; |
| 225 | clocks = <&apb1_gates 0>; |
| 226 | clock-frequency = <100000>; |
| 227 | status = "disabled"; |
| 228 | }; |
| 229 | |
| 230 | i2c1: i2c@01c2b000 { |
| 231 | compatible = "allwinner,sun4i-i2c"; |
| 232 | reg = <0x01c2b000 0x400>; |
| 233 | interrupts = <8>; |
| 234 | clocks = <&apb1_gates 1>; |
| 235 | clock-frequency = <100000>; |
| 236 | status = "disabled"; |
| 237 | }; |
| 238 | |
| 239 | i2c2: i2c@01c2b400 { |
| 240 | compatible = "allwinner,sun4i-i2c"; |
| 241 | reg = <0x01c2b400 0x400>; |
| 242 | interrupts = <9>; |
| 243 | clocks = <&apb1_gates 2>; |
| 244 | clock-frequency = <100000>; |
| 245 | status = "disabled"; |
| 246 | }; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 247 | }; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 248 | }; |