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 | |
Emilio López | e751cce | 2013-11-16 15:17:29 -0300 | [diff] [blame] | 19 | aliases { |
| 20 | ethernet0 = &emac; |
Maxime Ripard | 4dd4065 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 21 | serial0 = &uart0; |
| 22 | serial1 = &uart1; |
| 23 | serial2 = &uart2; |
| 24 | serial3 = &uart3; |
Emilio López | e751cce | 2013-11-16 15:17:29 -0300 | [diff] [blame] | 25 | }; |
| 26 | |
Hans de Goede | d501841 | 2014-11-14 16:34:35 +0100 | [diff] [blame] | 27 | chosen { |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <1>; |
| 30 | ranges; |
| 31 | |
Hans de Goede | a9f8cda | 2014-11-18 12:07:13 +0100 | [diff] [blame] | 32 | framebuffer@0 { |
| 33 | compatible = "allwinner,simple-framebuffer", "simple-framebuffer"; |
| 34 | allwinner,pipeline = "de_be0-lcd0-hdmi"; |
Hans de Goede | 678e75d | 2014-11-16 17:09:32 +0100 | [diff] [blame] | 35 | clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>, |
| 36 | <&ahb_gates 44>; |
Hans de Goede | d501841 | 2014-11-14 16:34:35 +0100 | [diff] [blame] | 37 | status = "disabled"; |
| 38 | }; |
| 39 | }; |
| 40 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 41 | cpus { |
| 42 | cpu@0 { |
| 43 | compatible = "arm,cortex-a8"; |
| 44 | }; |
| 45 | }; |
| 46 | |
| 47 | memory { |
| 48 | reg = <0x40000000 0x20000000>; |
| 49 | }; |
| 50 | |
| 51 | clocks { |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <1>; |
| 54 | ranges; |
| 55 | |
| 56 | /* |
| 57 | * This is a dummy clock, to be used as placeholder on |
| 58 | * other mux clocks when a specific parent clock is not |
| 59 | * yet implemented. It should be dropped when the driver |
| 60 | * is complete. |
| 61 | */ |
| 62 | dummy: dummy { |
| 63 | #clock-cells = <0>; |
| 64 | compatible = "fixed-clock"; |
| 65 | clock-frequency = <0>; |
| 66 | }; |
| 67 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 68 | osc24M: clk@01c20050 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 69 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 70 | compatible = "allwinner,sun4i-a10-osc-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 71 | reg = <0x01c20050 0x4>; |
| 72 | clock-frequency = <24000000>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 73 | clock-output-names = "osc24M"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 74 | }; |
| 75 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 76 | osc32k: clk@0 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 77 | #clock-cells = <0>; |
| 78 | compatible = "fixed-clock"; |
| 79 | clock-frequency = <32768>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 80 | clock-output-names = "osc32k"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 81 | }; |
| 82 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 83 | pll1: clk@01c20000 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 84 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 85 | compatible = "allwinner,sun4i-a10-pll1-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 86 | reg = <0x01c20000 0x4>; |
| 87 | clocks = <&osc24M>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 88 | clock-output-names = "pll1"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 89 | }; |
| 90 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 91 | pll4: clk@01c20018 { |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 92 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 93 | compatible = "allwinner,sun4i-a10-pll1-clk"; |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 94 | reg = <0x01c20018 0x4>; |
| 95 | clocks = <&osc24M>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 96 | clock-output-names = "pll4"; |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 97 | }; |
| 98 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 99 | pll5: clk@01c20020 { |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 100 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 101 | compatible = "allwinner,sun4i-a10-pll5-clk"; |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 102 | reg = <0x01c20020 0x4>; |
| 103 | clocks = <&osc24M>; |
| 104 | clock-output-names = "pll5_ddr", "pll5_other"; |
| 105 | }; |
| 106 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 107 | pll6: clk@01c20028 { |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 108 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 109 | compatible = "allwinner,sun4i-a10-pll6-clk"; |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 110 | reg = <0x01c20028 0x4>; |
| 111 | clocks = <&osc24M>; |
| 112 | clock-output-names = "pll6_sata", "pll6_other", "pll6"; |
| 113 | }; |
| 114 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 115 | /* dummy is 200M */ |
| 116 | cpu: cpu@01c20054 { |
| 117 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 118 | compatible = "allwinner,sun4i-a10-cpu-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 119 | reg = <0x01c20054 0x4>; |
| 120 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 121 | clock-output-names = "cpu"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 122 | }; |
| 123 | |
| 124 | axi: axi@01c20054 { |
| 125 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 126 | compatible = "allwinner,sun4i-a10-axi-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 127 | reg = <0x01c20054 0x4>; |
| 128 | clocks = <&cpu>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 129 | clock-output-names = "axi"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 130 | }; |
| 131 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 132 | axi_gates: clk@01c2005c { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 133 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 134 | compatible = "allwinner,sun4i-a10-axi-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 135 | reg = <0x01c2005c 0x4>; |
| 136 | clocks = <&axi>; |
| 137 | clock-output-names = "axi_dram"; |
| 138 | }; |
| 139 | |
| 140 | ahb: ahb@01c20054 { |
| 141 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 142 | compatible = "allwinner,sun4i-a10-ahb-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 143 | reg = <0x01c20054 0x4>; |
| 144 | clocks = <&axi>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 145 | clock-output-names = "ahb"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 146 | }; |
| 147 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 148 | ahb_gates: clk@01c20060 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 149 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 150 | compatible = "allwinner,sun5i-a10s-ahb-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 151 | reg = <0x01c20060 0x8>; |
| 152 | clocks = <&ahb>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 153 | clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci", |
| 154 | "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0", |
| 155 | "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram", |
| 156 | "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1", |
| 157 | "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve", |
| 158 | "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi", |
| 159 | "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 160 | }; |
| 161 | |
| 162 | apb0: apb0@01c20054 { |
| 163 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 164 | compatible = "allwinner,sun4i-a10-apb0-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 165 | reg = <0x01c20054 0x4>; |
| 166 | clocks = <&ahb>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 167 | clock-output-names = "apb0"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 168 | }; |
| 169 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 170 | apb0_gates: clk@01c20068 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 171 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 172 | compatible = "allwinner,sun5i-a10s-apb0-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 173 | reg = <0x01c20068 0x4>; |
| 174 | clocks = <&apb0>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 175 | clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio", |
| 176 | "apb0_ir", "apb0_keypad"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 177 | }; |
| 178 | |
Emilio López | acbcc0f | 2014-11-06 11:40:30 +0800 | [diff] [blame] | 179 | apb1: clk@01c20058 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 180 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 181 | compatible = "allwinner,sun4i-a10-apb1-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 182 | reg = <0x01c20058 0x4>; |
Emilio López | acbcc0f | 2014-11-06 11:40:30 +0800 | [diff] [blame] | 183 | clocks = <&osc24M>, <&pll6 1>, <&osc32k>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 184 | clock-output-names = "apb1"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 185 | }; |
| 186 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 187 | apb1_gates: clk@01c2006c { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 188 | #clock-cells = <1>; |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 189 | compatible = "allwinner,sun5i-a10s-apb1-gates-clk"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 190 | reg = <0x01c2006c 0x4>; |
| 191 | clocks = <&apb1>; |
| 192 | clock-output-names = "apb1_i2c0", "apb1_i2c1", |
Maxime Ripard | 29bb805 | 2013-07-16 11:28:58 +0200 | [diff] [blame] | 193 | "apb1_i2c2", "apb1_uart0", "apb1_uart1", |
| 194 | "apb1_uart2", "apb1_uart3"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 195 | }; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 196 | |
| 197 | nand_clk: clk@01c20080 { |
| 198 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 199 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 200 | reg = <0x01c20080 0x4>; |
| 201 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 202 | clock-output-names = "nand"; |
| 203 | }; |
| 204 | |
| 205 | ms_clk: clk@01c20084 { |
| 206 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 207 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 208 | reg = <0x01c20084 0x4>; |
| 209 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 210 | clock-output-names = "ms"; |
| 211 | }; |
| 212 | |
| 213 | mmc0_clk: clk@01c20088 { |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 214 | #clock-cells = <1>; |
| 215 | compatible = "allwinner,sun4i-a10-mmc-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 216 | reg = <0x01c20088 0x4>; |
| 217 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 218 | clock-output-names = "mmc0", |
| 219 | "mmc0_output", |
| 220 | "mmc0_sample"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 221 | }; |
| 222 | |
| 223 | mmc1_clk: clk@01c2008c { |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 224 | #clock-cells = <1>; |
| 225 | compatible = "allwinner,sun4i-a10-mmc-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 226 | reg = <0x01c2008c 0x4>; |
| 227 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 228 | clock-output-names = "mmc1", |
| 229 | "mmc1_output", |
| 230 | "mmc1_sample"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 231 | }; |
| 232 | |
| 233 | mmc2_clk: clk@01c20090 { |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 234 | #clock-cells = <1>; |
| 235 | compatible = "allwinner,sun4i-a10-mmc-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 236 | reg = <0x01c20090 0x4>; |
| 237 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 238 | clock-output-names = "mmc2", |
| 239 | "mmc2_output", |
| 240 | "mmc2_sample"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 241 | }; |
| 242 | |
| 243 | ts_clk: clk@01c20098 { |
| 244 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 245 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 246 | reg = <0x01c20098 0x4>; |
| 247 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 248 | clock-output-names = "ts"; |
| 249 | }; |
| 250 | |
| 251 | ss_clk: clk@01c2009c { |
| 252 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 253 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 254 | reg = <0x01c2009c 0x4>; |
| 255 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 256 | clock-output-names = "ss"; |
| 257 | }; |
| 258 | |
| 259 | spi0_clk: clk@01c200a0 { |
| 260 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 261 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 262 | reg = <0x01c200a0 0x4>; |
| 263 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 264 | clock-output-names = "spi0"; |
| 265 | }; |
| 266 | |
| 267 | spi1_clk: clk@01c200a4 { |
| 268 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 269 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 270 | reg = <0x01c200a4 0x4>; |
| 271 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 272 | clock-output-names = "spi1"; |
| 273 | }; |
| 274 | |
| 275 | spi2_clk: clk@01c200a8 { |
| 276 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 277 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 278 | reg = <0x01c200a8 0x4>; |
| 279 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 280 | clock-output-names = "spi2"; |
| 281 | }; |
| 282 | |
| 283 | ir0_clk: clk@01c200b0 { |
| 284 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 285 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 286 | reg = <0x01c200b0 0x4>; |
| 287 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 288 | clock-output-names = "ir0"; |
| 289 | }; |
Emilio López | 118c07a | 2013-12-23 00:32:44 -0300 | [diff] [blame] | 290 | |
Roman Byshko | 4c5d72f | 2014-02-07 16:21:52 +0100 | [diff] [blame] | 291 | usb_clk: clk@01c200cc { |
| 292 | #clock-cells = <1>; |
| 293 | #reset-cells = <1>; |
| 294 | compatible = "allwinner,sun5i-a13-usb-clk"; |
| 295 | reg = <0x01c200cc 0x4>; |
| 296 | clocks = <&pll6 1>; |
| 297 | clock-output-names = "usb_ohci0", "usb_phy"; |
| 298 | }; |
| 299 | |
Emilio López | 118c07a | 2013-12-23 00:32:44 -0300 | [diff] [blame] | 300 | mbus_clk: clk@01c2015c { |
| 301 | #clock-cells = <0>; |
Maxime Ripard | 7868c5e | 2014-07-16 23:45:48 +0200 | [diff] [blame] | 302 | compatible = "allwinner,sun5i-a13-mbus-clk"; |
Emilio López | 118c07a | 2013-12-23 00:32:44 -0300 | [diff] [blame] | 303 | reg = <0x01c2015c 0x4>; |
| 304 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 305 | clock-output-names = "mbus"; |
| 306 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 307 | }; |
| 308 | |
Maxime Ripard | 9e19929 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 309 | soc@01c00000 { |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 310 | compatible = "simple-bus"; |
| 311 | #address-cells = <1>; |
| 312 | #size-cells = <1>; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 313 | ranges; |
| 314 | |
Emilio López | 6a5775e | 2014-08-04 17:09:58 -0300 | [diff] [blame] | 315 | dma: dma-controller@01c02000 { |
| 316 | compatible = "allwinner,sun4i-a10-dma"; |
| 317 | reg = <0x01c02000 0x1000>; |
| 318 | interrupts = <27>; |
| 319 | clocks = <&ahb_gates 6>; |
| 320 | #dma-cells = <2>; |
| 321 | }; |
| 322 | |
Maxime Ripard | 8a68956 | 2014-02-22 22:35:56 +0100 | [diff] [blame] | 323 | spi0: spi@01c05000 { |
| 324 | compatible = "allwinner,sun4i-a10-spi"; |
| 325 | reg = <0x01c05000 0x1000>; |
| 326 | interrupts = <10>; |
| 327 | clocks = <&ahb_gates 20>, <&spi0_clk>; |
| 328 | clock-names = "ahb", "mod"; |
Emilio López | fed4c5c | 2014-08-04 17:10:01 -0300 | [diff] [blame] | 329 | dmas = <&dma 1 27>, <&dma 1 26>; |
| 330 | dma-names = "rx", "tx"; |
Maxime Ripard | 8a68956 | 2014-02-22 22:35:56 +0100 | [diff] [blame] | 331 | status = "disabled"; |
| 332 | #address-cells = <1>; |
| 333 | #size-cells = <0>; |
| 334 | }; |
| 335 | |
| 336 | spi1: spi@01c06000 { |
| 337 | compatible = "allwinner,sun4i-a10-spi"; |
| 338 | reg = <0x01c06000 0x1000>; |
| 339 | interrupts = <11>; |
| 340 | clocks = <&ahb_gates 21>, <&spi1_clk>; |
| 341 | clock-names = "ahb", "mod"; |
Emilio López | fed4c5c | 2014-08-04 17:10:01 -0300 | [diff] [blame] | 342 | dmas = <&dma 1 9>, <&dma 1 8>; |
| 343 | dma-names = "rx", "tx"; |
Maxime Ripard | 8a68956 | 2014-02-22 22:35:56 +0100 | [diff] [blame] | 344 | status = "disabled"; |
| 345 | #address-cells = <1>; |
| 346 | #size-cells = <0>; |
| 347 | }; |
| 348 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 349 | emac: ethernet@01c0b000 { |
Maxime Ripard | 1c70e09 | 2014-02-02 14:49:13 +0100 | [diff] [blame] | 350 | compatible = "allwinner,sun4i-a10-emac"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 351 | reg = <0x01c0b000 0x1000>; |
| 352 | interrupts = <55>; |
| 353 | clocks = <&ahb_gates 17>; |
| 354 | status = "disabled"; |
| 355 | }; |
| 356 | |
| 357 | mdio@01c0b080 { |
Maxime Ripard | 1c70e09 | 2014-02-02 14:49:13 +0100 | [diff] [blame] | 358 | compatible = "allwinner,sun4i-a10-mdio"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 359 | reg = <0x01c0b080 0x14>; |
| 360 | status = "disabled"; |
| 361 | #address-cells = <1>; |
| 362 | #size-cells = <0>; |
| 363 | }; |
| 364 | |
David Lanzendörfer | d3aed1d | 2014-05-02 17:57:21 +0200 | [diff] [blame] | 365 | mmc0: mmc@01c0f000 { |
| 366 | compatible = "allwinner,sun5i-a13-mmc"; |
| 367 | reg = <0x01c0f000 0x1000>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 368 | clocks = <&ahb_gates 8>, |
| 369 | <&mmc0_clk 0>, |
| 370 | <&mmc0_clk 1>, |
| 371 | <&mmc0_clk 2>; |
| 372 | clock-names = "ahb", |
| 373 | "mmc", |
| 374 | "output", |
| 375 | "sample"; |
David Lanzendörfer | d3aed1d | 2014-05-02 17:57:21 +0200 | [diff] [blame] | 376 | interrupts = <32>; |
| 377 | status = "disabled"; |
| 378 | }; |
| 379 | |
| 380 | mmc1: mmc@01c10000 { |
| 381 | compatible = "allwinner,sun5i-a13-mmc"; |
| 382 | reg = <0x01c10000 0x1000>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 383 | clocks = <&ahb_gates 9>, |
| 384 | <&mmc1_clk 0>, |
| 385 | <&mmc1_clk 1>, |
| 386 | <&mmc1_clk 2>; |
| 387 | clock-names = "ahb", |
| 388 | "mmc", |
| 389 | "output", |
| 390 | "sample"; |
David Lanzendörfer | d3aed1d | 2014-05-02 17:57:21 +0200 | [diff] [blame] | 391 | interrupts = <33>; |
| 392 | status = "disabled"; |
| 393 | }; |
| 394 | |
| 395 | mmc2: mmc@01c11000 { |
| 396 | compatible = "allwinner,sun5i-a13-mmc"; |
| 397 | reg = <0x01c11000 0x1000>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame^] | 398 | clocks = <&ahb_gates 10>, |
| 399 | <&mmc2_clk 0>, |
| 400 | <&mmc2_clk 1>, |
| 401 | <&mmc2_clk 2>; |
| 402 | clock-names = "ahb", |
| 403 | "mmc", |
| 404 | "output", |
| 405 | "sample"; |
David Lanzendörfer | d3aed1d | 2014-05-02 17:57:21 +0200 | [diff] [blame] | 406 | interrupts = <34>; |
| 407 | status = "disabled"; |
| 408 | }; |
| 409 | |
Roman Byshko | 06c7d52 | 2014-03-01 20:26:24 +0100 | [diff] [blame] | 410 | usbphy: phy@01c13400 { |
| 411 | #phy-cells = <1>; |
| 412 | compatible = "allwinner,sun5i-a13-usb-phy"; |
| 413 | reg = <0x01c13400 0x10 0x01c14800 0x4>; |
| 414 | reg-names = "phy_ctrl", "pmu1"; |
| 415 | clocks = <&usb_clk 8>; |
| 416 | clock-names = "usb_phy"; |
| 417 | resets = <&usb_clk 1>; |
| 418 | reset-names = "usb1_reset"; |
| 419 | status = "disabled"; |
| 420 | }; |
| 421 | |
| 422 | ehci0: usb@01c14000 { |
| 423 | compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci"; |
| 424 | reg = <0x01c14000 0x100>; |
| 425 | interrupts = <39>; |
| 426 | clocks = <&ahb_gates 1>; |
| 427 | phys = <&usbphy 1>; |
| 428 | phy-names = "usb"; |
| 429 | status = "disabled"; |
| 430 | }; |
| 431 | |
| 432 | ohci0: usb@01c14400 { |
| 433 | compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci"; |
| 434 | reg = <0x01c14400 0x100>; |
| 435 | interrupts = <40>; |
| 436 | clocks = <&usb_clk 6>, <&ahb_gates 2>; |
| 437 | phys = <&usbphy 1>; |
| 438 | phy-names = "usb"; |
| 439 | status = "disabled"; |
| 440 | }; |
| 441 | |
Maxime Ripard | 8a68956 | 2014-02-22 22:35:56 +0100 | [diff] [blame] | 442 | spi2: spi@01c17000 { |
| 443 | compatible = "allwinner,sun4i-a10-spi"; |
| 444 | reg = <0x01c17000 0x1000>; |
| 445 | interrupts = <12>; |
| 446 | clocks = <&ahb_gates 22>, <&spi2_clk>; |
| 447 | clock-names = "ahb", "mod"; |
Emilio López | fed4c5c | 2014-08-04 17:10:01 -0300 | [diff] [blame] | 448 | dmas = <&dma 1 29>, <&dma 1 28>; |
| 449 | dma-names = "rx", "tx"; |
Maxime Ripard | 8a68956 | 2014-02-22 22:35:56 +0100 | [diff] [blame] | 450 | status = "disabled"; |
| 451 | #address-cells = <1>; |
| 452 | #size-cells = <0>; |
| 453 | }; |
| 454 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 455 | intc: interrupt-controller@01c20400 { |
Maxime Ripard | 09504a7 | 2014-02-07 21:50:26 +0100 | [diff] [blame] | 456 | compatible = "allwinner,sun4i-a10-ic"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 457 | reg = <0x01c20400 0x400>; |
| 458 | interrupt-controller; |
| 459 | #interrupt-cells = <1>; |
| 460 | }; |
| 461 | |
| 462 | pio: pinctrl@01c20800 { |
| 463 | compatible = "allwinner,sun5i-a10s-pinctrl"; |
| 464 | reg = <0x01c20800 0x400>; |
| 465 | interrupts = <28>; |
| 466 | clocks = <&apb0_gates 5>; |
| 467 | gpio-controller; |
| 468 | interrupt-controller; |
Chen-Yu Tsai | 7d4ff96 | 2014-06-30 23:57:51 +0200 | [diff] [blame] | 469 | #interrupt-cells = <2>; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 470 | #size-cells = <0>; |
| 471 | #gpio-cells = <3>; |
| 472 | |
| 473 | uart0_pins_a: uart0@0 { |
| 474 | allwinner,pins = "PB19", "PB20"; |
| 475 | allwinner,function = "uart0"; |
| 476 | allwinner,drive = <0>; |
| 477 | allwinner,pull = <0>; |
| 478 | }; |
| 479 | |
| 480 | uart2_pins_a: uart2@0 { |
| 481 | allwinner,pins = "PC18", "PC19"; |
| 482 | allwinner,function = "uart2"; |
| 483 | allwinner,drive = <0>; |
| 484 | allwinner,pull = <0>; |
| 485 | }; |
| 486 | |
| 487 | uart3_pins_a: uart3@0 { |
| 488 | allwinner,pins = "PG9", "PG10"; |
| 489 | allwinner,function = "uart3"; |
| 490 | allwinner,drive = <0>; |
| 491 | allwinner,pull = <0>; |
| 492 | }; |
| 493 | |
| 494 | emac_pins_a: emac0@0 { |
| 495 | allwinner,pins = "PA0", "PA1", "PA2", |
| 496 | "PA3", "PA4", "PA5", "PA6", |
| 497 | "PA7", "PA8", "PA9", "PA10", |
| 498 | "PA11", "PA12", "PA13", "PA14", |
| 499 | "PA15", "PA16"; |
| 500 | allwinner,function = "emac"; |
| 501 | allwinner,drive = <0>; |
| 502 | allwinner,pull = <0>; |
| 503 | }; |
Emilio López | 170ab43 | 2013-07-07 18:31:56 -0300 | [diff] [blame] | 504 | |
| 505 | i2c0_pins_a: i2c0@0 { |
| 506 | allwinner,pins = "PB0", "PB1"; |
| 507 | allwinner,function = "i2c0"; |
| 508 | allwinner,drive = <0>; |
| 509 | allwinner,pull = <0>; |
| 510 | }; |
| 511 | |
| 512 | i2c1_pins_a: i2c1@0 { |
| 513 | allwinner,pins = "PB15", "PB16"; |
| 514 | allwinner,function = "i2c1"; |
| 515 | allwinner,drive = <0>; |
| 516 | allwinner,pull = <0>; |
| 517 | }; |
| 518 | |
| 519 | i2c2_pins_a: i2c2@0 { |
| 520 | allwinner,pins = "PB17", "PB18"; |
| 521 | allwinner,function = "i2c2"; |
| 522 | allwinner,drive = <0>; |
| 523 | allwinner,pull = <0>; |
| 524 | }; |
Hans de Goede | 6da50f1 | 2014-04-26 12:16:12 +0200 | [diff] [blame] | 525 | |
| 526 | mmc0_pins_a: mmc0@0 { |
| 527 | allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5"; |
| 528 | allwinner,function = "mmc0"; |
| 529 | allwinner,drive = <2>; |
| 530 | allwinner,pull = <0>; |
| 531 | }; |
| 532 | |
| 533 | mmc1_pins_a: mmc1@0 { |
| 534 | allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8"; |
| 535 | allwinner,function = "mmc1"; |
| 536 | allwinner,drive = <2>; |
| 537 | allwinner,pull = <0>; |
| 538 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 539 | }; |
| 540 | |
| 541 | timer@01c20c00 { |
Maxime Ripard | b4f2644 | 2014-02-06 10:40:32 +0100 | [diff] [blame] | 542 | compatible = "allwinner,sun4i-a10-timer"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 543 | reg = <0x01c20c00 0x90>; |
| 544 | interrupts = <22>; |
| 545 | clocks = <&osc24M>; |
| 546 | }; |
| 547 | |
| 548 | wdt: watchdog@01c20c90 { |
Maxime Ripard | ca5d04d | 2014-02-07 22:29:26 +0100 | [diff] [blame] | 549 | compatible = "allwinner,sun4i-a10-wdt"; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 550 | reg = <0x01c20c90 0x10>; |
| 551 | }; |
| 552 | |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 553 | sid: eeprom@01c23800 { |
Maxime Ripard | 043d56e | 2014-02-07 22:20:40 +0100 | [diff] [blame] | 554 | compatible = "allwinner,sun4i-a10-sid"; |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 555 | reg = <0x01c23800 0x10>; |
| 556 | }; |
| 557 | |
Hans de Goede | f65c93a | 2013-12-31 17:20:51 +0100 | [diff] [blame] | 558 | rtp: rtp@01c25000 { |
Maxime Ripard | 40dd8f3 | 2014-02-02 14:52:40 +0100 | [diff] [blame] | 559 | compatible = "allwinner,sun4i-a10-ts"; |
Hans de Goede | f65c93a | 2013-12-31 17:20:51 +0100 | [diff] [blame] | 560 | reg = <0x01c25000 0x100>; |
| 561 | interrupts = <29>; |
| 562 | }; |
| 563 | |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 564 | uart0: serial@01c28000 { |
| 565 | compatible = "snps,dw-apb-uart"; |
| 566 | reg = <0x01c28000 0x400>; |
| 567 | interrupts = <1>; |
| 568 | reg-shift = <2>; |
| 569 | reg-io-width = <4>; |
| 570 | clocks = <&apb1_gates 16>; |
| 571 | status = "disabled"; |
| 572 | }; |
| 573 | |
| 574 | uart1: serial@01c28400 { |
| 575 | compatible = "snps,dw-apb-uart"; |
| 576 | reg = <0x01c28400 0x400>; |
| 577 | interrupts = <2>; |
| 578 | reg-shift = <2>; |
| 579 | reg-io-width = <4>; |
| 580 | clocks = <&apb1_gates 17>; |
| 581 | status = "disabled"; |
| 582 | }; |
| 583 | |
| 584 | uart2: serial@01c28800 { |
| 585 | compatible = "snps,dw-apb-uart"; |
| 586 | reg = <0x01c28800 0x400>; |
| 587 | interrupts = <3>; |
| 588 | reg-shift = <2>; |
| 589 | reg-io-width = <4>; |
| 590 | clocks = <&apb1_gates 18>; |
| 591 | status = "disabled"; |
| 592 | }; |
| 593 | |
| 594 | uart3: serial@01c28c00 { |
| 595 | compatible = "snps,dw-apb-uart"; |
| 596 | reg = <0x01c28c00 0x400>; |
| 597 | interrupts = <4>; |
| 598 | reg-shift = <2>; |
| 599 | reg-io-width = <4>; |
| 600 | clocks = <&apb1_gates 19>; |
| 601 | status = "disabled"; |
| 602 | }; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 603 | |
| 604 | i2c0: i2c@01c2ac00 { |
| 605 | #address-cells = <1>; |
| 606 | #size-cells = <0>; |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 607 | compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c"; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 608 | reg = <0x01c2ac00 0x400>; |
| 609 | interrupts = <7>; |
| 610 | clocks = <&apb1_gates 0>; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 611 | status = "disabled"; |
| 612 | }; |
| 613 | |
| 614 | i2c1: i2c@01c2b000 { |
| 615 | #address-cells = <1>; |
| 616 | #size-cells = <0>; |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 617 | compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c"; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 618 | reg = <0x01c2b000 0x400>; |
| 619 | interrupts = <8>; |
| 620 | clocks = <&apb1_gates 1>; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 621 | status = "disabled"; |
| 622 | }; |
| 623 | |
| 624 | i2c2: i2c@01c2b400 { |
| 625 | #address-cells = <1>; |
| 626 | #size-cells = <0>; |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 627 | compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c"; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 628 | reg = <0x01c2b400 0x400>; |
| 629 | interrupts = <9>; |
| 630 | clocks = <&apb1_gates 2>; |
Emilio López | ca3d4ed | 2013-07-07 18:31:57 -0300 | [diff] [blame] | 631 | status = "disabled"; |
| 632 | }; |
Maxime Ripard | f2b5002 | 2013-11-07 12:01:48 +0100 | [diff] [blame] | 633 | |
| 634 | timer@01c60000 { |
| 635 | compatible = "allwinner,sun5i-a13-hstimer"; |
| 636 | reg = <0x01c60000 0x1000>; |
| 637 | interrupts = <82>, <83>; |
| 638 | clocks = <&ahb_gates 28>; |
| 639 | }; |
Maxime Ripard | d3ae078 | 2013-06-09 10:40:53 +0200 | [diff] [blame] | 640 | }; |
| 641 | }; |