Skip to content

Commit e481ab2

Browse files
rshanmumarckleinebudde
authored andcommitted
can: rcar_can: Add r8a7795 support
Added r8a7795 SoC support. Signed-off-by: Ramesh Shanmugasundaram <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 6cc6426 commit e481ab2

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Documentation/devicetree/bindings/net/can/rcar_can.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ Required properties:
99
"renesas,can-r8a7792" if CAN controller is a part of R8A7792 SoC.
1010
"renesas,can-r8a7793" if CAN controller is a part of R8A7793 SoC.
1111
"renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC.
12+
"renesas,can-r8a7795" if CAN controller is a part of R8A7795 SoC.
1213
"renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device.
1314
"renesas,rcar-gen2-can" for a generic R-Car Gen2 compatible device.
15+
"renesas,rcar-gen3-can" for a generic R-Car Gen3 compatible device.
1416
When compatible with the generic version, nodes must list the
1517
SoC-specific version corresponding to the platform first
1618
followed by the generic version.
@@ -22,6 +24,15 @@ Required properties:
2224
- pinctrl-0: pin control group to be used for this controller.
2325
- pinctrl-names: must be "default".
2426

27+
Required properties for "renesas,can-r8a7795" compatible:
28+
In R8A7795 SoC, "clkp2" can be CANFD clock. This is a div6 clock and can be
29+
used by both CAN and CAN FD controller at the same time. It needs to be scaled
30+
to maximum frequency if any of these controllers use it. This is done using
31+
the below properties.
32+
33+
- assigned-clocks: phandle of clkp2(CANFD) clock.
34+
- assigned-clock-rates: maximum frequency of this clock.
35+
2536
Optional properties:
2637
- renesas,can-clock-select: R-Car CAN Clock Source Select. Valid values are:
2738
<0x0> (default) : Peripheral clock (clkp1)

drivers/net/can/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ config CAN_JANZ_ICAN3
106106

107107
config CAN_RCAR
108108
tristate "Renesas R-Car CAN controller"
109-
depends on ARM
109+
depends on ARCH_RENESAS || ARM
110110
---help---
111111
Say Y here if you want to use CAN controller found on Renesas R-Car
112112
SoCs.

drivers/net/can/rcar_can.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,7 @@ static const struct of_device_id rcar_can_of_table[] __maybe_unused = {
906906
{ .compatible = "renesas,can-r8a7791" },
907907
{ .compatible = "renesas,rcar-gen1-can" },
908908
{ .compatible = "renesas,rcar-gen2-can" },
909+
{ .compatible = "renesas,rcar-gen3-can" },
909910
{ }
910911
};
911912
MODULE_DEVICE_TABLE(of, rcar_can_of_table);

0 commit comments

Comments
 (0)