From patchwork Wed May 31 07:18:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9756065 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 AFBAD602CC for ; Wed, 31 May 2017 07:35:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0B5526530 for ; Wed, 31 May 2017 07:35:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9390C284A6; Wed, 31 May 2017 07:35:54 +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 4948526530 for ; Wed, 31 May 2017 07:35:54 +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=nps5juv6eYLIdCei4ReB0KPNO62W4UVDGWb54QegV+4=; b=HAQ7byaNmPTqKLeOqJ/m/bPxuD XTwHMXjcUOHax81b8RMga6PQaBjBZSYUJg0pUP9TNm4OM7szp8kccJISIb+3IH/3ahx6hoWQvM2sa ZbiNDBpb0bz6BRfRJWcD1U5ukgY08ZEMo6MBWPJb02dyCDebxQ1fEOrr6q6aWIjN1fWse4dt1QzI0 6yjUtpvvgTd95UTeEWDrSsfoQd8N+wa/I/z/IYU5lGlOUaltpVoQCrTAydSkgw+reo3INndtbn5gF qSaKPGaI2RDg4arsBGACBDjcNsrcVDBlj/Msj4XUR+71oO+Y21dci+aTc6wZQroQE/i4Nxr1iq6yW 83MH8cPQ==; 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 1dFyAb-0000ih-MO; Wed, 31 May 2017 07:35:53 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFxxf-0007Iw-DU for linux-arm-kernel@bombadil.infradead.org; Wed, 31 May 2017 07:22:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=V+390m3iGlCbeffHCk9YPBMIAroLSIOJ8svoCPLsptI=; b=jEd0I5u+AYD7Cx1Qm3OsTfvNc 5lg8squCtrM+nx0/eqExhuK4Bsr+HvQGHEL4PXKKBp+6gjWrjsP2gKAEHU65tjRz8sNAw+dkzLUu/ Ij+XsNzL6o/vzUmkEA8Zl8Ho+ZOaBm9XMr4KsboF6/k+5k99L/CwwvA+YUw3cOUcyUInKEt7G8zm3 IYWMx/DEFeC/FCnTQ7p6NBZ7JrBnB0nrGUI8UB5m06k7km26vu3UpqLHn8SpcUpqCR5w4lg6ZtuHZ oGXFxX7HfODz3+Vflg+7sMd0n+nLSIQpRW9dXyiD+NR0Ia3/KOtCokEY0ueaIHLvi8NVT6KpywSu2 ZaVA3runw==; Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFxxd-0007Ny-TU for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 07:22:30 +0000 Received: by mail-wr0-x243.google.com with SMTP id n104so686953wrb.3 for ; Wed, 31 May 2017 00:22:11 -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=V+390m3iGlCbeffHCk9YPBMIAroLSIOJ8svoCPLsptI=; b=Z1cHwPYBC31bWv+YJnD8KJHoaHK+qgp0Yjiz6BTd23a0suV/VxGH5elujuFu0/T1bw g4foGWaubgHNciY53Sk1SPy2699ZSxyws/s1hkPCDpAqk6zL/8hYZA9ORFHmYkoaGgA4 WyxLaOrZszn3YVAhDNWsEy2lavAq35ZvhW8NhI0s0yAIPadAG6tu31kgAnFyVsjpfWkQ u4NkmZf3WoUPtLKDoORWUaqtjCTeQv0Acd8QTFydIYFP6r/qOkiVcipGU6C8nN0MxSLP mFKmLFCwIDcgS9Js2dTN3gML2Ub2yqS/KGeclZ8ZBSlM6arnT/yZ80pGKH5jqSshFKG4 zXLg== 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=V+390m3iGlCbeffHCk9YPBMIAroLSIOJ8svoCPLsptI=; b=kdG86jMyGbJ/VNvsIwjoAS3qGnZCNgG7+BPZX+piNhwsV7Rg8XcSVqq6pwFuHXRNxm zjKBbDGmvSwvzgx4MkhJzker6VyYkFyxrJ6IrJu2sqw5VRwpG//EJhOEhqWfawKzR9Am jDzJaJZTw4RQrrg5vMMVzuJMs9tBrZar36X4Zb6IzT9rwiHbmvEHo02GGI/BpD82sM9h 9nFkRAHz2dnlDW0uZ5jYWM7G8yQ9WTCqc1iBhIWE/TT5+p2esMxEiJegYNgVk2+xeJCD rd3Q4BGqhqHskW+OpDogTQbrztNV70AVC24SpwRvhskdysTHWv8vfJx06QUOC1ItM2b5 XcDg== X-Gm-Message-State: AODbwcBtaZ6Wvg4zKQVGX8IKsXIVvO8QaZ78E8bxZmhJDMLloVrAoxvR vd0LB6HPfOQaJg== X-Received: by 10.223.183.20 with SMTP id l20mr16586075wre.178.1496215329741; Wed, 31 May 2017 00:22:09 -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 r130sm12528169wmg.4.2017.05.31.00.22.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 00:22:09 -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 v6 17/21] arm64: allwinner: pine64-plus: Enable dwmac-sun8i Date: Wed, 31 May 2017 09:18:48 +0200 Message-Id: <20170531071852.12422-18-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170531071852.12422-1-clabbe.montjoie@gmail.com> References: <20170531071852.12422-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_032230_107382_4E1AC9FD X-CRM114-Status: UNSURE ( 9.67 ) 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 790d14daaa6a..24f1aac366d6 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. */ +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; };