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