From patchwork Wed Nov 9 10:09:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Yadav X-Patchwork-Id: 1383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp266934wru; Wed, 9 Nov 2022 02:59:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ybyqWiGiXidsxN3hSD9xfWZXKVxBBEOJ9k6fk4sEm++irXsV9WBZc6sx1jzv5YTNMLzg+ X-Received: by 2002:a17:906:3c01:b0:7ae:77c0:556a with SMTP id h1-20020a1709063c0100b007ae77c0556amr8581976ejg.2.1667991560370; Wed, 09 Nov 2022 02:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667991560; cv=none; d=google.com; s=arc-20160816; b=XsmIF8V17CbBQwOmG3oGnwtrH05p+g35NyT/XrOK41211jDiiDWhTW2TPpDaJf4+ZU W1ld7UigNLOUw07ogS+JUWR8e4766MYcMX5khEBW0Ygtzg2qehkcXLwGUrZGdiQxC3HX 4215fuT9UJpFPf1Q4xwbyCttEgzM3fvc/TjGHHZOKvgqWHnybZO84y3Pi5mnIS7eTuU8 BvkKBhqsklQfIgmlh4C884j1Gc7MgfK7JoHUiF+JY7+ab1FgSPe13MdogyI8flX4vD2L guQrRm1IjKt19+giNY6GAwz318Lyxt1eaMfBxv+WbPUi+dxSp/gg3PDpUSRHaBPw+92/ 9Rjg== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=z+E5HOwpVaLUPurIkhl/FRNgw1X+/A6zDkiYtpOW8hc=; b=VT3nXtqW0yQ+gO563u22gWvUbkz+8jaRK6dIDHO0V6q/MMyIxEIWtt/jBv4okADGzl LELVlujeXY1gRX7gdMNFVTweWPNyzSv0j/4C+pGDXdLgdpz7V5v7FSuDomE7huAOEua3 NVJ3qkNJJZQWaxAH8wg7mUgUzaDzsl0zFmFLtxtfOqOTEf0AieA5g8QjdBRQo2F0ZTVS cCXSrpJrRKWzCDV3QMGib31CQS1JoUayEtfmPAuoj9FHhb4Eim5XEFl9t1+2PWofVXrF wmcbUyczK4KwRj27c2NCvbqzXryoba9ZcjnlPTzIUNeCf/lY2wjfGp0Irpx2PUwQyJZY 4OVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="H/xukJI1"; 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 ty22-20020a170907c71600b0078dc5c888f1si13124212ejc.135.2022.11.09.02.58.56; Wed, 09 Nov 2022 02:59:20 -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="H/xukJI1"; 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 S229931AbiKIKxZ (ORCPT + 99 others); Wed, 9 Nov 2022 05:53:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbiKIKwk (ORCPT ); Wed, 9 Nov 2022 05:52:40 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BDF927917 for ; Wed, 9 Nov 2022 02:52:38 -0800 (PST) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20221109105237epoutp02353eb2db56cd28b830c4a82b60e92a00~l5R61gW-E2002720027epoutp02b for ; Wed, 9 Nov 2022 10:52:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20221109105237epoutp02353eb2db56cd28b830c4a82b60e92a00~l5R61gW-E2002720027epoutp02b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667991157; bh=z+E5HOwpVaLUPurIkhl/FRNgw1X+/A6zDkiYtpOW8hc=; h=From:To:Cc:Subject:Date:References:From; b=H/xukJI1umwafV+JoSuLMq4kHwCJwxFtZNL+/qllK12NBKyD7ShC49POl9fBcWmbm 6f3mH9OQ9lh0QdJR0xTBnxu4SlDPAYY/NXJ1+De8+EP0e8CfKEFhMDS/5lO+Im+vYb ef2YJG6plmX92zE8wauTDj7c2VAszfWUrXwlbNwg= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20221109105236epcas5p25e5f59f7d7e5abea496dd7e03b72ed9f~l5R6S4kw41323213232epcas5p2m; Wed, 9 Nov 2022 10:52:36 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.183]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4N6hcy0VtCz4x9Pv; Wed, 9 Nov 2022 10:52:34 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 59.27.39477.1768B636; Wed, 9 Nov 2022 19:52:33 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221109100240epcas5p2cdd73ae96d91a5e915f3ac9a42091620~l4mT3HANr2279622796epcas5p26; Wed, 9 Nov 2022 10:02:40 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221109100240epsmtrp11a7c4d2685c97764b105cad8fbaa7af9~l4mT2MZAh0841808418epsmtrp1o; Wed, 9 Nov 2022 10:02:40 +0000 (GMT) X-AuditID: b6c32a4a-259fb70000019a35-a4-636b867197ae Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 91.E0.14392.0CA7B636; Wed, 9 Nov 2022 19:02:40 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221109100237epsmtip2e33db1ff0dafca202dd531bce4d413aa~l4mQ-ZAx31855218552epsmtip2X; Wed, 9 Nov 2022 10:02:37 +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 0/6] can: mcan: Add MCAN support for FSD SoC Date: Wed, 9 Nov 2022 15:39:22 +0530 Message-Id: <20221109100928.109478-1-vivek.2311@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VTbUxbVRj23HvbXkZKrgW2I8kmXiGTRqBlpTsgjBkWc8NEMQuZH0O8aa+U 3NLWtkzljwhjCJGvDBg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EOSO1DjYqHTzbMfd1iL1I3cT7XvHbyrgEqz/e6EnRmxh11tCh rl10iVZk5JPbx+Ot2da5b9d8vG9+174j60rPLKx75vFD2y0/JTwhpedCuWNSpvCMrMoHSizF GYmGWsxFxYkAKz36AfcCAAA= X-CMS-MailID: 20221109100240epcas5p2cdd73ae96d91a5e915f3ac9a42091620 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109100240epcas5p2cdd73ae96d91a5e915f3ac9a42091620 References: 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=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?1749015918677788863?= X-GMAIL-MSGID: =?utf-8?q?1749015918677788863?= Add support for MCAN instances present on the FSD platform. Also add support for handling error correction code (ECC) for MCAN message RAM. Sriranjani P (2): dt-bindings: Document the SYSREG specific compatibles found on FSD SoC arm64: dts: fsd: add sysreg device node Vivek Yadav (4): dt-bindings: can: mcan: Add ECC functionality to message ram arm64: dts: fsd: Add MCAN device node can: m_can: Add ECC functionality for message RAM arm64: dts: fsd: Add support for error correction code for message RAM .../devicetree/bindings/arm/tesla-sysreg.yaml | 50 +++++++++++ .../bindings/net/can/bosch,m_can.yaml | 31 +++++++ MAINTAINERS | 1 + 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 | 82 +++++++++++++++++++ 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 ++++++++++++++++- 9 files changed, 343 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/tesla-sysreg.yaml