From a1405d385bb603e6832fa1e58a69e1d0d8068015 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Sat, 30 Jun 2018 12:23:24 +0000 Subject: [PATCH] No need to define our own emac node as this is in the upstream dts now. --- sys/arch/arm/dts/sun8i-a83t-bananapi-m3.dts | 18 +------------ sys/arch/arm/dts/sun8i-a83t.dtsi | 28 +-------------------- 2 files changed, 2 insertions(+), 44 deletions(-) diff --git a/sys/arch/arm/dts/sun8i-a83t-bananapi-m3.dts b/sys/arch/arm/dts/sun8i-a83t-bananapi-m3.dts index 2f49657eed93..04b4a600c639 100644 --- a/sys/arch/arm/dts/sun8i-a83t-bananapi-m3.dts +++ b/sys/arch/arm/dts/sun8i-a83t-bananapi-m3.dts @@ -1,4 +1,4 @@ -/* $NetBSD: sun8i-a83t-bananapi-m3.dts,v 1.1 2017/10/28 16:09:14 jmcneill Exp $ */ +/* $NetBSD: sun8i-a83t-bananapi-m3.dts,v 1.2 2018/06/30 12:23:24 jmcneill Exp $ */ /*- * Copyright (c) 2017 Jared McNeill @@ -28,19 +28,3 @@ #include "../../../external/gpl2/dts/dist/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts" #include "sun8i-a83t.dtsi" - -&emac { - pinctrl-names = "default"; - pinctrl-0 = <&emac_pins_rgmii_a>; - phy-mode = "rgmii"; - phy = <&phy1>; - status = "okay"; - - /* EMAC transmit/receive clock delay chain values for BPI-M3 */ - tx-delay = <0x7>; - rx-delay = <0x7>; - - phy1: ethernet-phy@1 { - reg = <1>; - }; -}; diff --git a/sys/arch/arm/dts/sun8i-a83t.dtsi b/sys/arch/arm/dts/sun8i-a83t.dtsi index 9c1ca362682e..0898520ae101 100644 --- a/sys/arch/arm/dts/sun8i-a83t.dtsi +++ b/sys/arch/arm/dts/sun8i-a83t.dtsi @@ -1,4 +1,4 @@ -/* $NetBSD: sun8i-a83t.dtsi,v 1.1 2017/10/28 16:09:14 jmcneill Exp $ */ +/* $NetBSD: sun8i-a83t.dtsi,v 1.2 2018/06/30 12:23:24 jmcneill Exp $ */ /*- * Copyright (c) 2017 Jared McNeill @@ -39,30 +39,4 @@ status = "disabled"; }; }; - - soc { - emac: ethernet@1c30000 { - compatible = "allwinner,sun8i-a83t-emac"; - reg = <0x01c30000 0x104>, <0x01c00030 0x4>; - reg-names = "emac", "syscon"; - interrupts = ; - resets = <&ccu RST_BUS_EMAC>; - reset-names = "ahb"; - clocks = <&ccu CLK_BUS_EMAC>; - clock-names = "ahb"; - #address-cells = <1>; - #size-cells = <0>; - status = "disabled"; - }; - }; -}; - -&pio { - emac_pins_rgmii_a: emac_rgmii@0 { - pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", - "PD11", "PD12", "PD13", "PD14", - "PD18", "PD19", "PD20", "PD21", "PD22", "PD23"; - function = "emac"; - drive-strength = <40>; - }; };