From patchwork Thu Feb 16 12:48:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9577135 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 A0C86600C5 for ; Thu, 16 Feb 2017 13:12:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D0FB2018F for ; Thu, 16 Feb 2017 13:12:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8166626E1A; Thu, 16 Feb 2017 13:12:11 +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 3389F2018F for ; Thu, 16 Feb 2017 13:12:11 +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=3Z6a7Lyk139sfF9bhqS7ZwJ/XoimY8HYPIm46Yg3Kd8=; b=Mcd6eAApYuZ7RUKIfBdM2YSi8r 5bsI06lhwdLhpBBB/6tp1x+3zEDpuNb70jhgx7UzU2D7QhGA8la8kPfhelAl4c2oTPmJBBls1gYmG QQyRk1vb+XjqZzMcZzFvNzr8PfwX9XTIIzS4f5SgqPDRQPfohkKWhG8/4ijpn7quwe9t/pTJLCRrW bndPQll67ns2X8rZ4UCWVoBdomhUFGpx72GDn0sEY9FSg0eaYIUnpOtobr0A/iGxDEMZp/yygwbhn +zYOK12noD/iZsZbrgCwyrHWWhJ7tFq3KIIDXK2zvU9TQjCVO3nL5VcOPqe7zohy6NDgH0UjouIoY jVXUtZ5Q==; 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 1ceLqv-0006GJ-9j; Thu, 16 Feb 2017 13:12:05 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceLXR-0001Ni-PZ for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2017 12:52:08 +0000 Received: by mail-wr0-x241.google.com with SMTP id q39so1934192wrb.2 for ; Thu, 16 Feb 2017 04:51:40 -0800 (PST) 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=qUnqp94bZQhjvE1CpwXqUo5uKr636H42PuqYF1sTj3g=; b=BnVLZClQTg3QnIzEphl652zEjY+HjgnLGOQDrGpYdaMXGlXpwBZg0aBKMEMGY79eTa O8j8rX7yQu+FAhpbRncdzPzEnCmfDzx4NIFyhI0wmCEWM54P9Nnrks62oAm4eYNmAq2O cI2nRQjYPNwpf+d8sIa2Ng+SqALx56JS7gn2ieJLu1LIM+UbCb7nGkYw9xt4N+NrQylU 4pDIT0ko2M07pybN0FtAlfrpFzor4ql3EHuClLFL+UDlJ3yABN1XZQXKw+3l2ETznum4 ORhj8oED+qfwsKbUg+1ox/tLi8MBPX+AGGrxeHT6uXywzDE+yYYXv/DDosaaCwsHdt4f fB1A== 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=qUnqp94bZQhjvE1CpwXqUo5uKr636H42PuqYF1sTj3g=; b=XW2c/iNVgcHJq8FpPJFRDvkmFBiJCL8LJ6ENJjA1hd2bZUwnkwlxDxXZznMONazAVT qbm/fGNFQvKrZVjlssKrGaVe3M7wUWA7o6XM5pEafIBPLz387dQR+yh8fVos4pmIdk2R K/ICQD/ip8rN9CAuolejIe7zNSPHqiDYzJ4o8fweDLBeZegKNb7oAXlde9Ckj6NJPh0g 15E5EdI9z05n71yWXmvg0oh2tQaAZ6/7e3EE+OmdDRF64MVwgbxe1hY7Eu5DEOBWBnmp fFhIV/XQqzFemXkjALPla2H5D6Y8KUYU1O6QyqP971uz0CD5I3mxdFXkrJ0Vnzun7A7Y fwCA== X-Gm-Message-State: AMke39mHenw7hjI8P9NTTJcaYpYauLHj3WZ74W98RpilsUTHKu1DdhJR4twEdWZxnt687A== X-Received: by 10.223.138.172 with SMTP id y41mr2143300wry.118.1487249499671; Thu, 16 Feb 2017 04:51:39 -0800 (PST) Received: from Red.local (LFbn-1-7035-57.w90-116.abo.wanadoo.fr. [90.116.208.57]) by smtp.googlemail.com with ESMTPSA id o143sm144705wmd.3.2017.02.16.04.51.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 04:51:38 -0800 (PST) From: Corentin Labbe To: peppe.cavallaro@st.com, 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, alexandre.torgue@st.com Subject: [PATCH 18/21] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 plus Date: Thu, 16 Feb 2017 13:48:56 +0100 Message-Id: <20170216124859.14346-19-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170216124859.14346-1-clabbe.montjoie@gmail.com> References: <20170216124859.14346-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_045158_435459_C47386E2 X-CRM114-Status: UNSURE ( 9.60 ) 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 --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 16 +++++++++++++++- 1 file changed, 15 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..8e06aed 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,19 @@ 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 { + reg = <1>; + }; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + status = "okay"; };