From patchwork Wed Nov 9 10:09:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 17472 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp267027wru; Wed, 9 Nov 2022 02:59:37 -0800 (PST) X-Google-Smtp-Source: AMsMyM5JGoqTYyTXXXe5d/hD7nXfj84x5/hy4DT7J8kj768FuHT1cowhHMAP7z/WdLzhZ17/nU+q X-Received: by 2002:a17:906:cc0f:b0:7a1:6786:f55 with SMTP id ml15-20020a170906cc0f00b007a167860f55mr55383860ejb.359.1667991577646; Wed, 09 Nov 2022 02:59:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991577; cv=none; d=google.com; s=arc-20160816; b=eZXPgKh2H59oq1IYfWI5tR3HFPR7iYtfb73Dxe4RlsrMaCABCoqFAB4YJsXDIGdp6D it+1bGQpRVcgGk12oqv8FMXqkUUC5p052KxT5vJ5kkwNu5dgOlRMl5ekWZDCkN/FESdu qwabF7L5ftavI0RSAh+gtGrjTMLofDixAuX2ZkpWRaOnZu3YxRpQSW+16miRNWb+AaqV H3cySmXrKhTauPvYTpcWIjgcQLSb2UYXX/vQqKMx1ntFpKk2hzknLFeTCRGQ8UBr2zdC oCP9Luc9Q0psHvBvXVO53TbPC6T1J7IJy/gJrrLpOM4DeNvBs/iZIkPwmkaq8CqemXpW zsQQ== 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=cuGZVz4FIhuzdAfWl8rgVOUhOMLdb5/nmbhIZx7irik=; b=qmzJzsmaeSQYcO/E7bXCl0M2R6o2nT28ujOjzkR5lK59U6c0zAGho2bl6LAU5U8Lg1 mYrb8muTIR4sLROoLU9yq8nIGsejtUt9ABpl+qT2zmTAh6y6M9r/KTBZ8XZUH+vXCB+u lZkERtXUik7lcj3D5Qkc8gBYy2qYN6S3IF8tX/yanwmMEmkdmiNtDoFNfmckzEKPCflY waBakqzXLphlrzXEcIRnl9SziXOc7maDFDzx1c+eSk5iq87EnTliLasOUQd7NunT1Vjn HNGIKp6+4y1UTluxPcmfAAffPwKOC40z5ZKktpTBk7VDjE+NULDu7D05iGfQW2w4/i5N PMLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AgOE4oYh; 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 w11-20020a056402268b00b004614fa1f99csi16917495edd.540.2022.11.09.02.59.14; Wed, 09 Nov 2022 02:59:37 -0800 (PST) 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=AgOE4oYh; 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 S229802AbiKIKxf (ORCPT + 99 others); Wed, 9 Nov 2022 05:53:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230402AbiKIKww (ORCPT ); Wed, 9 Nov 2022 05:52:52 -0500 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5ABD27DDE for ; Wed, 9 Nov 2022 02:52:47 -0800 (PST) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221109105246epoutp034d1fb0e9effb226263e4c0384c99f84e~l5SDicufT1324413244epoutp03V for ; Wed, 9 Nov 2022 10:52:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221109105246epoutp034d1fb0e9effb226263e4c0384c99f84e~l5SDicufT1324413244epoutp03V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667991166; bh=cuGZVz4FIhuzdAfWl8rgVOUhOMLdb5/nmbhIZx7irik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AgOE4oYh60AX5ZvHuqEBC6uCEgNrVF3FZcMHlubYoCdPcbbvoB1tGCFr0Djx0hNrJ 8zpnEdWigN60R/4kDZS0SVZpc0KTL9dXroyxxIA25PPbNH6ehmVzkGiLXdVOU6G/aO UCfVl+gS2iE6Ue1LyCG63+T+uwZxvRJ+Ky1YteoA= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221109105245epcas5p40fff769aac1c87b0724955c96166dd07~l5SC1wPwg0925809258epcas5p4w; Wed, 9 Nov 2022 10:52:45 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.175]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4N6hd71dtRz4x9Pt; Wed, 9 Nov 2022 10:52:43 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C9.31.01710.B768B636; Wed, 9 Nov 2022 19:52:43 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221109100245epcas5p38a01aed025f491d39a09508ebcdcef84~l4mYcPO1F0950009500epcas5p33; Wed, 9 Nov 2022 10:02:45 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221109100245epsmtrp2af633d327b72b3b0316ecf51ffd72eac~l4mYa3idD1470214702epsmtrp2O; Wed, 9 Nov 2022 10:02:45 +0000 (GMT) X-AuditID: b6c32a49-c9ffa700000006ae-4b-636b867b85aa Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id A3.E0.14392.4CA7B636; Wed, 9 Nov 2022 19:02:45 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221109100242epsmtip23606948220b4375261e0ec2d7bee2dea~l4mViXYTC1466814668epsmtip2X; Wed, 9 Nov 2022 10:02:41 +0000 (GMT) From: Vivek Yadav To: rcsekar@samsung.com, krzysztof.kozlowski+dt@linaro.org, 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, linux-fsd@tesla.com, robh+dt@kernel.org Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, aswani.reddy@samsung.com, sriranjani.p@samsung.com, Vivek Yadav Subject: [PATCH v2 1/6] dt-bindings: Document the SYSREG specific compatibles found on FSD SoC Date: Wed, 9 Nov 2022 15:39:23 +0530 Message-Id: <20221109100928.109478-2-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109100928.109478-1-vivek.2311@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTe0xbVRzHPbe3twVEL6/uSCaWbkMGAdpR8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/NXih2YdyXuXWl4Xn7kdalLE547tue/fBCwdXVp0cEn9eLbP4qIcrkH 7v0X6bH4IU/BzIQp7Qc5ZD7YmekWpMiquHyYsX19yv6zUyrX3H+Q8lFLzHXF7EcZqh5BSfus ZgYd5w6Yc/vXoSzOBZYcH91YAzXclS5ZTC+15H42Q2PDzZoT5+Lk/sVXF1+Z3ix9Wq1l+eO2 3TvEGthO9055s7muNThbiaU4I9FQi7moOBEA3FLSUQ4DAAA= X-CMS-MailID: 20221109100245epcas5p38a01aed025f491d39a09508ebcdcef84 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109100245epcas5p38a01aed025f491d39a09508ebcdcef84 References: <20221109100928.109478-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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?1749015936959239498?= X-GMAIL-MSGID: =?utf-8?q?1749015936959239498?= From: Sriranjani P Describe the compatible properties for SYSREG controllers found on FSD SoC. Signed-off-by: Alim Akhtar Signed-off-by: Pankaj Kumar Dubey Signed-off-by: Ravi Patel Signed-off-by: Vivek Yadav Cc: devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Cc: Rob Herring Signed-off-by: Sriranjani P --- .../devicetree/bindings/arm/tesla-sysreg.yaml | 50 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/tesla-sysreg.yaml diff --git a/Documentation/devicetree/bindings/arm/tesla-sysreg.yaml b/Documentation/devicetree/bindings/arm/tesla-sysreg.yaml new file mode 100644 index 000000000000..bbcc6dd75918 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/tesla-sysreg.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/tesla-sysreg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tesla Full Self-Driving platform's system registers + +maintainers: + - Alim Akhtar + +description: | + This is a system control registers block, providing multiple low level + platform functions like board detection and identification, software + interrupt generation. + +properties: + compatible: + oneOf: + - items: + - enum: + - tesla,sysreg_fsys0 + - tesla,sysreg_peric + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + sysreg_fsys0: system-controller@15030000 { + compatible = "tesla,sysreg_fsys0", "syscon"; + reg = <0x0 0x15030000 0x0 0x1000>; + }; + + sysreg_peric: system-controller@14030000 { + compatible = "tesla,sysreg_peric", "syscon"; + reg = <0x0 0x14030000 0x0 0x1000>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index a198da986146..56995e7d63ad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2943,6 +2943,7 @@ M: linux-fsd@tesla.com L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) L: linux-samsung-soc@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/arm/tesla-sysreg.yaml F: arch/arm64/boot/dts/tesla* ARM/TETON BGA MACHINE SUPPORT From patchwork Wed Nov 9 10:09:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 17469 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp266582wru; Wed, 9 Nov 2022 02:58:19 -0800 (PST) X-Google-Smtp-Source: AMsMyM4cztiniFXT8a3MZ/SVnj5u3JdeDBYHdQ8sYgiMoQ8HxpG9Sc9veHxZ9bFHRBQ6iyy3Atx1 X-Received: by 2002:a17:907:7245:b0:78d:ec9c:e743 with SMTP id ds5-20020a170907724500b0078dec9ce743mr57448193ejc.466.1667991499092; Wed, 09 Nov 2022 02:58:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991499; cv=none; d=google.com; s=arc-20160816; b=FkFGHIS1AjNfA7ii6mS4qaDTVWjuSojBWoUKey7JAeTnBlQypyI0o7GCEQIWovoebh vRVyezHANmizQWoK9M2J8eNvnmPFWKXbjGlUWt7M/KdIP4cZWfxJsYXq0WN3G/CCg7m5 I85ZKg1LREHrlBoZQMntQTcNlKq8ZjnjI/8vhAAGbV7gSY1BhUkFNtXK5Y0kgTtajFEx BGBzmkh0ztB1OknblDTPB7GUpheLUZa7wEPsAm91oBgkO4yW32Dblwudq1kz6/vd+0/M HVBtT4GzBerSxV+ujCF9Dxw1J4nqhR1VTufTduksEDIgpcdcg23I1NHXHJo1fkZ+7f0d hXsw== 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=8tJbVmcalInqjr8002K5YdNiHoVQ5bDHN1OlG4dZ7VI=; b=GxcPh2+c+ozbpl0mOS+bsp4hmTAGU3U/tNenwSQ/r06sXIu0jXi/ZHRox2aOz8BQ7v VQuf98ois0Ze7Y/m3uvm+aPG0qwmv+Yx6NeIn6u+SUew9MXgGj41uIIyXuFqekFIHnoc RxS2RByH7ckkCH2UDTlKZ+oKyNT8hdHDn7jCdQIFfAUCcLej0QsOX76XMc1MPjflJPls Ncqy8S8n6N6zt/waYmpO6AYn4h66eN4BT5GN6RwWU0ivfpvw4+j926T9UziK0MJOE9Xx joRcjc/IF6Opcl0MNeGqiEU4IUrg4qsDHlK6fP+tXVwSOUH2TQSyRSqPVs/RhW/jzIvE CFtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RRW7xcU4; 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 hz3-20020a1709072ce300b007ad841520afsi15981600ejc.366.2022.11.09.02.57.55; Wed, 09 Nov 2022 02:58:19 -0800 (PST) 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=RRW7xcU4; 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 S230196AbiKIKyM (ORCPT + 99 others); Wed, 9 Nov 2022 05:54:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbiKIKxZ (ORCPT ); Wed, 9 Nov 2022 05:53:25 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D186B29340 for ; Wed, 9 Nov 2022 02:53:02 -0800 (PST) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221109105301epoutp01c96d171f9c7540c438923a02ea8394b5~l5SRfMTZi0109301093epoutp01h for ; Wed, 9 Nov 2022 10:53:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221109105301epoutp01c96d171f9c7540c438923a02ea8394b5~l5SRfMTZi0109301093epoutp01h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667991181; bh=8tJbVmcalInqjr8002K5YdNiHoVQ5bDHN1OlG4dZ7VI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RRW7xcU44/JeDzX96KgulpOCsqqZ7jcaqm9PLoI2IJ+ZqjC+erVy2cPh4O5I5dF9C MheGYW7sWxVpGopJRk8UI1Hw34GdPgtjEr0Ospch3yJQTR97DNJszCQ00gX6YtbU43 /Pfp4LFaOBNrXgH6IYGHIDvUfp5Kx/XY/bNhgolw= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20221109105300epcas5p3dc38c1dce7325d8eaa97f320febd5d5b~l5SQ5vusB0093000930epcas5p3X; Wed, 9 Nov 2022 10:53:00 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.181]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4N6hdQ4ZVfz4x9Q1; Wed, 9 Nov 2022 10:52:58 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id DC.37.39477.A868B636; Wed, 9 Nov 2022 19:52:58 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20221109100249epcas5p142a0a9f7e822c466f7ca778cd341e6d9~l4mc1Pwen0651406514epcas5p10; Wed, 9 Nov 2022 10:02:49 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221109100249epsmtrp20d91aa3791ac1d0547d711acfc0def13~l4mc0PmRO1459514595epsmtrp2f; Wed, 9 Nov 2022 10:02:49 +0000 (GMT) X-AuditID: b6c32a4a-007ff70000019a35-df-636b868a50c7 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F5.E0.14392.9CA7B636; Wed, 9 Nov 2022 19:02:49 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221109100246epsmtip275237e780508fbf6ad5796f05eaae93c~l4mZ_LXyt1466814668epsmtip2a; Wed, 9 Nov 2022 10:02:46 +0000 (GMT) From: Vivek Yadav To: rcsekar@samsung.com, krzysztof.kozlowski+dt@linaro.org, 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, linux-fsd@tesla.com, robh+dt@kernel.org Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, aswani.reddy@samsung.com, sriranjani.p@samsung.com, Vivek Yadav Subject: [PATCH v2 2/6] dt-bindings: can: mcan: Add ECC functionality to message ram Date: Wed, 9 Nov 2022 15:39:24 +0530 Message-Id: <20221109100928.109478-3-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109100928.109478-1-vivek.2311@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VTe0xTVxjPubcvanBXcHggzJGmC9hZaLF0B0aHyXTeDTabGHRxRryWS0v6 XG/RMZeJTNzAycOMABXlIZuIG2Ip74e8AmFMYIrEzQ0oMDWkG0gdRDfcWgrbf7/v9/1+3/ed 75zDw/26OUG8VIOFNhsonY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sa3 ynWit4zl7qc9Ptan9K5sc8vZpfaOmcVqQb+tePek3TmlzzTft00og92Z/xSrWqG77+lw9c06 93c5aujp2N0oVGIpzkg01GIuKk4EAIgOjpcNAwAA X-CMS-MailID: 20221109100249epcas5p142a0a9f7e822c466f7ca778cd341e6d9 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109100249epcas5p142a0a9f7e822c466f7ca778cd341e6d9 References: <20221109100928.109478-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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?1749015854281252635?= X-GMAIL-MSGID: =?utf-8?q?1749015854281252635?= 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 Cc: devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Cc: Rob Herring Signed-off-by: Vivek Yadav --- .../bindings/net/can/bosch,m_can.yaml | 31 +++++++++++++++++++ 1 file changed, 31 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..91dc458ec33f 100644 --- a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml +++ b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml @@ -50,6 +50,12 @@ properties: - const: hclk - const: cclk + tesla,mram-ecc-cfg: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Handle to system control region that contains the ECC INIT register + and register offset to the ECC INIT register. + bosch,mram-cfg: description: | Message RAM configuration data. @@ -149,4 +155,29 @@ examples: }; }; + # Example 2: m_can on the FSD SoC + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + can@14088000 { + compatible = "bosch,m_can"; + reg = <0x0 0x14088000 0x0 0x0200>, + <0x0 0x14080000 0x0 0x8000>; + reg-names = "m_can", "message_ram"; + interrupts = , + ; + interrupt-names = "int0", "int1"; + pinctrl-names = "default"; + pinctrl-0 = <&m_can0_bus>; + clocks = <&clock_peric PERIC_MCAN0_IPCLKPORT_PCLK>, + <&clock_peric PERIC_MCAN0_IPCLKPORT_CCLK>; + clock-names = "hclk", "cclk"; + tesla,mram-ecc-cfg = <&sysreg_peric 0x708>; + bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; + }; + }; ... From patchwork Wed Nov 9 10:09:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 17471 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp266657wru; Wed, 9 Nov 2022 02:58:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM4QY95xc9bqFzOLWoZ1lGpQWY/dCeeX0yQlzmByfPJVbd8nquVseEnk6baPMDl06XsMw3wn X-Received: by 2002:a05:6402:7c4:b0:462:9bc2:d0d0 with SMTP id u4-20020a05640207c400b004629bc2d0d0mr60345972edy.122.1667991509777; Wed, 09 Nov 2022 02:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991509; cv=none; d=google.com; s=arc-20160816; b=ZAL4CBJb6KrrXXiMfE2unqlvFwuXE/feZ+MH/gibSCMv9nqXi9v6SUHTsoyfyuwrPx hn5hfRnt4BbeeHFH0qR6q5ovgYX5mK1ej/OYWC2+oGU4Gegr+4JjJVaOWjq7cU9kHrDL KdH48zn1/6QqnqQ01Q81eCIgTixq82Lis919fuZ0tqK+zggFiot80gpLTNvjCerx0l6b S1Vw9jukp1cM7+vKJo8ToN+KsyqGKpIyz9h/MM1Kz91oa1nHhsraIEDP0963UInejd3g msfRLCt/rJ+APpwGMvR0vZ0V1SqSKnahnrJS5Zm7PhNrHs3rm2MPUlYFIG/8TBZnBYzN SPKw== 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=Yr1834k8OXNcWRYEnFhzVRrz47mefcJuT76a97OR0og=; b=SGsA05+oRi4VoeC8HDnnTPfJuztQwaS8oemWDpYyDPtIPRu6kxSdsQowZU0HhdgR5g nLiH8/8ix9PjTiZfXO9imVJD5chvAiaEP3bcB37pasdQ+VI+woDpjrIgRBjj2tj3usHI DrsWuYtqs3+6Q+yiWBJoJ/yDPg9fdKGoIs+W6X9HfoyglJttB8YXiUBAQEmcEqfmmhUi +RfbHpVXCMiLI9087sNlAF7RTaz1t0BirHpcvvUMX+XiexNdAYVjOf3f+Ef2wUm45ULa +83ESAFei3+u41Wu8ceShlOJhGTqSdrS+XSyE5+Rk5UzML7FUTmqJzpOdObpJQwRoJtL b7Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=joY41sYN; 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 m13-20020aa7c48d000000b00461b84a010fsi13072419edq.295.2022.11.09.02.58.03; Wed, 09 Nov 2022 02:58:29 -0800 (PST) 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=joY41sYN; 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 S231124AbiKIKyD (ORCPT + 99 others); Wed, 9 Nov 2022 05:54:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbiKIKxU (ORCPT ); Wed, 9 Nov 2022 05:53:20 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 050FA28E14 for ; Wed, 9 Nov 2022 02:52:57 -0800 (PST) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20221109105256epoutp02f4e7e0ffe1b3d2e04d9752224c50118d~l5SMvPGmi1956119561epoutp02o for ; Wed, 9 Nov 2022 10:52:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20221109105256epoutp02f4e7e0ffe1b3d2e04d9752224c50118d~l5SMvPGmi1956119561epoutp02o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667991176; bh=Yr1834k8OXNcWRYEnFhzVRrz47mefcJuT76a97OR0og=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=joY41sYNSsUTzsd6vNOREnKVAjy1bF/RU+/v1SO4RiHZFDaXy8l75hxRyJOnjBZxr cx14vsSN3us4rQjXzlQu+3dECx9n41olJGxZVUZ8u0hCYP9wfzLI7EvVkpxXqU4stR /MAHE+wNji2MTiAJ4hKfcH/Wzb6w6+dsoPrKeVzU= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20221109105255epcas5p35a2099d8b8f9eaea18695a3fc450e53a~l5SMKfeSq0093000930epcas5p3Q; Wed, 9 Nov 2022 10:52:55 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.180]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4N6hdK2Y49z4x9Pv; Wed, 9 Nov 2022 10:52:53 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 51.41.01710.5868B636; Wed, 9 Nov 2022 19:52:53 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20221109100254epcas5p48c574876756f899875df8ac71464ce11~l4mgyDo7n0799307993epcas5p4z; Wed, 9 Nov 2022 10:02:54 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221109100254epsmtrp25dd745ebedb0822bb1a534f908dd79ab~l4mgw1_3q1470214702epsmtrp2U; Wed, 9 Nov 2022 10:02:54 +0000 (GMT) X-AuditID: b6c32a49-a41ff700000006ae-62-636b86854a18 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 6E.69.18644.DCA7B636; Wed, 9 Nov 2022 19:02:54 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221109100251epsmtip2005330859f2ac45bb34aa021674f2ca5~l4meCnU511466814668epsmtip2c; Wed, 9 Nov 2022 10:02:51 +0000 (GMT) From: Vivek Yadav To: rcsekar@samsung.com, krzysztof.kozlowski+dt@linaro.org, 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, linux-fsd@tesla.com, robh+dt@kernel.org Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, aswani.reddy@samsung.com, sriranjani.p@samsung.com Subject: [PATCH v2 3/6] arm64: dts: fsd: add sysreg device node Date: Wed, 9 Nov 2022 15:39:25 +0530 Message-Id: <20221109100928.109478-4-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109100928.109478-1-vivek.2311@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTf0wbZRjHfe961wNScha6vaKbeGMwUFgLpTuUHy7iPDeNZLgs/kiwKSdF yrXptUy3GMm0Kgwq6EgIA4bAmIAMVgp2/IYxiBJggrAhDlaGAxciYx2QbI7Yckz/+z5PPs/3 m/d535dApd14AJHOmVgjp9ZRuLeo9XJoSLjlywyNfL7hSfpmeStO9zW3iOnS0S9E9Nn+EYz+ c2BOTFsXnSh9tdWK0bZbkxhdt16E0s47R+nxtlKcLh7tQujGytMieqBiG702tAToypb7Ytp5 t0NMl1x1YLSls19MTy9dwOhzM5ewl2WMvXYKYSpsZmZlbBowtrocnPljsgNnmqs/Y755JGeW uyZwxmqvA8zGyTIx47LtTPJ5NyNWy6pTWWMgy2n0qelcWhx1KDnllZRolVwRroih91GBnDqT jaMS30gKP5Cuc5+SCsxS68zuVpKa56m98bFGvdnEBmr1vCmOYg2pOoPSEMGrM3kzlxbBsaYX FXJ5ZLQb/CBDO2FdxwwLXh83LSyIskEZkQu8CEgq4fBZ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FrVyeZx59oeNo/NS+o9+v8aeLzfd5XNo2/LKkaPf01z2T0+b5IL4I7isklJ zcksSy3St0vgyrja95214DlnxYbnz1kaGOdydDFyckgImEjc2z2DpYuRi0NIYAejxNmWnewQ CSmJKWdeskDYwhIr/z1nhyhqZpJ4s2sjE0iCTUBL4nHnArBuEYHdTBJvu+eCVTEL/AIata+H FaRKWMBe4v61uWwgNouAqsTFLZfAunkFbCSWrV0LtU5eYvWGA8xdjBwcnAK2Eg8XGoCEhYBK nt9exDiBkW8BI8MqRsnUguLc9NxiwwKjvNRyveLE3OLSvHS95PzcTYzguNHS2sG4Z9UHvUOM TByMhxglOJiVRHi5NbKThXhTEiurUovy44tKc1KLDzFKc7AoifNe6DoZLySQnliSmp2aWpBa BJNl4uCUamCaNK3W/3//3S6ps5/Uti6/ZMIn6nR35UfNSTv/7LK59nqC0gqR44evX70dFLKq h93e+8qxw9MmmPrcvbZzx8RfL8W2Su5eIznt/gfZupspu3Y+FopNCjlvcLv2pvOkXK73HDcX KomvjjsymeOSP2tAvNZR1a6QqJk/V79fOuFB6v/erw9qZELsK17qxp8U3mr1P6/Z5aVWaPRV kZjFOxZ7HNL+xlVyhsGCc5KnJk8dkypLE4PC37fMbE02zhNlxFnan2Zqe8TMil+VNPvvC2s7 xU/3+g6l37Likd2yZfO/G9fZIm8vCOde/L+nsf/Kja/rF3D9ZjZyT7w58fMX1/C8Qz7cS1be Ob/6BasFR16hmBJLcUaioRZzUXEiAJ4+vjcKAwAA X-CMS-MailID: 20221109100254epcas5p48c574876756f899875df8ac71464ce11 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109100254epcas5p48c574876756f899875df8ac71464ce11 References: <20221109100928.109478-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.4 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 autolearn=unavailable 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?1749015865270044268?= X-GMAIL-MSGID: =?utf-8?q?1749015865270044268?= From: Sriranjani P Add SYSREG controller device node, which is available in PERIC and FSYS0 block of FSD SoC. Signed-off-by: Alim Akhtar Signed-off-by: Pankaj Kumar Dubey Cc: devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Cc: Rob Herring Signed-off-by: Sriranjani P --- arch/arm64/boot/dts/tesla/fsd.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index f35bc5a288c2..3d8ebbfc27f4 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -518,6 +518,16 @@ "dout_cmu_fsys1_shared0div4"; }; + sysreg_peric: system-controller@14030000 { + compatible = "tesla,sysreg_peric", "syscon"; + reg = <0x0 0x14030000 0x0 0x1000>; + }; + + sysreg_fsys0: system-controller@15030000 { + compatible = "tesla,sysreg_fsys0", "syscon"; + reg = <0x0 0x15030000 0x0 0x1000>; + }; + mdma0: dma-controller@10100000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x0 0x10100000 0x0 0x1000>; From patchwork Wed Nov 9 10:09:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 17470 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp266649wru; Wed, 9 Nov 2022 02:58:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM6IWdYNvLNSNZPuW7lSz5G1DjHMo9xduIXIBfGrD/LwFNWLkEiJfjq66uPUwW82h2oGVZD1 X-Received: by 2002:a17:907:2c68:b0:7ad:8ba7:664a with SMTP id ib8-20020a1709072c6800b007ad8ba7664amr56855058ejc.488.1667991509429; Wed, 09 Nov 2022 02:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991509; cv=none; d=google.com; s=arc-20160816; b=jcXzKAZyV1AbLFXeXo9VrAsflzK3JBmQcpug5UD2judzudLWUPofpdCVdfmadAkvWu lYEmvNa9qoenegqIXmgeG7OOAyNSAhVE0Gai0BdDMP5wP9mOarjq8a3mPKdrAyZZXfFO +fsb6XG6FYq7jC7a5qN9D4tT67KJXHLxQBVslBxBejbhNTZkFxZU+JxDPUameVpzf3QW OfaVimD+FBrk3H7VzgheGocIQI8Vv0837oGCHleHn8kqsa1cFUFX6vMh+LkBwKIQMEGH PRteT8qFbD7VVleW/yNGwhj3JYoTnkn0Iog7OGABFIPC/AZmgvZEw0QxRP2xfMMFLdRv FlzA== 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=Q6BHJdR6aS4iKNUC0tRGmigh4Q1WQwSFXsmGUpYpx2g=; b=ke//jXRY8KNT+a5q7JCk9Uioa/ATbpEqYPkJyf6e/V3DPzpsoaqdokkh+r63degduo KOlXs2v+cNmKEchOH5YKuk0scvlZHDANYYJS8meH3u9sIdwErMAl/tuGFXe7upU1uDij jfx4noZ0ieSiyYkocQsUjOm4+STGWvHq/pc3gJ1hlc8KeW3EBEl3ZuB3KQs8h6PBhRvT KRkngU6j9+KHvy3e/BwLSMigXa0623Oxfnh7ivoD+SeYQjyVG0+rwpOUvWfP6O9TyrTR eQw1Dp2cce+K7Gt+iq26pLalT2M3BpLLvow5nF4n4OBHt4rmF6zpE94fc4qE/S2d8e17 /PhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=s+buqMoV; 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 ca2-20020a170906a3c200b0078d3b940ec5si11760923ejb.373.2022.11.09.02.58.05; Wed, 09 Nov 2022 02:58:29 -0800 (PST) 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=s+buqMoV; 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 S231309AbiKIKy1 (ORCPT + 99 others); Wed, 9 Nov 2022 05:54:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbiKIKx3 (ORCPT ); Wed, 9 Nov 2022 05:53:29 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 067CC2936E for ; Wed, 9 Nov 2022 02:53:07 -0800 (PST) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221109105306epoutp01cd6eb107cfcb05197fa6823ca4b583df~l5SV97X6K0172901729epoutp01X for ; Wed, 9 Nov 2022 10:53:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221109105306epoutp01cd6eb107cfcb05197fa6823ca4b583df~l5SV97X6K0172901729epoutp01X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667991186; bh=Q6BHJdR6aS4iKNUC0tRGmigh4Q1WQwSFXsmGUpYpx2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s+buqMoVUZqAyHNPEzJj3ACarHHEiEWMx0hQ0P83T9IoktSAOrzbsW3lnbhat5/Fn grTEscG1uRSnRNPS1ue45MXRPXHD2zEGpUJyPbRC5Zi5Nv4gLWR+h0EO864S9cjovb XRHhZWT+3JT240GpwarH4cbPj+Ul5lzg3OYjnSxQ= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20221109105305epcas5p17532a6c782358399222b39d937fc4db6~l5SVT0-hP2960629606epcas5p16; Wed, 9 Nov 2022 10:53:05 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.175]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4N6hdW0bZcz4x9Q0; Wed, 9 Nov 2022 10:53:03 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id F2.47.39477.E868B636; Wed, 9 Nov 2022 19:53:02 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221109100258epcas5p2966d5e93e00d2a5b4e4a3096dc5a5ec6~l4mkq3E610099800998epcas5p2o; Wed, 9 Nov 2022 10:02:58 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221109100258epsmtrp13f9cbd29c59c6f43412c937460af35d4~l4mkoVdDo0841808418epsmtrp11; Wed, 9 Nov 2022 10:02:58 +0000 (GMT) X-AuditID: b6c32a4a-259fb70000019a35-ea-636b868ee48f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id F0.79.18644.2DA7B636; Wed, 9 Nov 2022 19:02:58 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221109100255epsmtip2908f98b958431ee5b65144ed4c6d3ae5~l4mh0TTZs1844418444epsmtip2a; Wed, 9 Nov 2022 10:02:55 +0000 (GMT) From: Vivek Yadav To: rcsekar@samsung.com, krzysztof.kozlowski+dt@linaro.org, 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, linux-fsd@tesla.com, robh+dt@kernel.org Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, aswani.reddy@samsung.com, sriranjani.p@samsung.com, Vivek Yadav Subject: [PATCH v2 4/6] arm64: dts: fsd: Add MCAN device node Date: Wed, 9 Nov 2022 15:39:26 +0530 Message-Id: <20221109100928.109478-5-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109100928.109478-1-vivek.2311@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTf1CTdRzH+z7Psx9A4x4B8dtK203B4AI2HesLB+WV1VOhR8bB0aFrtz3H OMa2tpGK17ES0HFsgzM5I9SBKD8PxkDil0ZDxaADWqUQRAzlUvKQHFmZeG08UP+9Pu97vz+f 708uHjLI5nNzNEZar5GrhexAomswKjrGWpKrEFn6EJo908VGro6LHFQ9VkSgs1dGWWj+2hwH We94cDTeZWUh560bLNT050kceRYy0Pe91Wx0auwyhtp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6rP8frcRSnJFoqMVcVJwIAGTZsyUOAwAA X-CMS-MailID: 20221109100258epcas5p2966d5e93e00d2a5b4e4a3096dc5a5ec6 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109100258epcas5p2966d5e93e00d2a5b4e4a3096dc5a5ec6 References: <20221109100928.109478-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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?1749015864877551803?= X-GMAIL-MSGID: =?utf-8?q?1749015864877551803?= Add MCAN device node and enable the same for FSD platform. This also adds the required pin configuration for the same. Signed-off-by: Sriranjani P Cc: devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Cc: Rob Herring Signed-off-by: Vivek Yadav --- arch/arm64/boot/dts/tesla/fsd-evb.dts | 16 +++++ arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 28 +++++++++ arch/arm64/boot/dts/tesla/fsd.dtsi | 68 ++++++++++++++++++++++ 3 files changed, 112 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts index 1db6ddf03f01..af3862e9fe3b 100644 --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts @@ -34,6 +34,22 @@ clock-frequency = <24000000>; }; +&m_can0 { + status = "okay"; +}; + +&m_can1 { + status = "okay"; +}; + +&m_can2 { + status = "okay"; +}; + +&m_can3 { + status = "okay"; +}; + &serial_0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi index d0abb9aa0e9e..bb5289ebfef3 100644 --- a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi @@ -339,6 +339,34 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + m_can0_bus: m-can0-bus-pins { + samsung,pins = "gpd0-0", "gpd0-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + m_can1_bus: m-can1-bus-pins { + samsung,pins = "gpd0-2", "gpd0-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + m_can2_bus: m-can2-bus-pins { + samsung,pins = "gpd0-4", "gpd0-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + m_can3_bus: m-can3-bus-pins { + samsung,pins = "gpd0-6", "gpd0-7"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_pmu { diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index 3d8ebbfc27f4..154fd3fc5895 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -765,6 +765,74 @@ interrupts = ; }; + m_can0: can@14088000 { + compatible = "bosch,m_can"; + reg = <0x0 0x14088000 0x0 0x0200>, + <0x0 0x14080000 0x0 0x8000>; + reg-names = "m_can", "message_ram"; + interrupts = , + ; + interrupt-names = "int0", "int1"; + pinctrl-names = "default"; + pinctrl-0 = <&m_can0_bus>; + clocks = <&clock_peric PERIC_MCAN0_IPCLKPORT_PCLK>, + <&clock_peric PERIC_MCAN0_IPCLKPORT_CCLK>; + clock-names = "hclk", "cclk"; + bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; + status = "disabled"; + }; + + m_can1: can@14098000 { + compatible = "bosch,m_can"; + reg = <0x0 0x14098000 0x0 0x0200>, + <0x0 0x14090000 0x0 0x8000>; + reg-names = "m_can", "message_ram"; + interrupts = , + ; + interrupt-names = "int0", "int1"; + pinctrl-names = "default"; + pinctrl-0 = <&m_can1_bus>; + clocks = <&clock_peric PERIC_MCAN1_IPCLKPORT_PCLK>, + <&clock_peric PERIC_MCAN1_IPCLKPORT_CCLK>; + clock-names = "hclk", "cclk"; + bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; + status = "disabled"; + }; + + m_can2: can@140a8000 { + compatible = "bosch,m_can"; + reg = <0x0 0x140a8000 0x0 0x0200>, + <0x0 0x140a0000 0x0 0x8000>; + reg-names = "m_can", "message_ram"; + interrupts = , + ; + interrupt-names = "int0", "int1"; + pinctrl-names = "default"; + pinctrl-0 = <&m_can2_bus>; + clocks = <&clock_peric PERIC_MCAN2_IPCLKPORT_PCLK>, + <&clock_peric PERIC_MCAN2_IPCLKPORT_CCLK>; + clock-names = "hclk", "cclk"; + bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; + status = "disabled"; + }; + + m_can3: can@140b8000 { + compatible = "bosch,m_can"; + reg = <0x0 0x140b8000 0x0 0x0200>, + <0x0 0x140b0000 0x0 0x8000>; + reg-names = "m_can", "message_ram"; + interrupts = , + ; + interrupt-names = "int0", "int1"; + pinctrl-names = "default"; + pinctrl-0 = <&m_can3_bus>; + clocks = <&clock_peric PERIC_MCAN3_IPCLKPORT_PCLK>, + <&clock_peric PERIC_MCAN3_IPCLKPORT_CCLK>; + clock-names = "hclk", "cclk"; + bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; + status = "disabled"; + }; + spi_0: spi@14140000 { compatible = "tesla,fsd-spi"; reg = <0x0 0x14140000 0x0 0x100>; From patchwork Wed Nov 9 10:09:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 17473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp267378wru; Wed, 9 Nov 2022 03:00:30 -0800 (PST) X-Google-Smtp-Source: AMsMyM7Oj36UICzMFqvSGrqcZwyrdQ4gWbe+z9AYPQ69eSfAOm9zAD53NTcTCOCRRyjdB8sDPKO1 X-Received: by 2002:a17:907:7617:b0:7ad:c0d5:bdf1 with SMTP id jx23-20020a170907761700b007adc0d5bdf1mr50337354ejc.211.1667991630616; Wed, 09 Nov 2022 03:00:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991630; cv=none; d=google.com; s=arc-20160816; b=ARHcklGfaNWbI7R57CVBbXV57Hdfs0EdLLEoPJCYn+eU4J+JAfJdWon93YTTbo5h8G PD2YkyfZJs9W8FevscIR0lQ6+vghCdGrL5R7sF9TdlGnj3Z/aX3pA/OgsLXn2vjzU9kX wFzgwNhNopiZDSufv3pw3PfCRhNbWVHFTWwlMvFMP/mDzzgCFyFpyU91wc4E7sjmF53B V3d61mAsoBzrVC5xSjkfHHqgVK8aTnBHVeRvLOiyCW3Q2bqzqazR+tm0myejZyNIRf6N Rm9jKvvatHCdIwAiLCZFkcSPqJWjCiK3CCWMliILjBgKvFORfoL/KNHm06VN/eg8l+Q+ xz1A== 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=Yg7bj+1oR0s3uoN78lwOUQr34dho0dl7WMgCJv7J+58=; b=vWyYnJNXm1wfQv2KqW3lm+BST2451Y68wtxb+9gRmy9CYP5vUA8DEXEQfl8F0YqvVp wh1nxanZkE3G0HK67ie/LoODx8JtgWQN0gF4uh4zwPtRKH1JaY+1bCjmNZO+FQWGe3L7 ALeujfTu7/xPZzWFpNcRbMJnwd7Q/dghfaLqQKPzl7mTB2nbOWCSefPqaqdZfd+V+UrU mF4J4nvbmhMQTLnX4+KGWRusvVaJ1IGkQWlp2B4j5rUtHLoEaECfAh5aiNISArxnzzg1 Sjo2Dv3PSj3qfuatjuxc3oQtmB5CuljVtXjbd5NlpSUQ4XzPMlt33z8jsGS/Eft2Y52i WTVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=diHUslnD; 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 e20-20020a170906c01400b007891fd9179bsi12333286ejz.150.2022.11.09.03.00.05; Wed, 09 Nov 2022 03:00:29 -0800 (PST) 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=diHUslnD; 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 S230469AbiKIKyi (ORCPT + 99 others); Wed, 9 Nov 2022 05:54:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbiKIKxv (ORCPT ); Wed, 9 Nov 2022 05:53:51 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3587E29C8C for ; Wed, 9 Nov 2022 02:53:11 -0800 (PST) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221109105310epoutp012ef85f2453c3ff4b2cf7d775d0b07ffd~l5SZvBROf0297402974epoutp01k for ; Wed, 9 Nov 2022 10:53:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221109105310epoutp012ef85f2453c3ff4b2cf7d775d0b07ffd~l5SZvBROf0297402974epoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667991190; bh=Yg7bj+1oR0s3uoN78lwOUQr34dho0dl7WMgCJv7J+58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=diHUslnDY6PbRV93sXByOSLVms/bX/N2YC4CUOLY3wXUWU2i+zfQ/0wkByx2faMhD qs8mEfi7XVP/VrRhnzU/m+Fci+hFFgSEoj5GRMx+SnaogFImJQG3jH6jE8ZdvipU4u WuzeCCufGgAhHwDaal+gtdmlnH65Gnlr/a+rYYyc= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221109105309epcas5p4859d3eb3c677bf03883da2f4c8c20a20~l5SYo2V221241612416epcas5p4Y; Wed, 9 Nov 2022 10:53:09 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.183]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4N6hdZ6HF7z4x9Pr; Wed, 9 Nov 2022 10:53:06 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id C8.03.56352.2968B636; Wed, 9 Nov 2022 19:53:06 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221109100302epcas5p276282a3a320649661939dcb893765fbf~l4mov7Trg0099800998epcas5p22; Wed, 9 Nov 2022 10:03:02 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221109100302epsmtrp267d47c8412f496527ce804231bb00928~l4motTZSR1459514595epsmtrp2t; Wed, 9 Nov 2022 10:03:02 +0000 (GMT) X-AuditID: b6c32a4b-383ff7000001dc20-56-636b8692b85d Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id CC.E0.14392.6DA7B636; Wed, 9 Nov 2022 19:03:02 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221109100259epsmtip2eca411ad2f4291996797af9a74a2b4f9~l4mlzakIl1918919189epsmtip2C; Wed, 9 Nov 2022 10:02:59 +0000 (GMT) From: Vivek Yadav To: rcsekar@samsung.com, krzysztof.kozlowski+dt@linaro.org, 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, linux-fsd@tesla.com, robh+dt@kernel.org Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, aswani.reddy@samsung.com, sriranjani.p@samsung.com, Vivek Yadav Subject: [PATCH v2 5/6] can: m_can: Add ECC functionality for message RAM Date: Wed, 9 Nov 2022 15:39:27 +0530 Message-Id: <20221109100928.109478-6-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109100928.109478-1-vivek.2311@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VTf1CTdRj3u/fduwFRb4D4hc6xe40C7oBNYH0xpl6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ckx+uYDvNnRfEwbXGb0uU1LDOiEjqcJ08Lfh9y5ff7fY9klnZUrlm2Xz3K3TtnwYEL fw9VSgoln9t6bJFZc5h+5qbJWvmrvk5avi3YnG1fYr3S7bvV1YF5Jfe1yg5dKdvydmrp1r9r RSd6tezpux+jJNnwbi2Pat3MgsMcm7btmX5MXGzXIsWkhz6CTsfjVHT7JDm6BQxn7Az51qNS sZxN6KmUjJKrXn/3aSWW4oxEQy3mouJEAKVQEtwPAwAA X-CMS-MailID: 20221109100302epcas5p276282a3a320649661939dcb893765fbf X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109100302epcas5p276282a3a320649661939dcb893765fbf References: <20221109100928.109478-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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?1749015990931713171?= X-GMAIL-MSGID: =?utf-8?q?1749015990931713171?= Whenever MCAN Buffers and FIFOs are stored on message ram, there are inherent risks of corruption known as single-bit errors. Enable error correction code (ECC) data integrity check for Message RAM to create valid ECC checksums. ECC uses a respective number of bits, which are added to each word as a parity and that will raise the error signal on the corruption in the Interrupt Register(IR). This indicates either bit error detected and Corrected(BEC) or No bit error detected when reading from Message RAM. Signed-off-by: Chandrasekar R Signed-off-by: Vivek Yadav --- drivers/net/can/m_can/m_can.c | 48 +++++++++++++++- drivers/net/can/m_can/m_can.h | 17 ++++++ drivers/net/can/m_can/m_can_platform.c | 76 ++++++++++++++++++++++++-- 3 files changed, 135 insertions(+), 6 deletions(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index a776cab1a5a4..ddff615ccad4 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -307,6 +307,14 @@ enum m_can_reg { #define TX_EVENT_MM_MASK GENMASK(31, 24) #define TX_EVENT_TXTS_MASK GENMASK(15, 0) +/* ECC Config Bits */ +#define MCAN_ECC_CFG_VALID BIT(5) +#define MCAN_ECC_ENABLE BIT(3) +#define MCAN_ECC_INIT_ENABLE BIT(1) +#define MCAN_ECC_INIT_DONE BIT(0) +#define MCAN_ECC_REG_MASK GENMASK(5, 0) +#define MCAN_ECC_INIT_TIMEOUT 100 + /* The ID and DLC registers are adjacent in M_CAN FIFO memory, * and we can save a (potentially slow) bus round trip by combining * reads and writes to them. @@ -1516,9 +1524,9 @@ static int m_can_dev_setup(struct m_can_classdev *cdev) } if (cdev->ops->init) - cdev->ops->init(cdev); + err = cdev->ops->init(cdev); - return 0; + return err; } static void m_can_stop(struct net_device *dev) @@ -1535,6 +1543,39 @@ static void m_can_stop(struct net_device *dev) cdev->can.state = CAN_STATE_STOPPED; } +int m_can_config_mram_ecc_check(struct m_can_classdev *cdev, bool enable) +{ + struct m_can_ecc_regmap *ecc_cfg = &cdev->ecc_cfg_sys; + int val, ret; + + val = FIELD_PREP(MCAN_ECC_REG_MASK, MCAN_ECC_ENABLE | + MCAN_ECC_CFG_VALID | MCAN_ECC_INIT_ENABLE); + regmap_clear_bits(ecc_cfg->syscon, ecc_cfg->reg, val); + + if (enable) { + val = FIELD_PREP(MCAN_ECC_REG_MASK, MCAN_ECC_ENABLE | + MCAN_ECC_INIT_ENABLE); + regmap_set_bits(ecc_cfg->syscon, ecc_cfg->reg, val); + } + + /* after enable or disable, valid flag need to be set*/ + val = FIELD_PREP(MCAN_ECC_REG_MASK, MCAN_ECC_CFG_VALID); + regmap_set_bits(ecc_cfg->syscon, ecc_cfg->reg, val); + + if (enable) { + /* Poll for completion */ + ret = regmap_read_poll_timeout(ecc_cfg->syscon, ecc_cfg->reg, + val, + (val & MCAN_ECC_INIT_DONE), 5, + MCAN_ECC_INIT_TIMEOUT); + + if (ret) + return ret; + } + + return 0; +} + static int m_can_close(struct net_device *dev) { struct m_can_classdev *cdev = netdev_priv(dev); @@ -1557,6 +1598,9 @@ static int m_can_close(struct net_device *dev) if (cdev->is_peripheral) can_rx_offload_disable(&cdev->offload); + if (cdev->ops->deinit) + cdev->ops->deinit(cdev); + close_candev(dev); phy_power_off(cdev->transceiver); diff --git a/drivers/net/can/m_can/m_can.h b/drivers/net/can/m_can/m_can.h index 401410022823..9821b135a2be 100644 --- a/drivers/net/can/m_can/m_can.h +++ b/drivers/net/can/m_can/m_can.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -26,6 +27,7 @@ #include #include #include +#include #include #include @@ -52,12 +54,23 @@ enum m_can_mram_cfg { MRAM_CFG_NUM, }; +enum m_can_ecc_cfg { + ECC_DISABLE = 0, + ECC_ENABLE, +}; + /* address offset and element number for each FIFO/Buffer in the Message RAM */ struct mram_cfg { u16 off; u8 num; }; +struct m_can_ecc_regmap { + struct regmap *syscon; /* for mram ecc ctrl. reg. access */ + unsigned int reg; /* register index within syscon */ + u8 ecc_cfg_flag; +}; + struct m_can_classdev; struct m_can_ops { /* Device specific call backs */ @@ -68,6 +81,7 @@ struct m_can_ops { int (*write_fifo)(struct m_can_classdev *cdev, int addr_offset, const void *val, size_t val_count); int (*init)(struct m_can_classdev *cdev); + int (*deinit)(struct m_can_classdev *cdev); }; struct m_can_classdev { @@ -92,7 +106,9 @@ struct m_can_classdev { int pm_clock_support; int is_peripheral; + struct m_can_ecc_regmap ecc_cfg_sys; /* ecc config via syscon regmap */ struct mram_cfg mcfg[MRAM_CFG_NUM]; + u8 mram_cfg_flag; }; struct m_can_classdev *m_can_class_allocate_dev(struct device *dev, int sizeof_priv); @@ -104,4 +120,5 @@ int m_can_init_ram(struct m_can_classdev *priv); int m_can_class_suspend(struct device *dev); int m_can_class_resume(struct device *dev); +int m_can_config_mram_ecc_check(struct m_can_classdev *cdev, bool enable); #endif /* _CAN_M_H_ */ diff --git a/drivers/net/can/m_can/m_can_platform.c b/drivers/net/can/m_can/m_can_platform.c index b5a5bedb3116..1281214a3f43 100644 --- a/drivers/net/can/m_can/m_can_platform.c +++ b/drivers/net/can/m_can/m_can_platform.c @@ -67,11 +67,83 @@ static int iomap_write_fifo(struct m_can_classdev *cdev, int offset, return 0; } +static int m_can_plat_init(struct m_can_classdev *cdev) +{ + struct m_can_ecc_regmap *ecc_cfg = &cdev->ecc_cfg_sys; + struct device_node *np = cdev->dev->of_node; + int ret = 0; + + if (cdev->mram_cfg_flag != ECC_ENABLE) { + /* Initialize mcan message ram */ + ret = m_can_init_ram(cdev); + + if (ret) + return ret; + + cdev->mram_cfg_flag = ECC_ENABLE; + } + + if (ecc_cfg->ecc_cfg_flag != ECC_ENABLE) { + /* configure error code check for mram */ + if (!ecc_cfg->syscon) { + ecc_cfg->syscon = + syscon_regmap_lookup_by_phandle_args(np, + "tesla,mram-ecc-cfg" + , 1, + &ecc_cfg->reg); + } + + if (IS_ERR(ecc_cfg->syscon)) { + dev_err(cdev->dev, "couldn't get the syscon reg!\n"); + goto ecc_failed; + } + + if (!ecc_cfg->reg) { + dev_err(cdev->dev, + "couldn't get the ecc init reg. offset!\n"); + goto ecc_failed; + } + + /* Enable error code check functionality for message ram */ + if (m_can_config_mram_ecc_check(cdev, ECC_ENABLE)) + goto ecc_failed; + + ecc_cfg->ecc_cfg_flag = ECC_ENABLE; + } + + return 0; + +ecc_failed: + dev_err(cdev->dev, "Message ram ecc enable config failed\n"); + + return 0; +} + +static int m_can_plat_deinit(struct m_can_classdev *cdev) +{ + struct m_can_ecc_regmap *ecc_cfg = &cdev->ecc_cfg_sys; + + if (ecc_cfg->ecc_cfg_flag == ECC_ENABLE) { + /* Disable error code check functionality for message ram */ + if (m_can_config_mram_ecc_check(cdev, ECC_DISABLE)) { + dev_err(cdev->dev, + "Message ram ecc disable config failed\n"); + return 0; + } + + ecc_cfg->ecc_cfg_flag = ECC_DISABLE; + } + + return 0; +} + static struct m_can_ops m_can_plat_ops = { .read_reg = iomap_read_reg, .write_reg = iomap_write_reg, .write_fifo = iomap_write_fifo, .read_fifo = iomap_read_fifo, + .init = m_can_plat_init, + .deinit = m_can_plat_deinit, }; static int m_can_plat_probe(struct platform_device *pdev) @@ -140,10 +212,6 @@ static int m_can_plat_probe(struct platform_device *pdev) platform_set_drvdata(pdev, mcan_class); - ret = m_can_init_ram(mcan_class); - if (ret) - goto probe_fail; - pm_runtime_enable(mcan_class->dev); ret = m_can_class_register(mcan_class); if (ret) From patchwork Wed Nov 9 10:09: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: 17475 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp267531wru; Wed, 9 Nov 2022 03:00:49 -0800 (PST) X-Google-Smtp-Source: AMsMyM4sWG7d91RHqMu5gT2QI1PX4ugsmtx8K7ng8+Ny1wLk7FFxEv0xINXsHSSKp80ITVuHCJAZ X-Received: by 2002:a17:907:1ddd:b0:7ad:8371:b59c with SMTP id og29-20020a1709071ddd00b007ad8371b59cmr55890086ejc.429.1667991649409; Wed, 09 Nov 2022 03:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991649; cv=none; d=google.com; s=arc-20160816; b=IdtaOBhkh7xhi8Ku+pdMaAXJ9TkEAx3+HjPWz0kT9PXmo/os7PxkbMwl0mTHq4F/Zr XWTovfA8PJfuCpAYkJUh1rh8JMumC95OJKGpsouxCGNFJoV2AAjuVH5BUy8YfMmLCOK0 nGRoHDkNGHr27dKEudG7ponse9j6plcLsOU1TesfHtE3/GO6VpAGWjy8H5Hl9r9wa/Rq iEEemLmqVElyZdpS+0SHxukPvv/kopfTp+TmG6WUVLpnUt7NGtt/za/sVCPJTTDjyAxi 1vYLTmXWedPct0DkUHt0qpYaiAG/sDuUwgWXQCYns4qIzPx02fXnEulr2wYAKe14wp6/ V6Jg== 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=xTZZTrBUXFmgKPdovTdxJ19yWCYaot2LY2cprLmo7fQ=; b=XywWAwOXe82wNF8KwNjJ9HDvu3F/HlD0QzOmOiKaQZ1gfsUF6y4cjov2kubQGFfYcX JXe+iMUQS1WChojCq8m5apS2eCGWvuw10Y5vKSAxRg4giVNBP9PN5Eoqji87OsiXwzjc 2JteJXFkXwck2LQI2weh/LX0D8zwnxYeKsiqSvM4GzIso+vhQdc6oaOBkuuiEDaeBkSo JIY2L4/NPnMbJ/jbyKCYO4HpNtgI2bHp8gLQE7W/ntVOZxoLyZagKIceheDN5cJrIJhY Y/egxqzAWinO1CA1yxof9wR1xtwnPuOYl3mcq/bAq1Y1agHN5dpok7dBTfSlVwxAnaQA iSBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="i/iHYZa4"; 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 rl16-20020a170907217000b0078e1d213812si11058485ejb.184.2022.11.09.03.00.25; Wed, 09 Nov 2022 03:00:49 -0800 (PST) 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="i/iHYZa4"; 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 S230222AbiKIKys (ORCPT + 99 others); Wed, 9 Nov 2022 05:54:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbiKIKyG (ORCPT ); Wed, 9 Nov 2022 05:54:06 -0500 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FF953898 for ; Wed, 9 Nov 2022 02:53:32 -0800 (PST) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221109105331epoutp030e07c66a5b45890ee60ecceec9dc04cb~l5StRFOgS1604516045epoutp03B for ; Wed, 9 Nov 2022 10:53:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221109105331epoutp030e07c66a5b45890ee60ecceec9dc04cb~l5StRFOgS1604516045epoutp03B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667991211; bh=xTZZTrBUXFmgKPdovTdxJ19yWCYaot2LY2cprLmo7fQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i/iHYZa4VidNzthkxDMv97aXMD43V4My31gjKVt32VNvHaL4kehdD+lgWEICr+Y/b nDQLf7uxJe+5ISCJOpqCun/xC8jDhO7mUy6pufWNWlMyyzyB/oOUFBms38kR6MNi/R L4xw4/SpNs7nJ2nrU2biuKlq9xNOOd7teJJIwDqM= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20221109105330epcas5p2a7a9c3a9e65c2e6abf0518c611d36b04~l5SssDu1y2391823918epcas5p2A; Wed, 9 Nov 2022 10:53:30 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.180]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4N6hf01b2lz4x9Px; Wed, 9 Nov 2022 10:53:28 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1D.57.39477.8A68B636; Wed, 9 Nov 2022 19:53:28 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20221109100309epcas5p4bc1ddd62048098d681ba8af8d35e2e73~l4muyQeYT3190631906epcas5p4O; Wed, 9 Nov 2022 10:03:09 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221109100309epsmtrp1b0629e4a7e48535f2207f1159c07d8b4~l4muxPv5y0841808418epsmtrp1F; Wed, 9 Nov 2022 10:03:09 +0000 (GMT) X-AuditID: b6c32a4a-259fb70000019a35-3f-636b86a81d69 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EF.E0.14392.CDA7B636; Wed, 9 Nov 2022 19:03:09 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221109100306epsmtip2160e21a08f75553dfa3b0c9f80beda18~l4mr2ryGp1918919189epsmtip2D; Wed, 9 Nov 2022 10:03:05 +0000 (GMT) From: Vivek Yadav To: rcsekar@samsung.com, krzysztof.kozlowski+dt@linaro.org, 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, linux-fsd@tesla.com, robh+dt@kernel.org Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, aswani.reddy@samsung.com, sriranjani.p@samsung.com, Vivek Yadav Subject: [PATCH v2 6/6] arm64: dts: fsd: Add support for error correction code for message RAM Date: Wed, 9 Nov 2022 15:39:28 +0530 Message-Id: <20221109100928.109478-7-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109100928.109478-1-vivek.2311@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMJsWRmVeSWpSXmKPExsWy7bCmpu6Ktuxkg48HuCwezNvGZnFo81Z2 iznnW1gs5h85x2rx9Ngjdou+Fw+ZLS5s62O12PT4GqvFqu9TmS0evgq3uLxrDpvFjPP7mCzW L5rCYnFsgZjFt9NvGC0Wbf3CbvHwwx52i1kXdrBatO49wm5x+806VotfCw+zWCy9t5PVQcxj y8qbTB4LNpV6fLx0m9Fj06pONo871/aweWxeUu/R/9fA4/2+q2wefVtWMXr8a5rL7vF5k1wA d1S2TUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Qq0oK ZYk5pUChgMTiYiV9O5ui/NKSVIWM/OISW6XUgpScApMCveLE3OLSvHS9vNQSK0MDAyNToMKE 7IyetR1MBZ38FZ1zV7M3MM7i6WLk5JAQMJHYv24BE4gtJLCbUeLBlLwuRi4g+xOjxL9rd6ES 3xglpu3QgWnYeOQOG0TRXkaJ8/9/QzmtTBK/bp1kBqliE9CSeNy5gAUkISKwmkliy+eHjCAO s8AsJoklzbdYQKqEBRIkDvxqBdvBIqAqMWn5PnYQm1fARmLW1NvsEPvkJVZvOAA0lYODU8B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6Kzrmr2RsYZ/F0MXJySAiYSGw8coeti5GLQ0hgN6PE p5mbmCASUhJTzrxkgbCFJVb+e84OYgsJNDNJzLxQAGKzCWhJPO5cwALSLCKwm0nibfdcdhCH WWARk8TLK73MIFXCAnESv/pPgNksAqoSk5bvA5vEK2AjMWvqbXaIDfISqzccAKrh4OAUsJV4 uNAAYpmNxPPbixgnMPItYGRYxSiZWlCcm55bbFhgmJdarlecmFtcmpeul5yfu4kRHD9amjsY t6/6oHeIkYmD8RCjBAezkggvt0Z2shBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeC10n44UE0hNL UrNTUwtSi2CyTBycUg1Mxtdy2aoXMu7ZqyXGseC4Ys62nEk2t7h4j9ndtV0+P1G36HH2038H 5/obnsmyX9fcq5fmdkO2aUlcnbhRmkK/Xop9y74qpycmapYpF1e1/vzqEhGQcD43/FKti5N/ TrjfnSdW0Yu/b34i+uFwCftlhgksMVvyzJoE+FRXbC75z2Bn+eYp/6S/+UynrY4oV1zS/71W pdUovih/xUdO43ehHzUyF90V/8npFabz81hFgsnUTboXts6TMU0uX/HGMsJUSODdw7lVEk1/ tH4mb7jrVVHvf+TgpBffizvL3p3a7OH59/uds+/XXvSP75j5yKj6YN6nKEXVZyfdvd9vNDZP nr7jlcLvqY8ClKK/X7NTYinOSDTUYi4qTgQAl4VxyQ4DAAA= X-CMS-MailID: 20221109100309epcas5p4bc1ddd62048098d681ba8af8d35e2e73 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109100309epcas5p4bc1ddd62048098d681ba8af8d35e2e73 References: <20221109100928.109478-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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?1749016011812227266?= X-GMAIL-MSGID: =?utf-8?q?1749016011812227266?= Add mram-ecc-cfg property which indicates the error correction code config and enable the same for FSD platform. In FSD, error correction code (ECC) is configured via PERIC SYSREG registers. Signed-off-by: Chandrasekar R Cc: devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Cc: Rob Herring Signed-off-by: Vivek Yadav --- arch/arm64/boot/dts/tesla/fsd.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index 154fd3fc5895..6483bbf521e5 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -778,6 +778,7 @@ clocks = <&clock_peric PERIC_MCAN0_IPCLKPORT_PCLK>, <&clock_peric PERIC_MCAN0_IPCLKPORT_CCLK>; clock-names = "hclk", "cclk"; + tesla,mram-ecc-cfg = <&sysreg_peric 0x700>; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; @@ -795,6 +796,7 @@ clocks = <&clock_peric PERIC_MCAN1_IPCLKPORT_PCLK>, <&clock_peric PERIC_MCAN1_IPCLKPORT_CCLK>; clock-names = "hclk", "cclk"; + tesla,mram-ecc-cfg = <&sysreg_peric 0x704>; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; @@ -812,6 +814,7 @@ clocks = <&clock_peric PERIC_MCAN2_IPCLKPORT_PCLK>, <&clock_peric PERIC_MCAN2_IPCLKPORT_CCLK>; clock-names = "hclk", "cclk"; + tesla,mram-ecc-cfg = <&sysreg_peric 0x708>; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; }; @@ -829,6 +832,7 @@ clocks = <&clock_peric PERIC_MCAN3_IPCLKPORT_PCLK>, <&clock_peric PERIC_MCAN3_IPCLKPORT_CCLK>; clock-names = "hclk", "cclk"; + tesla,mram-ecc-cfg = <&sysreg_peric 0x70c>; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; };