From patchwork Fri Jun 2 09:11: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: 9762021 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 1992260360 for ; Fri, 2 Jun 2017 09:14:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12957204C2 for ; Fri, 2 Jun 2017 09:14:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06FB228569; Fri, 2 Jun 2017 09:14:56 +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 97558204C2 for ; Fri, 2 Jun 2017 09:14:55 +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=XkFNNVH91E6w7zuztOaBJjrDQEAIDF5wmCiFT7Ae+Cw=; b=ox5JZzC+a2D2cmyhLwfx+KUIdi dqw3eD3nRPlSRb53/iJyeykwlYVmrK0Fh5DVoFcEuVkU80rRLQ/ZglJoBLzZfoY3gtMEp9CgkDyyO RWt7kHnkVc2ROy6x83RgAISRvg0jbXCes+53AHmu1mf0aFgMIgBpcSeRoPMyA8VEFFhbJNnYkKmgo M79cT6BlHBVoZ9Jgwbzt4SZAjVvKewAoZBpzgTL1VuHANfZ0yEhxWVFGTAZuOBSEX9XIwf/qGG6wZ /m0HOWec6ta6s1cutypObx4WZyMDhfUDBofaE2VIpp2RBDjT07dGqqhcrTnX86ZP2SELfq2E938CN 1aVBM+GQ==; 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 1dGifV-0004XA-Ok; Fri, 02 Jun 2017 09:14:53 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGief-0003K8-3r for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 09:14:07 +0000 Received: by mail-wm0-x243.google.com with SMTP id k15so17456066wmh.3 for ; Fri, 02 Jun 2017 02:13:40 -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=tHq/uCxDsJsb+efAMoNC2kyEKc6Vhq16yhb6WpB3RN4=; b=CxOdWc4+zpeCj4HdOJ+KnE12lss7gDfm1RNdxS9347KVuWyM398od2eIN3DValUve2 IfMqm8erBohwDub2wUtTfsfbcIroerqalHz/o6OIjB0uhdUH3sH50uttp60wuIjGeSM9 PHwSkWvY2rXF5yBtp3Fo4xIAvC/Sk7hYycXW39fuSfzQBsiIPCZn13mtNiOgH0CujF9J i5OiniHu6V58Ff044SmZHUqiIT79mK7gUqdmvSSb9b8m/lR5u3P6B+7gK7347qhE5WBl 9n2MlNBlZCGo9uYqlRNVOLFAGBEt6Ggub8XA/hecg3CV1e3l4vPG/dG/uvpsO9TQMEw8 VDeg== 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=tHq/uCxDsJsb+efAMoNC2kyEKc6Vhq16yhb6WpB3RN4=; b=B5p/pm4P/I5+xBYT0Da8oMFLC4JQgDWDY2g6GX/HF6/K6VnGoapJUtEvl6cMj+9Oqs sma2Odz4h4Cqhl4o72DCgDwBydMweXoQ3/xvmdw7LREG+L7jojaYTM1wFUH3U1MpCuoG jfZbVZt3tApEQl8RGbkf5YQo2HfqS8cOk0i7T5gUQOBmqkiMyvA8XBLaW3CGJbNTqyEG vRcan7hxBsTKWxaYJ/e/6TGl6AgBloYja7GeqIucE8JezSoOHvO8AhIO7dTLPfKROOu+ +TdGjVYCqFCXH5dSwCveaoX7iEhEQGIArQLYD224yIXFt73WQ0sezazJO6Jt8OOb9rhs pHuQ== X-Gm-Message-State: AODbwcBV6WBG/i6U7XXyP1T4LNVg9NGPEHFvOhu1fY7Jy5SGDjeI5c+o jUbrUeimSiv5EA== X-Received: by 10.28.130.196 with SMTP id e187mr2469430wmd.24.1496394819465; Fri, 02 Jun 2017 02:13:39 -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 t8sm11642356wrc.28.2017.06.02.02.13.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jun 2017 02:13:39 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH 4/4DONOTMERGE] ARM: sun8i: bananapi-m3: Enable dwmac-sun8i Date: Fri, 2 Jun 2017 11:11:26 +0200 Message-Id: <20170602091126.14476-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602091126.14476-1-clabbe.montjoie@gmail.com> References: <20170602091126.14476-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_021401_344220_CDF7EB3D X-CRM114-Status: UNSURE ( 8.70 ) 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 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 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts index bb23904847d5..dcb4fa7e6eff 100644 --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts @@ -67,6 +67,23 @@ }; }; +&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>;