devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Li <Frank.Li@nxp.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>,
	 Vincent Mailhol <mailhol.vincent@wanadoo.fr>,
	 "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	 Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,  Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>
Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org,
	 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	 haibo.chen@nxp.com, imx@lists.linux.dev, han.xu@nxp.com,
	 Frank Li <Frank.Li@nxp.com>,
	 Chircu-Mare Bogdan-Petru <Bogdan.Chircu@freescale.com>,
	 Dan Nica <dan.nica@nxp.com>,
	 Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>,
	 Li Yang <leoyang.li@nxp.com>,
	Joakim Zhang <qiangqing.zhang@nxp.com>,
	 Leonard Crestez <cdleonard@gmail.com>
Subject: [PATCH v2 2/4] can: flexcan: Add S32V234 support to FlexCAN driver
Date: Mon, 15 Jul 2024 17:27:21 -0400	[thread overview]
Message-ID: <20240715-flexcan-v2-2-2873014c595a@nxp.com> (raw)
In-Reply-To: <20240715-flexcan-v2-0-2873014c595a@nxp.com>

From: Chircu-Mare Bogdan-Petru <Bogdan.Chircu@freescale.com>

Add flexcan support for S32V234.

Signed-off-by: Chircu-Mare Bogdan-Petru <Bogdan.Chircu@freescale.com>
Signed-off-by: Dan Nica <dan.nica@nxp.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
Reviewed-by: Li Yang <leoyang.li@nxp.com>
Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 drivers/net/can/flexcan/flexcan-core.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/can/flexcan/flexcan-core.c b/drivers/net/can/flexcan/flexcan-core.c
index 8ea7f2795551b..f6e609c388d55 100644
--- a/drivers/net/can/flexcan/flexcan-core.c
+++ b/drivers/net/can/flexcan/flexcan-core.c
@@ -378,6 +378,10 @@ static const struct flexcan_devtype_data fsl_lx2160a_r1_devtype_data = {
 		FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR,
 };
 
+static struct flexcan_devtype_data fsl_s32v234_devtype_data = {
+	.quirks = FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_DISABLE_MECR,
+};
+
 static const struct can_bittiming_const flexcan_bittiming_const = {
 	.name = DRV_NAME,
 	.tseg1_min = 4,
@@ -2018,6 +2022,7 @@ static const struct of_device_id flexcan_of_match[] = {
 	{ .compatible = "fsl,vf610-flexcan", .data = &fsl_vf610_devtype_data, },
 	{ .compatible = "fsl,ls1021ar2-flexcan", .data = &fsl_ls1021a_r2_devtype_data, },
 	{ .compatible = "fsl,lx2160ar1-flexcan", .data = &fsl_lx2160a_r1_devtype_data, },
+	{ .compatible = "fsl,s32v234-flexcan", .data = &fsl_s32v234_devtype_data, },
 	{ /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, flexcan_of_match);

-- 
2.34.1


  parent reply	other threads:[~2024-07-15 21:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-15 21:27 [PATCH v2 0/4] can: fsl,flexcan: add fsl,s32v234-flexcan and imx95 wakeup Frank Li
2024-07-15 21:27 ` [PATCH v2 1/4] dt-bindings: can: fsl,flexcan: add compatible string fsl,s32v234-flexcan Frank Li
2024-07-15 21:27 ` Frank Li [this message]
2024-07-16  6:56   ` [PATCH v2 2/4] can: flexcan: Add S32V234 support to FlexCAN driver Marc Kleine-Budde
2024-07-15 21:27 ` [PATCH v2 3/4] bingdings: can: flexcan: move fsl,imx95-flexcan standalone Frank Li
2024-07-15 21:27 ` [PATCH v2 4/4] can: flexcan: add wakeup support for imx95 Frank Li
2024-07-16  7:06   ` Marc Kleine-Budde
2024-07-16 14:40     ` Frank Li
2024-07-16 14:45       ` Marc Kleine-Budde
2024-07-17  2:03         ` Bough Chen
2024-07-17  7:20           ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240715-flexcan-v2-2-2873014c595a@nxp.com \
    --to=frank.li@nxp.com \
    --cc=Bogdan.Chircu@freescale.com \
    --cc=cdleonard@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=dan.nica@nxp.com \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=haibo.chen@nxp.com \
    --cc=han.xu@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=leoyang.li@nxp.com \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mailhol.vincent@wanadoo.fr \
    --cc=mkl@pengutronix.de \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=qiangqing.zhang@nxp.com \
    --cc=robh@kernel.org \
    --cc=stefan-gabriel.mirea@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).