blob: d9d31fa3f5073022a2a9b89c7729fb2bf6714fc8 [file] [log] [blame]
Hans de Goeded6e6d4b2015-11-20 16:03:56 +01001/*
2 * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
41 */
42
43#include "skeleton.dtsi"
44
Hans de Goede860fbdd2016-08-18 20:51:12 +020045#include <dt-bindings/clock/sun8i-h3-ccu.h>
Hans de Goeded6e6d4b2015-11-20 16:03:56 +010046#include <dt-bindings/interrupt-controller/arm-gic.h>
47#include <dt-bindings/pinctrl/sun4i-a10.h>
Hans de Goede860fbdd2016-08-18 20:51:12 +020048#include <dt-bindings/reset/sun8i-h3-ccu.h>
Hans de Goeded6e6d4b2015-11-20 16:03:56 +010049
50/ {
51 interrupt-parent = <&gic>;
52
Chen-Yu Tsai6d7b22a2016-07-22 18:16:08 +080053 aliases {
Hans de Goede860fbdd2016-08-18 20:51:12 +020054 ethernet0 = &emac;
Chen-Yu Tsai6d7b22a2016-07-22 18:16:08 +080055 };
56
Hans de Goeded6e6d4b2015-11-20 16:03:56 +010057 cpus {
58 #address-cells = <1>;
59 #size-cells = <0>;
60
61 cpu@0 {
62 compatible = "arm,cortex-a7";
63 device_type = "cpu";
64 reg = <0>;
65 };
66
67 cpu@1 {
68 compatible = "arm,cortex-a7";
69 device_type = "cpu";
70 reg = <1>;
71 };
72
73 cpu@2 {
74 compatible = "arm,cortex-a7";
75 device_type = "cpu";
76 reg = <2>;
77 };
78
79 cpu@3 {
80 compatible = "arm,cortex-a7";
81 device_type = "cpu";
82 reg = <3>;
83 };
84 };
85
86 timer {
87 compatible = "arm,armv7-timer";
88 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
89 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
90 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +010092 };
93
94 clocks {
95 #address-cells = <1>;
96 #size-cells = <1>;
97 ranges;
98
99 osc24M: osc24M_clk {
100 #clock-cells = <0>;
101 compatible = "fixed-clock";
102 clock-frequency = <24000000>;
103 clock-output-names = "osc24M";
104 };
105
106 osc32k: osc32k_clk {
107 #clock-cells = <0>;
108 compatible = "fixed-clock";
109 clock-frequency = <32768>;
110 clock-output-names = "osc32k";
111 };
112
Hans de Goede80e5f832016-03-14 17:37:09 +0100113 apb0: apb0_clk {
114 compatible = "fixed-factor-clock";
115 #clock-cells = <0>;
116 clock-div = <1>;
117 clock-mult = <1>;
118 clocks = <&osc24M>;
119 clock-output-names = "apb0";
120 };
121
122 apb0_gates: clk@01f01428 {
123 compatible = "allwinner,sun8i-h3-apb0-gates-clk",
124 "allwinner,sun4i-a10-gates-clk";
125 reg = <0x01f01428 0x4>;
126 #clock-cells = <1>;
127 clocks = <&apb0>;
128 clock-indices = <0>, <1>;
129 clock-output-names = "apb0_pio", "apb0_ir";
130 };
131
132 ir_clk: ir_clk@01f01454 {
133 compatible = "allwinner,sun4i-a10-mod0-clk";
134 reg = <0x01f01454 0x4>;
135 #clock-cells = <0>;
136 clocks = <&osc32k>, <&osc24M>;
137 clock-output-names = "ir";
138 };
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100139 };
140
141 soc {
142 compatible = "simple-bus";
143 #address-cells = <1>;
144 #size-cells = <1>;
145 ranges;
146
Andre Przywarae88d2a52018-04-04 01:31:18 +0100147 syscon: syscon@1c00000 {
148 compatible = "allwinner,sun8i-h3-system-controller",
149 "syscon";
150 reg = <0x01c00000 0x1000>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200151 };
152
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100153 dma: dma-controller@01c02000 {
154 compatible = "allwinner,sun8i-h3-dma";
155 reg = <0x01c02000 0x1000>;
156 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200157 clocks = <&ccu CLK_BUS_DMA>;
158 resets = <&ccu RST_BUS_DMA>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100159 #dma-cells = <1>;
160 };
161
162 mmc0: mmc@01c0f000 {
Hans de Goede860fbdd2016-08-18 20:51:12 +0200163 compatible = "allwinner,sun7i-a20-mmc",
164 "allwinner,sun5i-a13-mmc";
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100165 reg = <0x01c0f000 0x1000>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200166 clocks = <&ccu CLK_BUS_MMC0>,
167 <&ccu CLK_MMC0>,
168 <&ccu CLK_MMC0_OUTPUT>,
169 <&ccu CLK_MMC0_SAMPLE>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100170 clock-names = "ahb",
171 "mmc",
172 "output",
173 "sample";
Hans de Goede860fbdd2016-08-18 20:51:12 +0200174 resets = <&ccu RST_BUS_MMC0>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100175 reset-names = "ahb";
176 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
177 status = "disabled";
178 #address-cells = <1>;
179 #size-cells = <0>;
180 };
181
182 mmc1: mmc@01c10000 {
Hans de Goede860fbdd2016-08-18 20:51:12 +0200183 compatible = "allwinner,sun7i-a20-mmc",
184 "allwinner,sun5i-a13-mmc";
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100185 reg = <0x01c10000 0x1000>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200186 clocks = <&ccu CLK_BUS_MMC1>,
187 <&ccu CLK_MMC1>,
188 <&ccu CLK_MMC1_OUTPUT>,
189 <&ccu CLK_MMC1_SAMPLE>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100190 clock-names = "ahb",
191 "mmc",
192 "output",
193 "sample";
Hans de Goede860fbdd2016-08-18 20:51:12 +0200194 resets = <&ccu RST_BUS_MMC1>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100195 reset-names = "ahb";
196 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
197 status = "disabled";
198 #address-cells = <1>;
199 #size-cells = <0>;
200 };
201
202 mmc2: mmc@01c11000 {
Hans de Goede860fbdd2016-08-18 20:51:12 +0200203 compatible = "allwinner,sun7i-a20-mmc",
204 "allwinner,sun5i-a13-mmc";
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100205 reg = <0x01c11000 0x1000>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200206 clocks = <&ccu CLK_BUS_MMC2>,
207 <&ccu CLK_MMC2>,
208 <&ccu CLK_MMC2_OUTPUT>,
209 <&ccu CLK_MMC2_SAMPLE>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100210 clock-names = "ahb",
211 "mmc",
212 "output",
213 "sample";
Hans de Goede860fbdd2016-08-18 20:51:12 +0200214 resets = <&ccu RST_BUS_MMC2>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100215 reset-names = "ahb";
216 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
217 status = "disabled";
218 #address-cells = <1>;
219 #size-cells = <0>;
220 };
221
222 usbphy: phy@01c19400 {
223 compatible = "allwinner,sun8i-h3-usb-phy";
224 reg = <0x01c19400 0x2c>,
225 <0x01c1a800 0x4>,
226 <0x01c1b800 0x4>,
227 <0x01c1c800 0x4>,
228 <0x01c1d800 0x4>;
229 reg-names = "phy_ctrl",
230 "pmu0",
231 "pmu1",
232 "pmu2",
233 "pmu3";
Hans de Goede860fbdd2016-08-18 20:51:12 +0200234 clocks = <&ccu CLK_USB_PHY0>,
235 <&ccu CLK_USB_PHY1>,
236 <&ccu CLK_USB_PHY2>,
237 <&ccu CLK_USB_PHY3>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100238 clock-names = "usb0_phy",
239 "usb1_phy",
240 "usb2_phy",
241 "usb3_phy";
Hans de Goede860fbdd2016-08-18 20:51:12 +0200242 resets = <&ccu RST_USB_PHY0>,
243 <&ccu RST_USB_PHY1>,
244 <&ccu RST_USB_PHY2>,
245 <&ccu RST_USB_PHY3>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100246 reset-names = "usb0_reset",
247 "usb1_reset",
248 "usb2_reset",
249 "usb3_reset";
250 status = "disabled";
251 #phy-cells = <1>;
252 };
253
254 ehci1: usb@01c1b000 {
255 compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
256 reg = <0x01c1b000 0x100>;
257 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200258 clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>;
259 resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100260 phys = <&usbphy 1>;
261 phy-names = "usb";
262 status = "disabled";
263 };
264
265 ohci1: usb@01c1b400 {
266 compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
267 reg = <0x01c1b400 0x100>;
268 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200269 clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>,
270 <&ccu CLK_USB_OHCI1>;
271 resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100272 phys = <&usbphy 1>;
273 phy-names = "usb";
274 status = "disabled";
275 };
276
277 ehci2: usb@01c1c000 {
278 compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
279 reg = <0x01c1c000 0x100>;
280 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200281 clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>;
282 resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100283 phys = <&usbphy 2>;
284 phy-names = "usb";
285 status = "disabled";
286 };
287
288 ohci2: usb@01c1c400 {
289 compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
290 reg = <0x01c1c400 0x100>;
291 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200292 clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>,
293 <&ccu CLK_USB_OHCI2>;
294 resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100295 phys = <&usbphy 2>;
296 phy-names = "usb";
297 status = "disabled";
298 };
299
300 ehci3: usb@01c1d000 {
301 compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
302 reg = <0x01c1d000 0x100>;
303 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200304 clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>;
305 resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100306 phys = <&usbphy 3>;
307 phy-names = "usb";
308 status = "disabled";
309 };
310
311 ohci3: usb@01c1d400 {
312 compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
313 reg = <0x01c1d400 0x100>;
314 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200315 clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>,
316 <&ccu CLK_USB_OHCI3>;
317 resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100318 phys = <&usbphy 3>;
319 phy-names = "usb";
320 status = "disabled";
321 };
322
Hans de Goede860fbdd2016-08-18 20:51:12 +0200323 ccu: clock@01c20000 {
324 compatible = "allwinner,sun8i-h3-ccu";
325 reg = <0x01c20000 0x400>;
326 clocks = <&osc24M>, <&osc32k>;
327 clock-names = "hosc", "losc";
328 #clock-cells = <1>;
329 #reset-cells = <1>;
330 };
331
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100332 pio: pinctrl@01c20800 {
333 compatible = "allwinner,sun8i-h3-pinctrl";
334 reg = <0x01c20800 0x400>;
335 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
336 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200337 clocks = <&ccu CLK_BUS_PIO>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100338 gpio-controller;
339 #gpio-cells = <3>;
340 interrupt-controller;
Hans de Goede80e5f832016-03-14 17:37:09 +0100341 #interrupt-cells = <3>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100342
Andre Przywarae88d2a52018-04-04 01:31:18 +0100343 emac_rgmii_pins: emac0 {
344 pins = "PD0", "PD1", "PD2", "PD3", "PD4",
345 "PD5", "PD7", "PD8", "PD9", "PD10",
346 "PD12", "PD13", "PD15", "PD16", "PD17";
347 function = "emac";
348 drive-strength = <40>;
Amit Singh Tomara29710c2016-07-06 17:59:44 +0530349 };
350
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100351 mmc0_pins_a: mmc0@0 {
352 allwinner,pins = "PF0", "PF1", "PF2", "PF3",
353 "PF4", "PF5";
354 allwinner,function = "mmc0";
355 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
356 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
357 };
358
359 mmc0_cd_pin: mmc0_cd_pin@0 {
360 allwinner,pins = "PF6";
361 allwinner,function = "gpio_in";
362 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
363 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
364 };
365
366 mmc1_pins_a: mmc1@0 {
367 allwinner,pins = "PG0", "PG1", "PG2", "PG3",
368 "PG4", "PG5";
369 allwinner,function = "mmc1";
370 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
371 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
372 };
Hans de Goedefa8a4852016-07-09 17:31:14 +0200373
374 mmc2_8bit_pins: mmc2_8bit {
375 allwinner,pins = "PC5", "PC6", "PC8",
376 "PC9", "PC10", "PC11",
377 "PC12", "PC13", "PC14",
378 "PC15", "PC16";
379 allwinner,function = "mmc2";
380 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
381 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
382 };
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100383
Hans de Goede860fbdd2016-08-18 20:51:12 +0200384 uart0_pins_a: uart0@0 {
385 allwinner,pins = "PA4", "PA5";
386 allwinner,function = "uart0";
387 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
388 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
389 };
Hans de Goede80e5f832016-03-14 17:37:09 +0100390
Hans de Goede860fbdd2016-08-18 20:51:12 +0200391 uart1_pins_a: uart1@0 {
392 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
393 allwinner,function = "uart1";
394 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
395 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
396 };
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100397 };
398
399 timer@01c20c00 {
400 compatible = "allwinner,sun4i-a10-timer";
401 reg = <0x01c20c00 0xa0>;
402 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
403 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
404 clocks = <&osc24M>;
405 };
406
407 wdt0: watchdog@01c20ca0 {
408 compatible = "allwinner,sun6i-a31-wdt";
409 reg = <0x01c20ca0 0x20>;
410 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
411 };
412
413 uart0: serial@01c28000 {
414 compatible = "snps,dw-apb-uart";
415 reg = <0x01c28000 0x400>;
416 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
417 reg-shift = <2>;
418 reg-io-width = <4>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200419 clocks = <&ccu CLK_BUS_UART0>;
420 resets = <&ccu RST_BUS_UART0>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100421 dmas = <&dma 6>, <&dma 6>;
422 dma-names = "rx", "tx";
423 status = "disabled";
424 };
425
426 uart1: serial@01c28400 {
427 compatible = "snps,dw-apb-uart";
428 reg = <0x01c28400 0x400>;
429 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
430 reg-shift = <2>;
431 reg-io-width = <4>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200432 clocks = <&ccu CLK_BUS_UART1>;
433 resets = <&ccu RST_BUS_UART1>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100434 dmas = <&dma 7>, <&dma 7>;
435 dma-names = "rx", "tx";
436 status = "disabled";
437 };
438
439 uart2: serial@01c28800 {
440 compatible = "snps,dw-apb-uart";
441 reg = <0x01c28800 0x400>;
442 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
443 reg-shift = <2>;
444 reg-io-width = <4>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200445 clocks = <&ccu CLK_BUS_UART2>;
446 resets = <&ccu RST_BUS_UART2>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100447 dmas = <&dma 8>, <&dma 8>;
448 dma-names = "rx", "tx";
449 status = "disabled";
450 };
451
452 uart3: serial@01c28c00 {
453 compatible = "snps,dw-apb-uart";
454 reg = <0x01c28c00 0x400>;
455 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
456 reg-shift = <2>;
457 reg-io-width = <4>;
Hans de Goede860fbdd2016-08-18 20:51:12 +0200458 clocks = <&ccu CLK_BUS_UART3>;
459 resets = <&ccu RST_BUS_UART3>;
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100460 dmas = <&dma 9>, <&dma 9>;
461 dma-names = "rx", "tx";
462 status = "disabled";
463 };
464
Hans de Goede860fbdd2016-08-18 20:51:12 +0200465 emac: ethernet@1c30000 {
Amit Singh Tomara29710c2016-07-06 17:59:44 +0530466 compatible = "allwinner,sun8i-h3-emac";
Andre Przywarae88d2a52018-04-04 01:31:18 +0100467 syscon = <&syscon>;
468 reg = <0x01c30000 0x10000>;
Amit Singh Tomara29710c2016-07-06 17:59:44 +0530469 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Andre Przywarae88d2a52018-04-04 01:31:18 +0100470 interrupt-names = "macirq";
471 resets = <&ccu RST_BUS_EMAC>;
472 reset-names = "stmmaceth";
473 clocks = <&ccu CLK_BUS_EMAC>;
474 clock-names = "stmmaceth";
Amit Singh Tomara29710c2016-07-06 17:59:44 +0530475 #address-cells = <1>;
476 #size-cells = <0>;
477 status = "disabled";
Andre Przywarae88d2a52018-04-04 01:31:18 +0100478
479 mdio: mdio {
480 #address-cells = <1>;
481 #size-cells = <0>;
482 compatible = "snps,dwmac-mdio";
483 };
484
485 mdio-mux {
486 compatible = "allwinner,sun8i-h3-mdio-mux";
487 #address-cells = <1>;
488 #size-cells = <0>;
489
490 mdio-parent-bus = <&mdio>;
491 /* Only one MDIO is usable at the time */
492 internal_mdio: mdio@1 {
493 compatible = "allwinner,sun8i-h3-mdio-internal";
494 reg = <1>;
495 #address-cells = <1>;
496 #size-cells = <0>;
497
498 int_mii_phy: ethernet-phy@1 {
499 compatible = "ethernet-phy-ieee802.3-c22";
500 reg = <1>;
501 clocks = <&ccu CLK_BUS_EPHY>;
502 resets = <&ccu RST_BUS_EPHY>;
503 };
504 };
505
506 external_mdio: mdio@2 {
507 reg = <2>;
508 #address-cells = <1>;
509 #size-cells = <0>;
510 };
511 };
Amit Singh Tomara29710c2016-07-06 17:59:44 +0530512 };
513
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100514 gic: interrupt-controller@01c81000 {
515 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
516 reg = <0x01c81000 0x1000>,
517 <0x01c82000 0x1000>,
518 <0x01c84000 0x2000>,
519 <0x01c86000 0x2000>;
520 interrupt-controller;
521 #interrupt-cells = <3>;
522 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
523 };
524
525 rtc: rtc@01f00000 {
526 compatible = "allwinner,sun6i-a31-rtc";
527 reg = <0x01f00000 0x54>;
528 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
529 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
530 };
Hans de Goede80e5f832016-03-14 17:37:09 +0100531
532 apb0_reset: reset@01f014b0 {
533 reg = <0x01f014b0 0x4>;
534 compatible = "allwinner,sun6i-a31-clock-reset";
535 #reset-cells = <1>;
536 };
537
538 ir: ir@01f02000 {
539 compatible = "allwinner,sun5i-a13-ir";
540 clocks = <&apb0_gates 1>, <&ir_clk>;
541 clock-names = "apb", "ir";
542 resets = <&apb0_reset 1>;
543 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
544 reg = <0x01f02000 0x40>;
545 status = "disabled";
546 };
547
548 r_pio: pinctrl@01f02c00 {
549 compatible = "allwinner,sun8i-h3-r-pinctrl";
550 reg = <0x01f02c00 0x400>;
551 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
552 clocks = <&apb0_gates 0>;
553 resets = <&apb0_reset 0>;
554 gpio-controller;
555 #gpio-cells = <3>;
556 interrupt-controller;
557 #interrupt-cells = <3>;
558
559 ir_pins_a: ir@0 {
560 allwinner,pins = "PL11";
561 allwinner,function = "s_cir_rx";
562 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
563 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
564 };
565 };
Hans de Goeded6e6d4b2015-11-20 16:03:56 +0100566 };
567};