From patchwork Mon Apr 3 09:14:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9659129 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 827836016C for ; Mon, 3 Apr 2017 09:37:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DE3C283A6 for ; Mon, 3 Apr 2017 09:37:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72AB62843B; Mon, 3 Apr 2017 09:37:31 +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 37F41283A6 for ; Mon, 3 Apr 2017 09:37:31 +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=PaQTOlJCLXD4aBnm49DmTEbZIZ tNBXtStdKzXOapetxywUFJLJJSEgQwuI81/fonXoRcbTSYLSnbAzvXZxQdcsT8pdMy1vLEgnZU28H tUIQWff3rMYMFoGQ1LLZ5LQN+39S/CbN3J3lsTGygx1TLt+wRUV2kamllMUjrmI9JGP6pGPvVGT/S AYNQy5Qjk8x4qK+CEm6+pxdJW1/z13b6h/IjgJ223Fk9mgUKW/eJobyM1STypnvsLhUVEgQYHyE7q VU0yqX6Q112P7w5jWgxmi7zuJxhuw2w5/y6SjJr8ZCUDI94E34YydLeSMeyndQQCVV47oPSWoo3mZ eo6QJDag==; 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 1cuyQU-0001mS-62; Mon, 03 Apr 2017 09:37:30 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cuy7O-000377-8N for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2017 09:18:01 +0000 Received: by mail-wr0-x244.google.com with SMTP id w43so31664530wrb.1 for ; Mon, 03 Apr 2017 02:17:26 -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=L7oPojBBu8B8IOXrH5AVKeuReySPDAPm/haVW92p8yNv6k70VXR7ZewfQNP7521EPz 7HWjyz+oYRPs85u5sfnqpJXYHgSC2TFF/BTq9CD0z5+bkv0wd6Xkr3Cah38wLZ6qo3l3 0o1ZJPWEWANcoP+IVaI5X/YfL1kGLdvI/vl/JxLL0sDZAtS0gpXXYxS0pXJv0I4AaRCb XMmJmi5tbQvFuuLVtcYK1Otx9mt4UkUoMOAsD3LMH2nRaWDIsBfsZsOu6zt5TJxO/MjB /nslGZGusnpns1WY3BspqwUVFwWnA0/kG8RZDkiXM8BaVokbS5vDWSEBl/lsVvmDMSGu 9vGA== 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=FDCwI6hu++jUXgX4gcnw8El0duEdhF7EjwgJDegSMMW1fLcj8gWHJud4rr1LuaUlC1 5Q29E30CNvNHb+NCsH0n7t43C0Cmr6WzKoOP4/R2IB1nQJ1U04IVOi3kL/lm1pehZxhb fLFNN4a574DVNVng0SGnhKepT48tN+GkT4jr70nmm//QPPa1L/PY8PM5YqVVPY7T/HkV XYYt0eh6bzcl6thV+0hJnxmhOg3tpOKE0vNLjwClweMoFqmJU9OtLi+pRKXOLxFxQzyq +r2ThW+/o0vsOqSntmLiNjYc9s0ndMwuOEIfUKz8rDzVyvbYKXWC0h7eiuBv23zMv+ru rwvw== X-Gm-Message-State: AFeK/H3pPwAFMvhOP4qun3XYaTbCM6WB59tT8fcpRLu6C/xo1UHmzdVo 7f3LHyl605jAew== X-Received: by 10.28.66.77 with SMTP id p74mr8859611wma.107.1491211045075; Mon, 03 Apr 2017 02:17:25 -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 v14sm13457558wmv.24.2017.04.03.02.17.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Apr 2017 02:17:24 -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 v3 17/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 plus Date: Mon, 3 Apr 2017 11:14:41 +0200 Message-Id: <20170403091444.29876-18-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170403091444.29876-1-clabbe.montjoie@gmail.com> References: <20170403091444.29876-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170403_021746_897453_C2D213C8 X-CRM114-Status: UNSURE ( 9.37 ) 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, netdev@vger.kernel.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"; };