[PATCH 0/3] can: rockchip: add RK3588 CAN-FD support
1579567540 at qq.com
1579567540 at qq.com
Wed Jul 1 00:01:25 PDT 2026
From: luch00 <1579567540 at qq.com>
Add initial support for the RK3588v2 CAN-FD controller.
RK3588 integrates three CAN-FD controllers that are closely related to
the existing Rockchip CAN-FD IP already supported in the kernel, but
they cannot reuse the rk3568v2 description unchanged.
This series therefore:
- extends the existing Rockchip CAN-FD binding with the
rockchip,rk3588v2-canfd compatible
- adds a dedicated RK3588v2 match entry and devtype in the driver
- describes the three CAN-FD controller nodes in rk3588-base.dtsi
The dedicated driver data is needed because RK3588v2 encodes
RX_FIFO_CNT in bits 7:5 instead of 6:4. Runtime validation on RK3588v2
also showed that its observed errata profile differs from rk3568v2 and
rk3568v3, so using a fallback compatible would be misleading.
Tested on an embedfire,rk3588-lubancat-5io board with can0/can1
directly connected. Runtime testing used a 198 MHz CAN clock, nominal
bitrate 500 kbit/s, data bitrate 1 Mbit/s, and included stress and
error-path coverage for the existing Rockchip errata handling.
luch00 (3):
dt-bindings: can: rockchip: add rk3588v2 CAN-FD compatible
can: rockchip: add RK3588 CAN-FD support
arm64: dts: rockchip: add CAN-FD nodes for RK3588
.../net/can/rockchip,rk3568v2-canfd.yaml | 1 +
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 39 +++++++++++++++++++
.../net/can/rockchip/rockchip_canfd-core.c | 14 +++++++
drivers/net/can/rockchip/rockchip_canfd-rx.c | 5 ++-
drivers/net/can/rockchip/rockchip_canfd.h | 12 +++++-
5 files changed, 69 insertions(+), 2 deletions(-)
--
2.34.1
More information about the linux-arm-kernel
mailing list