From patchwork Fri Oct 21 09:58: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: 6675 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp674736wrr; Fri, 21 Oct 2022 05:40:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79EO8lPG0Bx6K6J8PeDlU+Zsy+R2Zkef5oDZ3tASrELN/LC07MPRTfQxzAGcit4Pr/V1Qc X-Received: by 2002:a17:90b:19ca:b0:212:d2c4:83ac with SMTP id nm10-20020a17090b19ca00b00212d2c483acmr2488604pjb.166.1666356047878; Fri, 21 Oct 2022 05:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356047; cv=none; d=google.com; s=arc-20160816; b=EDZBEKNbdx4oE45hGq7l+S3loTMVKK1fDdn9BYc8lmpjEkNfys2GKpkg7c4FurKM0k jWxPG66KE0wyytpAkiDxO47qqZRLEfu7LQIjzlKKMWN6QA+j31rkKCQo8lWyygV6IsZg DVF6OwjAq+lSVyW+/nQu2/dqJyUqgi04gjFXaYTK8EK4B22XmsF4krfV9Mx007l69CQN +xUKTxKSoSdSB1o4jU4WAsmQYAbQzSQjkDdXJ1D+rlCgbBds5RJVu60MEo4NEELVA2XS ng1ojpxK737sl7ugJpsb1/vky6TUacKRy9J6N2Y/WP32eLBd6GXZHNADqfgX8XmrzQ5z 4NHw== 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=aaA7aie8x438Es2cT27pg0nMrA6D2ftw6fa2KJeXNfY=; b=WUgYv/f24H91q8b0nbuVwwGmZuzzWTnRgu3uH0id64Hfasbw/zz2jnPKlCTRME8MW4 nB9rLYRHucleyYzQmVx2tZZ6CD/17QjHzFUJajhxew5HhOJr127fHS36pq62p2Nk3zR+ YXn/xZycPBkNCmu3UFnMmjNJ+ozAXtBEq7CPSmAjR8hOrDeNYie0axIu72BL9vuNFRih 3eGmc8zbiB+BuHs8wJdhknPFWc7lZ+T7ZiwszJPC5QkMDTPixhPUFG7XHLjH1fxQKfjP Qkobdymb1qSnUzjNKKUoFrSvWMT+kIF6Y5Rydlsw0iKAHiopXB1+mScP3BJCxDinxs+n Ympw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DmmF7NH8; 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 cn15-20020a056a00340f00b005655fc278f3si21600958pfb.201.2022.10.21.05.40.34; Fri, 21 Oct 2022 05:40:47 -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=DmmF7NH8; 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 S230004AbiJUMiQ (ORCPT + 99 others); Fri, 21 Oct 2022 08:38:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbiJUMiJ (ORCPT ); Fri, 21 Oct 2022 08:38:09 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91EF3266403 for ; Fri, 21 Oct 2022 05:38:07 -0700 (PDT) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221021123801epoutp03671c3af25a5d93ca7a53e5f70e5f7fd5~gFdhosUbI0793507935epoutp03v for ; Fri, 21 Oct 2022 12:38:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221021123801epoutp03671c3af25a5d93ca7a53e5f70e5f7fd5~gFdhosUbI0793507935epoutp03v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1666355881; bh=aaA7aie8x438Es2cT27pg0nMrA6D2ftw6fa2KJeXNfY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DmmF7NH8U2mylFd0XGk8JYluYr+s5EAMjlKlnzNjOk6Xfk+LFM7OusTNtnjiicbWk cccUGNqCMd66q3YqAfcOgdQghFE91E+ee/vBBZIqRIxnLvCMG4QXcoHOTedxdtHAz1 g3y4Cun2a2h1h0yy5D0AkZE7QwAxu8vBy8OQOAlA= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20221021123800epcas5p1cffc504993ce8a8dd6a4731d25429efe~gFdgwiJ5r2160621606epcas5p1l; Fri, 21 Oct 2022 12:38:00 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.182]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Mv3sK5N84z4x9Pw; Fri, 21 Oct 2022 12:37:57 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id BE.AB.39477.5A292536; Fri, 21 Oct 2022 21:37:57 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221021102621epcas5p3f10b063ae972bee587eb5beb6e1b5617~gDqkPYXAN0943809438epcas5p3J; Fri, 21 Oct 2022 10:26:21 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221021102621epsmtrp19dc2ad431c28296bcb8dcd9b6dbd8be4~gDqkOZWSp1811718117epsmtrp1h; Fri, 21 Oct 2022 10:26:21 +0000 (GMT) X-AuditID: b6c32a4a-007ff70000019a35-20-635292a57c25 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 71.26.14392.DC372536; Fri, 21 Oct 2022 19:26:21 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221021102619epsmtip1aab14d27def6f1aa7751483152135ae7~gDqiRL1H72574025740epsmtip15; Fri, 21 Oct 2022 10:26:19 +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, Sriranjani P Subject: [PATCH 1/7] dt-bindings: Document the SYSREG specific compatibles found on FSD SoC Date: Fri, 21 Oct 2022 15:28:27 +0530 Message-Id: <20221021095833.62406-2-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+NgFupmk+LIzCtJLcpLzFFi42LZdlhTS3fppKBkg6lNmhYP5m1js5hzvoXF 4umxR+wWF7b1sVqs+j6V2eLyrjlsFusXTWGxOLZAzOLb6TeMFou2fmG3ePhhD7vFrAs7WC1u v1nHarH03k5WBz6PLStvMn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su2nt9q2XVxFvnPf7jpyKOLY5cOXKl8Jvp108ISNEktxRqKhFnNRcSIA N56sGB4EAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsWy7bCSnO7Z4qBkg297+CwezNvGZjHnfAuL xdNjj9gtLmzrY7VY9X0qs8XlXXPYLNYvmsJicWyBmMW3028YLRZt/cJu8fDDHnaLWRd2sFrc frOO1WLpvZ2sDnweW1beZPJYsKnU4+Ol24wem1Z1snn0/zXweL/vKptH35ZVjB6fN8kFcERx 2aSk5mSWpRbp2yVwZdzqfchW0CFScbxFuoHxE38XIyeHhICJxJ9H71i7GLk4hAR2M0r8PfKL ESIhJTHlzEsWCFtYYuW/5+wQRc1MEntmXGQDSbAJaEk87lwAViQi8JJRouUsWJxZoIlRYm9z ThcjB4ewQLTElqNFIGEWAVWJ1kuPwEp4Bawl1ixcADVfXmL1hgPMIDangI3Eq/lbwG4QAqpZ 9ugm+wRGvgWMDKsYJVMLinPTc4sNCwzzUsv1ihNzi0vz0vWS83M3MYIDWktzB+P2VR/0DjEy cTAeYpTgYFYS4S14F5AsxJuSWFmVWpQfX1Sak1p8iFGag0VJnPdC18l4IYH0xJLU7NTUgtQi mCwTB6dUA1Potjlq7t03lijuZAnratT/cKv/ysd09dA561Jflx+6xPs1Yl6sQXry2sjHuWUs hY0Cvvc/6D3bGySXoF8roOl8WPaEz7fjvLkxN5TtzsvO25gerChtNSc9+tKPdq+08DCt6W5m G1p8rnJOqlWsPzpvmbDtmrv8qg6bY2bNuCsUsW5NWvN1jlyuyDWTlT8z9t32/m1inGP6zznL izePO885XCP/GheLw/4CrTWf+Q9+Nbsa6lt23MtW6Kbh/DSOoHViJw9MNtgh9nrRrqqK20X7 jrjf1UwQfRPMVTJBLWie6Vd7o63zsno3qwntUbMTkY07c2saX/pM71UB6tdcZHw9k+6HOd6V XiiyacYGJZbijERDLeai4kQA0si7OdcCAAA= X-CMS-MailID: 20221021102621epcas5p3f10b063ae972bee587eb5beb6e1b5617 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221021102621epcas5p3f10b063ae972bee587eb5beb6e1b5617 References: <20221021095833.62406-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.6 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, URIBL_BLOCKED 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?1747300958927189280?= X-GMAIL-MSGID: =?utf-8?q?1747300958927189280?= 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: 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 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 WniYxWLpvZ2sDnweW1beZPJYsKnU4+Ol24wem1Z1snn0/zXweL/vKptH35ZVjB6fN8kFcERl 22SkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYAXa2kUJaY UwoUCkgsLlbSt7Mpyi8tSVXIyC8usVVKLUjJKTAp0CtOzC0uzUvXy0stsTI0MDAyBSpMyM54 fGEza8E/zopJTw+wNTAu4uhi5OSQEDCR2HNmO0sXIxeHkMBuRomW35cZIZxPjBK7tx1ih3A+ M0rcWrGJCaZl7+vzzBCJXYwSXxpPsUI4rUwSq1asYAGpYhPQknjcuQDMFhG4yyhxbXFmFyMH B7NAtcSBI3wgYWGBYIkNZ48ygtgsAqoSvy7cBlvAK2AtsejTImaIZfISqzccALM5BWwkXs3f AnaehEAvh8SSs0fZQWZKCLhIrH+pBFEvLPHq+B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sYUFAiXmTl/GCmKzCKhK/LpwG6yXV8BaYtGnRcwQC+QlVm84AGZzCthIvJq/hRHEFgKq WfboJvsERr4FjAyrGCVTC4pz03OLDQuM8lLL9YoTc4tL89L1kvNzNzGCg1pLawfjnlUf9A4x MnEwHmKU4GBWEuEteBeQLMSbklhZlVqUH19UmpNafIhRmoNFSZz3QtfJeCGB9MSS1OzU1ILU IpgsEwenVANTyuY3wZXXP02LEea33Pljvs0UFgWDn9fUvq4w3ml+ksNvQlpV5f6Nt05FFK0x P19tzRB+zJp1e+/8+uPq96NOSt99kuwTYZyaf51LSfANd+jaKR90XdwXqvnvc3tmEPLT7135 LKfZQcnLbKcutVXJLHveVrCYT+XfmymB6du9l7y6UZL+zWXe7dIpicc3edUWb3iylH1H82/D J3PKhH/E2OX9ebWinZmZSXlz4+0VE/lO+h2t38doEHOqg5nf1WVx9PXPeXJ7wwpnl1y/eCA8 8FRCQE6L19x3uiYf/+m7LreV+LfewMi7breJg6vB27RbcvOS7v2ebjhny1vtDSmWPZr5c1oK C3+GvI3/LbZTiaU4I9FQi7moOBEAUJeun9kCAAA= X-CMS-MailID: 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. From patchwork Fri Oct 21 09:58:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 6680 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp675397wrr; Fri, 21 Oct 2022 05:42:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5rT20tx2A00GHTyoEOzguL9bYfvy5Cidkc/PEgBZIndNNVMqWY/wAYIYy97WmbMRemf2Yu X-Received: by 2002:a17:906:ee86:b0:741:89bc:27a1 with SMTP id wt6-20020a170906ee8600b0074189bc27a1mr15552439ejb.725.1666356148817; Fri, 21 Oct 2022 05:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356148; cv=none; d=google.com; s=arc-20160816; b=UKasbTmvcr38B4uqnkSE/S82RTU95hVMbUy1s1V+EqG7do2C15CzeOyjlCFOeWHC8t K1XG7KnGk+BXJ+iHl/IFDECUssbWFonnvw/7Wgig2fETzlF8gho99bxR91Buni6uLftE N1PQRc50GW3wLoUNf8/v897Vm14/lKjY9QuE3PVXbRz75uMFJ8PnvWPKltijJA3hqfXX kyN1kCuZcicCsPYFTH6SAP0iQlvvNSn9qV/k/goReh7AtdpyFzc9zPRPsL8ipFMm1NqG HohyfxTv4k3epe7VFtaKS1kVfGYY0b0BYSyYR3B2Uzfuh/Oe/pD1FmUsH97fsl/h7TXF hZ0g== 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=uhm3YP377q8y/51dTZVXOc3UJK/fzE1R7v2Hm2TpC8A=; b=XY9WUy9YJEgV8grjqdrnWd9Gx+OyV5KIsE45FGGQmzT+WGrcV53lEtPN7twEu95qAB PxRR7rjSFW9RvAh5ceERSMU+y201bdos+OnI2aQmIYn5Rtimgp0mfwSrLSMpGOzV1XWa 3RrAEFd/0Q8IKxfhGUgFF6Qb4VlIVRu51HDJr4Yb5yluBw7Aj1XuElkzMedb+bH+UYAP hi6MDhLPQ+vIg81HVt1JsStnRzqASPKf+cqhGnGxQQX706OUf23hAkbgoLQwAxPZ6in7 VWU3lTWHn1sQyvH894BMbjpcsKywcAJp6CDnFMysBOMnzDLOLoFrpSQl6io+4B+mDvYh kbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SE5lNSb7; 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 ho40-20020a1709070ea800b0078df1c345dasi21473628ejc.534.2022.10.21.05.42.02; Fri, 21 Oct 2022 05:42:28 -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=SE5lNSb7; 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 S229506AbiJUMis (ORCPT + 99 others); Fri, 21 Oct 2022 08:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbiJUMih (ORCPT ); Fri, 21 Oct 2022 08:38:37 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38EA02670C3 for ; Fri, 21 Oct 2022 05:38:21 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20221021123818epoutp0277520ede2e01cbcea91df411169e7b89~gFdx8duP-0472704727epoutp02E for ; Fri, 21 Oct 2022 12:38:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20221021123818epoutp0277520ede2e01cbcea91df411169e7b89~gFdx8duP-0472704727epoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1666355898; bh=uhm3YP377q8y/51dTZVXOc3UJK/fzE1R7v2Hm2TpC8A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SE5lNSb7xrWxSmwduN5zFkvuztmY3EfFR5a9EztKJvZN5++eCxdcXU3k4eRfIbWU7 xQ2wxE0HzlfIesN3N9djSE3YW8/rtkZTE4yRm3FNAL/8pdvZjBV0phjAHTFqg137SH lEpK3FswWCqJMSWrDZ17u4jFpuTT0cUy4OBQgdB8= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221021123818epcas5p4d5214f70e266a0fe2bc7dfb70191bfba~gFdxZrQZI2985729857epcas5p4z; Fri, 21 Oct 2022 12:38:18 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.177]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Mv3sg4myNz4x9Pp; Fri, 21 Oct 2022 12:38:15 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 45.BB.39477.7B292536; Fri, 21 Oct 2022 21:38:15 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20221021102628epcas5p1ecf91523d9db65b066bc4f2cb693ea45~gDqq_jsnF1244112441epcas5p1D; Fri, 21 Oct 2022 10:26:28 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221021102628epsmtrp21ecebb48a77631b0359d8e2b3e5b18e7~gDqq9olma0776407764epsmtrp2D; Fri, 21 Oct 2022 10:26:28 +0000 (GMT) X-AuditID: b6c32a4a-259fb70000019a35-45-635292b7890e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 00.40.18644.4D372536; Fri, 21 Oct 2022 19:26:28 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221021102626epsmtip100eca027f7beccd9cbe9cd799aa5e567~gDqpAuNVZ2573525735epsmtip1E; Fri, 21 Oct 2022 10:26:26 +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, Sriranjani P Subject: [PATCH 3/7] arm64: dts: fsd: add sysreg device node Date: Fri, 21 Oct 2022 15:28:29 +0530 Message-Id: <20221021095833.62406-4-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+NgFupik+LIzCtJLcpLzFFi42LZdlhTU3f7pKBkg8NP5C0ezNvGZjHnfAuL xdNjj9gtLmzrY7VY9X0qs8XlXXPYLNYvmsJicWyBmMW3028YLRZt/cJu8fDDHnaLWRd2sFrc frOO1WLpvZ2sDnweW1beZPJYsKnU4+Ol24wem1Z1snn0/zXweL/vKptH35ZVjB6fN8kFcERl 22SkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYAXa2kUJaY UwoUCkgsLlbSt7Mpyi8tSVXIyC8usVVKLUjJKTAp0CtOzC0uzUvXy0stsTI0MDAyBSpMyM74 dmgra8ETjop9F7uZGhiXs3cxcnBICJhItHyx7WLk4hAS2M0o8ffcFJYuRk4g5xOjxKwNgRCJ z4wST64uYQJJgDQ8+tnGBJHYxSixcccnJoiOViaJXz8tQWw2AS2Jx50LwCaJCNxllLi2OBNk G7NAncTFMwYgYWEBG4nz5/6xg9gsAqoSm2+9ZQSxeQWsJbqOTGeG2CUvsXrDATCbE6j+1fwt jCB7JQR6OSTauqaxQRS5SDw6cArKFpZ4dXwLO4QtJfH53V6oeLLEjn+drBB2hsSCiXsYIWx7 iQNX5rBA3KYpsX6XPkRYVmLqqXVgbzEL8En0/n4C9TuvxI55ML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FKphYU56bnFhsWGOWllusVJ+YWl+al6yXn525iBAe1ltYOxj2rPugdYmTi YDzEKMHBrCTCW/AuIFmINyWxsiq1KD++qDQntfgQozQHi5I474Wuk/FCAumJJanZqakFqUUw WSYOTqkGptbI8Iz5Z//Omrlk5/dnE4s2xTR0lnmdLj407Zrmdp5DN8OXT97ruezGIrbaqFmP HrFrf9C45mx+Jq/c75SURnvf2lkN+esYzWtZcz5+MhBe0Ma5rXtSQehUFuvqnFbnGXpvpq6J en8zSmrCTnXPjV4vnmZ8q17p17tLRchq9uPYh42iK4uqAteGTK7K6J639sGDqlvnjuWXqaxr u1O/dO3+n3cdNZT+nEgoe39pvqjIiRM1GZ5vGgL2CUZN/Zy4LfrqhJoAtp2NRh9Wcars0pv7 IuXQ2fZ2rcDU1T91nJmXdad1Vf0K0oiaezK9Ybpox8ZNbu//r8s9LRda/2+1Ovcqgeir6oE2 SzwfrWKO8lZiKc5INNRiLipOBAAx5ZwP2QIAAA== X-CMS-MailID: 20221021102628epcas5p1ecf91523d9db65b066bc4f2cb693ea45 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221021102628epcas5p1ecf91523d9db65b066bc4f2cb693ea45 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=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?1747301065162141608?= X-GMAIL-MSGID: =?utf-8?q?1747301065162141608?= 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 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 Fri Oct 21 09:58:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 6681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp675574wrr; Fri, 21 Oct 2022 05:42:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7w6fS+SXHsew+rTHi1Qkp7LjNrajtmedkFM+79dO3p5ySpk5en5fNsNLKdBQSUxt11Fnfb X-Received: by 2002:a05:6402:f0b:b0:460:7e7c:f885 with SMTP id i11-20020a0564020f0b00b004607e7cf885mr7397396eda.90.1666356173745; Fri, 21 Oct 2022 05:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356173; cv=none; d=google.com; s=arc-20160816; b=JpfjmhGM4QWC00jQQbMi0Vtr4VCL+lqXa4XtqkXivGx+IqJw06qfdwgIZWr0qy8dXm CZTQTx0hDqqWZJbCo8AcapKg+6SXApzUvA+ms0PP7WEe2UOBX5huDeOlSRGzrEl+C6MW 4nwFEAKDXXVDLEOvQFMXhqyWeruVES/eXWdQG5NxNg2cpWryifL/AegNBxzcNQoFfFaS wIEW7EAEaLwWUko5jCM6ypcEH4eGHtZcFlsPTJbOIjCnYtvSkphAPhnO4xi/vbBSx09q ORaD7SiRmapaxEzbYGgUGcYENxp28huCFFz/TYiCOdH+fybKpQNujbhvQzArLQ8v+zPi I5eg== 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=JtkMA5D8SVkPb9doEE5f+t/tBPmUae3KaqaNnSWbDGI=; b=VbqYltKRVAZ1o21URfGP4cqGgY/pSUeWQmXWwIHQyQrF5nVxWKi/uZWG48pGKhJr3n 9oaAEtk3K4rAsqQaJuWPehGmlv89QatkkN1bWqFuaUKhgjK6lutWYE816oAjfKkkBquF v+k+ErYA8LWbmn9Rq9hmUqhuuHbcyX310z0Pm/4W7QwlgycxVtKny80nhQmA3EYIsw2S QxIxjRIBGbq+0LZ+/HB0HxS7HkCTP7BmQHqCkZrDG1eQdiWmAvSduBnMCDecKjqTg8mQ UW8ge7pta38P04YiOgxYEVm31F9grUXHFvqGJ9UypIlrkwiVhrW5hvFTs0sZB1f409o+ B8nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="t/iAtTEn"; 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 o19-20020a170906975300b0079330b37fb6si7988419ejy.880.2022.10.21.05.42.28; Fri, 21 Oct 2022 05:42:53 -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="t/iAtTEn"; 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 S229795AbiJUMje (ORCPT + 99 others); Fri, 21 Oct 2022 08:39:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbiJUMjC (ORCPT ); Fri, 21 Oct 2022 08:39:02 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95328266433 for ; Fri, 21 Oct 2022 05:38:47 -0700 (PDT) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221021123844epoutp0384a6e80710bd34dbc1625124e0eb750b~gFeJdC0Fl1017010170epoutp03S for ; Fri, 21 Oct 2022 12:38:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221021123844epoutp0384a6e80710bd34dbc1625124e0eb750b~gFeJdC0Fl1017010170epoutp03S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1666355924; bh=JtkMA5D8SVkPb9doEE5f+t/tBPmUae3KaqaNnSWbDGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t/iAtTEnTDeko2vN7NCLowhfyxiQG9Twn+T3J6Ib6mErerIHOhBOdvAbBunrCa2U4 A/UFLELuS/SQReNVkvUgOgmJUg5/DxKLQiaWzDxLo/xWgMSube0DF8lDgdRxkTAj8W vmFeFL3FWNIbg9XNhkh9WZ7CyO6aESHNlttlc1/w= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20221021123843epcas5p28a0c98a56bdf36dc3c0abadee4964292~gFeJFZdnr2156121561epcas5p2m; Fri, 21 Oct 2022 12:38:43 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.175]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4Mv3t91FPhz4x9Pq; Fri, 21 Oct 2022 12:38:41 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EB.EB.20812.0D292536; Fri, 21 Oct 2022 21:38:41 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221021102632epcas5p29333840201aacbae42bc90f651ac85cd~gDquPbJiL0419604196epcas5p2N; Fri, 21 Oct 2022 10:26:32 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221021102632epsmtrp1176b401c1daa5743e3ec78b54f316e90~gDquOjlxB1811718117epsmtrp1s; Fri, 21 Oct 2022 10:26:32 +0000 (GMT) X-AuditID: b6c32a49-b09f97000001514c-69-635292d0cb47 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 91.40.18644.7D372536; Fri, 21 Oct 2022 19:26:32 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221021102630epsmtip12ef9d4f8d1736fbd32fafe9be83776a3~gDqsUHv3B2574025740epsmtip18; Fri, 21 Oct 2022 10:26:29 +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 4/7] can: mcan: enable peripheral clk to access mram Date: Fri, 21 Oct 2022 15:28:30 +0530 Message-Id: <20221021095833.62406-5-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+NgFupik+LIzCtJLcpLzFFi42LZdlhTU/fipKBkg497GC0ezNvGZjHnfAuL xdNjj9gtLmzrY7VY9X0qs8XlXXPYLNYvmsJicWyBmMW3028YLRZt/cJu8fDDHnaLWRd2sFr8 WniYxWLpvZ2sDnweW1beZPJYsKnU4+Ol24wem1Z1snn0/zXweL/vKptH35ZVjB6fN8kFcERl 22SkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYAXa2kUJaY UwoUCkgsLlbSt7Mpyi8tSVXIyC8usVVKLUjJKTAp0CtOzC0uzUvXy0stsTI0MDAyBSpMyM74 fv4sY8FT7oo1V14zNTD+4uxi5OSQEDCRuHBuBlMXIxeHkMBuRon/nS3sEM4nRolFk3eygFQJ CXxmlLi1FqiKA6zj2lEXiJpdjBKXpv1lgqhpZZKYNkMExGYT0JJ43LkArFdE4C6jxLXFmSC9 zALVEgeO8IGEhQVcJM7vb2EGCbMIqErc6+YCCfMKWEs8fNbEAnGbvMTqDQeYQWxOARuJV/O3 MIKslRDo5ZD4s/IWI0SRi8Srj9uYIGxhiVfHt7BD2FISL/vboOxkiR3/Olkh7AyJBRP3QPXa Sxy4MocF4jRNifW79CHCshJTT60DG8kswCfR+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kWMUomVpQnJueW2xYYJSXWq5XnJhbXJqXrpecn7uJERzQWlo7GPes+qB3 iJGJg/EQowQHs5IIb8G7gGQh3pTEyqrUovz4otKc1OJDjNIcLErivBe6TsYLCaQnlqRmp6YW pBbBZJk4OKUamOpd8icJz/1837to/zbXAtdHxWvre+PmuWXe/J912XaBsZdsyjexmIUZNjtk 3i4Len3kpvCk3OXnFNQ3XZjEUyda8Or0q2O7Vrhp7t39SVz0pCbf3uDyo4x2YlX3ej4eu2p6 3cNVzlLq5/PPuSeVU0tjz7vum2mSGuYz3TZb8MK1CFGGX70Va3Z0T36iXzH/QYT/imWbNxro KTOdXMBh2qz0k+fKz+CMfSUHnnxf18GdlWBn8bVTTehBafZZ6StzNPf7aS9d9+ZeZ+kOg0dm 2trPyq95Sxxyvuv9d7K+dkuTcMGTuwdWeUY5dXDMrxSf7j3ldxr7o4wOL3d5px7VtPlB8z9l KnN/NRS0v/lbVomlOCPRUIu5qDgRALuRRIXXAgAA X-CMS-MailID: 20221021102632epcas5p29333840201aacbae42bc90f651ac85cd X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221021102632epcas5p29333840201aacbae42bc90f651ac85cd References: <20221021095833.62406-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.6 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, 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?1747301091036632359?= X-GMAIL-MSGID: =?utf-8?q?1747301091036632359?= When we try to access the mcan message ram addresses, make sure hclk is not gated by any other drivers or disabled. Enable the clock (hclk) before accessing the mram and disable it after that. This is required in case if by-default hclk is gated. Signed-off-by: Ravi Patel Signed-off-by: Vivek Yadav --- drivers/net/can/m_can/m_can_platform.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/can/m_can/m_can_platform.c b/drivers/net/can/m_can/m_can_platform.c index eee47bad0592..5aab025775f9 100644 --- a/drivers/net/can/m_can/m_can_platform.c +++ b/drivers/net/can/m_can/m_can_platform.c @@ -140,10 +140,17 @@ static int m_can_plat_probe(struct platform_device *pdev) platform_set_drvdata(pdev, mcan_class); - ret = m_can_init_ram(mcan_class); + /* clock needs to be enabled to access mram block */ + ret = clk_prepare_enable(mcan_class->hclk); if (ret) goto probe_fail; + ret = m_can_init_ram(mcan_class); + if (ret) + goto mram_fail; + + clk_disable_unprepare(mcan_class->hclk); + pm_runtime_enable(mcan_class->dev); ret = m_can_class_register(mcan_class); if (ret) @@ -153,6 +160,8 @@ static int m_can_plat_probe(struct platform_device *pdev) out_runtime_disable: pm_runtime_disable(mcan_class->dev); +mram_fail: + clk_disable_unprepare(mcan_class->hclk); probe_fail: m_can_class_free_dev(mcan_class->net); return ret; From patchwork Fri Oct 21 09:58:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 6677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp674881wrr; Fri, 21 Oct 2022 05:41:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4YEB7yE76PFlIbnuUKYQowZ+F35gjMXpG+ETnmUbA8buKjLLvPM7VL8Vlyyu3IWhO9mTHU X-Received: by 2002:a17:90b:3a90:b0:20d:a54c:e5cb with SMTP id om16-20020a17090b3a9000b0020da54ce5cbmr22482929pjb.109.1666356071020; Fri, 21 Oct 2022 05:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356071; cv=none; d=google.com; s=arc-20160816; b=UjMOxMhhaGveZJ7K3lMBG5KJumrNQgvmYd3NYtVPxiWiRS+Z1EqABr9Nft4MtwhMKL ZTAro2RpMdQSdCTpz4H31caovHwNHZrmpXzJKtPoP2LNKz24BBr40d///tFpcy1VRxJb XJAHBmLY9gKNWsIkxyvHdATl2Tf6bd/y0QqY5lIcoofiQRwxGkDnbXCfZ5ilp3fiI41l o8frx+jOu54e3LEFzJU9WBxusQvpKvW9XCJDYiZpOwukRz4iUPdS1/7oG7l7BIdAhfGQ F2Dqd1ytPyZOK+KY6IS/pepN5/2kr03ngrj5n1gLL7A4s3gXEqc7I3/vidklU9bPnQxe Q4CA== 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=0UA+QTR0FkfkJo7+7ZrbSX8cXYLLiFn/NkBCfoaadW0=; b=LUp4rJeHgH/LYaSmSE5TPEFHMlHRA6hdbLwISAB968k2cVworwVNrqpdgVIXHOO+sx u/f9sG8IvepqbmeH0qUSZ57PD0BPQsi9vrpLRBhwSZ3qTpqKCiomwOzdi7hZ9ShwK0wX JsxIWBjRyC3eg6EfaVG62D7J9bgJ8oWoy7GycY08VCgqzsyDsZ1MUiLe1llaDbgbcY3U uRqhodQvs5FEN03XaUcMh+zz22s8n2evrYMWvI20HyPwRBY86q2qZMstnqlmEWCZUFqf LCFmbsrYFfYr4r8rOm+B+chrYQZLhT4R+PxEpjBQorRX9Y3qc1o+mh6LHqWOWKX4NMqj vatw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="qtBl2m/A"; 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 s10-20020a056a00178a00b00565a581ecc0si28381395pfg.11.2022.10.21.05.40.57; Fri, 21 Oct 2022 05:41:11 -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="qtBl2m/A"; 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 S229972AbiJUMjB (ORCPT + 99 others); Fri, 21 Oct 2022 08:39:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbiJUMio (ORCPT ); Fri, 21 Oct 2022 08:38:44 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C25862670EE for ; Fri, 21 Oct 2022 05:38:28 -0700 (PDT) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221021123827epoutp01a275632d3d6683746fe644df0d313978~gFd5nxlpL1343313433epoutp01i for ; Fri, 21 Oct 2022 12:38:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221021123827epoutp01a275632d3d6683746fe644df0d313978~gFd5nxlpL1343313433epoutp01i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1666355907; bh=0UA+QTR0FkfkJo7+7ZrbSX8cXYLLiFn/NkBCfoaadW0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qtBl2m/AyKeiX5+mcjC4z+VtPyN97mALgT4EMEShboXfgTUBHalZ8AjVUnbHk/U8i Vk1UvvqtMkA+VNjWRN5g6MX39wy9X6fWPpUlRKWeda05hpfah/0G5kan1j7KieCa0T LTTig5uExR0faXCJn5am4pS/sKhHgNDL4i2sjbi4= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20221021123826epcas5p2df4efc95c8e59c2608dab6fef360baf5~gFd48PibG2157121571epcas5p2W; Fri, 21 Oct 2022 12:38:26 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.174]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4Mv3sq6lD5z4x9Pv; Fri, 21 Oct 2022 12:38:23 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 29.6F.56352.FB292536; Fri, 21 Oct 2022 21:38:23 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221021102635epcas5p33623e6b6ed02d3fb663da9ec253585ad~gDqxbWSCr0943809438epcas5p3e; Fri, 21 Oct 2022 10:26:35 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221021102635epsmtrp266c550ef92263276df6db4f724a81bea~gDqxZPLL40776407764epsmtrp2I; Fri, 21 Oct 2022 10:26:35 +0000 (GMT) X-AuditID: b6c32a4b-5f7fe7000001dc20-92-635292bf6e66 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 13.40.18644.BD372536; Fri, 21 Oct 2022 19:26:35 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221021102633epsmtip1d52552301b1c3d956e0657096a8cf681~gDqvaRIgG2574025740epsmtip19; Fri, 21 Oct 2022 10:26:33 +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 , Sriranjani P Subject: [PATCH 5/7] arm64: dts: fsd: Add MCAN device node Date: Fri, 21 Oct 2022 15:28:31 +0530 Message-Id: <20221021095833.62406-6-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+NgFprIJsWRmVeSWpSXmKPExsWy7bCmlu7+SUHJBsv+Glk8mLeNzWLO+RYW i6fHHrFbXNjWx2qx6vtUZovLu+awWaxfNIXF4tgCMYtvp98wWiza+oXd4uGHPewWsy7sYLW4 /WYdq8WvhYdZLJbe28nqwO+xZeVNJo8Fm0o9Pl66zeixaVUnm0f/XwOP9/uusnn0bVnF6PF5 k1wAR1S2TUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q 6UoKZYk5pUChgMTiYiV9O5ui/NKSVIWM/OISW6XUgpScApMCveLE3OLSvHS9vNQSK0MDAyNT oMKE7IzpZ56wF3xQq2jd8pS9gXG3fBcjJ4eEgInE5yuTmUFsIYHdjBJdrUxdjFxA9idGiSv/ W9khnM+MEpdWvWaE6dh0dg8jRMcuRokPqwUgilqZJL7/aGQHSbAJaEk87lzAAmKLCNxllLi2 OBPEZhZYxihx+IUOiC0sYCUx8RD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B7GLkYuDiGB HYwSGxr+M0MkpCSmnHnJAmELS6z895wdoqiZSeL1G5AOTg42AS2Jx50LwIpEBF4ySrScZQOx mQVWMUpcvK0IYgsLWElMPDQZbCiLgKpE08Q+dhCbV8BaYsfzc1DL5CVWbzgAZnMK2Ei8mr8F bL4QUM2yRzfZJzDyLWBkWMUomVpQnJueW2xYYJSXWq5XnJhbXJqXrpecn7uJERzeWlo7GPes +qB3iJGJg/EQowQHs5IIb8G7gGQh3pTEyqrUovz4otKc1OJDjNIcLErivBe6TsYLCaQnlqRm p6YWpBbBZJk4OKUamFr+nLUIqvB8823p4X2anekuB52mlJZ3nNLauHd59rpz0+6Kmxb9Dmj9 Z/px1uq21YUVFffvG3iybd/9+EHGyedSfZFFsm4VN29venF0w/M5axe0NJW1Xti1jn3WP6k1 ks1vJr6cIbLvTNTx/7GKtjXTXiQ/ygt+aKFvwXpa+B7zLY4OyWcBTxYfM1RbkKKisUJswqSs qbLvEv8ohumLqLx0nCH94tiStp8yIs/n1nQumi50Zv9bmTttP4Xmxzvtv2fF+2HyzQunv/Jt MDvFuvNMxb78TZMutYi+nDFrYoCVcEa66J0b88M6Ted0rnEtEvrC1zvp7u/JZjeP1xVcSvx0 dOJibh+1pirbH2kxsgkhSizFGYmGWsxFxYkAq54RrN4CAAA= X-CMS-MailID: 20221021102635epcas5p33623e6b6ed02d3fb663da9ec253585ad X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221021102635epcas5p33623e6b6ed02d3fb663da9ec253585ad References: <20221021095833.62406-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.6 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, URIBL_BLOCKED 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?1747300983583747725?= X-GMAIL-MSGID: =?utf-8?q?1747300983583747725?= 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 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 Fri Oct 21 09:58:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 6678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp674916wrr; Fri, 21 Oct 2022 05:41:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5V38sRh4dYA2Gy4/anF5ksXw51+wR/GrW9lUahP65ujNJrFoaLx8RBDYiRkhKaLvJznOHG X-Received: by 2002:a17:90a:ab90:b0:210:27cb:e337 with SMTP id n16-20020a17090aab9000b0021027cbe337mr14034223pjq.139.1666356075949; Fri, 21 Oct 2022 05:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356075; cv=none; d=google.com; s=arc-20160816; b=d1q3LysgpQSJLZVGx5spBApwKnmKA0pF+ovoYgICBBdeFYHfjD1Q5KdAGNy5RZlVvt 6yjS2V3QQ0Ej4RzcO8xc1EalykGqlWhGSi4ck8lfr7SK3LR38DBsWmix7FMINVJO1hvU 9gm6od9kRasgUcC6VRsw/w6bmyBdKPHsfoBUvAuJ5zFTg4VRpHxtxjr7IzNSTz1s0zGT 2r2t4JgJK5fEwxpB3Oe9Wpha/w9zAYbdKb83qnS9FGbDg/YDCwKL2H/w2UHxcPXKMdeT 4mqKSlCy7SEBdlCt2QKKA1Rs90jWokuJe/Suf5b7P7HFdh3Q32dd8aeUlc/etSQYcpD3 QvyA== 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=NXxJL4i1oJOsidFiGnrxru8pCRE5y8E/9Ytlga4MYSc=; b=ZTXDhT6tkWCLQXTQRoEvBr/Qba9luMG92p/c2mwsH2mLiMqoTJCXQXkQZ/dz7wjI/2 KBvxmi5ItGI38lqmeHrhxLx0B0d93eFS1uin4Uk/mq4AO+xXUR6f/DBqMZT2nbVWQtpk t3yeH7GV9SBR7bbsXXhHETQ2Fmr1RO5NrRcn18xikFIZjoMuOjQkbGvVjtbh+Ny2/xBK 3xkw0SkmEs7j8UwjL5L8ED5qI5kaOJVnWj5DRzlMnX9AW1BV6oBY6cBtSBlQocKZBh6J DLOuP3iazRnRl+v6NcmSQ/Ffjq1Kp8fRKjQgWaXPiVqpWZMJwUDx5fMBvQ09C/HnZ4dY eUmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lQDZUd12; 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 l4-20020a170903244400b001867ea919bdsi1369183pls.25.2022.10.21.05.41.02; Fri, 21 Oct 2022 05:41:15 -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=lQDZUd12; 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 S229631AbiJUMjH (ORCPT + 99 others); Fri, 21 Oct 2022 08:39:07 -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 S230141AbiJUMir (ORCPT ); Fri, 21 Oct 2022 08:38:47 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93DEB266409 for ; Fri, 21 Oct 2022 05:38:34 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221021123832epoutp0360705ce9b56ac3ca4d243ff5c14d18b7~gFd_gcT8l0743307433epoutp03e for ; Fri, 21 Oct 2022 12:38:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221021123832epoutp0360705ce9b56ac3ca4d243ff5c14d18b7~gFd_gcT8l0743307433epoutp03e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1666355912; bh=NXxJL4i1oJOsidFiGnrxru8pCRE5y8E/9Ytlga4MYSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lQDZUd12eWk6vTDPf8HXw+mzI22+ZgnWW+DEwpZ/ZiK1e/NeSuXYdcJ8J1bu55rxH PFv4Pkl6koS2eepktrbzsescXByOuCfsiOnXrvvkWmTBUfiN/iTQiP76DYZ3TCeb8N 3qeQjGoyRC121tbLixOw30AVgRBPciaTJvIuvxow= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221021123831epcas5p442f741c8f51a075806223d8bbddad6f6~gFd92Bjsw2106521065epcas5p4N; Fri, 21 Oct 2022 12:38:31 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.180]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Mv3sx73jDz4x9Pr; Fri, 21 Oct 2022 12:38:29 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 5B.BB.39477.5C292536; Fri, 21 Oct 2022 21:38:29 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221021102639epcas5p2241192d3ac873d1262372eeae948b401~gDq0q4jKo3051630516epcas5p29; Fri, 21 Oct 2022 10:26:39 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221021102639epsmtrp1a542600b6a14ba6b394916f35c125727~gDq0qIMLG1811718117epsmtrp12; Fri, 21 Oct 2022 10:26:39 +0000 (GMT) X-AuditID: b6c32a4a-007ff70000019a35-6b-635292c5818f Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 15.40.18644.ED372536; Fri, 21 Oct 2022 19:26:38 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221021102636epsmtip191a748e0c4b4c379ba62a644a9afbf8d~gDqyvVPHR2574025740epsmtip1B; Fri, 21 Oct 2022 10:26:36 +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 6/7] can: m_can: Add ECC functionality for message RAM Date: Fri, 21 Oct 2022 15:28:32 +0530 Message-Id: <20221021095833.62406-7-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+NgFupjk+LIzCtJLcpLzFFi42LZdlhTU/fopKBkg0uvTSwezNvGZjHnfAuL xdNjj9gtLmzrY7VY9X0qs8XlXXPYLNYvmsJicWyBmMW3028YLRZt/cJu8fDDHnaLWRd2sFr8 WniYxWLpvZ2sDnweW1beZPJYsKnU4+Ol24wem1Z1snn0/zXweL/vKptH35ZVjB6fN8kFcERl 22SkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYAXa2kUJaY UwoUCkgsLlbSt7Mpyi8tSVXIyC8usVVKLUjJKTAp0CtOzC0uzUvXy0stsTI0MDAyBSpMyM74 Ofcde8FtrYpTW08xNjCeVepi5OSQEDCROHD2D2MXIxeHkMBuRonW7a/YIJxPjBJ3L+xmhnA+ M0qc+LyeFablVO91FojELkaJR3uusEM4rUwSixcfYQepYhPQknjcuYAFxBYRuMsocW1xZhcj BwezQLXEgSN8IGFhATeJX0cuMYLYLAKqEs+WbWQCsXkFrCVu/FjPCLFMXmL1hgPMIDangI3E q/lbwG6VEJjIIfFj8Xw2iCIXic9LV7BA2MISr45vYYewpSRe9rd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KhKPFu2kQnE5hWwlrjxYz0jxAJ5idUbDjCD2JwCNhKv5m8BiwsB 1Sx7dJN9AiPfAkaGVYySqQXFuem5xYYFRnmp5XrFibnFpXnpesn5uZsYwUGtpbWDcc+qD3qH GJk4GA8xSnAwK4nwFrwLSBbiTUmsrEotyo8vKs1JLT7EKM3BoiTOe6HrZLyQQHpiSWp2ampB ahFMlomDU6qBaZXhfJbg31l7TTfZhjzu7doWfGRTA8+tz2VdR69xH58efrEizN3zWqjmZY/J 7AYHDsV/3PNXU6rxwEzhA/mPS1+se5H1Iyb9wfHnov/2WdYHvNraJX/QTk0s+mdGUUb9J9sL fO8cVK9PObDqp+C9/J/9/asefboqv4SpY8ayWbzpHj8zr8Y9S2yXCNGa+s67cfeTSJOaEM7b y/fEik1fx+a08IzdHseXbnZyH2QKpXxf6izV9s9ntEv03j/1hf3VhWf+3N7hEXTuaJxLz1HX Fbd3Ol282ytqzLFTc7r83WiLKPMDNhsVfvVPibjOIsu/d0tywNTLK/dXZK9o+Z+uuSqRx5f5 n+rJHxWKjRO7jyuxFGckGmoxFxUnAgDeavGK2QIAAA== X-CMS-MailID: 20221021102639epcas5p2241192d3ac873d1262372eeae948b401 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221021102639epcas5p2241192d3ac873d1262372eeae948b401 References: <20221021095833.62406-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.6 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, URIBL_BLOCKED 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?1747300988413386551?= X-GMAIL-MSGID: =?utf-8?q?1747300988413386551?= 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 intigrity 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). Message RAM bit error controlled by input signal m_can_aeim_berr[0], generated by an optional external parity / ECC logic attached to the Message RAM. This indicates either Bit Error detected and Corrected(BEC) or No bit error detected when reading from Message RAM. Signed-off-by: Vivek Yadav --- drivers/net/can/m_can/m_can.c | 73 +++++++++++++++++++++++++++++++++++ drivers/net/can/m_can/m_can.h | 24 ++++++++++++ 2 files changed, 97 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index dcb582563d5e..578146707d5b 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -1535,9 +1535,62 @@ 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, int enable, + struct device_node *np) +{ + int val = 0; + int offset = 0, ret = 0; + int delay_count = MRAM_INIT_TIMEOUT; + struct m_can_mraminit *mraminit = &cdev->mraminit_sys; + + mraminit->syscon = syscon_regmap_lookup_by_phandle(np, + "mram-ecc-cfg"); + if (IS_ERR(mraminit->syscon)) { + /* can fail with -EPROBE_DEFER */ + ret = PTR_ERR(mraminit->syscon); + return ret; + } + + if (of_property_read_u32_index(np, "mram-ecc-cfg", 1, + &mraminit->reg)) { + dev_err(cdev->dev, "couldn't get the mraminit reg. offset!\n"); + return -ENODEV; + } + + val = ((MRAM_ECC_ENABLE_MASK | MRAM_CFG_VALID_MASK | + MRAM_INIT_ENABLE_MASK) << offset); + regmap_clear_bits(mraminit->syscon, mraminit->reg, val); + + if (enable) { + val = (MRAM_ECC_ENABLE_MASK | MRAM_INIT_ENABLE_MASK) << offset; + regmap_set_bits(mraminit->syscon, mraminit->reg, val); + } + + /* after enable or disable valid flag need to be set*/ + val = (MRAM_CFG_VALID_MASK << offset); + regmap_set_bits(mraminit->syscon, mraminit->reg, val); + + if (enable) { + do { + regmap_read(mraminit->syscon, mraminit->reg, &val); + + if (val & (MRAM_INIT_DONE_MASK << offset)) + return 0; + + udelay(1); + } while (delay_count--); + + return -ENODEV; + } + + return 0; +} + static int m_can_close(struct net_device *dev) { struct m_can_classdev *cdev = netdev_priv(dev); + struct device_node *np; + int err = 0; netif_stop_queue(dev); @@ -1557,6 +1610,15 @@ static int m_can_close(struct net_device *dev) if (cdev->is_peripheral) can_rx_offload_disable(&cdev->offload); + np = cdev->dev->of_node; + + if (np && of_property_read_bool(np, "mram-ecc-cfg")) { + err = m_can_config_mram_ecc_check(cdev, ECC_DISABLE, np); + if (err < 0) + netdev_err(dev, + "Message RAM ECC disable config failed\n"); + } + close_candev(dev); phy_power_off(cdev->transceiver); @@ -1754,6 +1816,7 @@ static int m_can_open(struct net_device *dev) { struct m_can_classdev *cdev = netdev_priv(dev); int err; + struct device_node *np; err = phy_power_on(cdev->transceiver); if (err) @@ -1798,6 +1861,16 @@ static int m_can_open(struct net_device *dev) goto exit_irq_fail; } + np = cdev->dev->of_node; + + if (np && of_property_read_bool(np, "mram-ecc-cfg")) { + err = m_can_config_mram_ecc_check(cdev, ECC_ENABLE, np); + if (err < 0) { + netdev_err(dev, + "Message RAM ECC enable config failed\n"); + } + } + /* start the m_can controller */ m_can_start(dev); diff --git a/drivers/net/can/m_can/m_can.h b/drivers/net/can/m_can/m_can.h index 4c0267f9f297..3cbfdc64a7db 100644 --- a/drivers/net/can/m_can/m_can.h +++ b/drivers/net/can/m_can/m_can.h @@ -28,6 +28,8 @@ #include #include #include +#include +#include /* m_can lec values */ enum m_can_lec_type { @@ -52,12 +54,33 @@ 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; }; +/* MRAM_INIT_BITS */ +#define MRAM_CFG_VALID_SHIFT 5 +#define MRAM_CFG_VALID_MASK BIT(MRAM_CFG_VALID_SHIFT) +#define MRAM_ECC_ENABLE_SHIFT 3 +#define MRAM_ECC_ENABLE_MASK BIT(MRAM_ECC_ENABLE_SHIFT) +#define MRAM_INIT_ENABLE_SHIFT 1 +#define MRAM_INIT_ENABLE_MASK BIT(MRAM_INIT_ENABLE_SHIFT) +#define MRAM_INIT_DONE_SHIFT 0 +#define MRAM_INIT_DONE_MASK BIT(MRAM_INIT_DONE_SHIFT) +#define MRAM_INIT_TIMEOUT 50 + +struct m_can_mraminit { + struct regmap *syscon; /* for mraminit ctrl. reg. access */ + unsigned int reg; /* register index within syscon */ +}; + struct m_can_classdev; struct m_can_ops { /* Device specific call backs */ @@ -92,6 +115,7 @@ struct m_can_classdev { int pm_clock_support; int is_peripheral; + struct m_can_mraminit mraminit_sys; /* mraminit via syscon regmap */ struct mram_cfg mcfg[MRAM_CFG_NUM]; }; From patchwork Fri Oct 21 09:58:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 6679 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp675138wrr; Fri, 21 Oct 2022 05:41:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7SzTo/RlvM6GmkGPMAP/vtt4Z2y0Lbv//1B3DR3jrVjK+wrEUA1JiBwCXtwyGRdMwoIrgS X-Received: by 2002:a63:4b5f:0:b0:43c:428d:507c with SMTP id k31-20020a634b5f000000b0043c428d507cmr15429338pgl.607.1666356108097; Fri, 21 Oct 2022 05:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356108; cv=none; d=google.com; s=arc-20160816; b=j7b9zoPe097+DdKkOriIgy4oCM7HywDG026y8HM5l67Pm5mz5pI23DtEGmoj6akvND ZpBnc8K5yir9qOrJpsxXu/oZ4Ee0IdUgdzalcw/4GH3n9MifMKSclAyEKnynYoutlzfv S9ygYbmmkl/wHna57VsEA6eE5pAbTcO+ar4qMjgdgt5biuoOS0UZKct/MYQrv4cwAKmR RzzUxFxZmL3n7etQ7Yt5uLtBeCh2LfTYUt+JoJw72wCTU2EKSWBsoayw7H+m5UitJ2Jz 21vZu4fJO+p5Hse+3DDw4kXSZ7QbtVTuwMPhPzKgPMQ9GTKzCg87neAP+X0Hl6LttvXh Q7Rg== 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=biFlnjuZ8k7mTMxR0OX0eBniKYxMuKThwFDjh9fvDPg=; b=kGXZD2S1E2Mybf9aCdO2qCRu8S37UAbDtDgewCBBeC4dNra8P2n28BLgAe+DZV3fzA 1ytEAS2dK+BGpoSkXYgihhzKsl933fsFwq2tPnEk4XyUfiikj/AZ2pxA77ho1T1OMRc3 s24lHWn1m/QmhxxU4O3trosPFykKJ1fon1XK51HNc99z7IKA7Nf/wxBLSWEHeHznbKth yp46mtbyJdGd1stlFq5eI3g0qaLULpwOHqZJeI+N9RB3soywPQSpl8aQpROwm92GFVe/ 9NyUtQRIebeTLwT6aXBYQqtbHYg9HM/GhJQ9RZncVfMz9eGBD+dBnd14VzYpW38PyfYN wcqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="fM/6QpP7"; 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 bm18-20020a656e92000000b0046ebb8ff289si1869989pgb.112.2022.10.21.05.41.34; Fri, 21 Oct 2022 05:41:48 -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="fM/6QpP7"; 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 S229974AbiJUMj1 (ORCPT + 99 others); Fri, 21 Oct 2022 08:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbiJUMi5 (ORCPT ); Fri, 21 Oct 2022 08:38:57 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 121E02681CD for ; Fri, 21 Oct 2022 05:38:39 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221021123837epoutp015424c97a064d656ce04e93f37479d6b0~gFeC-HM8a1427514275epoutp01b for ; Fri, 21 Oct 2022 12:38:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221021123837epoutp015424c97a064d656ce04e93f37479d6b0~gFeC-HM8a1427514275epoutp01b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1666355917; bh=biFlnjuZ8k7mTMxR0OX0eBniKYxMuKThwFDjh9fvDPg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fM/6QpP77QqhvdyX4IMUTsW3Snw5E3jfZMJqCOnubcf3zz4RNNnjUgM1XrqG77+BB gDPtEitKhaZOqkx6qiKvoZlHlakFTj2jKeU2vSVV7NcjD+2/k++gdIzHqS1DhEQbYH Nk1vS30dxzgPLCswBzRzzbVhOotPRDCGRbgvoeYU= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20221021123836epcas5p26af5b3a891b3f64ace2e9353297721d1~gFeCVtaPu1049710497epcas5p2R; Fri, 21 Oct 2022 12:38:36 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.179]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Mv3t15TyZz4x9Pw; Fri, 21 Oct 2022 12:38:33 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id BA.EB.20812.9C292536; Fri, 21 Oct 2022 21:38:33 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221021102642epcas5p24fec1e1e90632f6d9e768f7d25dc5480~gDq4NHe3l0419604196epcas5p2Z; Fri, 21 Oct 2022 10:26:42 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221021102642epsmtrp28fea699862896241631581e17642ead7~gDq4MJMPm0776407764epsmtrp2P; Fri, 21 Oct 2022 10:26:42 +0000 (GMT) X-AuditID: b6c32a49-b09f97000001514c-61-635292c956f6 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 56.26.14392.2E372536; Fri, 21 Oct 2022 19:26:42 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221021102640epsmtip1194c12f5c871cadc8caa52e6fb12ce21~gDq2Ud8bo2758127581epsmtip1B; Fri, 21 Oct 2022 10:26:40 +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 7/7] arm64: dts: fsd: Add support for error correction code for message RAM Date: Fri, 21 Oct 2022 15:28:33 +0530 Message-Id: <20221021095833.62406-8-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+LIzCtJLcpLzFFi42LZdlhTQ/fkpKBkgw87NC0ezNvGZjHnfAuL xdNjj9gtLmzrY7VY9X0qs8XlXXPYLNYvmsJicWyBmMW3028YLRZt/cJu8fDDHnaLWRd2sFr8 WniYxWLpvZ2sDnweW1beZPJYsKnU4+Ol24wem1Z1snn0/zXweL/vKptH35ZVjB6fN8kFcERl 22SkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYAXa2kUJaY UwoUCkgsLlbSt7Mpyi8tSVXIyC8usVVKLUjJKTAp0CtOzC0uzUvXy0stsTI0MDAyBSpMyM74 2PmRqWAHb8XfK/NZGhjvcHUxcnJICJhItM57wNTFyMUhJLCbUeLqpQ/MEM4nRomzG9+zgVQJ CXxjlLjSHAHT0fXpBCtE0V5GiW0NE9ggnFYmiVtvm1lBqtgEtCQedy5gAbFFBO4ySlxbnNnF yMHBLFAtceAIH0hYWCBW4sKlXWALWARUJb48OcAIYvMKWEs8aZnMBLFMXmL1hgPMIDangI3E q/lbGEF2SQhM5JDYuPMzM0SR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s2wgNrNAvcS7 MzfZQWxhgWiJfx+Pgg1lEVCV+PLkAJjNK2At8aRlMhPEAnmJ1RsOMIPYnAI2Eq/mbwGrEQKq WfboJvsERr4FjAyrGCVTC4pz03OLDQsM81LL9YoTc4tL89L1kvNzNzGCg1pLcwfj9lUf9A4x MnEwHmKU4GBWEuEteBeQLMSbklhZlVqUH19UmpNafIhRmoNFSZz3QtfJeCGB9MSS1OzU1ILU IpgsEwenVAPTfK03/yMiLobMV/hzY9Mpo9LbTB8dJFlsrwktuSm+S797dnZ2fdSW2RLHZrTN O9hz+MNaNa8tfFMf7HC4KvkjrPyuYseBY17f7kfEJHjHWNx1OnHxV4n2w+qA7fMv7ktlXFK6 6EZq9RfDiT8mr+k5Oq218ccaM5fLYcs8zh2UfGKWJuO2eWbpU1U1+xk2qj+WXn9zSi3B/Hht vcNiP6aK52F7N23cHaMwLyrhxpfQrxe2797mkVP+5HaPyOXP0dEz0i0NGaM0JS0XRP/euvpo b9j/ikNJkwu+di1NiltuX/9cfZK95Wbf6x9OzlVa7dBlNHv3wwUlLLr7TqprNh9PflLRdP5i TG5s6N6MDc8z9imxFGckGmoxFxUnAgBdRuRs2QIAAA== X-CMS-MailID: 20221021102642epcas5p24fec1e1e90632f6d9e768f7d25dc5480 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221021102642epcas5p24fec1e1e90632f6d9e768f7d25dc5480 References: <20221021095833.62406-1-vivek.2311@samsung.com> X-Spam-Status: No, score=-4.6 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, URIBL_BLOCKED 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?1747301022319509976?= X-GMAIL-MSGID: =?utf-8?q?1747301022319509976?= 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: 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..03d46a113612 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"; + 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"; + 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"; + 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"; + mram-ecc-cfg = <&sysreg_peric 0x70c>; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; status = "disabled"; };