From patchwork Mon Apr 3 09:14:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9659099 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 A196E60352 for ; Mon, 3 Apr 2017 09:21:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96CD728435 for ; Mon, 3 Apr 2017 09:21:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BB1E284A5; Mon, 3 Apr 2017 09:21:08 +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 4FB9628435 for ; Mon, 3 Apr 2017 09:21:08 +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=KWNuPvOtqwObCLlJKE3LTckeCY nEZxJueofkXqBZp5lxbv3XPZt4Z5mrpVycedbFU7pSFuDYONzyLGVVqOr2DePfAvnjyBjrKGXbXsX SQPN44t8UX/FArL4IphEeEwhEhiIBa+qs9AdCH+mgn7ZECwTXiUy9NkFGaCOixfwZ42EVe39JcK0c 3WLGY8F7+oxdXkLo1orajW4ST3LDeSReKffTXt/bLzu7HJzeHJfxGKVd0H+zxcr2zkyKdEZ0u7V8B Dx3JXSocMvdo+mBZ/E9HoFD6wz8Phfsqw/9XetuWm7VhXtFzeYpX3BVKV/1Up5ETGeQkOjQfCsa2H fh6OzXkA==; 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 1cuyAd-0000Do-Nn; Mon, 03 Apr 2017 09:21:07 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cuy7M-000373-C5 for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2017 09:17:55 +0000 Received: by mail-wr0-x242.google.com with SMTP id u18so31667419wrc.0 for ; Mon, 03 Apr 2017 02:17:25 -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=MIsQTQyEaHQOBpXXCasUoQG0NAmIwl1/l8+6BODXpI6NLIAgXmWJc1C5063dciw3nE YBIwaSpO6KzNA80cIDmTwQ0YhG0dyVbedOKBKvTuYM6QBr/6klVcof8uQ0QRU4uB8WLt Yq5kR7xcl/o8ove/ge1cYuAYqh6AEZF65Gxqaz4K0abbrz3SPYlv3hphCs8JE41NzL04 +JbxI4tgNYVQiK4koECWbvQDaL9ALkp3tGfvL9atrFC86UQGcvzj0/Zmz+9qj1nMxkJ6 TmSxlKQTT4VHiHHdVuocloOgXN7MCLVydwlumpadCJKRK5Ou6apIOOQYA5E4nyrQgBVZ +XiQ== 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=RAfcbH9fUPEZoE0+MnZg7sgOcfGUyY+3MUi73INr2MKAuGZKL5qqrtJej+PLOFUjT3 70Gv5NseF5oecgJzrA9q0jlMc694eYEBMtaTJ6eHaz7ZE0C29U2BkTKdh1FROD/ocAhF 3AOIhQEO6QbTsuTsOp6bR6wiws07Z+4RHHc6QZLlh3oa4fRHlaB8SMYorx0tQqwHtfnH o/VXX3OISksH/EGyRJpgJgsvMBU+0ZxJFJ1+T+8IaKmSPQoXU3M+GWGrZlqMp0gZsjDO HLkjiyl8mooHu+VM4okGLaSdJ7t0eV8g5hJWkrSYJZoBY3SG/bTBW0pCe6uLYnZhboXt lnYw== X-Gm-Message-State: AFeK/H1a2DTpN1sIEGGqvIjK2G9gAL7uxoQwQ9NntRZTqE70qPGpbXmX 29ZOmtaiQMOk0Q== X-Received: by 10.28.134.70 with SMTP id i67mr8414569wmd.124.1491211044130; Mon, 03 Apr 2017 02:17:24 -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 v14sm13457558wmv.24.2017.04.03.02.17.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Apr 2017 02:17:23 -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 v3 16/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 Date: Mon, 3 Apr 2017 11:14:40 +0200 Message-Id: <20170403091444.29876-17-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170403091444.29876-1-clabbe.montjoie@gmail.com> References: <20170403091444.29876-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170403_021745_064636_32BE6DE8 X-CRM114-Status: UNSURE ( 8.11 ) 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..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"; + +};