Received: by 10.223.185.116 with SMTP id b49csp863723wrg; Tue, 20 Feb 2018 09:04:24 -0800 (PST) X-Google-Smtp-Source: AH8x226+1g4QBv8uuwvFpoVZSt+PH4OMC6QWOOh2ITV+Mg61gTe6QrMKiv6dzuOmBLnwOT2Xze7l X-Received: by 10.98.60.144 with SMTP id b16mr271440pfk.61.1519146264189; Tue, 20 Feb 2018 09:04:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519146264; cv=none; d=google.com; s=arc-20160816; b=CPcU7HnQXfoFCni7+zlmilMndTd5H2tg0SgsN/YBSzudINJANS606UExHHNcsDH5ZG HZwpxR1OYFFRce3V/WW30mXZiB7Pvzi9LKRC5xIayv7+y4dqhBhIOetmeWb8ZtlBhs0t kzV1au3TU6MCDVNa8SP1h86S0MQH1TGxXX+qee9ZlRtQa4d3kQaRi4MogFvmZdQKMaBn QCtM39PkuUrQuvMejVHfacAzNkKetSGJ6laSlIOJXhGJDJXP9mCTNhp400DTt2CMslyd RwfswcWcas6N73F7h9HxUySoBezIWxUHi9YIgPcC2F1GS/71i+HVMcBzq36VZdXYd2g+ a0ng== 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:arc-authentication-results; bh=wRKjRAHTxyVtRqg0uS+8mIrFCTvhjHEqpQ/3ApRvV/M=; b=0xbDolLg6seRtRZxlDCkohPvJRJho5tFg4LtTfdOtM6zwvwTYazNgCsKDG3eHoyg5Q irByNBU3dGBYXvBZDezExEmBycO95WYTqBCy6Gri9WFNglIxLKEvPf4l2wSNVNE9K5Nt x8HGkJXQoiFdYx9e1Mov8J0Njd8zjLa5AP9EYDom7QVb51KsTse6M+z0JB0Y0gsGMQ2p 5F2L4FWcx3OFh9xIEZCSIc/D1rnbcuZItULcRt54Y50+69LucM3L1dIPYjW9VxWk1J61 QiyTDOO/u5/khQ3B77f4FQtZPCxc7V/3rkFcz7XpYCIvD6h4nWIM+mICQ+k9nmLLpkPL ANBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9-v6si169693plq.598.2018.02.20.09.04.09; Tue, 20 Feb 2018 09:04:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753422AbeBTRCs (ORCPT + 99 others); Tue, 20 Feb 2018 12:02:48 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:33973 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753197AbeBTRBi (ORCPT ); Tue, 20 Feb 2018 12:01:38 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id C1CA5183D0; Tue, 20 Feb 2018 18:01:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id bdeYpoYKghZH; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 3811718405; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 262221E074; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1A6181E072; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by thoth.se.axis.com (Postfix) with ESMTP id 0C4301B15; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 07747401B8; Tue, 20 Feb 2018 18:01:34 +0100 (CET) From: Niklas Cassel To: arm@kernel.org, Jesper Nilsson , Lars Persson , Niklas Cassel , Rob Herring , Mark Rutland , Russell King Cc: linux-arm-kernel@axis.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] ARM: dts: artpec: migrate ethernet to stmmac binding Date: Tue, 20 Feb 2018 18:00:45 +0100 Message-Id: <20180220170049.22809-5-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180220170049.22809-1-niklas.cassel@axis.com> References: <20180220170049.22809-1-niklas.cassel@axis.com> X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The snps,dwc-qos-ethernet binding is still supported as a glue layer in the stmmac driver. However, since the snps,dwc-qos-ethernet binding is now deprecated, migrate to stmmac's native binding. At the same time, enable features supported by the stmmac driver, such as PTP, LPI, and an additional tx queue. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6-devboard.dts | 1 + arch/arm/boot/dts/artpec6.dtsi | 42 ++++++++++++++++++++++++++++------ 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/artpec6-devboard.dts b/arch/arm/boot/dts/artpec6-devboard.dts index 502f3de6dc5b..d20d95359b28 100644 --- a/arch/arm/boot/dts/artpec6-devboard.dts +++ b/arch/arm/boot/dts/artpec6-devboard.dts @@ -59,6 +59,7 @@ mdio { #address-cells = <0x1>; #size-cells = <0x0>; + compatible = "snps,dwmac-mdio"; phy1: phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; device_type = "ethernet-phy"; diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi index f4b39738f1ac..981aecd27b0b 100644 --- a/arch/arm/boot/dts/artpec6.dtsi +++ b/arch/arm/boot/dts/artpec6.dtsi @@ -188,19 +188,47 @@ dma-ranges; ethernet: ethernet@f8010000 { - clock-names = "phy_ref_clk", "apb_pclk"; - clocks = <ð_phy_ref_clk>, - <&clkctrl ARTPEC6_CLK_ETH_ACLK>; - compatible = "snps,dwc-qos-ethernet-4.10"; - interrupts = ; + clock-names = "stmmaceth", "ptp_ref"; + clocks = <&clkctrl ARTPEC6_CLK_ETH_ACLK>, + <&clkctrl ARTPEC6_CLK_PTP_REF>; + compatible = "snps,dwmac-4.10a", "snps,dwmac"; + interrupts = , + ; + interrupt-names = "macirq", "eth_lpi"; reg = <0xf8010000 0x4000>; - snps,write-requests = <2>; - snps,read-requests = <16>; + snps,axi-config = <&stmmac_axi_setup>; + snps,mtl-rx-config = <&mtl_rx_setup>; + snps,mtl-tx-config = <&mtl_tx_setup>; + snps,txpbl = <8>; snps,rxpbl = <2>; + snps,aal; + snps,tso; status = "disabled"; + + stmmac_axi_setup: stmmac-axi-config { + snps,wr_osr_lmt = <1>; + snps,rd_osr_lmt = <15>; + /* If FB is disabled, the AXI master chooses + * a burst length of any value less than the + * maximum enabled burst length + * (all lesser burst length enables are redundant). + */ + snps,blen = <0 0 0 0 16 0 0>; + }; + + mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use = <1>; + queue0 {}; + }; + + mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use = <2>; + queue0 {}; + queue1 {}; + }; }; uart0: serial@f8036000 { -- 2.14.2