From patchwork Mon May 1 12:45:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9706491 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 BCF5C60387 for ; Mon, 1 May 2017 12:51:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABD1E22B27 for ; Mon, 1 May 2017 12:51:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F2252807E; Mon, 1 May 2017 12:51:23 +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 0F97322B27 for ; Mon, 1 May 2017 12:51:23 +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=aMEviYvLlrbDVDzCRvMfCWNkKFC7kjQeQiA0jbCYghI=; b=i4nzhMneHcZCk3Pi7jm2sD6xvl +mG6ITCa1ulJHJbz8RFq1V21JcpXvO3RxDHHzKW93iTn7RiZDJSGT8n8Hs1oxIKwS7uKhgP1cBmPX 5QBMW2tLCOxAsV0kCMlQHoVpjE4hq50p2MZm4YpCNp88fTMHLQG/5q2LasDzMnyEFlkAPcE+VgKU2 qGwyPgXwWLJOvq4Cjh1iQEifRWXM7W0e1RPXTShEHq5Oaj/yF2NCy8ncMvZr0fIDcH1FmzuewYyPJ iePkDgNr/js7YCmtOtxSdvgIIhcJadSSbdXLdk84Ty8fUhlev3h6boudDMK1IQlzjUsW2Ux7RHp2K 35Dp13TA==; 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 1d5AnR-0006q5-6r; Mon, 01 May 2017 12:51:21 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5Akr-0002LM-Mh for linux-arm-kernel@lists.infradead.org; Mon, 01 May 2017 12:48:45 +0000 Received: by mail-wm0-x241.google.com with SMTP id u65so23230312wmu.3 for ; Mon, 01 May 2017 05:48: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=NF5Vr4sEViDul+XLeD9+mDNCc6plF4+ynYSYIDN9yTg=; b=WZ6vZqS/8ZJut6SiMLKP2WYjh5O9goAMuXhmp+E/aX66uGCkNWEX4QnaVyyOcYMjJp jdvcaUCJnzaEQGHIb90WfgQwclgSN4tXhOAEnxvAd2H4SxEvE5H48yNYt5rtduW0MTis 8iaipiMXU4V1CpfFNbiUCZfraY16yTMFwDHbBuh9D0d2SSjIcaF+W1ap7FsrtF1y1nH8 zhh9T5KBK/1nBRxFzfsKDc1R2S5yM/SbSvi9ncOJ5DM3fm2eZ3WCsuXKXOqQkDRaOWWk lCslV8SkEtoTotMUPzWaNDfAJqZMRjKqe0yXIvqzaGNJY6Qk7NdhmKWo2yuUpg9r0ofh Vhng== 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=NF5Vr4sEViDul+XLeD9+mDNCc6plF4+ynYSYIDN9yTg=; b=fr7tDKFyVVZkRyk+jSADAhZsvseF2HlFHEdhylBWGB61URAeX3xhWqxnfeaEVEMdVA qKcKRz/xD7R1aUJ2HHcS1yuPDyi/D66gMcHZT1P7H52P5TOf7xdIFhtiwqG2I5Xfy9Hg /oGyAoTBo6DYSf3Q0kcm4sW3puj98M70nPohvJsxCXCpEMWsgBTZA2A8P1mE6BfLChvj Go8Ix5cB+XSz/yluyJll+r+Yv02GGB4ouvb6ybxTU1+O7Dk1CeShMkgX1gTrkfMEOP2N uKMsnaXlmvmh8qReU1TZTlk1sAPPIaHBYk3qeFdV30OZwNruSag0RjBfYGKdQvGGS/am oJTw== X-Gm-Message-State: AN3rC/5JjtOUWUTCg7NyajiZc5r5Vn30Jz0uMA41cfcMOZwK7iaLT7UL f9pBrdwxi0cB4Q== X-Received: by 10.28.48.66 with SMTP id w63mr55035wmw.103.1493642901981; Mon, 01 May 2017 05:48: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 4sm3364514wrv.33.2017.05.01.05.48.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 May 2017 05:48: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 v5 15/20] arm64: allwinner: pine64: Enable dwmac-sun8i Date: Mon, 1 May 2017 14:45:15 +0200 Message-Id: <20170501124520.3769-16-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170501124520.3769-1-clabbe.montjoie@gmail.com> References: <20170501124520.3769-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170501_054842_078343_15EF5BD4 X-CRM114-Status: UNSURE ( 8.47 ) 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 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..3b491c0 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -70,6 +70,15 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rmii_pins>; + phy-mode = "rmii"; + phy-handle = <&ext_rmii_phy1>; + status = "okay"; + +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; @@ -80,6 +89,13 @@ bias-pull-up; }; +&mdio { + ext_rmii_phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>;