From patchwork Tue May 30 09:51:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Somisetty, Pranavi" X-Patchwork-Id: 100713 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2067310vqr; Tue, 30 May 2023 03:09:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4y8JZmwmih3+PPkGu1I3uUCl4TK244XlWmwBpzhlv/MU98bp6+OR9VRdRGBbcmRWjc6fzw X-Received: by 2002:a17:902:ec91:b0:1a6:d15f:3ce1 with SMTP id x17-20020a170902ec9100b001a6d15f3ce1mr2327738plg.34.1685441399010; Tue, 30 May 2023 03:09:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685441398; cv=pass; d=google.com; s=arc-20160816; b=Rsi6GS8Faw+kBhGKbdJFPjcZcYgyShLV9RkA2OBlIoAUODC244aBuDCj9D9EkqV9uV YOOU/LpXYtHbMSymv7096SVrC9s4g6S1RD/MP13PZb4UCh8sjGCiQbQrI1LqiWuinEwd Ic/5jzJiiem4Ou7IUYFZ6CSby6JN7d/9mklRBt0lqzssgto2EkYOkdzI587Juy5GoIhW 84EhFxEaZ8XrMmcyCafav7C5VyPx9fq/RThNL2JY92mrm/7NxJfeIo6LRQOucJiISsc8 iH8X9YybGedC+oxPiwB3qWbTGjUltqCOn9NjeSe0eS5pfHwQtOYZ/XZfKzHBQgqawtuC +xTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pyl0CcVo3uY///PseVrNKwBtHCZzUEIj/JGsvMsJtHQ=; b=EichXWoomAPvVd2Jq4piUnrdQyGxH0k7XiOUmaNVTn0l9vh2xsMfNBCxUeLL28lC36 ec8sRKlMyLW1fsE/XDrpT/G7vKke9+tE6qvjdfGvZXkySlNxXUEeeSD41M4Ts/pp+VXd m2awedAnV/oOuHh1T5X/IX5Eke//aU8heAmk833NKx3FXO3WDroV/Yfq5iidxi8cuJP+ ZJUD9EXyB/ZHfuxPYWhtE6jd77tC2qty19mTt8najv1BxaelwBFBcDoPk7wx9GD4g3lM sBnvSF9GV6Zuaapwo5tSNdPjRBGtDCRS6Sde/x2OPIcfQiKsLfan/sN+LyEMbcGaS8/J RksQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ahLePeti; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj2-20020a170902850200b001ae52127485si1098908plb.433.2023.05.30.03.09.44; Tue, 30 May 2023 03:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ahLePeti; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231199AbjE3Jw2 (ORCPT + 99 others); Tue, 30 May 2023 05:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbjE3JwO (ORCPT ); Tue, 30 May 2023 05:52:14 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7DA2109; Tue, 30 May 2023 02:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D5nGQnbmeziG/LuYLogCufeRP3Bza/xk/icoqm64cvc72YrPsrYtK/1e5PQ4aeOvquTjTui6wWfizsexoUsDhSJYNw+lsMLB95nAgDlaX1Shu4EIh7t5rC/YXvdsr3oUAt/GL/fF2lCjK6/JloZuSPMEbz33RcWl2XokmqSdQn8r4XvX5Ww9m8+UtWjW2Q5eBNvHzDkNqMfs+2rP96LanMsQOC45it4DMhnO8uNYYE8REoCxcs7JAQivsmvcuGD35Xx8H5Ue2DgPgVv6bCF/TiJ/TfqkFbql/4euZehG+ssCxuhwK0ycNcU9mRkPj+KyKeyiHXoiKxotV69fjkEAGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pyl0CcVo3uY///PseVrNKwBtHCZzUEIj/JGsvMsJtHQ=; b=mQjrm2REZsU4LvxBqVQ3aehAmKeN7gJXOIQg+HOlcgHzLuBpSBE1YZZ5qjUawBDg8ITYGc4Xm693aKoCHNgQZ56F4Z4GLiVvzoCHM++IO9RpJK01G/jSlzkIhyoT9+czGNCCXmKs5SCXh7nfhDSKC4lCYojVTSfxNt6mMaaklE/+9oYfSNBCoT5QoqKC2MEOM8eH/Uz1vvZT1ZGIuuqLVDOQl+fzZkydMWEmkKVsCvXoijAOZUmPU6kstsNNM60YLnmlSS5xwjsFzVMck7dVr4BAX2pSCkFem+CqoNz17u17LWSiCwIVbJukQQfBT3CrhSXmdEIPPurPt3FvDFYjrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pyl0CcVo3uY///PseVrNKwBtHCZzUEIj/JGsvMsJtHQ=; b=ahLePetiAiRGwk9nawN7das6gV+TFX0VyOX/06DCglCx78sNC5ETNEOFUEVNfvneVR+9U5V5nav5B/CYgCN813kUyZOzGFMtf2Xi6Jj5RR9pF1SUedkVNOfviFull79dvsVeg7/cE0LGat7o87ooESt+OIOdV8BxpavZgEIW1QE= Received: from MW4PR04CA0230.namprd04.prod.outlook.com (2603:10b6:303:87::25) by BN9PR12MB5384.namprd12.prod.outlook.com (2603:10b6:408:105::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Tue, 30 May 2023 09:51:50 +0000 Received: from CO1NAM11FT065.eop-nam11.prod.protection.outlook.com (2603:10b6:303:87:cafe::90) by MW4PR04CA0230.outlook.office365.com (2603:10b6:303:87::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23 via Frontend Transport; Tue, 30 May 2023 09:51:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT065.mail.protection.outlook.com (10.13.174.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6455.21 via Frontend Transport; Tue, 30 May 2023 09:51:49 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 30 May 2023 04:51:48 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 30 May 2023 02:51:48 -0700 Received: from xhdpranavis40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 30 May 2023 04:51:44 -0500 From: Pranavi Somisetty To: , , , , , , , CC: , , , , , , , Subject: [PATCH net-next v3 1/2] dt-bindings: net: cdns,macb: Add rx-watermark property Date: Tue, 30 May 2023 03:51:37 -0600 Message-ID: <20230530095138.1302-2-pranavi.somisetty@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230530095138.1302-1-pranavi.somisetty@amd.com> References: <20230530095138.1302-1-pranavi.somisetty@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT065:EE_|BN9PR12MB5384:EE_ X-MS-Office365-Filtering-Correlation-Id: abb0f8f1-39b7-4a5c-7e7f-08db60f37d2d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KDTsoS6IHsRdolWpulz2hVIgt7Z8DDDpOB+iZbehETZREIlzHh3HiyyO23HXuAD7rlVbZQ+UMwQ+pEbEuNKZ2cMPUN9g198nHls+yUzdcWChSzDSDUZOLkuy5j9OvEAXphvUST51qeczFmObA1alGyUxMEKZe10hd8cvzGfdrIU3CeB/DVFo40G7U/m8lotwtoiglugzTf/uANBjPmmILypj1X03uSNnfCCuSuFf9nZiibbKZeYzskwx9nPjokwomebVg5HPg/7KAShaGe6/wbsF9dT3sRduuZlWNKUNHBkmOJdZxo6vBY7ovc/ZZW/ZVxv6SJ8J+Dmv3JfmhQVpxBvN8xguUNxg2sgrxlvuZ+pXOSAkFu55ZDdfuNPgQjCKo+HekGcCKnGHt9YFj9YHEZB0s519GakKcVWA918GDde0V+0mrAqZrUISyEMgUi31mM1uzjm6OrQTKjndo5kw6vVrRRy4xBuJzir3wrKINs6j/qvGoIu86/gagTUViQowDt8pVyucyvRQXzGk1y6Dqu+YvjEaouLyZJ/xZleb58g8BN/ojTjvAkxmyG0kOG9ZL8YUQVLH9TTdQZVokKgc2e3pzL388QD+tfg3BaeUG00Sa96ZoDQrlswyfCe9Jlz1POpD3NhgBNsN7yz+uL1wJvaTHX2X8dBH8ByS4rr0qZGpU58CG2vB00q44am2RbT5N7C+6e++wDGrJpHJ3f00wovob32YgD8N8JfPlni6PLNV7My2G+3eFpoZINIwxd5EvRiOTuo1ZOLeKIUsiAYCbg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(346002)(396003)(39860400002)(376002)(136003)(451199021)(46966006)(40470700004)(36840700001)(186003)(2906002)(2616005)(54906003)(110136005)(426003)(478600001)(336012)(1076003)(26005)(44832011)(47076005)(83380400001)(40460700003)(36860700001)(41300700001)(356005)(81166007)(8676002)(82740400003)(8936002)(40480700001)(70586007)(5660300002)(70206006)(316002)(6666004)(82310400005)(36756003)(7416002)(4326008)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 09:51:49.4947 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: abb0f8f1-39b7-4a5c-7e7f-08db60f37d2d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT065.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5384 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767313400367909275?= X-GMAIL-MSGID: =?utf-8?q?1767313400367909275?= watermark value is the minimum amount of packet data required to activate the forwarding process. The watermark implementation and maximum size is dependent on the device where Cadence MACB/GEM is used. Signed-off-by: Pranavi Somisetty --- Changes v2: None (patch added in v2) Changes v3: 1. Fixed DT schema error: "scalar properties shouldn't have array keywords". 2. Modified description of rx-watermark to include units of the watermark value. 3. Modified the DT property name corresponding to rx_watermark in pbuf_rxcutthru to "cdns,rx-watermark". 4. Modified commit description to remove references to Xilinx platforms, since the changes aren't platform specific. --- Documentation/devicetree/bindings/net/cdns,macb.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml index bef5e0f895be..2c733c061dce 100644 --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml @@ -109,6 +109,14 @@ properties: power-domains: maxItems: 1 + cdns,rx-watermark: + $ref: /schemas/types.yaml#/definitions/uint16 + description: + Set watermark value for pbuf_rxcutthru reg and enable + rx partial store and forward. Watermark value here + corresponds to number of SRAM locations. The width of SRAM is + system dependent and can be 4,8 or 16 bytes. + '#address-cells': const: 1 @@ -166,6 +174,7 @@ examples: compatible = "cdns,macb"; reg = <0xfffc4000 0x4000>; interrupts = <21>; + cdns,rx-watermark = /bits/ 16 <0x44>; phy-mode = "rmii"; local-mac-address = [3a 0e 03 04 05 06]; clock-names = "pclk", "hclk", "tx_clk";