From patchwork Wed Apr 12 11:13: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: 9677217 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 82D3060325 for ; Wed, 12 Apr 2017 11:19:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 742F42861C for ; Wed, 12 Apr 2017 11:19:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6872628636; Wed, 12 Apr 2017 11:19:15 +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 D3A192861C for ; Wed, 12 Apr 2017 11:19:14 +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=dFsr++NxISP7L8Z66Hk/tdI//dic5LGFDmEOGOpv8OA=; b=U1tCqmV/B0fo0pUaQHEQhyzpmE gi3Ep70sOcEpLturNVi3pTtzKsJ00ARryg4lPXnBnaMRa0MvmNYZRuRCnbTstHq+oEOj5jEwvr/J+ A20AgTkWF/TLQ2OE0aK4XbGn2sskbN3YkmwZI+I37AKNKuDjyaC0/1aDIm60qnF+wYWiLL0vFYJ/q Rr/3MMxv1wD6xOxjPPZLqUb+z3H8FwpEXpdm9JEgySn93sJs990acT1THNKSMVh6h/Mf7n/EUHC8V ndNw69p/nHf+pc+mc78EPZOYiOdRez8qgvzzb6VhTqc6XZ0Wb284LLaa7DJRIS0rhQk0JiT3zOAZz lzTuUYUA==; 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 1cyGIe-0006zC-Hx; Wed, 12 Apr 2017 11:19:00 +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-0003nF-G6 for linux-arm-kernel@lists.infradead.org; Wed, 12 Apr 2017 11:16:43 +0000 Received: by mail-wm0-x243.google.com with SMTP id x75so5713671wma.1 for ; Wed, 12 Apr 2017 04:16:23 -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=2UBcMPc1AAoi60uquW1WTpbtlaS3XJW2eU+DrhkYkEo=; b=E3vTUOHe9VFJ4lunlPW2XHzJm/Aav/aoCajT+E7uLQipM6AQimciRpXSaJLriaZ+eu 8TokiF82KkOlk7MaU2GlFPRF0Tx1bKzAjdCu1+yiYrZvBb2ZHrgYcryA1l5wIP4MV6Ln skG8tIwHoEDWiCQp6DMq2128I2chP/FVMCtQ+dAC5QZ5Ej7kYPOP6g8/WjKhhx0mnIwB W4/Cy1yUFUSIEBNVOOvtVspwDnbzLVqPlX1KGfCgsEU1cwJG189KbL+g4VlVkLJFEjaY 4iVFJsnp/uqZRYJFo0tE6pz79u/5JrK8HI19Z4JfY1NYgkDRwukibVk0mn2K1ZMgqddb iZxg== 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=2UBcMPc1AAoi60uquW1WTpbtlaS3XJW2eU+DrhkYkEo=; b=O3PKNkg9HgQ0/tQiyeJvH1nFIH/1Tzq/P0BiiU9f0smQNFG0VSd8dba0KtdYTNmZi+ 2dChrMhoyL0xJ0+I/NUxDbYs7H490jcVcUJTTN08dhTFryWRIEPTcCYzBltDswrnE/vg jzH43sG6pGnxptCbyc2TGYtIMFK78qUmb/hKRvdctwhY5op1oNWVWihLKJu5Jos7ImDZ njUgohI+UWRP9Z2ThihcgtGVmSNKI2PXMqHisf1FZw1+knYdufmmcHp0HapqdHcL+Ia/ EQuim8hhrxG8CvkBWm4Djs+RPT5WEEQqf/6Bcz8CxvEffDE7e5ZdnKtukFRL5YSB3ZU6 kHXQ== X-Gm-Message-State: AN3rC/6l8Tb5qaXM7OQqB+fbh6yesWPiGS2sJzi8HXIyofQPbTRinAr4 Ds8CNqNpxBKXfg== X-Received: by 10.28.54.7 with SMTP id d7mr18703394wma.114.1491995781963; Wed, 12 Apr 2017 04:16:21 -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.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Apr 2017 04:16:21 -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 14/18] arm: allwinner: pine64: Enable dwmac-sun8i Date: Wed, 12 Apr 2017 13:13:56 +0200 Message-Id: <20170412111400.2296-15-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_058959_08E47928 X-CRM114-Status: UNSURE ( 8.34 ) 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 It uses an external PHY via RMII. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index c680ed3..6aee3d5 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -109,3 +109,19 @@ &usbphy { status = "okay"; }; + +&mdio { + ext_rmii_phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rmii_pins>; + phy-mode = "rmii"; + phy-handle = <&ext_rmii_phy1>; + status = "okay"; + +};