From patchwork Fri Jun 2 09:11:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9762017 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BEAFB60360 for ; Fri, 2 Jun 2017 09:14:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B70AB204C2 for ; Fri, 2 Jun 2017 09:14:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABE1D205F6; Fri, 2 Jun 2017 09:14:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C9DF204C2 for ; Fri, 2 Jun 2017 09:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=a6BRd1iYCW5IaaWC9knovxXXSEI01g2+QrV0AxT6Nxs=; b=BOvm5r2JvlpQzit78PiR4vQsiT b8dwv1LOCPz7kExVUq3Z36tvdECqsVurTLzfCILbp4Zmpt8N4gBkc6SUUVes/znkSVMT9aKQpuUsW XQ5didrIRtgES8x75Ow3m5zo5JTljZ2QFBJpWJPHdBWLZhSIfDX30R29AEGYAmF/7HL9LgbwJktw9 /8r31TCMh7kcdu7Lso+/ZJztX0XI8qSObJVgOeHhFBbsg0K3QTF4T3cw2iE6VERVWzGSYrufuatnx GcXYuSv7v0P53+KeaLSZq8BCXtcE8GVtfs9s+tejWigec2D4SNSjuxn5PBJ0IRs9rm4ejJzh8/IzI pqx9kyOQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dGier-0003uz-EN; Fri, 02 Jun 2017 09:14:13 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGied-0003Jw-By for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 09:14:01 +0000 Received: by mail-wm0-x242.google.com with SMTP id b84so17453759wmh.0 for ; Fri, 02 Jun 2017 02:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4fymZt+i+1FTwSTk8hT5/Ll5IEv+5scdCpAKps3bPaw=; b=YXzvhPDBpb6vKgOgx3+d2H+rXiRkkTxzJKyOakbPIruEVz4uSVpu0yrwzgggZPuSBY 5T6LrpP1Zcr77ZPdMJCfgAkyThwlUv72dnMg5g/1TlsvsrpccQwB1nKB2br7XTX0Zrwi Fl4Pi9eFlJHera10NMTGVsLK+JsKop8rE1N8Xx04uOnQ7QXGxnn+4tBIpdEcKdfkXi1W ky63HakNDlJIVPXD9amYCQejQJ/PVcYrpYwJ84Xb2OiEW9ODHmC8mA6RntJvlK5oXcFm r6fIO2L7GlBNahuotpzgulrU8RNJiZpxeV3WuW0hCaR5SQ8t2FtlJ0ItldQWFXx9jR5D P70g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4fymZt+i+1FTwSTk8hT5/Ll5IEv+5scdCpAKps3bPaw=; b=ZrYawJXycYAVYWCSC9M4w0HyZrupgwP2IRan6z7SC/8Lou9ZaSkLWmvrNpvBgGfItt 1Ehx4TB8kDFapo0bc37L0p3NlzJpgNghJj2uiMz2GUkw59aBOXt23R9zzC4RSb9F/YYr +fucvQAev5Bgo1RCQtFb9jIQBwt+/QUFKvntbK5UcYQkMjCeISapyMpMOEfSWCa7iCWM F+fckF4A/kTq3XetxNIoZc84SrRxOYPfR97EaWOOoZXmjinzDz67HBio4MTils0XLZ76 xbW11wrN2l2J8krdenQw1oAlQJ3k6c0bEL3Mt6jfLN5wy0DAmAiOShlahLnkJWwrkcLW nT5Q== X-Gm-Message-State: AODbwcBNHOo/tfQRnGLrET5HEZQJMsqi9m69fgM5qFcky8+RWZ29zJpE c5WH7K62IDPqLw== X-Received: by 10.28.163.196 with SMTP id m187mr2028602wme.18.1496394817678; Fri, 02 Jun 2017 02:13:37 -0700 (PDT) Received: from Red.local (LFbn-1-7035-57.w90-116.abo.wanadoo.fr. [90.116.208.57]) by smtp.googlemail.com with ESMTPSA id t8sm11642356wrc.28.2017.06.02.02.13.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jun 2017 02:13:37 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH 2/4] ARM: dts: sun8i-a83t: add dwmac-sun8i ethernet driver Date: Fri, 2 Jun 2017 11:11:24 +0200 Message-Id: <20170602091126.14476-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602091126.14476-1-clabbe.montjoie@gmail.com> References: <20170602091126.14476-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_021359_590731_82BCA8DB X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Corentin Labbe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 a570dac9ba35..0459c95d5f83 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 { + 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>,