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