From patchwork Wed Jul 20 08:03:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9239063 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 1994260574 for ; Wed, 20 Jul 2016 08:06:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B203200DF for ; Wed, 20 Jul 2016 08:06:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3DA624B5E; Wed, 20 Jul 2016 08:06:21 +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 8D5D8200DF for ; Wed, 20 Jul 2016 08:06:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bPmUx-00059G-55; Wed, 20 Jul 2016 08:04:55 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bPmUC-0004mx-TG for linux-arm-kernel@lists.infradead.org; Wed, 20 Jul 2016 08:04:10 +0000 Received: by mail-wm0-x243.google.com with SMTP id x83so5751447wma.3 for ; Wed, 20 Jul 2016 01:03:48 -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=AY+PFn8Ppz9UUhXGx6lcGdgFI2I4B1Td+vsAWWCjZIW8Q/9Qk5CrVTqFwqjrn07HSu 7QYuIA6otXSsLKGKM3IqW9bOgyYw1zsZiYQ7pnAD0S7DkBW8M7xp3/hpJfpET5XBMT7Y gX+hVewrJT0T/Bz2iB/k9r2waviJi7cdiuj2uSxkFc9VvWxM1PMlOdHipkwnBujQ/TuY uxSwad4AA1HZ2MhnHTWuoKTOpO8OFOLUXmktVRBdFmZ253JHIQmbYaQ23O/cnVFjoECq 1f8W+HA6HN+jqbOWm2frFw3EV5KOgrMtc8JLoiTfo3rxQfoHddMTVmX+KvI9zvES926x VeQw== 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=L6ykGjX/+uQPeW++Ch7NQsfH8TZ45QDVWFdql2J31t8NXrz1nZTMiBEpF9I+LNUBO4 9+XfxXyoeNw5kGmGbC8GNn3VezzdAm5Ie2zNb83vOK46afnzwJlhByxkq2jKSljmwavq LeBc3t1l99eHimwq+v0+bfdgEPUIeVKAdtNQ+6REw0jJXbevGKluF3EagQphTrP6foeT 9+VEaljbMHOGQZeZPMcUeeISxgrE7925Mgtle2n3N+CLxJzb3K/OCyQASnGblhdpOobL Sh3B40WvNYVplj+LEV5+O8Ujlg9oJahnECEwOQe37cxU8FSo+QUK34sKbDsc4yai8rTf UKVA== X-Gm-Message-State: ALyK8tIK9u/+xYPXTwuU2Fgqg0SZpUBf/odC+pMMvtshgjHsZCUplEUocoQeXedLlwy43A== X-Received: by 10.28.199.4 with SMTP id x4mr9517445wmf.70.1469001827140; Wed, 20 Jul 2016 01:03:47 -0700 (PDT) Received: from Red.local (ANice-651-1-349-64.w86-205.abo.wanadoo.fr. [86.205.133.64]) by smtp.googlemail.com with ESMTPSA id a2sm30134723wma.2.2016.07.20.01.03.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jul 2016 01:03:46 -0700 (PDT) From: LABBE Corentin To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, davem@davemloft.net Subject: [PATCH v2 4/5] ARM: dts: sun8i-h3: add sun8i-emac ethernet driver Date: Wed, 20 Jul 2016 10:03:19 +0200 Message-Id: <1469001800-11615-5-git-send-email-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1469001800-11615-1-git-send-email-clabbe.montjoie@gmail.com> References: <1469001800-11615-1-git-send-email-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160720_010409_239077_1D7904DA X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. 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>,