From patchwork Wed Oct 25 14:04:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Abreu X-Patchwork-Id: 830294 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yMX475nW6z9t38 for ; Thu, 26 Oct 2017 01:06:15 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752084AbdJYOGA (ORCPT ); Wed, 25 Oct 2017 10:06:00 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:46313 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036AbdJYOES (ORCPT ); Wed, 25 Oct 2017 10:04:18 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id C7A7424E1565; Wed, 25 Oct 2017 07:04:17 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id B1B2750C; Wed, 25 Oct 2017 07:04:17 -0700 (PDT) Received: from joabreu-VirtualBox.internal.synopsys.com (joabreu-e7440.internal.synopsys.com [10.107.19.60]) by mailhost.synopsys.com (Postfix) with ESMTP id B4D394F4; Wed, 25 Oct 2017 07:04:15 -0700 (PDT) From: Jose Abreu To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Jose Abreu , "David S. Miller" , Joao Pinto , Giuseppe Cavallaro , Alexandre Torgue , Rob Herring Subject: [PATCH net-next 2/2] bindings: net: stmmac: Add documentation for TSN parameters Date: Wed, 25 Oct 2017 15:04:01 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds the documentation for TSN feature EST and FP. Signed-off-by: Jose Abreu Cc: David S. Miller Cc: Joao Pinto Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Rob Herring --- Documentation/devicetree/bindings/net/stmmac.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/net/stmmac.txt b/Documentation/devicetree/bindings/net/stmmac.txt index c3a7be6..6359df6 100644 --- a/Documentation/devicetree/bindings/net/stmmac.txt +++ b/Documentation/devicetree/bindings/net/stmmac.txt @@ -114,6 +114,16 @@ Optional properties: - snps,high_credit: max write outstanding req. limit - snps,low_credit: max read outstanding req. limit - snps,priority: TX queue priority (Range: 0x0 to 0xF) +- TSN parameters: below the list of all the parameters to configure TSN + features (only applicable for IP version >= 5.00) + - snps,est: Enable EST algorithm + - If EST enabled provide these parameters: + - snps,btr: Array size of 2 with BTR value for EST algorithm + - snps,ctr: Array size of 2 with CTR value for EST algorithm + - snps,ter: TER value for EST algorithm + - snps,gcl: Variable size array with GCL table entries. + - snps,fp: Enable FP feature. This needs EST enabled. + Examples: stmmac_axi_setup: stmmac-axi-config { @@ -151,6 +161,15 @@ Examples: }; }; + tsn_setup: tsn-config { + snps,est; + snps,btr = <0x00000000 0x00000001>; + snps,ctr = <0x00000000 0x10000000>; + snps,ter = <0x00000000>; + snps,gcl = <0x00000001 0x00000002 0x00000003>; + snps,fp; + }; + gmac0: ethernet@e0800000 { compatible = "st,spear600-gmac"; reg = <0xe0800000 0x8000>; @@ -176,4 +195,5 @@ Examples: }; snps,mtl-rx-config = <&mtl_rx_setup>; snps,mtl-tx-config = <&mtl_tx_setup>; + snps,tsn-config = <&tsn_setup>; };