From patchwork Wed Apr 12 11:13:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9677241 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 83AA960383 for ; Wed, 12 Apr 2017 11:26:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7525828624 for ; Wed, 12 Apr 2017 11:26:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6864328636; Wed, 12 Apr 2017 11:26: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 2D5BB28624 for ; Wed, 12 Apr 2017 11:26: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=OIzarD8H/0hB0L31l7Y/g9ZzM5+ExZ2bTMO0khibn5k=; b=bmAhDpMN4HrQQk/L4o1GrCF0X/ nP7D0+TdmUZo5PLlEPmB4EgjqwYqxv7W1efPqQ3AdiNqvSNFRYpnpI89guZ3riDlksFa1r6E2KBa9 UhHOlksaFBKyO90GvaNzUC3Alv79ZAlVIeKjgXsQ91UX+dSFPm4tks4zIjGinuniexpMbQfmGa5Jv x8Fut7mUcjdo9eZ7kDDqqPrmjpnbmI4v8Zw4BgKlpWMDf8pN5Fmg5dzO/4YfXk3AwT/stWHAim5Ya UwkQAY3nZxiaHgebdzV/+X1KuDxH0Lje+eULVLS3xL8f1wlvLJO8oZ/FJvh9mykUAuo0w8m51zOar 4gf+h8HQ==; 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 1cyGQ5-00046X-Jz; Wed, 12 Apr 2017 11:26:41 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyGGN-0003nJ-G5 for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2017 11:16:44 +0000 Received: by mail-wm0-x243.google.com with SMTP id x75so5713749wma.1 for ; Wed, 12 Apr 2017 04:16:24 -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=AijFo9Kmly/EpJs+C/GMz8PsgtUU3d6X0Em6/bnoFYM=; b=HvbDZX2Na8akNqNy3VU9C1tdhkz+kvZOsOtFDtMxh4IryuxMljBXy0iaOiPmqgMPfG zmhHF2rAa1ihyKjXCljZg9mKdfcCUgTlhBLiN1nljB4fExG3cAWApu3yUbr6MjS4fLCQ kjos6B7kDbSw92WUnnmektgFT9RT7CsgM3P1TH3vfx2bNuzg7aJbq3DCnZIfcsBmSjOX fqvehcx+17dtHsgYHdkaFdwFhp333O5MtX/ADsjmHe7IlKbIeHCkfwtuNEpCma7mDuKj uBU7UX1TCJecP6BKKbw6lM67XD326YsZ2FYeUsWQ2edqPGBBRtg1pL8Q8JGDrGWWQBSc j2qg== 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=AijFo9Kmly/EpJs+C/GMz8PsgtUU3d6X0Em6/bnoFYM=; b=MlWbdBmrcVSLi5XXdPf2hJ3zbHIiwCBX0gurWnE+IZ7gIsw2Q8Ussh1369fXZvWXlS B+FpakYNn0hbBP0kmZzYbYuinPCrfE64v/fS/LyhNorZeGvZCnw46GqiRWmRQzE+f50s 56aLHFRUsZxExy2x594+gFS51oeexVIDXSj2txo5+JIcr1vLPm4NyTb9TbaqUVbOdGvq xHsUyBgd4sxTu9V643jv+A0xWUVoEz/ngtYkKQZqoBgqXtkyjpXThkN+iHCBuWERSBsi 2CuwbxkeB71Xpf+Srh/rEc3bQc+XzPn2pb6kZTuzo9CscTtTS538pbWrYD+Iw+BqQjUH YtWw== X-Gm-Message-State: AN3rC/5/NlS+vGFKX3v+V/O1Yw7WJ7CWa2A1MGieS8bdjtcZzWvp7tnjFQ/qFznXUvgDUw== X-Received: by 10.28.37.3 with SMTP id l3mr2371128wml.100.1491995783005; Wed, 12 Apr 2017 04:16:23 -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 z84sm4727104wmh.27.2017.04.12.04.16.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 04:16:22 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, peppe.cavallaro@st.com, alexandre.torgue@st.com Subject: [PATCH v4 15/18] arm: allwinner: pine64-plus: Enable dwmac-sun8i Date: Wed, 12 Apr 2017 13:13:57 +0200 Message-Id: <20170412111400.2296-16-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170412111400.2296-1-clabbe.montjoie@gmail.com> References: <20170412111400.2296-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170412_041640_001850_1DD1D35C X-CRM114-Status: UNSURE ( 9.78 ) 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, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe , 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 hardware is present on the pine64 plus. It uses an external PHY rtl8211e via RGMII. Signed-off-by: Corentin Labbe --- .../arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts index 790d14d..dea76c2 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts @@ -46,5 +46,20 @@ model = "Pine64+"; compatible = "pine64,pine64-plus", "allwinner,sun50i-a64"; - /* TODO: Camera, Ethernet PHY, touchscreen, etc. */ + /* TODO: Camera, touchscreen, etc. */ +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + status = "okay"; };