[PATCH/RFC 0/4] *arm64: Add CAN-FD support for R-Car V4M and Gray Hawk Single

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	Hi all,

This patch series aims to add support for CAN-FD on the R-Car V4M SoC
and the Gray Hawk Single development board.

Unfortunately it does not work: bringing up any CAN interface fails
with:

    rcar_canfd e6660000.can can0: channel 0 communication state failed
    RTNETLINK answers: Connection timed out

This error means that instructing the internal MCU to switch the CAN-FD
channel to operational mode timed out, and the channel is still in reset
mode.

The CAN-FD module on R-Car V4M is very similar to the one on R-Car V4H,
but differ in some hardware parameters, as reflected by the Parameter
Status Information part of the Global IP Version Register.  However,
none of this parameterization should have any impact on the driver, as
the driver does not access any register that is impacted by the
parameterization (except for the number of channels).

Channels 0 and 1 work fine on R-Car V4H.  I have compared all register
writes between V4H and V4M, and dumped and compared the full register
block after a sucessful and failed bring-up of a channel, but there is
no other failure indication in e.g. a status or error flag register...

Thanks for your comments!

Cong Dang (1):
  clk: renesas: r8a779h0: Add CANFD clock

Duy Nguyen (2):
  dt-bindings: can: renesas,rcar-canfd: Document R-Car V4M support
  arm64: dts: renesas: r8a779h0: Add CAN-FD node

Geert Uytterhoeven (1):
  arm64: dts: renesas: gray-hawk-single: Add CAN-FD support

 .../bindings/net/can/renesas,rcar-canfd.yaml  | 22 +++++++---
 .../dts/renesas/r8a779h0-gray-hawk-single.dts | 40 ++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi     | 41 +++++++++++++++++++
 drivers/clk/renesas/r8a779h0-cpg-mssr.c       |  1 +
 4 files changed, 98 insertions(+), 6 deletions(-)

-- 
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

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




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux