From patchwork Mon May 1 12:45:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9706495 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 40BC660387 for ; Mon, 1 May 2017 12:51:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 304A222B27 for ; Mon, 1 May 2017 12:51:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24B9D2807E; Mon, 1 May 2017 12:51:48 +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 BA8DE22B27 for ; Mon, 1 May 2017 12:51:47 +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=HMi+hhv/1HKoVlDm8KerEgKtawdWhtWb1hYoEXD8QUg=; b=OWZhijqcUrqklmHsUJPriOrWHb If2xW0/kaAeSOOpzJxE7/yeTAps9MnZWaXg+MdEuCG5jjeZNVaUGyawf6AUhSoJK8l4Pz6y0xLqpG IOs5ejiJk99xThppbDuyvky2/1VsT+CHBIjd4eeByfJIJe2olSlJi0KNmXz3ljkcEyK9ywuvfQScp 63tNM5BxM4EP3ReRXEhb+jUpQbHqQ/hmERc90IbVyYD8VcTTJufIafPx4zTkIlEG7a8NoaMBFAnRH 8dIuXVKzX9SdbfmIqTeoWkbhjnzsso4EelwIe05hgt5SClz5Z5Kq2EltSYeNHHjOFDP+4crFDjWdw k3yRKjXQ==; 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 1d5Anq-0007RF-Ly; Mon, 01 May 2017 12:51:46 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5Aks-0002LS-Kg for linux-arm-kernel@lists.infradead.org; Mon, 01 May 2017 12:48:46 +0000 Received: by mail-wm0-x242.google.com with SMTP id d79so23343668wmi.2 for ; Mon, 01 May 2017 05:48:24 -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=H+AJFBpf6EFmBjEqy+Erb1fgXELC1p5YTmbFKAQEegY=; b=WNnZa8WfVBFEJFvVWP4eqdi1wNqyd2SVJ0qA6i8dAEum8F+ARHKSbBjNmWFlHaGjbL Nx8UQ/uUbqsj6buussu2dauoWwbg3JzmhzDRR0j61Bs3/Dfb1AgbKLMrS9QPqOSXfHOt EO8k/XAtAwKKOaipcEfUwdQk60lEbvpDfFVa44gaIdjorBYuU573DRmz2MJPi8pEzxPc F5bLaudd5D/baL5QlZlnovS8rOGnTmjus5stktlAKriAFZ6PgqQ7fcU3Za+8Dyab4ody Rt2pdjX2M7X3rki8X9uKHu79hSKBYuW9t2XiF4kcZMII0qqDrVMQNpDry9AxJ8EJqiAX iZzA== 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=H+AJFBpf6EFmBjEqy+Erb1fgXELC1p5YTmbFKAQEegY=; b=IxQN786XKTWGn2RQBTILsWWNG+JMlDAIAU6Ezm7f9lEK0MUvt+zQncdeHUzPxlDOqB /qkdEaYIHYYk1yJ0NTxJ2Z+IyS2t9Jr22pqEBmjd7a0lyqkAFkE+rR5PBtH1gtg3mnr5 19Fh0YhBzYyPHM4niJqPJfAHBpb3ucG5g1ZSmpARvo9gYlxeM1uTtHae0IRD4FONSGr8 BHx9ZnYgIvwp+jeVHV8VO+3wBjbwGZrEeQ9SBMGO6xEIgu/A1OR5hLUSLjuXCghRpjcT RrWlkCSYVN74tHRE80O5NJ1lnhg9e0c0ex9Vvz7mNFDslYdris2GEUoqOlaZKvH7BIpi lFbA== X-Gm-Message-State: AN3rC/6YB5ZV09wlQMA1MOI7WM+PTrYUV0hH9P1WkIwKINfoWvk/Gvl3 CJZT6EWgodXAlA== X-Received: by 10.28.188.85 with SMTP id m82mr55485wmf.79.1493642902944; Mon, 01 May 2017 05:48:22 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 May 2017 05:48:22 -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 16/20] arm64: allwinner: pine64-plus: Enable dwmac-sun8i Date: Mon, 1 May 2017 14:45:16 +0200 Message-Id: <20170501124520.3769-17-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_054843_220955_9A8B2104 X-CRM114-Status: UNSURE ( 9.50 ) 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 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 790d14d..24f1aac 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>; + }; };