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 | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 14 | #include "skeleton.dtsi" |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 15 | |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 16 | #include <dt-bindings/dma/sun4i-a10.h> |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame^] | 17 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 18 | |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 19 | / { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 20 | interrupt-parent = <&intc>; |
| 21 | |
Maxime Ripard | 0cc774e | 2014-01-13 11:08:47 +0100 | [diff] [blame] | 22 | aliases { |
| 23 | serial0 = &uart1; |
| 24 | serial1 = &uart3; |
| 25 | }; |
| 26 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 27 | cpus { |
Arnd Bergmann | 8b2efa89 | 2013-06-10 16:48:36 +0200 | [diff] [blame] | 28 | #address-cells = <1>; |
| 29 | #size-cells = <0>; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 30 | cpu@0 { |
Lorenzo Pieralisi | 14c44aa | 2013-04-18 18:41:57 +0100 | [diff] [blame] | 31 | device_type = "cpu"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 32 | compatible = "arm,cortex-a8"; |
Lorenzo Pieralisi | 14c44aa | 2013-04-18 18:41:57 +0100 | [diff] [blame] | 33 | reg = <0x0>; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 34 | }; |
| 35 | }; |
| 36 | |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 37 | memory { |
| 38 | reg = <0x40000000 0x20000000>; |
| 39 | }; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 40 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 41 | clocks { |
| 42 | #address-cells = <1>; |
| 43 | #size-cells = <1>; |
| 44 | ranges; |
| 45 | |
| 46 | /* |
| 47 | * This is a dummy clock, to be used as placeholder on |
| 48 | * other mux clocks when a specific parent clock is not |
| 49 | * yet implemented. It should be dropped when the driver |
| 50 | * is complete. |
| 51 | */ |
| 52 | dummy: dummy { |
| 53 | #clock-cells = <0>; |
| 54 | compatible = "fixed-clock"; |
| 55 | clock-frequency = <0>; |
| 56 | }; |
| 57 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 58 | osc24M: clk@01c20050 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 59 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 60 | compatible = "allwinner,sun4i-a10-osc-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 61 | reg = <0x01c20050 0x4>; |
Emilio López | 92fd6e0 | 2013-04-09 10:48:04 -0300 | [diff] [blame] | 62 | clock-frequency = <24000000>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 63 | clock-output-names = "osc24M"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 64 | }; |
| 65 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 66 | osc32k: clk@0 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 67 | #clock-cells = <0>; |
| 68 | compatible = "fixed-clock"; |
| 69 | clock-frequency = <32768>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 70 | clock-output-names = "osc32k"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 71 | }; |
| 72 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 73 | pll1: clk@01c20000 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 74 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 75 | compatible = "allwinner,sun4i-a10-pll1-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 76 | reg = <0x01c20000 0x4>; |
| 77 | clocks = <&osc24M>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 78 | clock-output-names = "pll1"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 79 | }; |
| 80 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 81 | pll4: clk@01c20018 { |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 82 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 83 | compatible = "allwinner,sun4i-a10-pll1-clk"; |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 84 | reg = <0x01c20018 0x4>; |
| 85 | clocks = <&osc24M>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 86 | clock-output-names = "pll4"; |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 87 | }; |
| 88 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 89 | pll5: clk@01c20020 { |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 90 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 91 | compatible = "allwinner,sun4i-a10-pll5-clk"; |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 92 | reg = <0x01c20020 0x4>; |
| 93 | clocks = <&osc24M>; |
| 94 | clock-output-names = "pll5_ddr", "pll5_other"; |
| 95 | }; |
| 96 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 97 | pll6: clk@01c20028 { |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 98 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 99 | compatible = "allwinner,sun4i-a10-pll6-clk"; |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 100 | reg = <0x01c20028 0x4>; |
| 101 | clocks = <&osc24M>; |
| 102 | clock-output-names = "pll6_sata", "pll6_other", "pll6"; |
| 103 | }; |
| 104 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 105 | /* dummy is 200M */ |
| 106 | cpu: cpu@01c20054 { |
| 107 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 108 | compatible = "allwinner,sun4i-a10-cpu-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 109 | reg = <0x01c20054 0x4>; |
| 110 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 111 | clock-output-names = "cpu"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 112 | }; |
| 113 | |
| 114 | axi: axi@01c20054 { |
| 115 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 116 | compatible = "allwinner,sun4i-a10-axi-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 117 | reg = <0x01c20054 0x4>; |
| 118 | clocks = <&cpu>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 119 | clock-output-names = "axi"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 120 | }; |
| 121 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 122 | axi_gates: clk@01c2005c { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 123 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 124 | compatible = "allwinner,sun4i-a10-axi-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 125 | reg = <0x01c2005c 0x4>; |
| 126 | clocks = <&axi>; |
| 127 | clock-output-names = "axi_dram"; |
| 128 | }; |
| 129 | |
| 130 | ahb: ahb@01c20054 { |
| 131 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 132 | compatible = "allwinner,sun4i-a10-ahb-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 133 | reg = <0x01c20054 0x4>; |
| 134 | clocks = <&axi>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 135 | clock-output-names = "ahb"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 136 | }; |
| 137 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 138 | ahb_gates: clk@01c20060 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 139 | #clock-cells = <1>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 140 | compatible = "allwinner,sun5i-a13-ahb-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 141 | reg = <0x01c20060 0x8>; |
| 142 | clocks = <&ahb>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 143 | clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci", |
| 144 | "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0", |
| 145 | "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram", |
| 146 | "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer", |
| 147 | "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be", |
| 148 | "ahb_de_fe", "ahb_iep", "ahb_mali400"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 149 | }; |
| 150 | |
| 151 | apb0: apb0@01c20054 { |
| 152 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 153 | compatible = "allwinner,sun4i-a10-apb0-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 154 | reg = <0x01c20054 0x4>; |
| 155 | clocks = <&ahb>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 156 | clock-output-names = "apb0"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 157 | }; |
| 158 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 159 | apb0_gates: clk@01c20068 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 160 | #clock-cells = <1>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 161 | compatible = "allwinner,sun5i-a13-apb0-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 162 | reg = <0x01c20068 0x4>; |
| 163 | clocks = <&apb0>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 164 | clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 165 | }; |
| 166 | |
Emilio López | acbcc0f | 2014-11-06 11:40:30 +0800 | [diff] [blame] | 167 | apb1: clk@01c20058 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 168 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 169 | compatible = "allwinner,sun4i-a10-apb1-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 170 | reg = <0x01c20058 0x4>; |
Emilio López | acbcc0f | 2014-11-06 11:40:30 +0800 | [diff] [blame] | 171 | clocks = <&osc24M>, <&pll6 1>, <&osc32k>; |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 172 | clock-output-names = "apb1"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 173 | }; |
| 174 | |
Chen-Yu Tsai | 3dce832 | 2014-02-03 09:51:42 +0800 | [diff] [blame] | 175 | apb1_gates: clk@01c2006c { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 176 | #clock-cells = <1>; |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 177 | compatible = "allwinner,sun5i-a13-apb1-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 178 | reg = <0x01c2006c 0x4>; |
| 179 | clocks = <&apb1>; |
| 180 | clock-output-names = "apb1_i2c0", "apb1_i2c1", |
Maxime Ripard | 70be4ee6 | 2013-04-19 22:14:41 +0200 | [diff] [blame] | 181 | "apb1_i2c2", "apb1_uart1", "apb1_uart3"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 182 | }; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 183 | |
| 184 | nand_clk: clk@01c20080 { |
| 185 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 186 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 187 | reg = <0x01c20080 0x4>; |
| 188 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 189 | clock-output-names = "nand"; |
| 190 | }; |
| 191 | |
| 192 | ms_clk: clk@01c20084 { |
| 193 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 194 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 195 | reg = <0x01c20084 0x4>; |
| 196 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 197 | clock-output-names = "ms"; |
| 198 | }; |
| 199 | |
| 200 | mmc0_clk: clk@01c20088 { |
| 201 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 202 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 203 | reg = <0x01c20088 0x4>; |
| 204 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 205 | clock-output-names = "mmc0"; |
| 206 | }; |
| 207 | |
| 208 | mmc1_clk: clk@01c2008c { |
| 209 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 210 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 211 | reg = <0x01c2008c 0x4>; |
| 212 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 213 | clock-output-names = "mmc1"; |
| 214 | }; |
| 215 | |
| 216 | mmc2_clk: clk@01c20090 { |
| 217 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 218 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 219 | reg = <0x01c20090 0x4>; |
| 220 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 221 | clock-output-names = "mmc2"; |
| 222 | }; |
| 223 | |
| 224 | ts_clk: clk@01c20098 { |
| 225 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 226 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 227 | reg = <0x01c20098 0x4>; |
| 228 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 229 | clock-output-names = "ts"; |
| 230 | }; |
| 231 | |
| 232 | ss_clk: clk@01c2009c { |
| 233 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 234 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 235 | reg = <0x01c2009c 0x4>; |
| 236 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 237 | clock-output-names = "ss"; |
| 238 | }; |
| 239 | |
| 240 | spi0_clk: clk@01c200a0 { |
| 241 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 242 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 243 | reg = <0x01c200a0 0x4>; |
| 244 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 245 | clock-output-names = "spi0"; |
| 246 | }; |
| 247 | |
| 248 | spi1_clk: clk@01c200a4 { |
| 249 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 250 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 251 | reg = <0x01c200a4 0x4>; |
| 252 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 253 | clock-output-names = "spi1"; |
| 254 | }; |
| 255 | |
| 256 | spi2_clk: clk@01c200a8 { |
| 257 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 258 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 259 | reg = <0x01c200a8 0x4>; |
| 260 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 261 | clock-output-names = "spi2"; |
| 262 | }; |
| 263 | |
| 264 | ir0_clk: clk@01c200b0 { |
| 265 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 266 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 8dc36bf | 2013-12-23 00:32:42 -0300 | [diff] [blame] | 267 | reg = <0x01c200b0 0x4>; |
| 268 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 269 | clock-output-names = "ir0"; |
| 270 | }; |
Emilio López | 118c07a | 2013-12-23 00:32:44 -0300 | [diff] [blame] | 271 | |
Roman Byshko | 4c5d72f | 2014-02-07 16:21:52 +0100 | [diff] [blame] | 272 | usb_clk: clk@01c200cc { |
| 273 | #clock-cells = <1>; |
| 274 | #reset-cells = <1>; |
| 275 | compatible = "allwinner,sun5i-a13-usb-clk"; |
| 276 | reg = <0x01c200cc 0x4>; |
| 277 | clocks = <&pll6 1>; |
| 278 | clock-output-names = "usb_ohci0", "usb_phy"; |
| 279 | }; |
| 280 | |
Emilio López | 118c07a | 2013-12-23 00:32:44 -0300 | [diff] [blame] | 281 | mbus_clk: clk@01c2015c { |
| 282 | #clock-cells = <0>; |
Maxime Ripard | 7868c5e | 2014-07-16 23:45:48 +0200 | [diff] [blame] | 283 | compatible = "allwinner,sun5i-a13-mbus-clk"; |
Emilio López | 118c07a | 2013-12-23 00:32:44 -0300 | [diff] [blame] | 284 | reg = <0x01c2015c 0x4>; |
| 285 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 286 | clock-output-names = "mbus"; |
| 287 | }; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 288 | }; |
| 289 | |
Maxime Ripard | 278fe8b | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 290 | soc@01c00000 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 291 | compatible = "simple-bus"; |
| 292 | #address-cells = <1>; |
| 293 | #size-cells = <1>; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 294 | ranges; |
| 295 | |
Emilio López | 6a5775e | 2014-08-04 17:09:58 -0300 | [diff] [blame] | 296 | dma: dma-controller@01c02000 { |
| 297 | compatible = "allwinner,sun4i-a10-dma"; |
| 298 | reg = <0x01c02000 0x1000>; |
| 299 | interrupts = <27>; |
| 300 | clocks = <&ahb_gates 6>; |
| 301 | #dma-cells = <2>; |
| 302 | }; |
| 303 | |
Maxime Ripard | 8f8658b | 2014-02-22 22:35:57 +0100 | [diff] [blame] | 304 | spi0: spi@01c05000 { |
| 305 | compatible = "allwinner,sun4i-a10-spi"; |
| 306 | reg = <0x01c05000 0x1000>; |
| 307 | interrupts = <10>; |
| 308 | clocks = <&ahb_gates 20>, <&spi0_clk>; |
| 309 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 310 | dmas = <&dma SUN4I_DMA_DEDICATED 27>, |
| 311 | <&dma SUN4I_DMA_DEDICATED 26>; |
Emilio López | fed4c5c | 2014-08-04 17:10:01 -0300 | [diff] [blame] | 312 | dma-names = "rx", "tx"; |
Maxime Ripard | 8f8658b | 2014-02-22 22:35:57 +0100 | [diff] [blame] | 313 | status = "disabled"; |
| 314 | #address-cells = <1>; |
| 315 | #size-cells = <0>; |
| 316 | }; |
| 317 | |
| 318 | spi1: spi@01c06000 { |
| 319 | compatible = "allwinner,sun4i-a10-spi"; |
| 320 | reg = <0x01c06000 0x1000>; |
| 321 | interrupts = <11>; |
| 322 | clocks = <&ahb_gates 21>, <&spi1_clk>; |
| 323 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 324 | dmas = <&dma SUN4I_DMA_DEDICATED 9>, |
| 325 | <&dma SUN4I_DMA_DEDICATED 8>; |
Emilio López | fed4c5c | 2014-08-04 17:10:01 -0300 | [diff] [blame] | 326 | dma-names = "rx", "tx"; |
Maxime Ripard | 8f8658b | 2014-02-22 22:35:57 +0100 | [diff] [blame] | 327 | status = "disabled"; |
| 328 | #address-cells = <1>; |
| 329 | #size-cells = <0>; |
| 330 | }; |
| 331 | |
David Lanzendörfer | d3aed1d | 2014-05-02 17:57:21 +0200 | [diff] [blame] | 332 | mmc0: mmc@01c0f000 { |
| 333 | compatible = "allwinner,sun5i-a13-mmc"; |
| 334 | reg = <0x01c0f000 0x1000>; |
| 335 | clocks = <&ahb_gates 8>, <&mmc0_clk>; |
| 336 | clock-names = "ahb", "mmc"; |
| 337 | interrupts = <32>; |
| 338 | status = "disabled"; |
| 339 | }; |
| 340 | |
| 341 | mmc2: mmc@01c11000 { |
| 342 | compatible = "allwinner,sun5i-a13-mmc"; |
| 343 | reg = <0x01c11000 0x1000>; |
| 344 | clocks = <&ahb_gates 10>, <&mmc2_clk>; |
| 345 | clock-names = "ahb", "mmc"; |
| 346 | interrupts = <34>; |
| 347 | status = "disabled"; |
| 348 | }; |
| 349 | |
Roman Byshko | 06c7d52 | 2014-03-01 20:26:24 +0100 | [diff] [blame] | 350 | usbphy: phy@01c13400 { |
| 351 | #phy-cells = <1>; |
| 352 | compatible = "allwinner,sun5i-a13-usb-phy"; |
| 353 | reg = <0x01c13400 0x10 0x01c14800 0x4>; |
| 354 | reg-names = "phy_ctrl", "pmu1"; |
| 355 | clocks = <&usb_clk 8>; |
| 356 | clock-names = "usb_phy"; |
Chen-Yu Tsai | 4dba418 | 2014-12-18 19:10:35 +0800 | [diff] [blame] | 357 | resets = <&usb_clk 0>, <&usb_clk 1>; |
| 358 | reset-names = "usb0_reset", "usb1_reset"; |
Roman Byshko | 06c7d52 | 2014-03-01 20:26:24 +0100 | [diff] [blame] | 359 | status = "disabled"; |
| 360 | }; |
| 361 | |
| 362 | ehci0: usb@01c14000 { |
| 363 | compatible = "allwinner,sun5i-a13-ehci", "generic-ehci"; |
| 364 | reg = <0x01c14000 0x100>; |
| 365 | interrupts = <39>; |
| 366 | clocks = <&ahb_gates 1>; |
| 367 | phys = <&usbphy 1>; |
| 368 | phy-names = "usb"; |
| 369 | status = "disabled"; |
| 370 | }; |
| 371 | |
| 372 | ohci0: usb@01c14400 { |
| 373 | compatible = "allwinner,sun5i-a13-ohci", "generic-ohci"; |
| 374 | reg = <0x01c14400 0x100>; |
| 375 | interrupts = <40>; |
| 376 | clocks = <&usb_clk 6>, <&ahb_gates 2>; |
| 377 | phys = <&usbphy 1>; |
| 378 | phy-names = "usb"; |
| 379 | status = "disabled"; |
| 380 | }; |
| 381 | |
Maxime Ripard | 8f8658b | 2014-02-22 22:35:57 +0100 | [diff] [blame] | 382 | spi2: spi@01c17000 { |
| 383 | compatible = "allwinner,sun4i-a10-spi"; |
| 384 | reg = <0x01c17000 0x1000>; |
| 385 | interrupts = <12>; |
| 386 | clocks = <&ahb_gates 22>, <&spi2_clk>; |
| 387 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 388 | dmas = <&dma SUN4I_DMA_DEDICATED 29>, |
| 389 | <&dma SUN4I_DMA_DEDICATED 28>; |
Emilio López | fed4c5c | 2014-08-04 17:10:01 -0300 | [diff] [blame] | 390 | dma-names = "rx", "tx"; |
Maxime Ripard | 8f8658b | 2014-02-22 22:35:57 +0100 | [diff] [blame] | 391 | status = "disabled"; |
| 392 | #address-cells = <1>; |
| 393 | #size-cells = <0>; |
| 394 | }; |
| 395 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 396 | intc: interrupt-controller@01c20400 { |
Maxime Ripard | 09504a7 | 2014-02-07 21:50:26 +0100 | [diff] [blame] | 397 | compatible = "allwinner,sun4i-a10-ic"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 398 | reg = <0x01c20400 0x400>; |
| 399 | interrupt-controller; |
| 400 | #interrupt-cells = <1>; |
| 401 | }; |
| 402 | |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 403 | pio: pinctrl@01c20800 { |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 404 | compatible = "allwinner,sun5i-a13-pinctrl"; |
| 405 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 39138bc | 2013-04-06 15:00:48 +0200 | [diff] [blame] | 406 | interrupts = <28>; |
Emilio López | 36386d6 | 2013-03-27 18:20:41 -0300 | [diff] [blame] | 407 | clocks = <&apb0_gates 5>; |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 408 | gpio-controller; |
Maxime Ripard | 39138bc | 2013-04-06 15:00:48 +0200 | [diff] [blame] | 409 | interrupt-controller; |
Chen-Yu Tsai | 7d4ff96 | 2014-06-30 23:57:51 +0200 | [diff] [blame] | 410 | #interrupt-cells = <2>; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 411 | #size-cells = <0>; |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 412 | #gpio-cells = <3>; |
Maxime Ripard | 4348cc6 | 2013-01-18 22:30:37 +0100 | [diff] [blame] | 413 | |
| 414 | uart1_pins_a: uart1@0 { |
| 415 | allwinner,pins = "PE10", "PE11"; |
| 416 | allwinner,function = "uart1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame^] | 417 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 418 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 4348cc6 | 2013-01-18 22:30:37 +0100 | [diff] [blame] | 419 | }; |
| 420 | |
| 421 | uart1_pins_b: uart1@1 { |
| 422 | allwinner,pins = "PG3", "PG4"; |
| 423 | allwinner,function = "uart1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame^] | 424 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 425 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 4348cc6 | 2013-01-18 22:30:37 +0100 | [diff] [blame] | 426 | }; |
Maxime Ripard | b4d7c23 | 2013-03-10 13:36:02 +0100 | [diff] [blame] | 427 | |
| 428 | i2c0_pins_a: i2c0@0 { |
| 429 | allwinner,pins = "PB0", "PB1"; |
| 430 | allwinner,function = "i2c0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame^] | 431 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 432 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | b4d7c23 | 2013-03-10 13:36:02 +0100 | [diff] [blame] | 433 | }; |
| 434 | |
| 435 | i2c1_pins_a: i2c1@0 { |
| 436 | allwinner,pins = "PB15", "PB16"; |
| 437 | allwinner,function = "i2c1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame^] | 438 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 439 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | b4d7c23 | 2013-03-10 13:36:02 +0100 | [diff] [blame] | 440 | }; |
| 441 | |
| 442 | i2c2_pins_a: i2c2@0 { |
| 443 | allwinner,pins = "PB17", "PB18"; |
| 444 | allwinner,function = "i2c2"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame^] | 445 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 446 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | b4d7c23 | 2013-03-10 13:36:02 +0100 | [diff] [blame] | 447 | }; |
Hans de Goede | 6da50f1 | 2014-04-26 12:16:12 +0200 | [diff] [blame] | 448 | |
| 449 | mmc0_pins_a: mmc0@0 { |
| 450 | allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5"; |
| 451 | allwinner,function = "mmc0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame^] | 452 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 453 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Hans de Goede | 6da50f1 | 2014-04-26 12:16:12 +0200 | [diff] [blame] | 454 | }; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 455 | }; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 456 | |
| 457 | timer@01c20c00 { |
Maxime Ripard | b4f2644 | 2014-02-06 10:40:32 +0100 | [diff] [blame] | 458 | compatible = "allwinner,sun4i-a10-timer"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 459 | reg = <0x01c20c00 0x90>; |
| 460 | interrupts = <22>; |
| 461 | clocks = <&osc24M>; |
| 462 | }; |
| 463 | |
| 464 | wdt: watchdog@01c20c90 { |
Maxime Ripard | ca5d04d | 2014-02-07 22:29:26 +0100 | [diff] [blame] | 465 | compatible = "allwinner,sun4i-a10-wdt"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 466 | reg = <0x01c20c90 0x10>; |
| 467 | }; |
| 468 | |
Hans de Goede | ec011af5 | 2014-12-23 11:13:21 +0100 | [diff] [blame] | 469 | lradc: lradc@01c22800 { |
| 470 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 471 | reg = <0x01c22800 0x100>; |
| 472 | interrupts = <31>; |
| 473 | status = "disabled"; |
| 474 | }; |
| 475 | |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 476 | sid: eeprom@01c23800 { |
Maxime Ripard | 043d56e | 2014-02-07 22:20:40 +0100 | [diff] [blame] | 477 | compatible = "allwinner,sun4i-a10-sid"; |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 478 | reg = <0x01c23800 0x10>; |
| 479 | }; |
| 480 | |
Hans de Goede | f65c93a | 2013-12-31 17:20:51 +0100 | [diff] [blame] | 481 | rtp: rtp@01c25000 { |
Maxime Ripard | 40dd8f3 | 2014-02-02 14:52:40 +0100 | [diff] [blame] | 482 | compatible = "allwinner,sun4i-a10-ts"; |
Hans de Goede | f65c93a | 2013-12-31 17:20:51 +0100 | [diff] [blame] | 483 | reg = <0x01c25000 0x100>; |
| 484 | interrupts = <29>; |
| 485 | }; |
| 486 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 487 | uart1: serial@01c28400 { |
| 488 | compatible = "snps,dw-apb-uart"; |
| 489 | reg = <0x01c28400 0x400>; |
| 490 | interrupts = <2>; |
| 491 | reg-shift = <2>; |
| 492 | reg-io-width = <4>; |
| 493 | clocks = <&apb1_gates 17>; |
| 494 | status = "disabled"; |
| 495 | }; |
| 496 | |
| 497 | uart3: serial@01c28c00 { |
| 498 | compatible = "snps,dw-apb-uart"; |
| 499 | reg = <0x01c28c00 0x400>; |
| 500 | interrupts = <4>; |
| 501 | reg-shift = <2>; |
| 502 | reg-io-width = <4>; |
| 503 | clocks = <&apb1_gates 19>; |
| 504 | status = "disabled"; |
| 505 | }; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 506 | |
| 507 | i2c0: i2c@01c2ac00 { |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 508 | compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 509 | reg = <0x01c2ac00 0x400>; |
| 510 | interrupts = <7>; |
| 511 | clocks = <&apb1_gates 0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 512 | status = "disabled"; |
Hans de Goede | a470342 | 2014-04-13 13:41:04 +0200 | [diff] [blame] | 513 | #address-cells = <1>; |
| 514 | #size-cells = <0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 515 | }; |
| 516 | |
| 517 | i2c1: i2c@01c2b000 { |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 518 | compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 519 | reg = <0x01c2b000 0x400>; |
| 520 | interrupts = <8>; |
| 521 | clocks = <&apb1_gates 1>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 522 | status = "disabled"; |
Hans de Goede | a470342 | 2014-04-13 13:41:04 +0200 | [diff] [blame] | 523 | #address-cells = <1>; |
| 524 | #size-cells = <0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 525 | }; |
| 526 | |
| 527 | i2c2: i2c@01c2b400 { |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 528 | compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 529 | reg = <0x01c2b400 0x400>; |
| 530 | interrupts = <9>; |
| 531 | clocks = <&apb1_gates 2>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 532 | status = "disabled"; |
Hans de Goede | a470342 | 2014-04-13 13:41:04 +0200 | [diff] [blame] | 533 | #address-cells = <1>; |
| 534 | #size-cells = <0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 535 | }; |
Maxime Ripard | 4411902 | 2013-11-07 12:01:48 +0100 | [diff] [blame] | 536 | |
| 537 | timer@01c60000 { |
| 538 | compatible = "allwinner,sun5i-a13-hstimer"; |
| 539 | reg = <0x01c60000 0x1000>; |
| 540 | interrupts = <82>, <83>; |
| 541 | clocks = <&ahb_gates 28>; |
| 542 | }; |
Maxime Ripard | 9e2dcb2 | 2013-01-18 22:30:36 +0100 | [diff] [blame] | 543 | }; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 544 | }; |