Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
Maxime Ripard | 6c3ba72 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 10 | * |
Maxime Ripard | 5186d83 | 2014-10-17 11:38:23 +0200 | [diff] [blame] | 11 | * a) This file is free software; you can redistribute it and/or |
Maxime Ripard | 6c3ba72 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of the |
| 14 | * License, or (at your option) any later version. |
| 15 | * |
Maxime Ripard | 5186d83 | 2014-10-17 11:38:23 +0200 | [diff] [blame] | 16 | * This file is distributed in the hope that it will be useful, |
Maxime Ripard | 6c3ba72 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public |
Maxime Ripard | 5186d83 | 2014-10-17 11:38:23 +0200 | [diff] [blame] | 22 | * License along with this file; if not, write to the Free |
Maxime Ripard | 6c3ba72 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 23 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 24 | * MA 02110-1301 USA |
| 25 | * |
| 26 | * Or, alternatively, |
| 27 | * |
| 28 | * b) Permission is hereby granted, free of charge, to any person |
| 29 | * obtaining a copy of this software and associated documentation |
| 30 | * files (the "Software"), to deal in the Software without |
| 31 | * restriction, including without limitation the rights to use, |
| 32 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 33 | * sell copies of the Software, and to permit persons to whom the |
| 34 | * Software is furnished to do so, subject to the following |
| 35 | * conditions: |
| 36 | * |
| 37 | * The above copyright notice and this permission notice shall be |
| 38 | * included in all copies or substantial portions of the Software. |
| 39 | * |
| 40 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 41 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 42 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 43 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 44 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 45 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 46 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 47 | * OTHER DEALINGS IN THE SOFTWARE. |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 48 | */ |
| 49 | |
Maxime Ripard | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 50 | #include "skeleton.dtsi" |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 51 | |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 52 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 53 | |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 54 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
| 55 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 56 | / { |
| 57 | interrupt-parent = <&gic>; |
| 58 | |
Maxime Ripard | 54428d4 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 59 | aliases { |
| 60 | serial0 = &uart0; |
| 61 | serial1 = &uart1; |
| 62 | serial2 = &uart2; |
| 63 | serial3 = &uart3; |
| 64 | serial4 = &uart4; |
| 65 | serial5 = &uart5; |
Chen-Yu Tsai | e5073fd | 2014-07-16 01:15:46 +0800 | [diff] [blame] | 66 | ethernet0 = &gmac; |
Maxime Ripard | 54428d4 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 67 | }; |
| 68 | |
Hans de Goede | e53a8b2 | 2014-11-14 16:34:36 +0100 | [diff] [blame] | 69 | chosen { |
| 70 | #address-cells = <1>; |
| 71 | #size-cells = <1>; |
| 72 | ranges; |
| 73 | |
Hans de Goede | a9f8cda | 2014-11-18 12:07:13 +0100 | [diff] [blame] | 74 | framebuffer@0 { |
| 75 | compatible = "allwinner,simple-framebuffer", "simple-framebuffer"; |
| 76 | allwinner,pipeline = "de_be0-lcd0-hdmi"; |
Hans de Goede | 678e75d | 2014-11-16 17:09:32 +0100 | [diff] [blame] | 77 | clocks = <&pll6 0>; |
Hans de Goede | e53a8b2 | 2014-11-14 16:34:36 +0100 | [diff] [blame] | 78 | status = "disabled"; |
| 79 | }; |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 80 | |
| 81 | framebuffer@1 { |
| 82 | compatible = "allwinner,simple-framebuffer", |
| 83 | "simple-framebuffer"; |
| 84 | allwinner,pipeline = "de_be0-lcd0"; |
| 85 | clocks = <&pll6 0>; |
| 86 | status = "disabled"; |
| 87 | }; |
Hans de Goede | e53a8b2 | 2014-11-14 16:34:36 +0100 | [diff] [blame] | 88 | }; |
Maxime Ripard | 54428d4 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 89 | |
Maxime Ripard | 121b96c | 2015-01-11 20:33:44 +0100 | [diff] [blame^] | 90 | timer { |
| 91 | compatible = "arm,armv7-timer"; |
| 92 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 93 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 94 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 95 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 96 | clock-frequency = <24000000>; |
| 97 | arm,cpu-registers-not-fw-configured; |
| 98 | }; |
| 99 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 100 | cpus { |
Maxime Ripard | ce78e35 | 2014-04-18 21:01:52 +0200 | [diff] [blame] | 101 | enable-method = "allwinner,sun6i-a31"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 102 | #address-cells = <1>; |
| 103 | #size-cells = <0>; |
| 104 | |
| 105 | cpu@0 { |
| 106 | compatible = "arm,cortex-a7"; |
| 107 | device_type = "cpu"; |
| 108 | reg = <0>; |
| 109 | }; |
| 110 | |
| 111 | cpu@1 { |
| 112 | compatible = "arm,cortex-a7"; |
| 113 | device_type = "cpu"; |
| 114 | reg = <1>; |
| 115 | }; |
| 116 | |
| 117 | cpu@2 { |
| 118 | compatible = "arm,cortex-a7"; |
| 119 | device_type = "cpu"; |
| 120 | reg = <2>; |
| 121 | }; |
| 122 | |
| 123 | cpu@3 { |
| 124 | compatible = "arm,cortex-a7"; |
| 125 | device_type = "cpu"; |
| 126 | reg = <3>; |
| 127 | }; |
| 128 | }; |
| 129 | |
| 130 | memory { |
| 131 | reg = <0x40000000 0x80000000>; |
| 132 | }; |
| 133 | |
Maxime Ripard | b5a10b7 | 2014-04-17 21:54:41 +0200 | [diff] [blame] | 134 | pmu { |
| 135 | compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 136 | interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, |
| 137 | <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, |
| 138 | <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, |
| 139 | <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | b5a10b7 | 2014-04-17 21:54:41 +0200 | [diff] [blame] | 140 | }; |
| 141 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 142 | clocks { |
| 143 | #address-cells = <1>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 144 | #size-cells = <1>; |
| 145 | ranges; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 146 | |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 147 | osc24M: osc24M { |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 148 | #clock-cells = <0>; |
| 149 | compatible = "fixed-clock"; |
| 150 | clock-frequency = <24000000>; |
| 151 | }; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 152 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 153 | osc32k: clk@0 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 154 | #clock-cells = <0>; |
| 155 | compatible = "fixed-clock"; |
| 156 | clock-frequency = <32768>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 157 | clock-output-names = "osc32k"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 158 | }; |
| 159 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 160 | pll1: clk@01c20000 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 161 | #clock-cells = <0>; |
| 162 | compatible = "allwinner,sun6i-a31-pll1-clk"; |
| 163 | reg = <0x01c20000 0x4>; |
| 164 | clocks = <&osc24M>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 165 | clock-output-names = "pll1"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 166 | }; |
| 167 | |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 168 | pll6: clk@01c20028 { |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 169 | #clock-cells = <1>; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 170 | compatible = "allwinner,sun6i-a31-pll6-clk"; |
| 171 | reg = <0x01c20028 0x4>; |
| 172 | clocks = <&osc24M>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 173 | clock-output-names = "pll6", "pll6x2"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 174 | }; |
| 175 | |
| 176 | cpu: cpu@01c20050 { |
| 177 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 178 | compatible = "allwinner,sun4i-a10-cpu-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 179 | reg = <0x01c20050 0x4>; |
| 180 | |
| 181 | /* |
| 182 | * PLL1 is listed twice here. |
| 183 | * While it looks suspicious, it's actually documented |
| 184 | * that way both in the datasheet and in the code from |
| 185 | * Allwinner. |
| 186 | */ |
| 187 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 188 | clock-output-names = "cpu"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 189 | }; |
| 190 | |
| 191 | axi: axi@01c20050 { |
| 192 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 193 | compatible = "allwinner,sun4i-a10-axi-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 194 | reg = <0x01c20050 0x4>; |
| 195 | clocks = <&cpu>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 196 | clock-output-names = "axi"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 197 | }; |
| 198 | |
| 199 | ahb1_mux: ahb1_mux@01c20054 { |
| 200 | #clock-cells = <0>; |
| 201 | compatible = "allwinner,sun6i-a31-ahb1-mux-clk"; |
| 202 | reg = <0x01c20054 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 203 | clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 204 | clock-output-names = "ahb1_mux"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 205 | }; |
| 206 | |
| 207 | ahb1: ahb1@01c20054 { |
| 208 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 209 | compatible = "allwinner,sun4i-a10-ahb-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 210 | reg = <0x01c20054 0x4>; |
| 211 | clocks = <&ahb1_mux>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 212 | clock-output-names = "ahb1"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 213 | }; |
| 214 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 215 | ahb1_gates: clk@01c20060 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 216 | #clock-cells = <1>; |
| 217 | compatible = "allwinner,sun6i-a31-ahb1-gates-clk"; |
| 218 | reg = <0x01c20060 0x8>; |
| 219 | clocks = <&ahb1>; |
| 220 | clock-output-names = "ahb1_mipidsi", "ahb1_ss", |
| 221 | "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1", |
| 222 | "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1", |
| 223 | "ahb1_nand0", "ahb1_sdram", |
| 224 | "ahb1_gmac", "ahb1_ts", "ahb1_hstimer", |
| 225 | "ahb1_spi0", "ahb1_spi1", "ahb1_spi2", |
| 226 | "ahb1_spi3", "ahb1_otg", "ahb1_ehci0", |
| 227 | "ahb1_ehci1", "ahb1_ohci0", |
| 228 | "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve", |
| 229 | "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi", |
| 230 | "ahb1_hdmi", "ahb1_de0", "ahb1_de1", |
| 231 | "ahb1_fe0", "ahb1_fe1", "ahb1_mp", |
| 232 | "ahb1_gpu", "ahb1_deu0", "ahb1_deu1", |
| 233 | "ahb1_drc0", "ahb1_drc1"; |
| 234 | }; |
| 235 | |
| 236 | apb1: apb1@01c20054 { |
| 237 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 238 | compatible = "allwinner,sun4i-a10-apb0-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 239 | reg = <0x01c20054 0x4>; |
| 240 | clocks = <&ahb1>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 241 | clock-output-names = "apb1"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 242 | }; |
| 243 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 244 | apb1_gates: clk@01c20068 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 245 | #clock-cells = <1>; |
| 246 | compatible = "allwinner,sun6i-a31-apb1-gates-clk"; |
| 247 | reg = <0x01c20068 0x4>; |
| 248 | clocks = <&apb1>; |
| 249 | clock-output-names = "apb1_codec", "apb1_digital_mic", |
| 250 | "apb1_pio", "apb1_daudio0", |
| 251 | "apb1_daudio1"; |
| 252 | }; |
| 253 | |
Chen-Yu Tsai | 74c947a | 2014-11-06 11:40:31 +0800 | [diff] [blame] | 254 | apb2: clk@01c20058 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 255 | #clock-cells = <0>; |
Chen-Yu Tsai | 74c947a | 2014-11-06 11:40:31 +0800 | [diff] [blame] | 256 | compatible = "allwinner,sun4i-a10-apb1-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 257 | reg = <0x01c20058 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 258 | clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 259 | clock-output-names = "apb2"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 260 | }; |
| 261 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 262 | apb2_gates: clk@01c2006c { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 263 | #clock-cells = <1>; |
| 264 | compatible = "allwinner,sun6i-a31-apb2-gates-clk"; |
Maxime Ripard | 439d9f5 | 2013-09-24 16:30:05 +0300 | [diff] [blame] | 265 | reg = <0x01c2006c 0x4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 266 | clocks = <&apb2>; |
| 267 | clock-output-names = "apb2_i2c0", "apb2_i2c1", |
| 268 | "apb2_i2c2", "apb2_i2c3", "apb2_uart0", |
| 269 | "apb2_uart1", "apb2_uart2", "apb2_uart3", |
| 270 | "apb2_uart4", "apb2_uart5"; |
| 271 | }; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 272 | |
Hans de Goede | adc54c8 | 2014-05-02 17:57:23 +0200 | [diff] [blame] | 273 | mmc0_clk: clk@01c20088 { |
| 274 | #clock-cells = <0>; |
| 275 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 276 | reg = <0x01c20088 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 277 | clocks = <&osc24M>, <&pll6 0>; |
Hans de Goede | adc54c8 | 2014-05-02 17:57:23 +0200 | [diff] [blame] | 278 | clock-output-names = "mmc0"; |
| 279 | }; |
| 280 | |
| 281 | mmc1_clk: clk@01c2008c { |
| 282 | #clock-cells = <0>; |
| 283 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 284 | reg = <0x01c2008c 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 285 | clocks = <&osc24M>, <&pll6 0>; |
Hans de Goede | adc54c8 | 2014-05-02 17:57:23 +0200 | [diff] [blame] | 286 | clock-output-names = "mmc1"; |
| 287 | }; |
| 288 | |
| 289 | mmc2_clk: clk@01c20090 { |
| 290 | #clock-cells = <0>; |
| 291 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 292 | reg = <0x01c20090 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 293 | clocks = <&osc24M>, <&pll6 0>; |
Hans de Goede | adc54c8 | 2014-05-02 17:57:23 +0200 | [diff] [blame] | 294 | clock-output-names = "mmc2"; |
| 295 | }; |
| 296 | |
| 297 | mmc3_clk: clk@01c20094 { |
| 298 | #clock-cells = <0>; |
| 299 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 300 | reg = <0x01c20094 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 301 | clocks = <&osc24M>, <&pll6 0>; |
Hans de Goede | adc54c8 | 2014-05-02 17:57:23 +0200 | [diff] [blame] | 302 | clock-output-names = "mmc3"; |
| 303 | }; |
| 304 | |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 305 | spi0_clk: clk@01c200a0 { |
| 306 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 307 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 308 | reg = <0x01c200a0 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 309 | clocks = <&osc24M>, <&pll6 0>; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 310 | clock-output-names = "spi0"; |
| 311 | }; |
| 312 | |
| 313 | spi1_clk: clk@01c200a4 { |
| 314 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 315 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 316 | reg = <0x01c200a4 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 317 | clocks = <&osc24M>, <&pll6 0>; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 318 | clock-output-names = "spi1"; |
| 319 | }; |
| 320 | |
| 321 | spi2_clk: clk@01c200a8 { |
| 322 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 323 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 324 | reg = <0x01c200a8 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 325 | clocks = <&osc24M>, <&pll6 0>; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 326 | clock-output-names = "spi2"; |
| 327 | }; |
| 328 | |
| 329 | spi3_clk: clk@01c200ac { |
| 330 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 331 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 332 | reg = <0x01c200ac 0x4>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 333 | clocks = <&osc24M>, <&pll6 0>; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 334 | clock-output-names = "spi3"; |
| 335 | }; |
Maxime Ripard | 94a1cd1 | 2014-05-13 17:44:16 +0200 | [diff] [blame] | 336 | |
| 337 | usb_clk: clk@01c200cc { |
| 338 | #clock-cells = <1>; |
| 339 | #reset-cells = <1>; |
| 340 | compatible = "allwinner,sun6i-a31-usb-clk"; |
| 341 | reg = <0x01c200cc 0x4>; |
| 342 | clocks = <&osc24M>; |
| 343 | clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2", |
| 344 | "usb_ohci0", "usb_ohci1", |
| 345 | "usb_ohci2"; |
| 346 | }; |
Chen-Yu Tsai | ed29861 | 2014-07-16 01:15:44 +0800 | [diff] [blame] | 347 | |
| 348 | /* |
| 349 | * The following two are dummy clocks, placeholders used in the gmac_tx |
| 350 | * clock. The gmac driver will choose one parent depending on the PHY |
| 351 | * interface mode, using clk_set_rate auto-reparenting. |
| 352 | * The actual TX clock rate is not controlled by the gmac_tx clock. |
| 353 | */ |
| 354 | mii_phy_tx_clk: clk@1 { |
| 355 | #clock-cells = <0>; |
| 356 | compatible = "fixed-clock"; |
| 357 | clock-frequency = <25000000>; |
| 358 | clock-output-names = "mii_phy_tx"; |
| 359 | }; |
| 360 | |
| 361 | gmac_int_tx_clk: clk@2 { |
| 362 | #clock-cells = <0>; |
| 363 | compatible = "fixed-clock"; |
| 364 | clock-frequency = <125000000>; |
| 365 | clock-output-names = "gmac_int_tx"; |
| 366 | }; |
| 367 | |
| 368 | gmac_tx_clk: clk@01c200d0 { |
| 369 | #clock-cells = <0>; |
| 370 | compatible = "allwinner,sun7i-a20-gmac-clk"; |
| 371 | reg = <0x01c200d0 0x4>; |
| 372 | clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>; |
| 373 | clock-output-names = "gmac_tx"; |
| 374 | }; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 375 | }; |
| 376 | |
| 377 | soc@01c00000 { |
| 378 | compatible = "simple-bus"; |
| 379 | #address-cells = <1>; |
| 380 | #size-cells = <1>; |
| 381 | ranges; |
| 382 | |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 383 | dma: dma-controller@01c02000 { |
| 384 | compatible = "allwinner,sun6i-a31-dma"; |
| 385 | reg = <0x01c02000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 386 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 387 | clocks = <&ahb1_gates 6>; |
| 388 | resets = <&ahb1_rst 6>; |
| 389 | #dma-cells = <1>; |
Chen-Yu Tsai | 532425a | 2014-11-06 19:56:49 +0800 | [diff] [blame] | 390 | |
| 391 | /* DMA controller requires AHB1 clocked from PLL6 */ |
| 392 | assigned-clocks = <&ahb1_mux>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 393 | assigned-clock-parents = <&pll6 0>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 394 | }; |
| 395 | |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 396 | mmc0: mmc@01c0f000 { |
| 397 | compatible = "allwinner,sun5i-a13-mmc"; |
| 398 | reg = <0x01c0f000 0x1000>; |
| 399 | clocks = <&ahb1_gates 8>, <&mmc0_clk>; |
| 400 | clock-names = "ahb", "mmc"; |
| 401 | resets = <&ahb1_rst 8>; |
| 402 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 403 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 404 | status = "disabled"; |
| 405 | }; |
| 406 | |
| 407 | mmc1: mmc@01c10000 { |
| 408 | compatible = "allwinner,sun5i-a13-mmc"; |
| 409 | reg = <0x01c10000 0x1000>; |
| 410 | clocks = <&ahb1_gates 9>, <&mmc1_clk>; |
| 411 | clock-names = "ahb", "mmc"; |
| 412 | resets = <&ahb1_rst 9>; |
| 413 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 414 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 415 | status = "disabled"; |
| 416 | }; |
| 417 | |
| 418 | mmc2: mmc@01c11000 { |
| 419 | compatible = "allwinner,sun5i-a13-mmc"; |
| 420 | reg = <0x01c11000 0x1000>; |
| 421 | clocks = <&ahb1_gates 10>, <&mmc2_clk>; |
| 422 | clock-names = "ahb", "mmc"; |
| 423 | resets = <&ahb1_rst 10>; |
| 424 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 425 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 426 | status = "disabled"; |
| 427 | }; |
| 428 | |
| 429 | mmc3: mmc@01c12000 { |
| 430 | compatible = "allwinner,sun5i-a13-mmc"; |
| 431 | reg = <0x01c12000 0x1000>; |
| 432 | clocks = <&ahb1_gates 11>, <&mmc3_clk>; |
| 433 | clock-names = "ahb", "mmc"; |
| 434 | resets = <&ahb1_rst 11>; |
| 435 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 436 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 437 | status = "disabled"; |
| 438 | }; |
| 439 | |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 440 | usbphy: phy@01c19400 { |
| 441 | compatible = "allwinner,sun6i-a31-usb-phy"; |
| 442 | reg = <0x01c19400 0x10>, |
| 443 | <0x01c1a800 0x4>, |
| 444 | <0x01c1b800 0x4>; |
| 445 | reg-names = "phy_ctrl", |
| 446 | "pmu1", |
| 447 | "pmu2"; |
| 448 | clocks = <&usb_clk 8>, |
| 449 | <&usb_clk 9>, |
| 450 | <&usb_clk 10>; |
| 451 | clock-names = "usb0_phy", |
| 452 | "usb1_phy", |
| 453 | "usb2_phy"; |
| 454 | resets = <&usb_clk 0>, |
| 455 | <&usb_clk 1>, |
| 456 | <&usb_clk 2>; |
| 457 | reset-names = "usb0_reset", |
| 458 | "usb1_reset", |
| 459 | "usb2_reset"; |
| 460 | status = "disabled"; |
| 461 | #phy-cells = <1>; |
| 462 | }; |
| 463 | |
| 464 | ehci0: usb@01c1a000 { |
| 465 | compatible = "allwinner,sun6i-a31-ehci", "generic-ehci"; |
| 466 | reg = <0x01c1a000 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 467 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 468 | clocks = <&ahb1_gates 26>; |
| 469 | resets = <&ahb1_rst 26>; |
| 470 | phys = <&usbphy 1>; |
| 471 | phy-names = "usb"; |
| 472 | status = "disabled"; |
| 473 | }; |
| 474 | |
| 475 | ohci0: usb@01c1a400 { |
| 476 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 477 | reg = <0x01c1a400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 478 | interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 479 | clocks = <&ahb1_gates 29>, <&usb_clk 16>; |
| 480 | resets = <&ahb1_rst 29>; |
| 481 | phys = <&usbphy 1>; |
| 482 | phy-names = "usb"; |
| 483 | status = "disabled"; |
| 484 | }; |
| 485 | |
| 486 | ehci1: usb@01c1b000 { |
| 487 | compatible = "allwinner,sun6i-a31-ehci", "generic-ehci"; |
| 488 | reg = <0x01c1b000 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 489 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 490 | clocks = <&ahb1_gates 27>; |
| 491 | resets = <&ahb1_rst 27>; |
| 492 | phys = <&usbphy 2>; |
| 493 | phy-names = "usb"; |
| 494 | status = "disabled"; |
| 495 | }; |
| 496 | |
| 497 | ohci1: usb@01c1b400 { |
| 498 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 499 | reg = <0x01c1b400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 500 | interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 501 | clocks = <&ahb1_gates 30>, <&usb_clk 17>; |
| 502 | resets = <&ahb1_rst 30>; |
| 503 | phys = <&usbphy 2>; |
| 504 | phy-names = "usb"; |
| 505 | status = "disabled"; |
| 506 | }; |
| 507 | |
Maxime Ripard | b294ebb | 2014-05-20 13:59:58 +0200 | [diff] [blame] | 508 | ohci2: usb@01c1c400 { |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 509 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 510 | reg = <0x01c1c400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 511 | interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 512 | clocks = <&ahb1_gates 31>, <&usb_clk 18>; |
| 513 | resets = <&ahb1_rst 31>; |
| 514 | status = "disabled"; |
| 515 | }; |
| 516 | |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 517 | pio: pinctrl@01c20800 { |
| 518 | compatible = "allwinner,sun6i-a31-pinctrl"; |
| 519 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 520 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 521 | <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, |
| 522 | <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>, |
| 523 | <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 524 | clocks = <&apb1_gates 5>; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 525 | gpio-controller; |
| 526 | interrupt-controller; |
Chen-Yu Tsai | 7d4ff96 | 2014-06-30 23:57:51 +0200 | [diff] [blame] | 527 | #interrupt-cells = <2>; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 528 | #size-cells = <0>; |
| 529 | #gpio-cells = <3>; |
Maxime Ripard | ab4238c | 2013-06-22 23:56:40 +0200 | [diff] [blame] | 530 | |
| 531 | uart0_pins_a: uart0@0 { |
| 532 | allwinner,pins = "PH20", "PH21"; |
| 533 | allwinner,function = "uart0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 534 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 535 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | ab4238c | 2013-06-22 23:56:40 +0200 | [diff] [blame] | 536 | }; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 537 | |
| 538 | i2c0_pins_a: i2c0@0 { |
| 539 | allwinner,pins = "PH14", "PH15"; |
| 540 | allwinner,function = "i2c0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 541 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 542 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 543 | }; |
| 544 | |
| 545 | i2c1_pins_a: i2c1@0 { |
| 546 | allwinner,pins = "PH16", "PH17"; |
| 547 | allwinner,function = "i2c1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 548 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 549 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 550 | }; |
| 551 | |
| 552 | i2c2_pins_a: i2c2@0 { |
| 553 | allwinner,pins = "PH18", "PH19"; |
| 554 | allwinner,function = "i2c2"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 555 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 556 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 557 | }; |
Hans de Goede | 9797eb8 | 2014-04-26 12:16:16 +0200 | [diff] [blame] | 558 | |
| 559 | mmc0_pins_a: mmc0@0 { |
| 560 | allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5"; |
| 561 | allwinner,function = "mmc0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 562 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 563 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Hans de Goede | 9797eb8 | 2014-04-26 12:16:16 +0200 | [diff] [blame] | 564 | }; |
Chen-Yu Tsai | ee39a3e | 2014-07-16 01:15:43 +0800 | [diff] [blame] | 565 | |
| 566 | gmac_pins_mii_a: gmac_mii@0 { |
| 567 | allwinner,pins = "PA0", "PA1", "PA2", "PA3", |
| 568 | "PA8", "PA9", "PA11", |
| 569 | "PA12", "PA13", "PA14", "PA19", |
| 570 | "PA20", "PA21", "PA22", "PA23", |
| 571 | "PA24", "PA26", "PA27"; |
| 572 | allwinner,function = "gmac"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 573 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 574 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | ee39a3e | 2014-07-16 01:15:43 +0800 | [diff] [blame] | 575 | }; |
| 576 | |
| 577 | gmac_pins_gmii_a: gmac_gmii@0 { |
| 578 | allwinner,pins = "PA0", "PA1", "PA2", "PA3", |
| 579 | "PA4", "PA5", "PA6", "PA7", |
| 580 | "PA8", "PA9", "PA10", "PA11", |
| 581 | "PA12", "PA13", "PA14", "PA15", |
| 582 | "PA16", "PA17", "PA18", "PA19", |
| 583 | "PA20", "PA21", "PA22", "PA23", |
| 584 | "PA24", "PA25", "PA26", "PA27"; |
| 585 | allwinner,function = "gmac"; |
| 586 | /* |
| 587 | * data lines in GMII mode run at 125MHz and |
| 588 | * might need a higher signal drive strength |
| 589 | */ |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 590 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 591 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | ee39a3e | 2014-07-16 01:15:43 +0800 | [diff] [blame] | 592 | }; |
| 593 | |
| 594 | gmac_pins_rgmii_a: gmac_rgmii@0 { |
| 595 | allwinner,pins = "PA0", "PA1", "PA2", "PA3", |
| 596 | "PA9", "PA10", "PA11", |
| 597 | "PA12", "PA13", "PA14", "PA19", |
| 598 | "PA20", "PA25", "PA26", "PA27"; |
| 599 | allwinner,function = "gmac"; |
| 600 | /* |
| 601 | * data lines in RGMII mode use DDR mode |
| 602 | * and need a higher signal drive strength |
| 603 | */ |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 604 | allwinner,drive = <SUN4I_PINCTRL_40_MA>; |
| 605 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | ee39a3e | 2014-07-16 01:15:43 +0800 | [diff] [blame] | 606 | }; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 607 | }; |
| 608 | |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 609 | ahb1_rst: reset@01c202c0 { |
| 610 | #reset-cells = <1>; |
| 611 | compatible = "allwinner,sun6i-a31-ahb1-reset"; |
| 612 | reg = <0x01c202c0 0xc>; |
| 613 | }; |
| 614 | |
| 615 | apb1_rst: reset@01c202d0 { |
| 616 | #reset-cells = <1>; |
| 617 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 618 | reg = <0x01c202d0 0x4>; |
| 619 | }; |
| 620 | |
| 621 | apb2_rst: reset@01c202d8 { |
| 622 | #reset-cells = <1>; |
| 623 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 624 | reg = <0x01c202d8 0x4>; |
| 625 | }; |
| 626 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 627 | timer@01c20c00 { |
Maxime Ripard | b4f2644 | 2014-02-06 10:40:32 +0100 | [diff] [blame] | 628 | compatible = "allwinner,sun4i-a10-timer"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 629 | reg = <0x01c20c00 0xa0>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 630 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, |
| 631 | <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, |
| 632 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>, |
| 633 | <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>, |
| 634 | <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 635 | clocks = <&osc24M>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 636 | }; |
| 637 | |
| 638 | wdt1: watchdog@01c20ca0 { |
Maxime Ripard | ca5d04d | 2014-02-07 22:29:26 +0100 | [diff] [blame] | 639 | compatible = "allwinner,sun6i-a31-wdt"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 640 | reg = <0x01c20ca0 0x20>; |
| 641 | }; |
| 642 | |
| 643 | uart0: serial@01c28000 { |
| 644 | compatible = "snps,dw-apb-uart"; |
| 645 | reg = <0x01c28000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 646 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 647 | reg-shift = <2>; |
| 648 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 649 | clocks = <&apb2_gates 16>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 650 | resets = <&apb2_rst 16>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 651 | dmas = <&dma 6>, <&dma 6>; |
| 652 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 653 | status = "disabled"; |
| 654 | }; |
| 655 | |
| 656 | uart1: serial@01c28400 { |
| 657 | compatible = "snps,dw-apb-uart"; |
| 658 | reg = <0x01c28400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 659 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 660 | reg-shift = <2>; |
| 661 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 662 | clocks = <&apb2_gates 17>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 663 | resets = <&apb2_rst 17>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 664 | dmas = <&dma 7>, <&dma 7>; |
| 665 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 666 | status = "disabled"; |
| 667 | }; |
| 668 | |
| 669 | uart2: serial@01c28800 { |
| 670 | compatible = "snps,dw-apb-uart"; |
| 671 | reg = <0x01c28800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 672 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 673 | reg-shift = <2>; |
| 674 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 675 | clocks = <&apb2_gates 18>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 676 | resets = <&apb2_rst 18>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 677 | dmas = <&dma 8>, <&dma 8>; |
| 678 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 679 | status = "disabled"; |
| 680 | }; |
| 681 | |
| 682 | uart3: serial@01c28c00 { |
| 683 | compatible = "snps,dw-apb-uart"; |
| 684 | reg = <0x01c28c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 685 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 686 | reg-shift = <2>; |
| 687 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 688 | clocks = <&apb2_gates 19>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 689 | resets = <&apb2_rst 19>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 690 | dmas = <&dma 9>, <&dma 9>; |
| 691 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 692 | status = "disabled"; |
| 693 | }; |
| 694 | |
| 695 | uart4: serial@01c29000 { |
| 696 | compatible = "snps,dw-apb-uart"; |
| 697 | reg = <0x01c29000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 698 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 699 | reg-shift = <2>; |
| 700 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 701 | clocks = <&apb2_gates 20>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 702 | resets = <&apb2_rst 20>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 703 | dmas = <&dma 10>, <&dma 10>; |
| 704 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 705 | status = "disabled"; |
| 706 | }; |
| 707 | |
| 708 | uart5: serial@01c29400 { |
| 709 | compatible = "snps,dw-apb-uart"; |
| 710 | reg = <0x01c29400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 711 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 712 | reg-shift = <2>; |
| 713 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 714 | clocks = <&apb2_gates 21>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 715 | resets = <&apb2_rst 21>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 716 | dmas = <&dma 22>, <&dma 22>; |
| 717 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 718 | status = "disabled"; |
| 719 | }; |
| 720 | |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 721 | i2c0: i2c@01c2ac00 { |
| 722 | compatible = "allwinner,sun6i-a31-i2c"; |
| 723 | reg = <0x01c2ac00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 724 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 725 | clocks = <&apb2_gates 0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 726 | resets = <&apb2_rst 0>; |
| 727 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 728 | #address-cells = <1>; |
| 729 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 730 | }; |
| 731 | |
| 732 | i2c1: i2c@01c2b000 { |
| 733 | compatible = "allwinner,sun6i-a31-i2c"; |
| 734 | reg = <0x01c2b000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 735 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 736 | clocks = <&apb2_gates 1>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 737 | resets = <&apb2_rst 1>; |
| 738 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 739 | #address-cells = <1>; |
| 740 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 741 | }; |
| 742 | |
| 743 | i2c2: i2c@01c2b400 { |
| 744 | compatible = "allwinner,sun6i-a31-i2c"; |
| 745 | reg = <0x01c2b400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 746 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 747 | clocks = <&apb2_gates 2>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 748 | resets = <&apb2_rst 2>; |
| 749 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 750 | #address-cells = <1>; |
| 751 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 752 | }; |
| 753 | |
| 754 | i2c3: i2c@01c2b800 { |
| 755 | compatible = "allwinner,sun6i-a31-i2c"; |
| 756 | reg = <0x01c2b800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 757 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 758 | clocks = <&apb2_gates 3>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 759 | resets = <&apb2_rst 3>; |
| 760 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 761 | #address-cells = <1>; |
| 762 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 763 | }; |
| 764 | |
Chen-Yu Tsai | 3dca65f | 2014-07-16 01:15:45 +0800 | [diff] [blame] | 765 | gmac: ethernet@01c30000 { |
| 766 | compatible = "allwinner,sun7i-a20-gmac"; |
| 767 | reg = <0x01c30000 0x1054>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 768 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 3dca65f | 2014-07-16 01:15:45 +0800 | [diff] [blame] | 769 | interrupt-names = "macirq"; |
| 770 | clocks = <&ahb1_gates 17>, <&gmac_tx_clk>; |
| 771 | clock-names = "stmmaceth", "allwinner_gmac_tx"; |
| 772 | resets = <&ahb1_rst 17>; |
| 773 | reset-names = "stmmaceth"; |
| 774 | snps,pbl = <2>; |
| 775 | snps,fixed-burst; |
| 776 | snps,force_sf_dma_mode; |
| 777 | status = "disabled"; |
| 778 | #address-cells = <1>; |
| 779 | #size-cells = <0>; |
| 780 | }; |
| 781 | |
Maxime Ripard | 8cffcb0 | 2014-04-17 11:06:46 +0200 | [diff] [blame] | 782 | timer@01c60000 { |
| 783 | compatible = "allwinner,sun6i-a31-hstimer", "allwinner,sun7i-a20-hstimer"; |
| 784 | reg = <0x01c60000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 785 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, |
| 786 | <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, |
| 787 | <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 788 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8cffcb0 | 2014-04-17 11:06:46 +0200 | [diff] [blame] | 789 | clocks = <&ahb1_gates 19>; |
| 790 | resets = <&ahb1_rst 19>; |
| 791 | }; |
| 792 | |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 793 | spi0: spi@01c68000 { |
| 794 | compatible = "allwinner,sun6i-a31-spi"; |
| 795 | reg = <0x01c68000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 796 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 797 | clocks = <&ahb1_gates 20>, <&spi0_clk>; |
| 798 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 799 | dmas = <&dma 23>, <&dma 23>; |
| 800 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 801 | resets = <&ahb1_rst 20>; |
| 802 | status = "disabled"; |
| 803 | }; |
| 804 | |
| 805 | spi1: spi@01c69000 { |
| 806 | compatible = "allwinner,sun6i-a31-spi"; |
| 807 | reg = <0x01c69000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 808 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 809 | clocks = <&ahb1_gates 21>, <&spi1_clk>; |
| 810 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 811 | dmas = <&dma 24>, <&dma 24>; |
| 812 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 813 | resets = <&ahb1_rst 21>; |
| 814 | status = "disabled"; |
| 815 | }; |
| 816 | |
| 817 | spi2: spi@01c6a000 { |
| 818 | compatible = "allwinner,sun6i-a31-spi"; |
| 819 | reg = <0x01c6a000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 820 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 821 | clocks = <&ahb1_gates 22>, <&spi2_clk>; |
| 822 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 823 | dmas = <&dma 25>, <&dma 25>; |
| 824 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 825 | resets = <&ahb1_rst 22>; |
| 826 | status = "disabled"; |
| 827 | }; |
| 828 | |
| 829 | spi3: spi@01c6b000 { |
| 830 | compatible = "allwinner,sun6i-a31-spi"; |
| 831 | reg = <0x01c6b000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 832 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 833 | clocks = <&ahb1_gates 23>, <&spi3_clk>; |
| 834 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 835 | dmas = <&dma 26>, <&dma 26>; |
| 836 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 837 | resets = <&ahb1_rst 23>; |
| 838 | status = "disabled"; |
| 839 | }; |
| 840 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 841 | gic: interrupt-controller@01c81000 { |
| 842 | compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
| 843 | reg = <0x01c81000 0x1000>, |
| 844 | <0x01c82000 0x1000>, |
| 845 | <0x01c84000 0x2000>, |
| 846 | <0x01c86000 0x2000>; |
| 847 | interrupt-controller; |
| 848 | #interrupt-cells = <3>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 849 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 850 | }; |
Maxime Ripard | 81ee429 | 2013-11-03 10:30:12 +0100 | [diff] [blame] | 851 | |
Chen-Yu Tsai | 5e70043 | 2014-07-30 20:56:06 +0800 | [diff] [blame] | 852 | rtc: rtc@01f00000 { |
| 853 | compatible = "allwinner,sun6i-a31-rtc"; |
| 854 | reg = <0x01f00000 0x54>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 855 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, |
| 856 | <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 5e70043 | 2014-07-30 20:56:06 +0800 | [diff] [blame] | 857 | }; |
| 858 | |
Maxime Ripard | 28240d2 | 2014-04-17 10:29:35 +0200 | [diff] [blame] | 859 | nmi_intc: interrupt-controller@01f00c0c { |
| 860 | compatible = "allwinner,sun6i-a31-sc-nmi"; |
| 861 | interrupt-controller; |
| 862 | #interrupt-cells = <2>; |
| 863 | reg = <0x01f00c0c 0x38>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 864 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 28240d2 | 2014-04-17 10:29:35 +0200 | [diff] [blame] | 865 | }; |
| 866 | |
Hans de Goede | a42ea60 | 2014-04-13 13:41:02 +0200 | [diff] [blame] | 867 | prcm@01f01400 { |
| 868 | compatible = "allwinner,sun6i-a31-prcm"; |
| 869 | reg = <0x01f01400 0x200>; |
Boris BREZILLON | cc08f5e | 2014-05-14 14:38:21 +0200 | [diff] [blame] | 870 | |
| 871 | ar100: ar100_clk { |
| 872 | compatible = "allwinner,sun6i-a31-ar100-clk"; |
| 873 | #clock-cells = <0>; |
Chen-Yu Tsai | f6c3b04 | 2014-11-13 02:08:32 +0800 | [diff] [blame] | 874 | clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>; |
Boris BREZILLON | cc08f5e | 2014-05-14 14:38:21 +0200 | [diff] [blame] | 875 | clock-output-names = "ar100"; |
| 876 | }; |
| 877 | |
| 878 | ahb0: ahb0_clk { |
| 879 | compatible = "fixed-factor-clock"; |
| 880 | #clock-cells = <0>; |
| 881 | clock-div = <1>; |
| 882 | clock-mult = <1>; |
| 883 | clocks = <&ar100>; |
| 884 | clock-output-names = "ahb0"; |
| 885 | }; |
| 886 | |
| 887 | apb0: apb0_clk { |
| 888 | compatible = "allwinner,sun6i-a31-apb0-clk"; |
| 889 | #clock-cells = <0>; |
| 890 | clocks = <&ahb0>; |
| 891 | clock-output-names = "apb0"; |
| 892 | }; |
| 893 | |
| 894 | apb0_gates: apb0_gates_clk { |
| 895 | compatible = "allwinner,sun6i-a31-apb0-gates-clk"; |
| 896 | #clock-cells = <1>; |
| 897 | clocks = <&apb0>; |
| 898 | clock-output-names = "apb0_pio", "apb0_ir", |
| 899 | "apb0_timer", "apb0_p2wi", |
| 900 | "apb0_uart", "apb0_1wire", |
| 901 | "apb0_i2c"; |
| 902 | }; |
| 903 | |
Hans de Goede | 9b5c6e0 | 2014-12-17 18:18:19 +0100 | [diff] [blame] | 904 | ir_clk: ir_clk { |
| 905 | #clock-cells = <0>; |
| 906 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 907 | clocks = <&osc32k>, <&osc24M>; |
| 908 | clock-output-names = "ir"; |
| 909 | }; |
| 910 | |
Boris BREZILLON | cc08f5e | 2014-05-14 14:38:21 +0200 | [diff] [blame] | 911 | apb0_rst: apb0_rst { |
| 912 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 913 | #reset-cells = <1>; |
| 914 | }; |
Hans de Goede | a42ea60 | 2014-04-13 13:41:02 +0200 | [diff] [blame] | 915 | }; |
| 916 | |
Maxime Ripard | 81ee429 | 2013-11-03 10:30:12 +0100 | [diff] [blame] | 917 | cpucfg@01f01c00 { |
| 918 | compatible = "allwinner,sun6i-a31-cpuconfig"; |
| 919 | reg = <0x01f01c00 0x300>; |
| 920 | }; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 921 | |
Hans de Goede | 4ac367b | 2014-12-29 12:09:24 +0100 | [diff] [blame] | 922 | ir: ir@01f02000 { |
| 923 | compatible = "allwinner,sun5i-a13-ir"; |
| 924 | clocks = <&apb0_gates 1>, <&ir_clk>; |
| 925 | clock-names = "apb", "ir"; |
| 926 | resets = <&apb0_rst 1>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 927 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 4ac367b | 2014-12-29 12:09:24 +0100 | [diff] [blame] | 928 | reg = <0x01f02000 0x40>; |
| 929 | status = "disabled"; |
| 930 | }; |
| 931 | |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 932 | r_pio: pinctrl@01f02c00 { |
| 933 | compatible = "allwinner,sun6i-a31-r-pinctrl"; |
| 934 | reg = <0x01f02c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 935 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, |
| 936 | <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 937 | clocks = <&apb0_gates 0>; |
| 938 | resets = <&apb0_rst 0>; |
| 939 | gpio-controller; |
| 940 | interrupt-controller; |
Chen-Yu Tsai | 7d4ff96 | 2014-06-30 23:57:51 +0200 | [diff] [blame] | 941 | #interrupt-cells = <2>; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 942 | #size-cells = <0>; |
| 943 | #gpio-cells = <3>; |
Hans de Goede | dbbcd88 | 2014-11-23 14:38:14 +0100 | [diff] [blame] | 944 | |
| 945 | ir_pins_a: ir@0 { |
| 946 | allwinner,pins = "PL4"; |
| 947 | allwinner,function = "s_ir"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 948 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 949 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Hans de Goede | dbbcd88 | 2014-11-23 14:38:14 +0100 | [diff] [blame] | 950 | }; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 951 | }; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 952 | }; |
| 953 | }; |