From patchwork Fri Jul 21 06:26:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boon@ecsmtp.png.intel.com, Khai@ecsmtp.png.intel.com, "Ng X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC5A9EB64DD for ; Fri, 21 Jul 2023 06:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cCmvrMZgUDxlW3XZ8XtZON2JfIMxiBwgzIELIw7+/8k=; b=lisIdyuxSB/sR1 EC+9Mkqg2ndl6YZkgOfjChL9v9PoMYIa2bo0gDf61dbXBWXGPHf3GurBdBWG9iJqT0cQwiODG9PqM Bg+3sASO+y01+280W33R8bb1VFdLVL2wuaxyXcGYiXv27hZUHY9V6AgpbxubW6KNprvtk6yiv+VyG TE0EO2Ml1j5JdL/0cNr54jDEmgy1pOiXgFuIXKGfRxc43o8tcmYbIiGDV55lNU9Sc9w6bFZs1x7kL Z0eNR26vmEOlp+MQm/dziiMPgyrBGWIPny8bPnWLPNf6xygrjCbGbWpzVvdNXsgtfw0gSi49rlaIR 8/SMiuLo6zHSKWs5HlPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qMjbl-00D26Q-1s; Fri, 21 Jul 2023 06:27:21 +0000 Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qMjbh-00D23E-2y for linux-arm-kernel@lists.infradead.org; Fri, 21 Jul 2023 06:27:19 +0000 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="453327537" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="453327537" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 23:26:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="727990182" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="727990182" Received: from pglmail07.png.intel.com ([10.221.193.207]) by fmsmga007.fm.intel.com with ESMTP; 20 Jul 2023 23:26:54 -0700 Received: from localhost (pglc00300.png.intel.com [10.221.233.223]) by pglmail07.png.intel.com (Postfix) with ESMTP id 84E504832; Fri, 21 Jul 2023 14:26:53 +0800 (+08) Received: by localhost (Postfix, from userid 11742525) id 839CC80F8C4; Fri, 21 Jul 2023 14:26:53 +0800 (+08) From: Boon@ecsmtp.png.intel.com, Khai@ecsmtp.png.intel.com, "Ng , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Boon Khai Ng , Shevchenko Andriy , Mun Yew Tham , Leong Ching Swee , G Thomas Rohan , Shevchenko Andriy Subject: [Enable Designware XGMAC VLAN Stripping Feature 1/2] dt-bindings: net: snps,dwmac: Add description for rx-vlan-offload Date: Fri, 21 Jul 2023 14:26:16 +0800 Message-Id: <20230721062617.9810-2-boon.khai.ng@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230721062617.9810-1-boon.khai.ng@intel.com> References: <20230721062617.9810-1-boon.khai.ng@intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230720_232717_966481_DAA88F27 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Boon Khai Ng This patch is to add the dts setting for the MAC controller on synopsys 10G Ethernet MAC which allow the 10G MAC to turn on hardware accelerated VLAN stripping. Once the hardware accelerated VLAN stripping is turn on, the VLAN tag will be stripped by the 10G Ethernet MAC. Signed-off-by: Boon Khai Ng Reviewed-by: Shevchenko Andriy --- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index ddf9522a5dc2..905de37e861f 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -487,6 +487,11 @@ properties: description: Frequency division factor for MDC clock. + snps,rx-vlan-offload: + $ref: /schemas/types.yaml#/definitions/flag + description: + Enable hardware-accelerated RX VLAN stripping. + mdio: $ref: mdio.yaml# unevaluatedProperties: false