From patchwork Fri Oct 21 09:58:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 6676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp674798wrr; Fri, 21 Oct 2022 05:40:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4SDbk9SNTmy/psLfaLC1rxYr27XQthdPgRKG1efLW9oDJLVg5oyRXUpCnMn7MaIrq77uFg X-Received: by 2002:a17:902:e3cd:b0:17f:9c94:b22f with SMTP id r13-20020a170902e3cd00b0017f9c94b22fmr19110543ple.80.1666356055721; Fri, 21 Oct 2022 05:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356055; cv=none; d=google.com; s=arc-20160816; b=k8h3EBPy9DBeV9zehFDYpQgU6ORoiUohtz6Dj+/R3loUOn3CFJHY/N+/GpcuFwCQdl MQykGyLfN5jkEtt7sslVCKKXabE583U4ZMJoOHYBliGR2ovsZ98pTkP6Mmuansjd0C49 9yEFRaF3hDEpbBNpwCVf8b7KZj0SV9RAxsvPP7bI/au1Azb603OE+YXNARoJ7OslNvP+ YUltFH+cHp5vz5rjISOFtgJs6r2n0dJBJkwA70FA0cZ8QM5eq7WISLBRLAoSyg5Cz6ra j1PepR0+5Oa0gQMQ4z2CArbtbKTUTTNtgfvt4Kl/yuiqQeHRoLRP5u16MUji4MOoCOiV 0c6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=wYzdlzB1VUH92bAi49JRyjlvkFCC7Q8FuepmJXNRrZI=; b=t60hglfHIZbzwzcSsEx7Z5n5JeppoJLQHC6V1BtH16Y1BYkVHMP6CukQZ0lAxxX9IS O5NYK2jFVeSl+nCTSJA7iG2FLl59Q2i1Js1SXJZcLsrbyzvO56DLRZ1lL6iO3GiCQUBp FlaczsVEvR+7C3x8LSvSkIxtnFL8wobUQM//QdhoVS0nupl2OpZKhiYyjA2LhJ+nmNjd JHYsKE+smEi0SyvJivOD7mXk8BU7SZJooNrF9q02DvngtwOAMNcdl1CqQpeXLdQNB5ds awsCd8adeZ1uSzYpSSMueYBTk1MVmLT0Qz9OmSgOUBX5TMd7Jm9i+qZ7j1KfOOrX/W1a GcZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RuJBryLm; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a056a00238600b0056300ad8dd2si26130011pfc.367.2022.10.21.05.40.42; Fri, 21 Oct 2022 05:40:55 -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=@samsung.com header.s=mail20170921 header.b=RuJBryLm; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230089AbiJUMiX (ORCPT + 99 others); Fri, 21 Oct 2022 08:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbiJUMiJ (ORCPT ); Fri, 21 Oct 2022 08:38:09 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F355266406 for ; Fri, 21 Oct 2022 05:38:08 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20221021123806epoutp022dbff6ab08abb6a1e8b475184d27f7ab~gFdmgTNfJ2912929129epoutp02k for ; Fri, 21 Oct 2022 12:38:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20221021123806epoutp022dbff6ab08abb6a1e8b475184d27f7ab~gFdmgTNfJ2912929129epoutp02k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1666355886; bh=wYzdlzB1VUH92bAi49JRyjlvkFCC7Q8FuepmJXNRrZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RuJBryLmAc/gX/m06Bj5b1EHg8NLavHMpySqJgI86kU+ktUQLgq2YANl+Rh/jLCfw vnOgDzcZ2Uj+3E9mhPcPGKpGZKlAxyJUIeBgTZ3RSO+i2FkGctQEmI0Hz69WbpB6yQ ynIsEGiIPhR8YFv9ZCxm+GGRSvo3TgyT0a/ErcKE= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221021123805epcas5p43250d3ccd0affefb9cacc6fb9f41f0f1~gFdlxkPGm2985729857epcas5p4d; Fri, 21 Oct 2022 12:38:05 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.176]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Mv3sR3jfxz4x9Pw; Fri, 21 Oct 2022 12:38:03 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 9D.5F.56352.BA292536; Fri, 21 Oct 2022 21:38:03 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20221021102625epcas5p4e1c5900b9425e41909e82072f2c1713d~gDqnzpXFw0278002780epcas5p4q; Fri, 21 Oct 2022 10:26:25 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221021102625epsmtrp13b1bcd957045dfe5823dcae5e0fbe106~gDqnyvBDA1811718117epsmtrp1m; Fri, 21 Oct 2022 10:26:25 +0000 (GMT) X-AuditID: b6c32a4b-383ff7000001dc20-62-635292abc382 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id AE.30.18644.0D372536; Fri, 21 Oct 2022 19:26:25 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221021102623epsmtip112032568f9ef79388f276b8b1303d124~gDql0c6RI2573525735epsmtip1D; Fri, 21 Oct 2022 10:26:22 +0000 (GMT) From: Vivek Yadav To: rcsekar@samsung.com, wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, pankaj.dubey@samsung.com, ravi.patel@samsung.com, alim.akhtar@samsung.com Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vivek Yadav Subject: [PATCH 2/7] dt-bindings: can: mcan: Add ECC functionality to message ram Date: Fri, 21 Oct 2022 15:28:28 +0530 Message-Id: <20221021095833.62406-3-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221021095833.62406-1-vivek.2311@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplk+LIzCtJLcpLzFFi42LZdlhTU3f1pKBkg7WfpC0ezNvGZjHnfAuL xdNjj9gtLmzrY7VY9X0qs8XlXXPYLNYvmsJicWyBmMW3028YLRZt/cJu8fDDHnaLWRd2sFr8 WniYxW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ailID: 20221021102625epcas5p4e1c5900b9425e41909e82072f2c1713d X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221021102625epcas5p4e1c5900b9425e41909e82072f2c1713d References: <20221021095833.62406-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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?1747300967600362164?= X-GMAIL-MSGID: =?utf-8?q?1747300967600362164?= Whenever the data is transferred or stored on message ram, there are inherent risks of it being lost or corruption known as single-bit errors. ECC constantly scans data as it is processed to the message ram, using a method known as parity checking and raise the error signals for corruption. Add error correction code config property to enable/disable the error correction code (ECC) functionality for Message RAM used to create valid ECC checksums. Signed-off-by: Chandrasekar R Signed-off-by: Vivek Yadav --- Documentation/devicetree/bindings/net/can/bosch,m_can.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml index 26aa0830eea1..0ba3691863d7 100644 --- a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml +++ b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml @@ -50,6 +50,10 @@ properties: - const: hclk - const: cclk + mram-ecc-cfg: + items: + - description: M_CAN ecc registers map with configuration register offset + bosch,mram-cfg: description: | Message RAM configuration data.