Skip to content

arm64: dts: renesas: Increase CANFD clock rates

Geert Uytterhoeven linux-arm-kernel linux-renesas-soc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64: dts: renesas: rcar-gen3: Increase CANFD clock ratesarch/arm64/boot/dts/renesas/r8a77951.dtsi arch/arm64/boot/dts/renesas/r8a77960.dtsi arch/arm64/boot/dts/renesas/r8a77961.dtsi +4 more+7 -70 replies
2/2arm64: dts: renesas: rzg2: Increase CANFD clock ratesarch/arm64/boot/dts/renesas/r8a774a1.dtsi arch/arm64/boot/dts/renesas/r8a774b1.dtsi arch/arm64/boot/dts/renesas/r8a774c0.dtsi +1 more+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] arm64: dts: renesas: Increase CANFD clock rates

Hi all,

Currently, all R-Car Gen3 and RZ/G2 .dtsi files configure the CANFD core clocks to 40 MHz, which limits CAN-FD data transfer rates to 4 Mbps. However, all R-Car Gen3 and RZ/G2 SoCs except for R-Car D3 support CANFD clock rates up to 80 MHz.

Now the R-Car CAN-FD driver has gained support for Transceiver Delay Compensation in v6.17-rc1, increase all appropriate CANFD clock rates to the documented maximum, to support data rates up to 8 Mbps.

The R-Car Gen3 boards that have CAN-FD enabled use CAN transceivers that support transfer rates up to 8 (Ebisu) or 5 (Condor(-I), Eagle) Mbps. None of the RZ/G2 boards have CAN-FD enabled.

The Draak board, and some of the RZ/G2 boards have CAN enabled instead of CAN-FD. None of these are affected by this series, as they either rely on the default value of zero for the "renesas,can-clock-select" property, or configure it explicitly to zero, thus not using the CANFD core clock as CAN clock source.

All .dtsi files for SoCs in the RZ/G2L family configure the P0_DIV2 clock to 50 Mhz, which should be sufficient for the maximum supported transfer rates of 4 Mbps (my board has no CAN transceiver mounted...). RZ/G3E already configures its can_clk to 80 MHz.

This series has been tested on Ebisu-4D (R-Car E3). I plan to queue it in renesas-devel for v6.18.

Thanks for your comments!

Geert Uytterhoeven (2):
arm64: dts: renesas: rcar-gen3: Increase CANFD clock rates
arm64: dts: renesas: rzg2: Increase CANFD clock rates

 arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a774c0.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a77951.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a77960.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a77961.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a77965.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a77980.dtsi | 2 +-
 arch/arm64/boot/dts/renesas/r8a77990.dtsi | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)
Signature · 12 lines
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds