2019-05-09 19:21:49

by Fabrizio Castro

[permalink] [raw]
Subject: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

Dear All,

I am reposting some CAN and CANFD related dt-bindings changes for
Renesas' R-Car and RZ/G devices that have been originally sent
end of last year and beginning of this year.

Thanks,
Fab

Fabrizio Castro (3):
dt-bindings: can: rcar_can: Fix RZ/G2 CAN clocks
dt-bindings: can: rcar_can: Add r8a774c0 support
dt-bindings: can: rcar_canfd: document r8a774c0 support

Marek Vasut (2):
dt-bindings: can: rcar_canfd: document r8a77965 support
dt-bindings: can: rcar_canfd: document r8a77990 support

Documentation/devicetree/bindings/net/can/rcar_can.txt | 13 ++++---------
Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 16 ++++++++++------
2 files changed, 14 insertions(+), 15 deletions(-)

--
2.7.4


2019-05-09 19:21:56

by Fabrizio Castro

[permalink] [raw]
Subject: [PATCH repost 2/5] dt-bindings: can: rcar_can: Add r8a774c0 support

Document RZ/G2E (r8a774c0) SoC specific bindings.

Signed-off-by: Fabrizio Castro <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
---
Documentation/devicetree/bindings/net/can/rcar_can.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/net/can/rcar_can.txt b/Documentation/devicetree/bindings/net/can/rcar_can.txt
index e0dfc7c..b463e12 100644
--- a/Documentation/devicetree/bindings/net/can/rcar_can.txt
+++ b/Documentation/devicetree/bindings/net/can/rcar_can.txt
@@ -6,6 +6,7 @@ Required properties:
"renesas,can-r8a7744" if CAN controller is a part of R8A7744 SoC.
"renesas,can-r8a7745" if CAN controller is a part of R8A7745 SoC.
"renesas,can-r8a774a1" if CAN controller is a part of R8A774A1 SoC.
+ "renesas,can-r8a774c0" if CAN controller is a part of R8A774C0 SoC.
"renesas,can-r8a7778" if CAN controller is a part of R8A7778 SoC.
"renesas,can-r8a7779" if CAN controller is a part of R8A7779 SoC.
"renesas,can-r8a7790" if CAN controller is a part of R8A7790 SoC.
--
2.7.4

2019-05-09 19:22:02

by Fabrizio Castro

[permalink] [raw]
Subject: [PATCH repost 3/5] dt-bindings: can: rcar_canfd: document r8a77965 support

From: Marek Vasut <[email protected]>

Document the support for rcar_canfd on R8A77965 SoC devices.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Eugeniu Rosca <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Marc Kleine-Budde <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Simon Horman <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: [email protected]
Reviewed-by: Simon Horman <[email protected]>
---
Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
index ac71daa..4720e91 100644
--- a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
+++ b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
@@ -6,6 +6,7 @@ Required properties:
- "renesas,rcar-gen3-canfd" for R-Car Gen3 compatible controller.
- "renesas,r8a7795-canfd" for R8A7795 (R-Car H3) compatible controller.
- "renesas,r8a7796-canfd" for R8A7796 (R-Car M3-W) compatible controller.
+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.
- "renesas,r8a77970-canfd" for R8A77970 (R-Car V3M) compatible controller.
- "renesas,r8a77980-canfd" for R8A77980 (R-Car V3H) compatible controller.

@@ -26,12 +27,12 @@ The name of the child nodes are "channel0" and "channel1" respectively. Each
child node supports the "status" property only, which is used to
enable/disable the respective channel.

-Required properties for "renesas,r8a7795-canfd" and "renesas,r8a7796-canfd"
-compatible:
-In R8A7795 and R8A7796 SoCs, canfd clock is a div6 clock and can be used by both
-CAN and CAN FD controller at the same time. It needs to be scaled to maximum
-frequency if any of these controllers use it. This is done using the below
-properties:
+Required properties for "renesas,r8a7795-canfd", "renesas,r8a7796-canfd" and
+"renesas,r8a77965-canfd" compatible:
+In R8A7795, R8A7796 and R8A77965 SoCs, canfd clock is a div6 clock and can
+be used by both CAN and CAN FD controller at the same time. It needs to be
+scaled to maximum frequency if any of these controllers use it. This is done
+using the below properties:

- assigned-clocks: phandle of canfd clock.
- assigned-clock-rates: maximum frequency of this clock.
--
2.7.4

2019-05-09 19:22:58

by Fabrizio Castro

[permalink] [raw]
Subject: [PATCH repost 1/5] dt-bindings: can: rcar_can: Fix RZ/G2 CAN clocks

According to the latest information, the clock options for CAN on RZ/G2
are the same as the ones available on R-Car Gen3

Fixes: 868b7c0f43e6 ("dt-bindings: can: rcar_can: Add r8a774a1 support")
Signed-off-by: Fabrizio Castro <[email protected]>
Reviewed-by: Chris Paterson <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
---
Documentation/devicetree/bindings/net/can/rcar_can.txt | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/can/rcar_can.txt b/Documentation/devicetree/bindings/net/can/rcar_can.txt
index 9936b9e..e0dfc7c 100644
--- a/Documentation/devicetree/bindings/net/can/rcar_can.txt
+++ b/Documentation/devicetree/bindings/net/can/rcar_can.txt
@@ -27,13 +27,8 @@ Required properties:

- reg: physical base address and size of the R-Car CAN register map.
- interrupts: interrupt specifier for the sole interrupt.
-- clocks: phandles and clock specifiers for 2 CAN clock inputs for RZ/G2
- devices.
- phandles and clock specifiers for 3 CAN clock inputs for every other
- SoC.
-- clock-names: 2 clock input name strings for RZ/G2: "clkp1", "can_clk".
- 3 clock input name strings for every other SoC: "clkp1", "clkp2",
- "can_clk".
+- clocks: phandles and clock specifiers for 3 CAN clock inputs.
+- clock-names: 3 clock input name strings: "clkp1", "clkp2", and "can_clk".
- pinctrl-0: pin control group to be used for this controller.
- pinctrl-names: must be "default".

@@ -49,8 +44,7 @@ using the below properties:
Optional properties:
- renesas,can-clock-select: R-Car CAN Clock Source Select. Valid values are:
<0x0> (default) : Peripheral clock (clkp1)
- <0x1> : Peripheral clock (clkp2) (not supported by
- RZ/G2 devices)
+ <0x1> : Peripheral clock (clkp2)
<0x3> : External input clock

Example
--
2.7.4

2019-05-09 19:23:24

by Fabrizio Castro

[permalink] [raw]
Subject: [PATCH repost 4/5] dt-bindings: can: rcar_canfd: document r8a77990 support

From: Marek Vasut <[email protected]>

Document the support for rcar_canfd on R8A77990 SoC devices.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Eugeniu Rosca <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Marc Kleine-Budde <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Simon Horman <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: [email protected]
To: [email protected]
Reviewed-by: Simon Horman <[email protected]>
---
Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
index 4720e91..41049fe 100644
--- a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
+++ b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
@@ -9,6 +9,7 @@ Required properties:
- "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.
- "renesas,r8a77970-canfd" for R8A77970 (R-Car V3M) compatible controller.
- "renesas,r8a77980-canfd" for R8A77980 (R-Car V3H) compatible controller.
+ - "renesas,r8a77990-canfd" for R8A77990 (R-Car E3) compatible controller.

When compatible with the generic version, nodes must list the
SoC-specific version corresponding to the platform first, followed by the
@@ -27,12 +28,12 @@ The name of the child nodes are "channel0" and "channel1" respectively. Each
child node supports the "status" property only, which is used to
enable/disable the respective channel.

-Required properties for "renesas,r8a7795-canfd", "renesas,r8a7796-canfd" and
-"renesas,r8a77965-canfd" compatible:
-In R8A7795, R8A7796 and R8A77965 SoCs, canfd clock is a div6 clock and can
-be used by both CAN and CAN FD controller at the same time. It needs to be
-scaled to maximum frequency if any of these controllers use it. This is done
-using the below properties:
+Required properties for "renesas,r8a7795-canfd", "renesas,r8a7796-canfd",
+"renesas,r8a77965-canfd" and "renesas,r8a77990-canfd" compatible:
+In R8A7795, R8A7796, R8A77965 and R8A77990 SoCs, canfd clock is a div6 clock
+and can be used by both CAN and CAN FD controller at the same time. It needs
+to be scaled to maximum frequency if any of these controllers use it. This is
+done using the below properties:

- assigned-clocks: phandle of canfd clock.
- assigned-clock-rates: maximum frequency of this clock.
--
2.7.4

2019-05-09 19:23:40

by Fabrizio Castro

[permalink] [raw]
Subject: [PATCH repost 5/5] dt-bindings: can: rcar_canfd: document r8a774c0 support

Document the support for rcar_canfd on R8A774C0 SoC devices.

Signed-off-by: Fabrizio Castro <[email protected]>
Reviewed-by: Chris Paterson <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
---
Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
index 41049fe..32f051f 100644
--- a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
+++ b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt
@@ -3,7 +3,8 @@ Renesas R-Car CAN FD controller Device Tree Bindings

Required properties:
- compatible: Must contain one or more of the following:
- - "renesas,rcar-gen3-canfd" for R-Car Gen3 compatible controller.
+ - "renesas,rcar-gen3-canfd" for R-Car Gen3 and RZ/G2 compatible controllers.
+ - "renesas,r8a774c0-canfd" for R8A774C0 (RZ/G2E) compatible controller.
- "renesas,r8a7795-canfd" for R8A7795 (R-Car H3) compatible controller.
- "renesas,r8a7796-canfd" for R8A7796 (R-Car M3-W) compatible controller.
- "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.
@@ -28,12 +29,13 @@ The name of the child nodes are "channel0" and "channel1" respectively. Each
child node supports the "status" property only, which is used to
enable/disable the respective channel.

-Required properties for "renesas,r8a7795-canfd", "renesas,r8a7796-canfd",
-"renesas,r8a77965-canfd" and "renesas,r8a77990-canfd" compatible:
-In R8A7795, R8A7796, R8A77965 and R8A77990 SoCs, canfd clock is a div6 clock
-and can be used by both CAN and CAN FD controller at the same time. It needs
-to be scaled to maximum frequency if any of these controllers use it. This is
-done using the below properties:
+Required properties for "renesas,r8a774c0-canfd", "renesas,r8a7795-canfd",
+"renesas,r8a7796-canfd", "renesas,r8a77965-canfd", and "renesas,r8a77990-canfd"
+compatible:
+In R8A774C0, R8A7795, R8A7796, R8A77965, and R8A77990 SoCs, canfd clock is a
+div6 clock and can be used by both CAN and CAN FD controller at the same time.
+It needs to be scaled to maximum frequency if any of these controllers use it.
+This is done using the below properties:

- assigned-clocks: phandle of canfd clock.
- assigned-clock-rates: maximum frequency of this clock.
--
2.7.4

2019-06-07 10:04:45

by Fabrizio Castro

[permalink] [raw]
Subject: RE: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

Dear All,

These patches have been around for a very long time now, is anybody willing to take them?

Cheers,
Fab

> From: Fabrizio Castro <[email protected]>
> Sent: 09 May 2019 20:20
> Subject: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings
>
> Dear All,
>
> I am reposting some CAN and CANFD related dt-bindings changes for
> Renesas' R-Car and RZ/G devices that have been originally sent
> end of last year and beginning of this year.
>
> Thanks,
> Fab
>
> Fabrizio Castro (3):
> dt-bindings: can: rcar_can: Fix RZ/G2 CAN clocks
> dt-bindings: can: rcar_can: Add r8a774c0 support
> dt-bindings: can: rcar_canfd: document r8a774c0 support
>
> Marek Vasut (2):
> dt-bindings: can: rcar_canfd: document r8a77965 support
> dt-bindings: can: rcar_canfd: document r8a77990 support
>
> Documentation/devicetree/bindings/net/can/rcar_can.txt | 13 ++++---------
> Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 16 ++++++++++------
> 2 files changed, 14 insertions(+), 15 deletions(-)
>
> --
> 2.7.4

2019-06-12 17:14:19

by Simon Horman

[permalink] [raw]
Subject: Re: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

Dave,

are you comfortable with me taking these patches
through the renesas tree? Or perhaps should they be reposted
to you for inclusion in net-next?

They have been stuck for a long time now.

On Fri, Jun 07, 2019 at 10:02:13AM +0000, Fabrizio Castro wrote:
> Dear All,
>
> These patches have been around for a very long time now, is anybody willing to take them?
>
> Cheers,
> Fab
>
> > From: Fabrizio Castro <[email protected]>
> > Sent: 09 May 2019 20:20
> > Subject: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings
> >
> > Dear All,
> >
> > I am reposting some CAN and CANFD related dt-bindings changes for
> > Renesas' R-Car and RZ/G devices that have been originally sent
> > end of last year and beginning of this year.
> >
> > Thanks,
> > Fab
> >
> > Fabrizio Castro (3):
> > dt-bindings: can: rcar_can: Fix RZ/G2 CAN clocks
> > dt-bindings: can: rcar_can: Add r8a774c0 support
> > dt-bindings: can: rcar_canfd: document r8a774c0 support
> >
> > Marek Vasut (2):
> > dt-bindings: can: rcar_canfd: document r8a77965 support
> > dt-bindings: can: rcar_canfd: document r8a77990 support
> >
> > Documentation/devicetree/bindings/net/can/rcar_can.txt | 13 ++++---------
> > Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 16 ++++++++++------
> > 2 files changed, 14 insertions(+), 15 deletions(-)
> >
> > --
> > 2.7.4
>

2019-06-12 18:07:40

by David Miller

[permalink] [raw]
Subject: Re: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

From: Simon Horman <[email protected]>
Date: Wed, 12 Jun 2019 14:20:20 +0200

> are you comfortable with me taking these patches
> through the renesas tree? Or perhaps should they be reposted
> to you for inclusion in net-next?
>
> They have been stuck for a long time now.

They can go through the renesas tree, no problem.

Acked-by: David S. Miller <[email protected]>

2019-06-13 15:49:25

by Simon Horman

[permalink] [raw]
Subject: Re: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

On Wed, Jun 12, 2019 at 09:49:08AM -0700, David Miller wrote:
> From: Simon Horman <[email protected]>
> Date: Wed, 12 Jun 2019 14:20:20 +0200
>
> > are you comfortable with me taking these patches
> > through the renesas tree? Or perhaps should they be reposted
> > to you for inclusion in net-next?
> >
> > They have been stuck for a long time now.
>
> They can go through the renesas tree, no problem.
>
> Acked-by: David S. Miller <[email protected]>

Thanks Dave,

I have applied these to the renesas tree for inclusion in v5.3.

2019-06-13 20:11:18

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH repost 3/5] dt-bindings: can: rcar_canfd: document r8a77965 support

On Thu, 9 May 2019 20:20:20 +0100, Fabrizio Castro wrote:
> From: Marek Vasut <[email protected]>
>
> Document the support for rcar_canfd on R8A77965 SoC devices.
>
> Signed-off-by: Marek Vasut <[email protected]>
> Cc: Eugeniu Rosca <[email protected]>
> Cc: Geert Uytterhoeven <[email protected]>
> Cc: Marc Kleine-Budde <[email protected]>
> Cc: Rob Herring <[email protected]>
> Cc: Simon Horman <[email protected]>
> Cc: Wolfram Sang <[email protected]>
> Cc: [email protected]
> Reviewed-by: Simon Horman <[email protected]>
> ---
> Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>

Reviewed-by: Rob Herring <[email protected]>

2019-06-13 20:13:21

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH repost 4/5] dt-bindings: can: rcar_canfd: document r8a77990 support

On Thu, 9 May 2019 20:20:21 +0100, Fabrizio Castro wrote:
> From: Marek Vasut <[email protected]>
>
> Document the support for rcar_canfd on R8A77990 SoC devices.
>
> Signed-off-by: Marek Vasut <[email protected]>
> Cc: Eugeniu Rosca <[email protected]>
> Cc: Geert Uytterhoeven <[email protected]>
> Cc: Marc Kleine-Budde <[email protected]>
> Cc: Rob Herring <[email protected]>
> Cc: Simon Horman <[email protected]>
> Cc: Wolfram Sang <[email protected]>
> Cc: [email protected]
> To: [email protected]
> Reviewed-by: Simon Horman <[email protected]>
> ---
> Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>

Reviewed-by: Rob Herring <[email protected]>