Skip to contentSkip to conversation

dt-bindings: can: rcar_canfd: document r8a77965 support

PATCH In review Marek Vasut 5 participants 13 messages Nov 18, 2018 – Feb 16, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: can: rcar_canfd: document r8a77965 support

Document the support for rcar_canfd on R8A77965 SoC devices.

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]>
---
 .../devicetree/bindings/net/can/rcar_canfd.txt      | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +7 -6
index ac71daa46195..4720e916fbdd 100644
@@ -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.
Signature · 1 line
2.18.0
#1 lore raw

PATCH 2/2 dt-bindings: can: rcar_canfd: document r8a77990 support

Document the support for rcar_canfd on R8A77990 SoC devices.

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]>

To: [email protected]

---
 .../devicetree/bindings/net/can/rcar_canfd.txt      | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +7 -6
index 4720e916fbdd..41049fed5872 100644
@@ -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.
Signature · 1 line
2.18.0
#4 lore raw
In reply to Marek Vasut
Quoted 2 lines

+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.

Eeeks, the 'canfd' is a suffix here not a prefix :( Not your issue, of course. But Simon, shall we fix that for all CANFD?

Documentation/devicetree/bindings/net/can/rcar_canfd.txt The name of the child nodes are "channel0" and "channel1" respectively. Each · line 35

Quoted 12 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +6 -6
-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:

I think updating this paragraph does not scale. Maybe we should reformat it the way as for plain CAN, so only in the header the new SoC gets added? We can fix this incrementally, though, doesn't need to be addressed within this patch.

#5 lore raw
Quoted 15 lines · Wolfram Sang
Quoted 2 lines

+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.

Eeeks, the 'canfd' is a suffix here not a prefix :( Not your issue, of course. But Simon, shall we fix that for all CANFD?

Quoted 9 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +3 -6
-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
Quoted 8 lines

Documentation/devicetree/bindings/net/can/rcar_canfd.txt The name of the child nodes are "channel0" and "channel1" respectively. Each · line 35

Quoted 3 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +3 -0
+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:

I think updating this paragraph does not scale. Maybe we should reformat it the way as for plain CAN, so only in the header the new SoC gets added? We can fix this incrementally, though, doesn't need to be addressed within this patch.

Sure, although I don't expect it to grow much more than this.

Signature · 2 lines
Best regards,
Marek Vasut
#6 lore raw
In reply to Wolfram Sang

Hi Wolfram,

Quoted 4 lines · Wolfram Sang
Quoted 1 line

+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.

Eeeks, the 'canfd' is a suffix here not a prefix :( Not your issue, of course. But Simon, shall we fix that for all CANFD?

Unfortunately we cannot, due to backwards compatibility.
Hence we keep following existing compatible value conventions for existing bindings, but follow the recommended way for new devices/bindings.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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
#7 lore raw

Hi Wolfram,

Quoted 9 lines · Geert Uytterhoeven
Quoted 4 lines · Wolfram Sang
Quoted 1 line

+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.

Eeeks, the 'canfd' is a suffix here not a prefix :( Not your issue, of course. But Simon, shall we fix that for all CANFD?

Unfortunately we cannot, due to backwards compatibility.
Hence we keep following existing compatible value conventions for existing bindings, but follow the recommended way for new devices/bindings.

So that's what I wrote _before_ my mornin' coffee...

"renesas,r8a77965-canfd" _is_ using the recommended order. "renesas,can-r8a77965" is not.

But my main argument is still valid, of course.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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
#8 lore raw
In reply to Wolfram Sang
Quoted 5 lines · Wolfram Sang
Quoted 2 lines

+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.

Eeeks, the 'canfd' is a suffix here not a prefix :( Not your issue, of course. But Simon, shall we fix that for all CANFD?

I think its too late to fix it for existing bindings. We could move to a new scheme for r8a77965 and beyond, but that is rather messy. I lean to wards continuing with using 'canfd' as a suffix.

Quoted 19 lines

Documentation/devicetree/bindings/net/can/rcar_canfd.txt The name of the child nodes are "channel0" and "channel1" respectively. Each · line 35

Quoted 13 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +6 -6
-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:

I think updating this paragraph does not scale. Maybe we should reformat it the way as for plain CAN, so only in the header the new SoC gets added? We can fix this incrementally, though, doesn't need to be addressed within this patch.

#9 lore raw
Quoted 11 lines · Simon Horman
Quoted 5 lines · Wolfram Sang
Quoted 2 lines

+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.

Eeeks, the 'canfd' is a suffix here not a prefix :( Not your issue, of course. But Simon, shall we fix that for all CANFD?

I think its too late to fix it for existing bindings. We could move to a new scheme for r8a77965 and beyond, but that is rather messy. I lean to wards continuing with using 'canfd' as a suffix.

Geert, Simon: OK, thanks for the answers.

Reviewed-by
#10 lore raw
Quoted 8 lines · Wolfram Sang
Quoted 7 lines · Simon Horman
Quoted 5 lines · Wolfram Sang
Quoted 2 lines

+ - "renesas,r8a77965-canfd" for R8A77965 (R-Car M3-N) compatible controller.

Eeeks, the 'canfd' is a suffix here not a prefix :( Not your issue, of course. But Simon, shall we fix that for all CANFD?

Quoted 6 lines
Quoted 4 lines

I think its too late to fix it for existing bindings. We could move to a new scheme for r8a77965 and beyond, but that is rather messy. I lean to wards continuing with using 'canfd' as a suffix.

Geert, Simon: OK, thanks for the answers.

I think this is good to go as-is.

Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] dt-bindings: can: rcar_canfd: document r8a77990 support

In reply to Marek Vasut
Quoted 11 lines · Marek Vasut

Document the support for rcar_canfd on R8A77990 SoC devices.

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]>

To: [email protected]

maintainer
#11 lore raw
In reply to Marek Vasut
Quoted 29 lines · Marek Vasut

Document the support for rcar_canfd on R8A77965 SoC devices.

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]>
---
 .../devicetree/bindings/net/can/rcar_canfd.txt      | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +1 -0
index ac71daa46195..4720e916fbdd 100644
@@ -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.

Documentation/devicetree/bindings/net/can/rcar_canfd.txt The name of the child nodes are "channel0" and "channel1" respectively. Each · line 32

Quoted 10 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +3 -6
 
-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

Do we have to list the SoCs twice so that the paragraph has to be reformatted every time? Just the compatibles above should be enough.

Quoted 9 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +3 -0
+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.
Signature · 1 line
2.18.0
#12 lore raw
Quoted 31 lines · Rob Herring
Quoted 30 lines · Marek Vasut

Document the support for rcar_canfd on R8A77965 SoC devices.

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]>
---
 .../devicetree/bindings/net/can/rcar_canfd.txt      | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +1 -0
index ac71daa46195..4720e916fbdd 100644
@@ -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.
 
Quoted 12 lines

Documentation/devicetree/bindings/net/can/rcar_canfd.txt The name of the child nodes are "channel0" and "channel1" respectively. Each · line 32

Quoted 9 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +3 -6
-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

Do we have to list the SoCs twice so that the paragraph has to be reformatted every time? Just the compatibles above should be enough.

We don't , but that's about it for the SoCs that need this.

Quoted 9 lines
Quoted 9 lines
Documentation/devicetree/bindings/net/can/rcar_canfd.txt +3 -0
+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.
Signature · 1 line
2.18.0
Signature · 2 lines
Best regards,
Marek Vasut
#3 lore raw

Re: [PATCH 2/2] dt-bindings: can: rcar_canfd: document r8a77990 support

In reply to Simon Horman
Quoted 13 lines · Simon Horman
Quoted 11 lines · Marek Vasut

Document the support for rcar_canfd on R8A77990 SoC devices.

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]>

To: [email protected]

Quoted 1 line

This patchset seems to be missing upstream.

Signature · 2 lines
Best regards,
Marek Vasut