Skip to content

add support for Allwinner R40 CAN controller

Evgeny Boger linux-arm-kernel linux-can linux-devicetree linux-sunxi 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- sort pinmux nodes alphabetically and mark them with omit-if-no-ref

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: net: can: add support for Allwinner R40 CAN controllerDocumentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml+24 -00 replies
2/3can: sun4i_can: add support for R40 CAN controllerdrivers/net/can/sun4i_can.c+60 -12 replies
3/3ARM: dts: sun8i: r40: add node for CAN controllerarch/arm/boot/dts/sun8i-r40.dtsi+21 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] add support for Allwinner R40 CAN controller

Allwinner R40 (also known as A40i, T3, V40) has a CAN controller. The controller is the same as in earlier A10 and A20 SoCs, but needs reset line to be deasserted before use.

This patch series introduce new compatible for R40 CAN controller, add support for reset line in driver and add the corresponding nodes to the SoC .dtsi file.

The CAN IP was documented in early V40 datasheet [1]. It also fully supported in vendor BSP. However, CAN description was removed from more recent A40i, T3 and R40 user manuals and datasheets. Anyway, we verified that the CAN controller is indeed there and tested it extensively on A40i-based custom hardware [2].

[1] https://linux-sunxi.org/File:Allwinner_V40_Datasheet_V1.0.pdf
[2] https://wirenboard.com/en/product/wiren-board-7/

Changes in v2:
- sort pinmux nodes alphabetically and mark them with omit-if-no-ref

Evgeny Boger (3):
dt-bindings: net: can: add support for Allwinner R40 CAN controller
can: sun4i_can: add support for R40 CAN controller
ARM: dts: sun8i: r40: add node for CAN controller

 .../net/can/allwinner,sun4i-a10-can.yaml      | 24 ++++++++
 arch/arm/boot/dts/sun8i-r40.dtsi              | 21 +++++++
 drivers/net/can/sun4i_can.c                   | 61 ++++++++++++++++++-
 3 files changed, 105 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1