From patchwork Tue Nov 7 20:13:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 118203 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4421599qgn; Tue, 7 Nov 2017 12:16:06 -0800 (PST) X-Google-Smtp-Source: ABhQp+RipP+eSM1SuhrZdiapcNkQqUG4qgrODdM8vnGx/GOMXzB0XKoX3SpPFwXlT7bVJGinNZFW X-Received: by 10.159.214.130 with SMTP id n2mr16034826plp.13.1510085766731; Tue, 07 Nov 2017 12:16:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510085766; cv=none; d=google.com; s=arc-20160816; b=rn5LQMtFaF0LrmXJE/06VIQRiU/XlnSYLi6/6SMPlGRa7nqTbb11vdVSP1U6OQSx0A YUu8m0K+mVC1Bby7VDHoXdj5zWKTHEsfkSLxzGoJbWtjpX56/Cjr1TgjDoTY1sF3kiJH 971ZGz2dQ7DvTwxrRf2nG+8BKv+JItSSHzZIgxcEm1tTiOKO9/swBK+X+8Ej0wq2LRbI QSbbUv0HhangXPJTGPwiQf7Lm68SV2/CaYZkrINJ9Jhhrh8RsUUJjRgWz2yGKlRyHS6Z RuaaJraGZQQzM1bfT9B4UgwXQ+1HD5iPrkeXwf8UTlBP0PeXFSh5pumdU8BHOM/YvWos PHYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=5yP01U0yNnwzVuT8p3r5RDaqj/a9RAFhhbUSsiFVGgU=; b=u7VSHLfzLX5Zw6YyKoRFU6D4pjPZWrobHSVjPIBdX7B7wrSS9mD/8qDPoZ7ciTOukf 5c7ii/BvWg7yTmhBnZzQuCWPKdI+ilukLYXfZGe1GKEzJkeZHKPATiz56rYxOO2lZhhE lqUaY9tA+WYPQV4LTmqoTuHYHFuz+nbZY5A3isV4pSHzOUI6MM7ERf0PFqo49CbVPWPt 2ZGrKmuhDtxf2+xjcZ4BrnRtgWjPWgH49ioOvaiJKsQBWKJi5trqpw67jqtIMC7OBwjw hLuxya5vJ7fOL5/6TzzsykmHY8hsH6OaaBdxB2OeWoWgspKzRkL7dqv5gbAHGIv/+seH xxwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Z/kbceuK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si1924254pgc.579.2017.11.07.12.16.06; Tue, 07 Nov 2017 12:16:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Z/kbceuK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932877AbdKGUQF (ORCPT + 6 others); Tue, 7 Nov 2017 15:16:05 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:50328 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932756AbdKGUPe (ORCPT ); Tue, 7 Nov 2017 15:15:34 -0500 Received: by mail-wr0-f194.google.com with SMTP id p96so379622wrb.7; Tue, 07 Nov 2017 12:15:33 -0800 (PST) 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=kXSz2eBfi+VFeJfS84M0UVP4mfx6KNOIaPgCOyFNmxo=; b=Z/kbceuKGUnPdBE4QlsAYR3eQbmuKDmuuSdbkCv3yK1Kbq+MlatqR1G+I8t9alkJWn ahoyffdajXoRtr+bO08Iczrzs9Yz5JaZJ9fYRh640pbeWfgJoV+MPi0CPjjYg8xzHLlx rR03TIeulTHkuK0NSS3fOCJ+w8oewfd6w59f1RnhEYJeUFuDbkdRD2H2RxWLlb2RkAUD DDdUbAIxL/Cdo7cMAx/nbb+9n7Y89nTtQbKuTPJrx+vMuIIZInzBUgkLFX9CvNObnUNA /qI9ExNDw4dfbq1RkR8/efrr8CPMn1sJRThC2rIwqtZKOPUXhRoQE8FPUbRJhCA0XJ5i 6niA== 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=kXSz2eBfi+VFeJfS84M0UVP4mfx6KNOIaPgCOyFNmxo=; b=Pw1g34vXOVr4BQo2ePnGzFJHQ+gYxZIS4FL0WwsUsRyi0fqelN3iHuD4HBNWK4BOdt QHfL5tTQEpcigPqRDBeuZ1eoJFWjU4IFIZwDlHzgfW2ZcOKDIr/9aYcRBmKj01edFK1K aYvXDWiGgShGbRgnuZ/dQayoAQB0GhM4dxOe5VUKuU0NSDQ1Al7DGkKFgLcNnJUEciIt TZR13CHdX29hRJYIKS/veSImtluFzS8tR+Y1FMqy+3g5IaPXu7RcKpk+PaHwDn/PKNEm 0nv1q0vW5MXS9LAsQvFWGgDyV6FohBFqaq9SvPV/HmS5titmO2k91HPuwNN1pquuJjVm RFIQ== X-Gm-Message-State: AMCzsaVyBtMYA2N8JHrj2t6lq6m7+ZK9QK9jhOMs7Al0Oq3sX4L6j9nB udu65JICKF/vdKD+MRzKwLE= X-Received: by 10.223.156.138 with SMTP id d10mr16634733wre.214.1510085733384; Tue, 07 Nov 2017 12:15:33 -0800 (PST) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id u7sm1714595wmf.15.2017.11.07.12.15.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 12:15:32 -0800 (PST) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH 2/2] ARM: sun8i: bananapi-m3: Enable dwmac-sun8i Date: Tue, 7 Nov 2017 21:13:26 +0100 Message-Id: <20171107201326.17401-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171107201326.17401-1-clabbe.montjoie@gmail.com> References: <20171107201326.17401-1-clabbe.montjoie@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The dwmac-sun8i hardware is present on the bananapi m3 It uses an external PHY rtl8211e via RGMII. This patch create the needed emac and phy nodes. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts index c606af3dbfed..45bdd5c17829 100644 --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts @@ -52,6 +52,7 @@ compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -88,6 +89,23 @@ /* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls */ }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + allwinner,rx-delay-ps = <700>; + allwinner,tx-delay-ps = <700>; + + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + reg = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>;