Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751437AbdFFNyi (ORCPT ); Tue, 6 Jun 2017 09:54:38 -0400 Received: from smtp.csie.ntu.edu.tw ([140.112.30.61]:40228 "EHLO smtp.csie.ntu.edu.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbdFFNyh (ORCPT ); Tue, 6 Jun 2017 09:54:37 -0400 MIME-Version: 1.0 In-Reply-To: <20170605192130.25320-6-clabbe.montjoie@gmail.com> References: <20170605192130.25320-1-clabbe.montjoie@gmail.com> <20170605192130.25320-6-clabbe.montjoie@gmail.com> From: Chen-Yu Tsai Date: Tue, 6 Jun 2017 21:54:11 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/5] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver To: Corentin Labbe Cc: Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , Catalin Marinas , Will Deacon , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2631 Lines: 66 On Tue, Jun 6, 2017 at 3:21 AM, Corentin Labbe wrote: > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. > This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. > > Signed-off-by: Corentin Labbe > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi > index ae559dc42caa..304a966c8048 100644 > --- a/arch/arm/boot/dts/sun8i-a83t.dtsi > +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi > @@ -200,6 +200,14 @@ > #interrupt-cells = <3>; > #gpio-cells = <3>; > > + emac_rgmii_pins: emac0-pins { I prefer emac-rgmii-pins for the node name. > + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", > + "PD11", "PD12", "PD13", "PD14", "PD18", > + "PD19", "PD21", "PD22", "PD23"; > + function = "gmac"; > + drive-strength = <40>; > + }; > + > mmc0_pins: mmc0-pins { > pins = "PF0", "PF1", "PF2", > "PF3", "PF4", "PF5"; > @@ -266,6 +274,26 @@ > status = "disabled"; > }; > > + emac: ethernet@1c30000 { > + compatible = "allwinner,sun8i-a83t-emac"; > + syscon = <&syscon>; > + reg = <0x01c30000 0x104>; > + interrupts = ; > + interrupt-names = "macirq"; > + resets = <&ccu 13>; > + reset-names = "stmmaceth"; > + clocks = <&ccu 27>; > + clock-names = "stmmaceth"; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + > + mdio: mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + }; > + > gic: interrupt-controller@1c81000 { > compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; > reg = <0x01c81000 0x1000>, > -- > 2.13.0 > Otherwise, Reviewed-by: Chen-Yu Tsai