From: Zelong Dong <Zelong.Dong@amlogic.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Rob Herring <robh@kernel.org>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Vincent Mailhol <mailhol@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-amlogic@lists.infradead.org"
<linux-amlogic@lists.infradead.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: [PATCH 0/3] can: amlogic: add support for Amlogic A9 CAN-FD controller
Date: Fri, 27 Nov 2026 12:09:54 +0000 [thread overview]
Message-ID: <6dd79fd6-1504-42f7-9600-d915162acf53@amlogic.com> (raw)
In-Reply-To: <20261120-positive-strong-rooster-bb80bf-mkl@pengutronix.de>
Yes, A9 CAN Bus Controller is base on FlexCAN, but some registers are
appended, and not for NXP chip,
#define CAN_VERSION 0x3800
#define CAN_TOP_CTRL 0x3804
#define CAN_DMA_CFG 0x3808
#define CAN_TMTIK_CFG 0x380C
#define CAN_TWRAP_INT_CLR 0x3810
/* 0x3814 - 0x3818 */
#define CAN_TIMESTAMP 0x381C
#define CAN_WARN_INT_STS 0x3820
#define CAN_MB_INT_STS0 0x3824
#define CAN_MB_INT_STS1 0x3828
#define CAN_MB_INT_STS2 0x382C
#define CAN_MB_INT_STS3 0x3830
#define CAN_STS_REG 0x3834
#define CAN_ECC_ERR_ADDR 0x3838
In my opinion, FlexCAN driver is only for NXP chip.
Do you think I should update FlexCAN driver rather than a new driver?
在 2026/11/20 16:22, Marc Kleine-Budde 写道:
> On 20.11.2026 16:08:17, zelong dong wrote:
>> From: Zelong Dong <zelong.dong@amlogic.com>
>>
>> This series adds support for the CAN-FD controller found on the
>> Amlogic A9 SoC family.
>>
>> The controller supports classic CAN and CAN-FD. The
>> driver uses the generic RX offload infrastructure with hardware
>> timestamps, reports bus errors through the CAN berr counter, and
>> implements suspend/resume support.
> Have you had a look at the flexcan driver? The register layout of the IP
> core (and parts of your driver) looks like they were heavily inspired by
> it.
>
> Can you summarize why you require a separate driver?
>
> regards,
> Marc
>
next prev parent reply other threads:[~2026-11-27 12:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 8:08 zelong dong
2026-11-20 8:08 ` [PATCH 1/3] dt-bindings: net: can: add Amlogic A9 CAN controller zelong dong
2026-11-20 8:08 ` [PATCH 2/3] can: amlogic: add driver for Amlogic A9 CAN-FD controller zelong dong
2026-11-20 8:08 ` [PATCH 3/3] arm64: dts: amlogic: a9: add CAN controller node zelong dong
2026-11-20 8:22 ` [PATCH 0/3] can: amlogic: add support for Amlogic A9 CAN-FD controller Marc Kleine-Budde
2026-11-27 12:09 ` Zelong Dong [this message]
2026-11-20 8:40 ` 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=6dd79fd6-1504-42f7-9600-d915162acf53@amlogic.com \
--to=zelong.dong@amlogic.com \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailhol@kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=mkl@pengutronix.de \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
/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
all inboxes | Powered by JetHome®