Received: by 10.223.185.116 with SMTP id b49csp648398wrg; Wed, 21 Feb 2018 04:47:52 -0800 (PST) X-Google-Smtp-Source: AH8x225+deldgwo0w4f9/+Tg1g5HU/MQz3b5pQ+YR4WO//CbTkc7aRQFYuA9/zQxOHo/r4SwsbeS X-Received: by 2002:a17:902:402:: with SMTP id 2-v6mr2988202ple.353.1519217271916; Wed, 21 Feb 2018 04:47:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519217271; cv=none; d=google.com; s=arc-20160816; b=XD1CjRadQ6TnisWcoweJwymh+K64UPt6pOjho19KwEDVuOSPkyCoa7U/ZUA1FIJubQ +J4tkXtFbuxTvBZwSXhDiAs9B4zXB201LV9SD1dbgbQOt/BYhWqieWWoCJjUZiScfyCB 4Ark/5GQORndACK8Ik3eDRm/FJPaX/sawkdU+n46LRa5UA1RcfCFKBtU6yI3mPW4zLXU VJsV3yCZaPUIEh4BspG06GxAFGgWQf4jXuvXsiQEXMzsFXBZt6vWw9J1ExOyjhfUiJzK 2+5rgA09PX5qgnwshryT2DUzkDM6501bZWpDPoKU02vW+DbtdylJi0guTfajxtLZTQ5X TJZA== 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=DfsyhVYSAzpjyINEB8EGAKdKIw7K2fuzndM9uk9qyuKmuSYQmLxz0GM4ihRSDHs1hE ZfgohtuvQkzBWzcgP9dNnaOTDoLsJBqWH+iv9vt3y0cMz/cN6rZ47sOwDySMblUSzAhO +lhrXNSDf7eLDRorDCoZ12c6Gd7qQjhI/B8JL0A8NEdOVknbRRlPFJUIlxsB0nOh6E5d g6WA7t8Z6MadXTADsWoif5tD0Bj+PMEb3MTpAwkXsKsYHoUGHuZygz4N3iEkgFLfR4Xs Yo8djkbhEc6sGXPuqkyFYlFWJU0EU7dL4usN22jURAbXGlRg7WuUJTsKdMiiJdOvtIbY O/Tw== 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 32-v6si7584405pls.319.2018.02.21.04.47.37; Wed, 21 Feb 2018 04:47:51 -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 S1752859AbeBUJBb (ORCPT + 99 others); Wed, 21 Feb 2018 04:01:31 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:43262 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502AbeBUJAd (ORCPT ); Wed, 21 Feb 2018 04:00:33 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 9D09C18435; Wed, 21 Feb 2018 10:00:31 +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 h7Yr2ASG1IHs; Wed, 21 Feb 2018 10:00:30 +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 0C87218305; Wed, 21 Feb 2018 10:00:30 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EEDC41E088; Wed, 21 Feb 2018 10:00:29 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E2E801E087; Wed, 21 Feb 2018 10:00:29 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Wed, 21 Feb 2018 10:00:29 +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 D50E31D1D; Wed, 21 Feb 2018 10:00:29 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id CFFFD401B8; Wed, 21 Feb 2018 10:00:29 +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 v2 4/8] ARM: dts: artpec: migrate ethernet to stmmac binding Date: Wed, 21 Feb 2018 09:59:56 +0100 Message-Id: <20180221090000.18091-5-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180221090000.18091-1-niklas.cassel@axis.com> References: <20180221090000.18091-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