From patchwork Fri Jun 3 09:56:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9152529 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 0451C60221 for ; Fri, 3 Jun 2016 10:04:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1ACA200E7 for ; Fri, 3 Jun 2016 10:04:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5D5528309; Fri, 3 Jun 2016 10:04:23 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD6FC200E7 for ; Fri, 3 Jun 2016 10:04:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8lwR-00042P-PE; Fri, 03 Jun 2016 10:02:59 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8lrO-0004x8-AG for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2016 09:57:51 +0000 Received: by mail-wm0-x244.google.com with SMTP id e3so22244402wme.2 for ; Fri, 03 Jun 2016 02:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LpFfGrVBo6vLyC4v4knxOoHUPGUnOBQkeWMrUqVsIz0=; b=SjIQ9ui9Er3rUgeIAdpMVGCyXKaZip3wDF9AMSH2fbpV56g15MhxXQqQWDmiAHpVO+ dFgv3hHCVJqE7xluET/7KvCy0IMWFKQQUxaM8QIWUXEaN+oF/zdJnTXeHfXf4AsGgp04 iCc24oUE3MNajZEUbqjqIsMJ+lVp4SlJbAvOnIQJnx52vk7FWuy4m0X2v0NJSqXwNxT1 X1srqgva6RrvTo3vYmhNtTdtTfym+6jbkbwW569gARSdlAfrLBQmtJ3BjHxXL2lREPcy Ptigdt3uhX8tI6/+73Kv69pvswlsRB6AvS69QAwkmSqMAy1/ztawKE96A6h/sz/OZOB4 od3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LpFfGrVBo6vLyC4v4knxOoHUPGUnOBQkeWMrUqVsIz0=; b=EeLY8W7uMImK0TnyvrdWfNXMboQswN9BV2l4notYL23ybL80Dm0YddIJhKRIQgHGwy Y0bhJB6FYoe0EsODVpgIldEeGBm6aBV75dey/Gc6jCwj2YTnu+3oJLFywvvue0UMaIVI ksLQgEuo9ptukb6tqioCzPowv8icNrqv3e0bBLr7Gfif5PsW1p5INWCXyKMbmWNxq9MZ JLlGTHkk37W5dt7C7C0bMyOUnreRyDSdmz8VZAI3BTcJEohS/yJaYF3hf73Rq/RBVtDq K8QQDX7vEFzk4QjrWJvSOHhF6D+0hxsG8DigEH4mflCND5Bw+TUhlfK1QZhlm5Y2WCqa DAbA== X-Gm-Message-State: ALyK8tJA2hI3B5otUpHHV54xvWmgS5PIEx4bQMVm+6a40RaDfx3PT7jWQjb5AQejB3ZOWQ== X-Received: by 10.194.173.42 with SMTP id bh10mr2928279wjc.150.1464947844834; Fri, 03 Jun 2016 02:57:24 -0700 (PDT) Received: from Red.local (ANice-651-1-356-146.w86-205.abo.wanadoo.fr. [86.205.140.146]) by smtp.googlemail.com with ESMTPSA id n66sm5577060wmn.7.2016.06.03.02.57.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jun 2016 02:57:24 -0700 (PDT) From: LABBE Corentin To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, davem@davemloft.net Subject: [PATCH 4/5] ARM: dts: sun8i-h3: add sun8i-emac ethernet driver Date: Fri, 3 Jun 2016 11:56:29 +0200 Message-Id: <1464947790-22991-5-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1464947790-22991-1-git-send-email-clabbe.montjoie@gmail.com> References: <1464947790-22991-1-git-send-email-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160603_025746_952225_D67CCAD8 X-CRM114-Status: GOOD ( 10.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, LABBE Corentin , 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 sun8i-emac is an ethernet MAC hardware that support 10/100/1000 speed. This patch enable the sun8i-emac on the Allwinner H3 SoC Device-tree. The SoC H3 have an internal PHY, so optionals syscon and ephy are set. Signed-off-by: LABBE Corentin --- arch/arm/boot/dts/sun8i-h3.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 4a4926b..f5a95ff 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -626,6 +626,20 @@ status = "disabled"; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-h3-emac"; + reg = <0x01c30000 0x104>, <0x01c00030 0x4>; + reg-names = "emac", "syscon"; + interrupts = ; + resets = <&ahb_rst 17>, <&ahb_rst 66>; + reset-names = "ahb", "ephy"; + clocks = <&bus_gates 17>, <&bus_gates 128>; + clock-names = "ahb", "ephy"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + gic: interrupt-controller@01c81000 { compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; reg = <0x01c81000 0x1000>,