From patchwork Tue Mar 14 14:18:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9623607 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 EE20B604CC for ; Tue, 14 Mar 2017 14:36:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE5B8285A3 for ; Tue, 14 Mar 2017 14:36:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2F63285B7; Tue, 14 Mar 2017 14:36:22 +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 6AC55285A3 for ; Tue, 14 Mar 2017 14:36:22 +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=ytD6GkxNEdhk/iptiflqq5cPQbzMIccl8iY3KyfmGVw=; b=LN/fpkuokbMndmcXrnlyFhegnM QK+7rEpYtWTKnqcCnoZM5rx8rXCPtZ06gZDJd5er0JeAAgwOh1bF7nNYnkk+3pRc2o/o/PF+6qdmC e82/GZ5+OKVzJclBjDRmoN0J0MY3VsRm/YQIt9ZJt6HFQZsv5GIQbunXk7fUJoqF/0PsHZ/fts5Jd rskcRVR1sbytHmQXJ7n64iUsjjcj0ZrEODpTCr/W9c5iotdVbUEk/OXLzpIIQPDAAi8w5GZgjz+dy yQR7YtvVWMRtYNsKsjdFt2DUxDHw7RRlHykHl0x1cir2yebzkOP9i/1s9AbBqbMKQLqt6Dcd3e85q ckfeMzrQ==; 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 1cnnYd-0002c0-Fl; Tue, 14 Mar 2017 14:36:15 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnnXl-0000UQ-1d for linux-arm-kernel@bombadil.infradead.org; Tue, 14 Mar 2017 14:35:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=NNX71lRGpubIFuLATmnSm82tFtLD8OvEIx5gkzR6xjQ=; b=W2QxApkiHad2rfn9OnutjC8JP iAfHUx/LRoQBKTPaoddUtI/iuU/HuzqU+Yp7fBdtED2JLuo7SdUlNI91s6hu9/zdBlFuZd6oDkUSR 0LEHNtoG5PIa7+FqQ6qoyfH92Y7Yu3W0vz5vCsecwwjtGFvBKYxK46Bw4/i4KPypR/wZkDRqy9gTg XbaOVqLSvZgTh58Lb9Q47x8ZF5C0RmQkNZsUfY3WKE38yFn/vgDVL8nQaZHwXEN2LQwAGjs0Jh5WC GOWs2zTveLqtXw5logS5LLq+lPYjHJZKlSUc4jsOyOdI94EBz2i+kSAT6Ey5qiEyEedCOfjOSUOMG YgLy0ay7g==; Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnnKj-0001GR-E3 for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2017 14:21:55 +0000 Received: by mail-wr0-x242.google.com with SMTP id u48so24181950wrc.1 for ; Tue, 14 Mar 2017 07:21:32 -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=NNX71lRGpubIFuLATmnSm82tFtLD8OvEIx5gkzR6xjQ=; b=spsnK+j6OBjkW6i++aUfiaFZE4QKiCo9b/RIF785T2hLxfotJaU2p79fFvZeVZ26zK bLAqPXWimcVOkzzjEE4YYS9rwTAwsYb1NW14ABbZhXhS1PttHlxNtxrJobY0Ew/rqC+5 +CmLLRHDaml8XHDHBE5KA+mW7Brnytb+qw+TRJ5yfazScKbpL028IaoCZwQiwzwR7S/8 cwIKIiiA8l4v+x3ZJL7o5IuQHcO54+Km5ckN7wx7qgtEbRseXeBj7RHVeybWrKWR62Ot Rpfcg4ek+p7ir0oPcxQBTnU+LtgvWbByREkwjbM+41DByAvAt/URAlnyWLfP8a3ByjAi TFSg== 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=NNX71lRGpubIFuLATmnSm82tFtLD8OvEIx5gkzR6xjQ=; b=cVIeGgxRhLr9O/JgIN3G7OOQEVVXiwkradKBsRUZgRn72DKpbAdVyhFoXD8hk9NO3Q STHhUer/w7uYj3yv33Di9ElIf0jNDIsFNTkeiSXOeG+n82WWk5qjp/Kv5xVfxxwaEXAH xdDkht1hXdgtopS9t8y3+XT0xzpdfNlbE2OjQIixHZHil1FA8JQlfKTTyelt596k8+EC AM1MM+ldD6QtChqw0PapsZEd69yOdF4LksksRGS9Ryn6LF1cr88coDlIdaavjFv0kf/6 d3XaeMR4m3plztVQz4MD/K0AQK+lI2xif+t0B+ODZ6DXsZaForRk3QubJI77P7TR0SNt zuMQ== X-Gm-Message-State: AMke39mV7Cvj644F8KCGLsydDSg+XLgeVRXIzrfVtw1l6H3neemDYV1hfJRbBl7qWyQwIA== X-Received: by 10.223.148.35 with SMTP id 32mr32870722wrq.82.1489501291888; Tue, 14 Mar 2017 07:21:31 -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 o143sm49526wmd.3.2017.03.14.07.21.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 07:21:30 -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, davem@davemloft.net Subject: [PATCH v2 16/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 Date: Tue, 14 Mar 2017 15:18:52 +0100 Message-Id: <20170314141856.24560-17-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170314141856.24560-1-clabbe.montjoie@gmail.com> References: <20170314141856.24560-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170314_142153_497024_80DEB5EA X-CRM114-Status: UNSURE ( 9.10 ) 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, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 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 | 15 +++++++++++++++ 1 file changed, 15 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..b53994d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -109,3 +109,18 @@ &usbphy { status = "okay"; }; + +&mdio { + ext_rmii_phy1: ethernet-phy@1 { + reg = <1>; + }; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rmii_pins>; + phy-mode = "rmii"; + phy-handle = <&ext_rmii_phy1>; + status = "okay"; + +};