From patchwork Wed Jun 7 17:33:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9772085 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 AADA260350 for ; Wed, 7 Jun 2017 17:36:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4E4628455 for ; Wed, 7 Jun 2017 17:36:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B931E28479; Wed, 7 Jun 2017 17:36:45 +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 6A10728455 for ; Wed, 7 Jun 2017 17:36:45 +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=hfKCOo2rO3N2ER00xMZKYhc/7ogratdevLcxwz6yF+Q=; b=FUnzV9fmRofif/jbKUbg7/YAb2 pGSNM3RfDIwoMsP9fZIVWVxxLtiXDWXKDVrcQofnqvtVe7zMlrQ4Yi1ChEPwhbaPYdc8vEcbuhxd3 rlKZ70GVyEdWZpzPSt6BtQv/286uJoRmDVk0B+AqcMJSz2UDJtmbA9vSVdbMzU35ArC7P3j7vIBuO eoA7+m78bKagMo9ufPxxwm1BJzC46YVDngRCDdpvVaTSfUHVbYMq4+4P/0NdQE2/7cOR8LM8t/UYf 8XWhX4iYSiSjhPlhqzi7ndykwXPe896YK8BcmL2roAmLLzRlIah6/5+hhloRrPucmmF+86YYQ4SsN MTsmx09A==; 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 1dIest-0008Jw-Sz; Wed, 07 Jun 2017 17:36:43 +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 1dIesV-0007nj-Q0 for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2017 17:36:21 +0000 Received: by mail-wm0-x242.google.com with SMTP id g15so3603570wmc.2 for ; Wed, 07 Jun 2017 10:35:59 -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=h1BycTmfSBe8PjFLKFlFgq/DWJL2sBKUe38ZWbxxunc=; b=vONWE3PDiaFDlfyyQxM84MiNQs/sYfVnqUrT+IuTQ7XSUEzRBbk2gDGY8fTbbMOalc hd6j82UcO13SDCNRYeTHqrTlWPnuK0wNQ6BD7JMwB4QGHlwh837EghFI6BGoGpgaR7DU 4/g6f0fm4Ku1c6LD0Ju5mPXRrmTc8B5sDc1kMN0tiEUvsbf1yoZ6MMtdZDJpgT7yZuig M5ngOqPBhzxLzf+OfAESU5HuuiH+IkNIas29vusp0zAkx4k+xg6h2uPGWrIgSYtqEB+d 0kB0Xs59RK/dMJzJpIPyi7E4oJ1HIPA8TrrlrhrJPadU0f+JW47LCYdmpuYImLYHU22V 6HwQ== 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=h1BycTmfSBe8PjFLKFlFgq/DWJL2sBKUe38ZWbxxunc=; b=owqcFddy35JE7YnfNUfOdJcqhUKdNNyNEK0fVdYnv/tGYCcD7Abydkkg83PlggXC/U hhNGu32i783IUch4XjosvBJrzEWbJoahYmYteLeDTMkm315UsjAbYmB4eNsbxnuu13Ep 27ZJYfDo80m7tFUPaUHfqqjkJQCMF5NYeyMrFu6D/5y+JGv607ibONYlfC/2GTKQbkhr xcnhyvgY4040xG8JjJZCMVSBeClSt0LOXMm4h9QmSrDuEr5E5OTb1BP90vRKKdsb4gHQ O+749myH5wl/GssRSrQkqY91qjlDrl8DUUw6EYHP53L0m1apuE1o+aQYEknIureR8rN2 DTkw== X-Gm-Message-State: AODbwcB6nQmePQYXg+fvvDg2yqukLQPkk5QJt7V4bEWhAChbUnTV12rL ACKxqGYaakJkyA== X-Received: by 10.28.168.13 with SMTP id r13mr614777wme.0.1496856958062; Wed, 07 Jun 2017 10:35:58 -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 e73sm3605024wmd.1.2017.06.07.10.35.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 10:35:57 -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 v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver Date: Wed, 7 Jun 2017 19:33:45 +0200 Message-Id: <20170607173345.22462-3-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170607173345.22462-1-clabbe.montjoie@gmail.com> References: <20170607173345.22462-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170607_103619_993778_6091231A X-CRM114-Status: UNSURE ( 9.44 ) 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 Reviewed-by: Chen-Yu Tsai --- 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 01a83406f9ae..7d719b4aeaa9 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: emac-rgmii-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>,