aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe.montjoie@gmail.com>2017-12-08 02:31:56 -0500
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-12-08 04:06:26 -0500
commitaadf237f42185f2dfba731453b4c48fadae9b209 (patch)
tree5d7f35159046d3ee9ac5b288e9085a43980db3ff
parent90706eb825661553a3fb321192143cdcd95cf13d (diff)
ARM: dts: sun8i: a83t: add dwmac-sun8i device node
The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. This patch add support for it on the Allwinner a83t SoC Device-tree. This patch add the emac device node and the related RGMII pins node. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Reviewed-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun8i-a83t.dtsi33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index 19acae1b4089..a384b766f3dc 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -336,6 +336,18 @@
336 #interrupt-cells = <3>; 336 #interrupt-cells = <3>;
337 #gpio-cells = <3>; 337 #gpio-cells = <3>;
338 338
339 emac_rgmii_pins: emac-rgmii-pins {
340 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
341 "PD11", "PD12", "PD13", "PD14", "PD18",
342 "PD19", "PD21", "PD22", "PD23";
343 function = "gmac";
344 /*
345 * data lines in RGMII mode use DDR mode
346 * and need a higher signal drive strength
347 */
348 drive-strength = <40>;
349 };
350
339 mmc0_pins: mmc0-pins { 351 mmc0_pins: mmc0-pins {
340 pins = "PF0", "PF1", "PF2", 352 pins = "PF0", "PF1", "PF2",
341 "PF3", "PF4", "PF5"; 353 "PF3", "PF4", "PF5";
@@ -440,6 +452,27 @@
440 status = "disabled"; 452 status = "disabled";
441 }; 453 };
442 454
455 emac: ethernet@1c30000 {
456 compatible = "allwinner,sun8i-a83t-emac";
457 syscon = <&syscon>;
458 reg = <0x01c30000 0x104>;
459 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
460 interrupt-names = "macirq";
461 resets = <&ccu 13>;
462 reset-names = "stmmaceth";
463 clocks = <&ccu 27>;
464 clock-names = "stmmaceth";
465 #address-cells = <1>;
466 #size-cells = <0>;
467 status = "disabled";
468
469 mdio: mdio {
470 compatible = "snps,dwmac-mdio";
471 #address-cells = <1>;
472 #size-cells = <0>;
473 };
474 };
475
443 gic: interrupt-controller@1c81000 { 476 gic: interrupt-controller@1c81000 {
444 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; 477 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
445 reg = <0x01c81000 0x1000>, 478 reg = <0x01c81000 0x1000>,