Stefan Roese | 7423d2d | 2012-11-26 15:46:12 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Stefan Roese |
| 3 | * Stefan Roese <sr@denx.de> |
| 4 | * |
| 5 | * The code contained herein is licensed under the GNU General Public |
| 6 | * License. You may obtain a copy of the GNU General Public License |
| 7 | * Version 2 or later at the following locations: |
| 8 | * |
| 9 | * http://www.opensource.org/licenses/gpl-license.html |
| 10 | * http://www.gnu.org/copyleft/gpl.html |
| 11 | */ |
| 12 | |
Maxime Ripard | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 13 | #include "skeleton.dtsi" |
Stefan Roese | 7423d2d | 2012-11-26 15:46:12 +0100 | [diff] [blame] | 14 | |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 15 | #include <dt-bindings/dma/sun4i-a10.h> |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 16 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 17 | |
Stefan Roese | 7423d2d | 2012-11-26 15:46:12 +0100 | [diff] [blame] | 18 | / { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 19 | interrupt-parent = <&intc>; |
| 20 | |
Emilio López | e751cce | 2013-11-16 15:17:29 -0300 | [diff] [blame] | 21 | aliases { |
| 22 | ethernet0 = &emac; |
Maxime Ripard | 10b302a | 2013-11-17 10:03:04 +0100 | [diff] [blame] | 23 | serial0 = &uart0; |
| 24 | serial1 = &uart1; |
Maxime Ripard | 143b13d | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 25 | serial2 = &uart2; |
| 26 | serial3 = &uart3; |
| 27 | serial4 = &uart4; |
| 28 | serial5 = &uart5; |
| 29 | serial6 = &uart6; |
| 30 | serial7 = &uart7; |
Emilio López | e751cce | 2013-11-16 15:17:29 -0300 | [diff] [blame] | 31 | }; |
| 32 | |
Hans de Goede | 5790d4e | 2014-11-14 16:34:34 +0100 | [diff] [blame] | 33 | chosen { |
| 34 | #address-cells = <1>; |
| 35 | #size-cells = <1>; |
| 36 | ranges; |
| 37 | |
Hans de Goede | a9f8cda | 2014-11-18 12:07:13 +0100 | [diff] [blame] | 38 | framebuffer@0 { |
| 39 | compatible = "allwinner,simple-framebuffer", "simple-framebuffer"; |
| 40 | allwinner,pipeline = "de_be0-lcd0-hdmi"; |
Hans de Goede | 678e75d | 2014-11-16 17:09:32 +0100 | [diff] [blame] | 41 | clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>, |
| 42 | <&ahb_gates 44>; |
Hans de Goede | 5790d4e | 2014-11-14 16:34:34 +0100 | [diff] [blame] | 43 | status = "disabled"; |
| 44 | }; |
Hans de Goede | 8cedd66 | 2015-01-19 14:01:17 +0100 | [diff] [blame] | 45 | |
| 46 | framebuffer@1 { |
| 47 | compatible = "allwinner,simple-framebuffer", "simple-framebuffer"; |
| 48 | allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi"; |
| 49 | clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>, |
| 50 | <&ahb_gates 44>, <&ahb_gates 46>; |
| 51 | status = "disabled"; |
| 52 | }; |
Hans de Goede | 5790d4e | 2014-11-14 16:34:34 +0100 | [diff] [blame] | 53 | }; |
| 54 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 55 | cpus { |
Arnd Bergmann | 8b2efa89 | 2013-06-10 16:48:36 +0200 | [diff] [blame] | 56 | #address-cells = <1>; |
| 57 | #size-cells = <0>; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 58 | cpu@0 { |
Lorenzo Pieralisi | 14c44aa | 2013-04-18 18:41:57 +0100 | [diff] [blame] | 59 | device_type = "cpu"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 60 | compatible = "arm,cortex-a8"; |
Lorenzo Pieralisi | 14c44aa | 2013-04-18 18:41:57 +0100 | [diff] [blame] | 61 | reg = <0x0>; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 62 | }; |
| 63 | }; |
| 64 | |
Stefan Roese | 7423d2d | 2012-11-26 15:46:12 +0100 | [diff] [blame] | 65 | memory { |
| 66 | reg = <0x40000000 0x80000000>; |
| 67 | }; |
Maxime Ripard | 874b4e4 | 2013-01-26 15:36:54 +0100 | [diff] [blame] | 68 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 69 | clocks { |
| 70 | #address-cells = <1>; |
| 71 | #size-cells = <1>; |
| 72 | ranges; |
| 73 | |
| 74 | /* |
| 75 | * This is a dummy clock, to be used as placeholder on |
| 76 | * other mux clocks when a specific parent clock is not |
| 77 | * yet implemented. It should be dropped when the driver |
| 78 | * is complete. |
| 79 | */ |
| 80 | dummy: dummy { |
| 81 | #clock-cells = <0>; |
| 82 | compatible = "fixed-clock"; |
| 83 | clock-frequency = <0>; |
| 84 | }; |
| 85 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 86 | osc24M: clk@01c20050 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 87 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 88 | compatible = "allwinner,sun4i-a10-osc-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 89 | reg = <0x01c20050 0x4>; |
Emilio López | 92fd6e0 | 2013-04-09 10:48:04 -0300 | [diff] [blame] | 90 | clock-frequency = <24000000>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 91 | clock-output-names = "osc24M"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 92 | }; |
| 93 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 94 | osc32k: clk@0 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 95 | #clock-cells = <0>; |
| 96 | compatible = "fixed-clock"; |
| 97 | clock-frequency = <32768>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 98 | clock-output-names = "osc32k"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 99 | }; |
| 100 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 101 | pll1: clk@01c20000 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 102 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 103 | compatible = "allwinner,sun4i-a10-pll1-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 104 | reg = <0x01c20000 0x4>; |
| 105 | clocks = <&osc24M>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 106 | clock-output-names = "pll1"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 107 | }; |
| 108 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 109 | pll4: clk@01c20018 { |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 110 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 111 | compatible = "allwinner,sun4i-a10-pll1-clk"; |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 112 | reg = <0x01c20018 0x4>; |
| 113 | clocks = <&osc24M>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 114 | clock-output-names = "pll4"; |
Emilio López | ec5589f | 2013-12-23 00:32:35 -0300 | [diff] [blame] | 115 | }; |
| 116 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 117 | pll5: clk@01c20020 { |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 118 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 119 | compatible = "allwinner,sun4i-a10-pll5-clk"; |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 120 | reg = <0x01c20020 0x4>; |
| 121 | clocks = <&osc24M>; |
| 122 | clock-output-names = "pll5_ddr", "pll5_other"; |
| 123 | }; |
| 124 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 125 | pll6: clk@01c20028 { |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 126 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 127 | compatible = "allwinner,sun4i-a10-pll6-clk"; |
Emilio López | c3e5e66 | 2013-12-23 00:32:38 -0300 | [diff] [blame] | 128 | reg = <0x01c20028 0x4>; |
| 129 | clocks = <&osc24M>; |
| 130 | clock-output-names = "pll6_sata", "pll6_other", "pll6"; |
| 131 | }; |
| 132 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 133 | /* dummy is 200M */ |
| 134 | cpu: cpu@01c20054 { |
| 135 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 136 | compatible = "allwinner,sun4i-a10-cpu-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 137 | reg = <0x01c20054 0x4>; |
| 138 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 139 | clock-output-names = "cpu"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 140 | }; |
| 141 | |
| 142 | axi: axi@01c20054 { |
| 143 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 144 | compatible = "allwinner,sun4i-a10-axi-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 145 | reg = <0x01c20054 0x4>; |
| 146 | clocks = <&cpu>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 147 | clock-output-names = "axi"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 148 | }; |
| 149 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 150 | axi_gates: clk@01c2005c { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 151 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 152 | compatible = "allwinner,sun4i-a10-axi-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 153 | reg = <0x01c2005c 0x4>; |
| 154 | clocks = <&axi>; |
| 155 | clock-output-names = "axi_dram"; |
| 156 | }; |
| 157 | |
| 158 | ahb: ahb@01c20054 { |
| 159 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 160 | compatible = "allwinner,sun4i-a10-ahb-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 161 | reg = <0x01c20054 0x4>; |
| 162 | clocks = <&axi>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 163 | clock-output-names = "ahb"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 164 | }; |
| 165 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 166 | ahb_gates: clk@01c20060 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 167 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 168 | compatible = "allwinner,sun4i-a10-ahb-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 169 | reg = <0x01c20060 0x8>; |
| 170 | clocks = <&ahb>; |
| 171 | clock-output-names = "ahb_usb0", "ahb_ehci0", |
| 172 | "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss", |
| 173 | "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1", |
| 174 | "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand", |
| 175 | "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts", |
| 176 | "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3", |
| 177 | "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve", |
| 178 | "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0", |
| 179 | "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi", |
| 180 | "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0", |
| 181 | "ahb_de_fe1", "ahb_mp", "ahb_mali400"; |
| 182 | }; |
| 183 | |
| 184 | apb0: apb0@01c20054 { |
| 185 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 186 | compatible = "allwinner,sun4i-a10-apb0-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 187 | reg = <0x01c20054 0x4>; |
| 188 | clocks = <&ahb>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 189 | clock-output-names = "apb0"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 190 | }; |
| 191 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 192 | apb0_gates: clk@01c20068 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 193 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 194 | compatible = "allwinner,sun4i-a10-apb0-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 195 | reg = <0x01c20068 0x4>; |
| 196 | clocks = <&apb0>; |
| 197 | clock-output-names = "apb0_codec", "apb0_spdif", |
| 198 | "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0", |
| 199 | "apb0_ir1", "apb0_keypad"; |
| 200 | }; |
| 201 | |
Emilio López | acbcc0f | 2014-11-06 11:40:30 +0800 | [diff] [blame] | 202 | apb1: clk@01c20058 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 203 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 204 | compatible = "allwinner,sun4i-a10-apb1-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 205 | reg = <0x01c20058 0x4>; |
Emilio López | acbcc0f | 2014-11-06 11:40:30 +0800 | [diff] [blame] | 206 | clocks = <&osc24M>, <&pll6 1>, <&osc32k>; |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 207 | clock-output-names = "apb1"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 208 | }; |
| 209 | |
Chen-Yu Tsai | dfb12c0 | 2014-02-03 09:51:41 +0800 | [diff] [blame] | 210 | apb1_gates: clk@01c2006c { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 211 | #clock-cells = <1>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 212 | compatible = "allwinner,sun4i-a10-apb1-gates-clk"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 213 | reg = <0x01c2006c 0x4>; |
| 214 | clocks = <&apb1>; |
| 215 | clock-output-names = "apb1_i2c0", "apb1_i2c1", |
| 216 | "apb1_i2c2", "apb1_can", "apb1_scr", |
| 217 | "apb1_ps20", "apb1_ps21", "apb1_uart0", |
| 218 | "apb1_uart1", "apb1_uart2", "apb1_uart3", |
| 219 | "apb1_uart4", "apb1_uart5", "apb1_uart6", |
| 220 | "apb1_uart7"; |
| 221 | }; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 222 | |
| 223 | nand_clk: clk@01c20080 { |
| 224 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 225 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 226 | reg = <0x01c20080 0x4>; |
| 227 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 228 | clock-output-names = "nand"; |
| 229 | }; |
| 230 | |
| 231 | ms_clk: clk@01c20084 { |
| 232 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 233 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 234 | reg = <0x01c20084 0x4>; |
| 235 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 236 | clock-output-names = "ms"; |
| 237 | }; |
| 238 | |
| 239 | mmc0_clk: clk@01c20088 { |
| 240 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 241 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 242 | reg = <0x01c20088 0x4>; |
| 243 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 244 | clock-output-names = "mmc0"; |
| 245 | }; |
| 246 | |
| 247 | mmc1_clk: clk@01c2008c { |
| 248 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 249 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 250 | reg = <0x01c2008c 0x4>; |
| 251 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 252 | clock-output-names = "mmc1"; |
| 253 | }; |
| 254 | |
| 255 | mmc2_clk: clk@01c20090 { |
| 256 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 257 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 258 | reg = <0x01c20090 0x4>; |
| 259 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 260 | clock-output-names = "mmc2"; |
| 261 | }; |
| 262 | |
| 263 | mmc3_clk: clk@01c20094 { |
| 264 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 265 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 266 | reg = <0x01c20094 0x4>; |
| 267 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 268 | clock-output-names = "mmc3"; |
| 269 | }; |
| 270 | |
| 271 | ts_clk: clk@01c20098 { |
| 272 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 273 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 274 | reg = <0x01c20098 0x4>; |
| 275 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 276 | clock-output-names = "ts"; |
| 277 | }; |
| 278 | |
| 279 | ss_clk: clk@01c2009c { |
| 280 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 281 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 282 | reg = <0x01c2009c 0x4>; |
| 283 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 284 | clock-output-names = "ss"; |
| 285 | }; |
| 286 | |
| 287 | spi0_clk: clk@01c200a0 { |
| 288 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 289 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 290 | reg = <0x01c200a0 0x4>; |
| 291 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 292 | clock-output-names = "spi0"; |
| 293 | }; |
| 294 | |
| 295 | spi1_clk: clk@01c200a4 { |
| 296 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 297 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 298 | reg = <0x01c200a4 0x4>; |
| 299 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 300 | clock-output-names = "spi1"; |
| 301 | }; |
| 302 | |
| 303 | spi2_clk: clk@01c200a8 { |
| 304 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 305 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 306 | reg = <0x01c200a8 0x4>; |
| 307 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 308 | clock-output-names = "spi2"; |
| 309 | }; |
| 310 | |
| 311 | pata_clk: clk@01c200ac { |
| 312 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 313 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 314 | reg = <0x01c200ac 0x4>; |
| 315 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 316 | clock-output-names = "pata"; |
| 317 | }; |
| 318 | |
| 319 | ir0_clk: clk@01c200b0 { |
| 320 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 321 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 322 | reg = <0x01c200b0 0x4>; |
| 323 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 324 | clock-output-names = "ir0"; |
| 325 | }; |
| 326 | |
| 327 | ir1_clk: clk@01c200b4 { |
| 328 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 329 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 330 | reg = <0x01c200b4 0x4>; |
| 331 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 332 | clock-output-names = "ir1"; |
| 333 | }; |
| 334 | |
Roman Byshko | 0076c8b | 2014-02-07 16:21:51 +0100 | [diff] [blame] | 335 | usb_clk: clk@01c200cc { |
| 336 | #clock-cells = <1>; |
| 337 | #reset-cells = <1>; |
| 338 | compatible = "allwinner,sun4i-a10-usb-clk"; |
| 339 | reg = <0x01c200cc 0x4>; |
| 340 | clocks = <&pll6 1>; |
| 341 | clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy"; |
| 342 | }; |
| 343 | |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 344 | spi3_clk: clk@01c200d4 { |
| 345 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 346 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Emilio López | 4b756ff | 2013-12-23 00:32:41 -0300 | [diff] [blame] | 347 | reg = <0x01c200d4 0x4>; |
| 348 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
| 349 | clock-output-names = "spi3"; |
| 350 | }; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 351 | }; |
| 352 | |
Maxime Ripard | b74aec1 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 353 | soc@01c00000 { |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 354 | compatible = "simple-bus"; |
| 355 | #address-cells = <1>; |
| 356 | #size-cells = <1>; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 357 | ranges; |
| 358 | |
Emilio López | 1324f53 | 2014-08-04 17:09:57 -0300 | [diff] [blame] | 359 | dma: dma-controller@01c02000 { |
| 360 | compatible = "allwinner,sun4i-a10-dma"; |
| 361 | reg = <0x01c02000 0x1000>; |
| 362 | interrupts = <27>; |
| 363 | clocks = <&ahb_gates 6>; |
| 364 | #dma-cells = <2>; |
| 365 | }; |
| 366 | |
Maxime Ripard | 65918e2 | 2014-02-22 22:35:55 +0100 | [diff] [blame] | 367 | spi0: spi@01c05000 { |
| 368 | compatible = "allwinner,sun4i-a10-spi"; |
| 369 | reg = <0x01c05000 0x1000>; |
| 370 | interrupts = <10>; |
| 371 | clocks = <&ahb_gates 20>, <&spi0_clk>; |
| 372 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 373 | dmas = <&dma SUN4I_DMA_DEDICATED 27>, |
| 374 | <&dma SUN4I_DMA_DEDICATED 26>; |
Emilio López | 4192ff8 | 2014-08-04 17:10:00 -0300 | [diff] [blame] | 375 | dma-names = "rx", "tx"; |
Maxime Ripard | 65918e2 | 2014-02-22 22:35:55 +0100 | [diff] [blame] | 376 | status = "disabled"; |
| 377 | #address-cells = <1>; |
| 378 | #size-cells = <0>; |
| 379 | }; |
| 380 | |
| 381 | spi1: spi@01c06000 { |
| 382 | compatible = "allwinner,sun4i-a10-spi"; |
| 383 | reg = <0x01c06000 0x1000>; |
| 384 | interrupts = <11>; |
| 385 | clocks = <&ahb_gates 21>, <&spi1_clk>; |
| 386 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 387 | dmas = <&dma SUN4I_DMA_DEDICATED 9>, |
| 388 | <&dma SUN4I_DMA_DEDICATED 8>; |
Emilio López | 4192ff8 | 2014-08-04 17:10:00 -0300 | [diff] [blame] | 389 | dma-names = "rx", "tx"; |
Maxime Ripard | 65918e2 | 2014-02-22 22:35:55 +0100 | [diff] [blame] | 390 | status = "disabled"; |
| 391 | #address-cells = <1>; |
| 392 | #size-cells = <0>; |
| 393 | }; |
| 394 | |
Maxime Ripard | e38afcb | 2013-05-30 03:49:23 +0000 | [diff] [blame] | 395 | emac: ethernet@01c0b000 { |
Maxime Ripard | 1c70e09 | 2014-02-02 14:49:13 +0100 | [diff] [blame] | 396 | compatible = "allwinner,sun4i-a10-emac"; |
Maxime Ripard | e38afcb | 2013-05-30 03:49:23 +0000 | [diff] [blame] | 397 | reg = <0x01c0b000 0x1000>; |
| 398 | interrupts = <55>; |
| 399 | clocks = <&ahb_gates 17>; |
| 400 | status = "disabled"; |
| 401 | }; |
| 402 | |
| 403 | mdio@01c0b080 { |
Maxime Ripard | 1c70e09 | 2014-02-02 14:49:13 +0100 | [diff] [blame] | 404 | compatible = "allwinner,sun4i-a10-mdio"; |
Maxime Ripard | e38afcb | 2013-05-30 03:49:23 +0000 | [diff] [blame] | 405 | reg = <0x01c0b080 0x14>; |
| 406 | status = "disabled"; |
| 407 | #address-cells = <1>; |
| 408 | #size-cells = <0>; |
| 409 | }; |
| 410 | |
David Lanzendörfer | b258b36 | 2014-05-02 17:57:18 +0200 | [diff] [blame] | 411 | mmc0: mmc@01c0f000 { |
| 412 | compatible = "allwinner,sun4i-a10-mmc"; |
| 413 | reg = <0x01c0f000 0x1000>; |
| 414 | clocks = <&ahb_gates 8>, <&mmc0_clk>; |
| 415 | clock-names = "ahb", "mmc"; |
| 416 | interrupts = <32>; |
| 417 | status = "disabled"; |
| 418 | }; |
| 419 | |
| 420 | mmc1: mmc@01c10000 { |
| 421 | compatible = "allwinner,sun4i-a10-mmc"; |
| 422 | reg = <0x01c10000 0x1000>; |
| 423 | clocks = <&ahb_gates 9>, <&mmc1_clk>; |
| 424 | clock-names = "ahb", "mmc"; |
| 425 | interrupts = <33>; |
| 426 | status = "disabled"; |
| 427 | }; |
| 428 | |
| 429 | mmc2: mmc@01c11000 { |
| 430 | compatible = "allwinner,sun4i-a10-mmc"; |
| 431 | reg = <0x01c11000 0x1000>; |
| 432 | clocks = <&ahb_gates 10>, <&mmc2_clk>; |
| 433 | clock-names = "ahb", "mmc"; |
| 434 | interrupts = <34>; |
| 435 | status = "disabled"; |
| 436 | }; |
| 437 | |
| 438 | mmc3: mmc@01c12000 { |
| 439 | compatible = "allwinner,sun4i-a10-mmc"; |
| 440 | reg = <0x01c12000 0x1000>; |
| 441 | clocks = <&ahb_gates 11>, <&mmc3_clk>; |
| 442 | clock-names = "ahb", "mmc"; |
| 443 | interrupts = <35>; |
| 444 | status = "disabled"; |
| 445 | }; |
| 446 | |
Roman Byshko | 6ab1ce2 | 2014-03-01 20:26:23 +0100 | [diff] [blame] | 447 | usbphy: phy@01c13400 { |
| 448 | #phy-cells = <1>; |
| 449 | compatible = "allwinner,sun4i-a10-usb-phy"; |
| 450 | reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>; |
| 451 | reg-names = "phy_ctrl", "pmu1", "pmu2"; |
| 452 | clocks = <&usb_clk 8>; |
| 453 | clock-names = "usb_phy"; |
Chen-Yu Tsai | 4dba418 | 2014-12-18 19:10:35 +0800 | [diff] [blame] | 454 | resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>; |
| 455 | reset-names = "usb0_reset", "usb1_reset", "usb2_reset"; |
Roman Byshko | 6ab1ce2 | 2014-03-01 20:26:23 +0100 | [diff] [blame] | 456 | status = "disabled"; |
| 457 | }; |
| 458 | |
| 459 | ehci0: usb@01c14000 { |
| 460 | compatible = "allwinner,sun4i-a10-ehci", "generic-ehci"; |
| 461 | reg = <0x01c14000 0x100>; |
| 462 | interrupts = <39>; |
| 463 | clocks = <&ahb_gates 1>; |
| 464 | phys = <&usbphy 1>; |
| 465 | phy-names = "usb"; |
| 466 | status = "disabled"; |
| 467 | }; |
| 468 | |
| 469 | ohci0: usb@01c14400 { |
| 470 | compatible = "allwinner,sun4i-a10-ohci", "generic-ohci"; |
| 471 | reg = <0x01c14400 0x100>; |
| 472 | interrupts = <64>; |
| 473 | clocks = <&usb_clk 6>, <&ahb_gates 2>; |
| 474 | phys = <&usbphy 1>; |
| 475 | phy-names = "usb"; |
| 476 | status = "disabled"; |
| 477 | }; |
| 478 | |
Maxime Ripard | 65918e2 | 2014-02-22 22:35:55 +0100 | [diff] [blame] | 479 | spi2: spi@01c17000 { |
| 480 | compatible = "allwinner,sun4i-a10-spi"; |
| 481 | reg = <0x01c17000 0x1000>; |
| 482 | interrupts = <12>; |
| 483 | clocks = <&ahb_gates 22>, <&spi2_clk>; |
| 484 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 485 | dmas = <&dma SUN4I_DMA_DEDICATED 29>, |
| 486 | <&dma SUN4I_DMA_DEDICATED 28>; |
Emilio López | 4192ff8 | 2014-08-04 17:10:00 -0300 | [diff] [blame] | 487 | dma-names = "rx", "tx"; |
Maxime Ripard | 65918e2 | 2014-02-22 22:35:55 +0100 | [diff] [blame] | 488 | status = "disabled"; |
| 489 | #address-cells = <1>; |
| 490 | #size-cells = <0>; |
| 491 | }; |
| 492 | |
Oliver Schinagl | 248bd1e | 2014-03-01 20:26:21 +0100 | [diff] [blame] | 493 | ahci: sata@01c18000 { |
| 494 | compatible = "allwinner,sun4i-a10-ahci"; |
| 495 | reg = <0x01c18000 0x1000>; |
| 496 | interrupts = <56>; |
| 497 | clocks = <&pll6 0>, <&ahb_gates 25>; |
| 498 | status = "disabled"; |
| 499 | }; |
| 500 | |
Roman Byshko | 6ab1ce2 | 2014-03-01 20:26:23 +0100 | [diff] [blame] | 501 | ehci1: usb@01c1c000 { |
| 502 | compatible = "allwinner,sun4i-a10-ehci", "generic-ehci"; |
| 503 | reg = <0x01c1c000 0x100>; |
| 504 | interrupts = <40>; |
| 505 | clocks = <&ahb_gates 3>; |
| 506 | phys = <&usbphy 2>; |
| 507 | phy-names = "usb"; |
| 508 | status = "disabled"; |
| 509 | }; |
| 510 | |
| 511 | ohci1: usb@01c1c400 { |
| 512 | compatible = "allwinner,sun4i-a10-ohci", "generic-ohci"; |
| 513 | reg = <0x01c1c400 0x100>; |
| 514 | interrupts = <65>; |
| 515 | clocks = <&usb_clk 7>, <&ahb_gates 4>; |
| 516 | phys = <&usbphy 2>; |
| 517 | phy-names = "usb"; |
| 518 | status = "disabled"; |
| 519 | }; |
| 520 | |
Maxime Ripard | 65918e2 | 2014-02-22 22:35:55 +0100 | [diff] [blame] | 521 | spi3: spi@01c1f000 { |
| 522 | compatible = "allwinner,sun4i-a10-spi"; |
| 523 | reg = <0x01c1f000 0x1000>; |
| 524 | interrupts = <50>; |
| 525 | clocks = <&ahb_gates 23>, <&spi3_clk>; |
| 526 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 527 | dmas = <&dma SUN4I_DMA_DEDICATED 31>, |
| 528 | <&dma SUN4I_DMA_DEDICATED 30>; |
Emilio López | 4192ff8 | 2014-08-04 17:10:00 -0300 | [diff] [blame] | 529 | dma-names = "rx", "tx"; |
Maxime Ripard | 65918e2 | 2014-02-22 22:35:55 +0100 | [diff] [blame] | 530 | status = "disabled"; |
| 531 | #address-cells = <1>; |
| 532 | #size-cells = <0>; |
| 533 | }; |
| 534 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 535 | intc: interrupt-controller@01c20400 { |
Maxime Ripard | 09504a7 | 2014-02-07 21:50:26 +0100 | [diff] [blame] | 536 | compatible = "allwinner,sun4i-a10-ic"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 537 | reg = <0x01c20400 0x400>; |
| 538 | interrupt-controller; |
| 539 | #interrupt-cells = <1>; |
| 540 | }; |
| 541 | |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 542 | pio: pinctrl@01c20800 { |
Maxime Ripard | 874b4e4 | 2013-01-26 15:36:54 +0100 | [diff] [blame] | 543 | compatible = "allwinner,sun4i-a10-pinctrl"; |
| 544 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 39138bc | 2013-04-06 15:00:48 +0200 | [diff] [blame] | 545 | interrupts = <28>; |
Emilio López | 36386d6 | 2013-03-27 18:20:41 -0300 | [diff] [blame] | 546 | clocks = <&apb0_gates 5>; |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 547 | gpio-controller; |
Maxime Ripard | 39138bc | 2013-04-06 15:00:48 +0200 | [diff] [blame] | 548 | interrupt-controller; |
Chen-Yu Tsai | 7d4ff96 | 2014-06-30 23:57:51 +0200 | [diff] [blame] | 549 | #interrupt-cells = <2>; |
Maxime Ripard | 874b4e4 | 2013-01-26 15:36:54 +0100 | [diff] [blame] | 550 | #size-cells = <0>; |
Maxime Ripard | e10911e | 2013-01-27 19:26:05 +0100 | [diff] [blame] | 551 | #gpio-cells = <3>; |
Maxime Ripard | 581981b | 2013-01-26 15:36:55 +0100 | [diff] [blame] | 552 | |
Alexandre Belloni | 1d5726e | 2014-04-28 18:17:10 +0200 | [diff] [blame] | 553 | pwm0_pins_a: pwm0@0 { |
| 554 | allwinner,pins = "PB2"; |
| 555 | allwinner,function = "pwm"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 556 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 557 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Alexandre Belloni | 1d5726e | 2014-04-28 18:17:10 +0200 | [diff] [blame] | 558 | }; |
| 559 | |
| 560 | pwm1_pins_a: pwm1@0 { |
| 561 | allwinner,pins = "PI3"; |
| 562 | allwinner,function = "pwm"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 563 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 564 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Alexandre Belloni | 1d5726e | 2014-04-28 18:17:10 +0200 | [diff] [blame] | 565 | }; |
| 566 | |
Maxime Ripard | 581981b | 2013-01-26 15:36:55 +0100 | [diff] [blame] | 567 | uart0_pins_a: uart0@0 { |
| 568 | allwinner,pins = "PB22", "PB23"; |
| 569 | allwinner,function = "uart0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 570 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 571 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 581981b | 2013-01-26 15:36:55 +0100 | [diff] [blame] | 572 | }; |
| 573 | |
| 574 | uart0_pins_b: uart0@1 { |
| 575 | allwinner,pins = "PF2", "PF4"; |
| 576 | allwinner,function = "uart0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 577 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 578 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 581981b | 2013-01-26 15:36:55 +0100 | [diff] [blame] | 579 | }; |
| 580 | |
| 581 | uart1_pins_a: uart1@0 { |
| 582 | allwinner,pins = "PA10", "PA11"; |
| 583 | allwinner,function = "uart1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 584 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 585 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 581981b | 2013-01-26 15:36:55 +0100 | [diff] [blame] | 586 | }; |
Maxime Ripard | 27cce4f | 2013-03-10 13:44:38 +0100 | [diff] [blame] | 587 | |
| 588 | i2c0_pins_a: i2c0@0 { |
| 589 | allwinner,pins = "PB0", "PB1"; |
| 590 | allwinner,function = "i2c0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 591 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 592 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 27cce4f | 2013-03-10 13:44:38 +0100 | [diff] [blame] | 593 | }; |
| 594 | |
| 595 | i2c1_pins_a: i2c1@0 { |
| 596 | allwinner,pins = "PB18", "PB19"; |
| 597 | allwinner,function = "i2c1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 598 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 599 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 27cce4f | 2013-03-10 13:44:38 +0100 | [diff] [blame] | 600 | }; |
| 601 | |
| 602 | i2c2_pins_a: i2c2@0 { |
| 603 | allwinner,pins = "PB20", "PB21"; |
| 604 | allwinner,function = "i2c2"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 605 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 606 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 27cce4f | 2013-03-10 13:44:38 +0100 | [diff] [blame] | 607 | }; |
Linus Torvalds | 496322b | 2013-07-09 18:24:39 -0700 | [diff] [blame] | 608 | |
Maxime Ripard | b21da66 | 2013-05-30 03:49:22 +0000 | [diff] [blame] | 609 | emac_pins_a: emac0@0 { |
| 610 | allwinner,pins = "PA0", "PA1", "PA2", |
| 611 | "PA3", "PA4", "PA5", "PA6", |
| 612 | "PA7", "PA8", "PA9", "PA10", |
| 613 | "PA11", "PA12", "PA13", "PA14", |
| 614 | "PA15", "PA16"; |
| 615 | allwinner,function = "emac"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 616 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 617 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | b21da66 | 2013-05-30 03:49:22 +0000 | [diff] [blame] | 618 | }; |
Hans de Goede | b5f86a3 | 2014-05-02 17:57:19 +0200 | [diff] [blame] | 619 | |
| 620 | mmc0_pins_a: mmc0@0 { |
| 621 | allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5"; |
| 622 | allwinner,function = "mmc0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 623 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 624 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Hans de Goede | b5f86a3 | 2014-05-02 17:57:19 +0200 | [diff] [blame] | 625 | }; |
| 626 | |
| 627 | mmc0_cd_pin_reference_design: mmc0_cd_pin@0 { |
| 628 | allwinner,pins = "PH1"; |
| 629 | allwinner,function = "gpio_in"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 630 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 631 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
Hans de Goede | b5f86a3 | 2014-05-02 17:57:19 +0200 | [diff] [blame] | 632 | }; |
Hans de Goede | a4e1099 | 2014-06-30 23:57:58 +0200 | [diff] [blame] | 633 | |
| 634 | ir0_pins_a: ir0@0 { |
| 635 | allwinner,pins = "PB3","PB4"; |
| 636 | allwinner,function = "ir0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 637 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 638 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Hans de Goede | a4e1099 | 2014-06-30 23:57:58 +0200 | [diff] [blame] | 639 | }; |
| 640 | |
| 641 | ir1_pins_a: ir1@0 { |
| 642 | allwinner,pins = "PB22","PB23"; |
| 643 | allwinner,function = "ir1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 644 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 645 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Hans de Goede | a4e1099 | 2014-06-30 23:57:58 +0200 | [diff] [blame] | 646 | }; |
Alexandru Gagniuc | ec66d0b | 2014-12-08 04:14:01 -0600 | [diff] [blame] | 647 | |
| 648 | spi0_pins_a: spi0@0 { |
| 649 | allwinner,pins = "PI10", "PI11", "PI12", "PI13"; |
| 650 | allwinner,function = "spi0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 651 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 652 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Alexandru Gagniuc | ec66d0b | 2014-12-08 04:14:01 -0600 | [diff] [blame] | 653 | }; |
| 654 | |
| 655 | spi1_pins_a: spi1@0 { |
| 656 | allwinner,pins = "PI16", "PI17", "PI18", "PI19"; |
| 657 | allwinner,function = "spi1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 658 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 659 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Alexandru Gagniuc | ec66d0b | 2014-12-08 04:14:01 -0600 | [diff] [blame] | 660 | }; |
| 661 | |
| 662 | spi2_pins_a: spi2@0 { |
| 663 | allwinner,pins = "PB14", "PB15", "PB16", "PB17"; |
| 664 | allwinner,function = "spi2"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 665 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 666 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Alexandru Gagniuc | ec66d0b | 2014-12-08 04:14:01 -0600 | [diff] [blame] | 667 | }; |
| 668 | |
| 669 | spi2_pins_b: spi2@1 { |
| 670 | allwinner,pins = "PC19", "PC20", "PC21", "PC22"; |
| 671 | allwinner,function = "spi2"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 672 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 673 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Alexandru Gagniuc | ec66d0b | 2014-12-08 04:14:01 -0600 | [diff] [blame] | 674 | }; |
Maxime Ripard | 874b4e4 | 2013-01-26 15:36:54 +0100 | [diff] [blame] | 675 | }; |
Maxime Ripard | 89b3c99 | 2013-02-20 17:25:03 -0800 | [diff] [blame] | 676 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 677 | timer@01c20c00 { |
Maxime Ripard | b4f2644 | 2014-02-06 10:40:32 +0100 | [diff] [blame] | 678 | compatible = "allwinner,sun4i-a10-timer"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 679 | reg = <0x01c20c00 0x90>; |
| 680 | interrupts = <22>; |
| 681 | clocks = <&osc24M>; |
| 682 | }; |
| 683 | |
| 684 | wdt: watchdog@01c20c90 { |
Maxime Ripard | ca5d04d | 2014-02-07 22:29:26 +0100 | [diff] [blame] | 685 | compatible = "allwinner,sun4i-a10-wdt"; |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 686 | reg = <0x01c20c90 0x10>; |
| 687 | }; |
| 688 | |
Carlo Caione | b5d905c | 2013-10-16 20:30:26 +0200 | [diff] [blame] | 689 | rtc: rtc@01c20d00 { |
Maxime Ripard | 5fc4bc8 | 2014-04-03 14:50:03 -0700 | [diff] [blame] | 690 | compatible = "allwinner,sun4i-a10-rtc"; |
Carlo Caione | b5d905c | 2013-10-16 20:30:26 +0200 | [diff] [blame] | 691 | reg = <0x01c20d00 0x20>; |
| 692 | interrupts = <24>; |
| 693 | }; |
| 694 | |
Alexandre Belloni | 4b57a39 | 2014-04-28 18:17:11 +0200 | [diff] [blame] | 695 | pwm: pwm@01c20e00 { |
| 696 | compatible = "allwinner,sun4i-a10-pwm"; |
| 697 | reg = <0x01c20e00 0xc>; |
| 698 | clocks = <&osc24M>; |
| 699 | #pwm-cells = <3>; |
| 700 | status = "disabled"; |
| 701 | }; |
| 702 | |
Hans de Goede | a4e1099 | 2014-06-30 23:57:58 +0200 | [diff] [blame] | 703 | ir0: ir@01c21800 { |
| 704 | compatible = "allwinner,sun4i-a10-ir"; |
| 705 | clocks = <&apb0_gates 6>, <&ir0_clk>; |
| 706 | clock-names = "apb", "ir"; |
| 707 | interrupts = <5>; |
| 708 | reg = <0x01c21800 0x40>; |
| 709 | status = "disabled"; |
| 710 | }; |
| 711 | |
| 712 | ir1: ir@01c21c00 { |
| 713 | compatible = "allwinner,sun4i-a10-ir"; |
| 714 | clocks = <&apb0_gates 7>, <&ir1_clk>; |
| 715 | clock-names = "apb", "ir"; |
| 716 | interrupts = <6>; |
| 717 | reg = <0x01c21c00 0x40>; |
| 718 | status = "disabled"; |
| 719 | }; |
| 720 | |
Hans de Goede | b0512e1 | 2014-12-23 11:13:20 +0100 | [diff] [blame] | 721 | lradc: lradc@01c22800 { |
| 722 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 723 | reg = <0x01c22800 0x100>; |
| 724 | interrupts = <31>; |
| 725 | status = "disabled"; |
| 726 | }; |
| 727 | |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 728 | sid: eeprom@01c23800 { |
Maxime Ripard | 043d56e | 2014-02-07 22:20:40 +0100 | [diff] [blame] | 729 | compatible = "allwinner,sun4i-a10-sid"; |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 730 | reg = <0x01c23800 0x10>; |
| 731 | }; |
| 732 | |
Hans de Goede | 57c8839 | 2013-12-31 17:20:50 +0100 | [diff] [blame] | 733 | rtp: rtp@01c25000 { |
Maxime Ripard | 40dd8f3 | 2014-02-02 14:52:40 +0100 | [diff] [blame] | 734 | compatible = "allwinner,sun4i-a10-ts"; |
Hans de Goede | 57c8839 | 2013-12-31 17:20:50 +0100 | [diff] [blame] | 735 | reg = <0x01c25000 0x100>; |
| 736 | interrupts = <29>; |
Chen-Yu Tsai | 41e7afb | 2015-01-06 10:35:15 +0800 | [diff] [blame^] | 737 | #thermal-sensor-cells = <0>; |
Hans de Goede | 57c8839 | 2013-12-31 17:20:50 +0100 | [diff] [blame] | 738 | }; |
| 739 | |
Maxime Ripard | 89b3c99 | 2013-02-20 17:25:03 -0800 | [diff] [blame] | 740 | uart0: serial@01c28000 { |
| 741 | compatible = "snps,dw-apb-uart"; |
| 742 | reg = <0x01c28000 0x400>; |
| 743 | interrupts = <1>; |
| 744 | reg-shift = <2>; |
| 745 | reg-io-width = <4>; |
Emilio López | 9ff49ec | 2013-03-27 18:20:39 -0300 | [diff] [blame] | 746 | clocks = <&apb1_gates 16>; |
Maxime Ripard | 89b3c99 | 2013-02-20 17:25:03 -0800 | [diff] [blame] | 747 | status = "disabled"; |
| 748 | }; |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 749 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 750 | uart1: serial@01c28400 { |
| 751 | compatible = "snps,dw-apb-uart"; |
| 752 | reg = <0x01c28400 0x400>; |
| 753 | interrupts = <2>; |
| 754 | reg-shift = <2>; |
| 755 | reg-io-width = <4>; |
| 756 | clocks = <&apb1_gates 17>; |
| 757 | status = "disabled"; |
| 758 | }; |
| 759 | |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 760 | uart2: serial@01c28800 { |
| 761 | compatible = "snps,dw-apb-uart"; |
| 762 | reg = <0x01c28800 0x400>; |
| 763 | interrupts = <3>; |
| 764 | reg-shift = <2>; |
| 765 | reg-io-width = <4>; |
Emilio López | 9ff49ec | 2013-03-27 18:20:39 -0300 | [diff] [blame] | 766 | clocks = <&apb1_gates 18>; |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 767 | status = "disabled"; |
| 768 | }; |
| 769 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 770 | uart3: serial@01c28c00 { |
| 771 | compatible = "snps,dw-apb-uart"; |
| 772 | reg = <0x01c28c00 0x400>; |
| 773 | interrupts = <4>; |
| 774 | reg-shift = <2>; |
| 775 | reg-io-width = <4>; |
| 776 | clocks = <&apb1_gates 19>; |
| 777 | status = "disabled"; |
| 778 | }; |
| 779 | |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 780 | uart4: serial@01c29000 { |
| 781 | compatible = "snps,dw-apb-uart"; |
| 782 | reg = <0x01c29000 0x400>; |
| 783 | interrupts = <17>; |
| 784 | reg-shift = <2>; |
| 785 | reg-io-width = <4>; |
Emilio López | 9ff49ec | 2013-03-27 18:20:39 -0300 | [diff] [blame] | 786 | clocks = <&apb1_gates 20>; |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 787 | status = "disabled"; |
| 788 | }; |
| 789 | |
| 790 | uart5: serial@01c29400 { |
| 791 | compatible = "snps,dw-apb-uart"; |
| 792 | reg = <0x01c29400 0x400>; |
| 793 | interrupts = <18>; |
| 794 | reg-shift = <2>; |
| 795 | reg-io-width = <4>; |
Emilio López | 9ff49ec | 2013-03-27 18:20:39 -0300 | [diff] [blame] | 796 | clocks = <&apb1_gates 21>; |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 797 | status = "disabled"; |
| 798 | }; |
| 799 | |
| 800 | uart6: serial@01c29800 { |
| 801 | compatible = "snps,dw-apb-uart"; |
| 802 | reg = <0x01c29800 0x400>; |
| 803 | interrupts = <19>; |
| 804 | reg-shift = <2>; |
| 805 | reg-io-width = <4>; |
Emilio López | 9ff49ec | 2013-03-27 18:20:39 -0300 | [diff] [blame] | 806 | clocks = <&apb1_gates 22>; |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 807 | status = "disabled"; |
| 808 | }; |
| 809 | |
| 810 | uart7: serial@01c29c00 { |
| 811 | compatible = "snps,dw-apb-uart"; |
| 812 | reg = <0x01c29c00 0x400>; |
| 813 | interrupts = <20>; |
| 814 | reg-shift = <2>; |
| 815 | reg-io-width = <4>; |
Emilio López | 9ff49ec | 2013-03-27 18:20:39 -0300 | [diff] [blame] | 816 | clocks = <&apb1_gates 23>; |
Maxime Ripard | 76f14d0a | 2013-02-20 17:38:27 -0800 | [diff] [blame] | 817 | status = "disabled"; |
| 818 | }; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 819 | |
| 820 | i2c0: i2c@01c2ac00 { |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 821 | compatible = "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 822 | reg = <0x01c2ac00 0x400>; |
| 823 | interrupts = <7>; |
| 824 | clocks = <&apb1_gates 0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 825 | status = "disabled"; |
Hans de Goede | 60bbe31 | 2014-04-13 13:41:03 +0200 | [diff] [blame] | 826 | #address-cells = <1>; |
| 827 | #size-cells = <0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 828 | }; |
| 829 | |
| 830 | i2c1: i2c@01c2b000 { |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 831 | compatible = "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 832 | reg = <0x01c2b000 0x400>; |
| 833 | interrupts = <8>; |
| 834 | clocks = <&apb1_gates 1>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 835 | status = "disabled"; |
Hans de Goede | 60bbe31 | 2014-04-13 13:41:03 +0200 | [diff] [blame] | 836 | #address-cells = <1>; |
| 837 | #size-cells = <0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 838 | }; |
| 839 | |
| 840 | i2c2: i2c@01c2b400 { |
Maxime Ripard | d275545 | 2014-03-31 14:54:58 +0200 | [diff] [blame] | 841 | compatible = "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 842 | reg = <0x01c2b400 0x400>; |
| 843 | interrupts = <9>; |
| 844 | clocks = <&apb1_gates 2>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 845 | status = "disabled"; |
Hans de Goede | 60bbe31 | 2014-04-13 13:41:03 +0200 | [diff] [blame] | 846 | #address-cells = <1>; |
| 847 | #size-cells = <0>; |
Maxime Ripard | f1741fd | 2013-03-10 13:34:36 +0100 | [diff] [blame] | 848 | }; |
Maxime Ripard | 874b4e4 | 2013-01-26 15:36:54 +0100 | [diff] [blame] | 849 | }; |
Stefan Roese | 7423d2d | 2012-11-26 15:46:12 +0100 | [diff] [blame] | 850 | }; |