[PATCH v7 0/4] rockchip: add can for RK3576 Soc

Elaine Zhang posted 4 patches 1 week, 2 days ago
.../net/can/rockchip,rk3568v2-canfd.yaml      |  47 +-
.../net/can/rockchip/rockchip_canfd-core.c    | 586 ++++++++++++++++--
drivers/net/can/rockchip/rockchip_canfd-rx.c  | 212 +++++++
drivers/net/can/rockchip/rockchip_canfd-tx.c  |  20 +
drivers/net/can/rockchip/rockchip_canfd.h     | 278 +++++++++
5 files changed, 1095 insertions(+), 48 deletions(-)
[PATCH v7 0/4] rockchip: add can for RK3576 Soc
Posted by Elaine Zhang 1 week, 2 days ago
rk3576 can is a new controller,new register layout and Bit position
definition:
Support CAN and CANFD protocol.
Support Dma.

There are major differences from the previous rk3568.
All errata on the rk3568 have been fixed and redesigned.

Change in V7:
[PATCH v7 1/4]: Correction format warning.
[PATCH v7 2/4]: No change.
[PATCH v7 3/4]: Correct the writing of some registers and
		correct the annotations.
[PATCH v7 4/4]: Optimize the structure parameters and
		ensure error handling.

Change in V6:
[PATCH v6 1/4]: Fix dma is support only for rk3576.
[PATCH v6 2/4]: Fix the compilation warning.
[PATCH v6 3/4]: Fix the compilation warning.
[PATCH v6 4/4]: Fix the compilation warning.

Change in V5:
[PATCH v5 1/4]: Add rk3576 canfd to rockchip,rk3568v2-canfd.yaml, remove
                rockchip,rk3576-canfd.yaml
[PATCH v5 2/4]: Encapsulate some hardware operation functions into
                rkcanfd_devtype_data to provide differentiated
                implementations for different models
                (such as RK3568v2/v3)..
[PATCH v5 3/4]: Add rk3576 canfd,fix the register naming rule,
                Delete the variables used by rockchip itself.
[PATCH v5 4/4]: Fix .h sorting.


Change in V4:
[PATCH v4 1/3]: Correct the format and add explanations.
[PATCH v4 2/3]: No change.
[PATCH v4 3/3]: No change.

Change in V3:
[PATCH v3 1/3]: Add documentation for the rk3576 CAN-FD.
[PATCH v3 2/3]: Adjust the differentiated code section and
                add dma function.
[PATCH v3 3/3]: Remove dma, no use dma by default.

Change in V2:
[PATCH v2 1/2]: remove rk3576_canfd.c, use the rockchip_canfd driver
[PATCH v2 2/2]: code style.

Elaine Zhang (4):
  dt-bindings: can: rockchip_canfd: add rk3576 CAN-FD controller
  net: can: rockchip: Refactor the rkcanfd_devtype_data structure
  net: can: rockchip: add can for RK3576 Soc
  net: can: rockchip: support dma for rk3576 rx

 .../net/can/rockchip,rk3568v2-canfd.yaml      |  47 +-
 .../net/can/rockchip/rockchip_canfd-core.c    | 586 ++++++++++++++++--
 drivers/net/can/rockchip/rockchip_canfd-rx.c  | 212 +++++++
 drivers/net/can/rockchip/rockchip_canfd-tx.c  |  20 +
 drivers/net/can/rockchip/rockchip_canfd.h     | 278 +++++++++
 5 files changed, 1095 insertions(+), 48 deletions(-)

-- 
2.34.1
Re: [PATCH v7 0/4] rockchip: add can for RK3576 Soc
Posted by Marc Kleine-Budde 1 week, 1 day ago
On 22.09.2025 15:15:39, Elaine Zhang wrote:
> rk3576 can is a new controller,new register layout and Bit position
> definition:
> Support CAN and CANFD protocol.
> Support Dma.
> 
> There are major differences from the previous rk3568.
> All errata on the rk3568 have been fixed and redesigned.

● 9550057c4efe: net: can: rockchip: add can for RK3576 Soc
  ● checkpatch.pl: drivers/net/can/rockchip/rockchip_canfd-core.c:292: WARNING: void function return statements are not generally useful

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |