lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <TY3PR01MB1134600DA4C986A40585888D786DEA@TY3PR01MB11346.jpnprd01.prod.outlook.com>
Date: Wed, 26 Nov 2025 15:41:05 +0000
From: Biju Das <biju.das.jz@...renesas.com>
To: biju.das.au <biju.das.au@...il.com>, Marc Kleine-Budde
	<mkl@...gutronix.de>, Vincent Mailhol <mailhol@...nel.org>, Rob Herring
	<robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
	<conor+dt@...nel.org>, Geert Uytterhoeven <geert+renesas@...der.be>,
	magnus.damm <magnus.damm@...il.com>
CC: Fabrizio Castro <fabrizio.castro.jz@...esas.com>,
	"linux-can@...r.kernel.org" <linux-can@...r.kernel.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"linux-renesas-soc@...r.kernel.org" <linux-renesas-soc@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, Prabhakar
 Mahadev Lad <prabhakar.mahadev-lad.rj@...renesas.com>, biju.das.au
	<biju.das.au@...il.com>
Subject: RE: [PATCH v3 1/2] dt-bindings: can: renesas,rcar-canfd: Document
 renesas,fd-only property

Hi all,

> -----Original Message-----
> From: Biju <biju.das.au@...il.com>
> Sent: 26 November 2025 15:36
> To: Marc Kleine-Budde <mkl@...gutronix.de>; Vincent Mailhol <mailhol@...nel.org>; Rob Herring
> <robh@...nel.org>; Krzysztof Kozlowski <krzk+dt@...nel.org>; Conor Dooley <conor+dt@...nel.org>; Geert
> Uytterhoeven <geert+renesas@...der.be>; magnus.damm <magnus.damm@...il.com>
> Cc: Biju Das <biju.das.jz@...renesas.com>; Fabrizio Castro <fabrizio.castro.jz@...esas.com>; linux-
> can@...r.kernel.org; devicetree@...r.kernel.org; linux-renesas-soc@...r.kernel.org; linux-
> kernel@...r.kernel.org; Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@...renesas.com>; biju.das.au
> <biju.das.au@...il.com>
> Subject: [PATCH v3 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property
> 
> From: Biju Das <biju.das.jz@...renesas.com>
> 
> The CANFD on RZ/{G2L,G3E} and R-Car Gen4 support 3 modes FD-Only mode, Classical CAN mode and CAN-FD
> mode. In FD-Only mode, communication in Classical CAN frame format is disabled. Document renesas,fd-
> only to handle this mode. As these SoCs support 3 modes, update the description of renesas,no-can-fd
> property and disallow it for R-Car Gen3.
> 
> Signed-off-by: Biju Das <biju.das.jz@...renesas.com>
> ---
> v2->v3:
>  * Added check to disallow the usage of both fd-only and no-can-fd.
> v1->v2:
>  * Added conditional check to disallow fd-only mode for R-Car Gen3.
> ---
>  .../bindings/net/can/renesas,rcar-canfd.yaml  | 74 ++++++++++++++++++-
>  1 file changed, 71 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> index f4ac21c68427..a504f94d0a20 100644
> --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> @@ -125,9 +125,17 @@ properties:
>    renesas,no-can-fd:
>      $ref: /schemas/types.yaml#/definitions/flag
>      description:
> -      The controller can operate in either CAN FD only mode (default) or
> -      Classical CAN only mode.  The mode is global to all channels.
> -      Specify this property to put the controller in Classical CAN only mode.
> +      The controller can operate in either CAN-FD mode (default) or FD-Only
> +      mode (RZ/{G2L,G3E} and R-Car Gen4) or Classical CAN mode. Specify this
> +      property to put the controller in Classical CAN mode.
> +
> +  renesas,fd-only:
> +    $ref: /schemas/types.yaml#/definitions/flag
> +    description:
> +      The CANFD on RZ/{G2L,G3E} and R-Car Gen4 SoCs support 3 modes FD-Only
> +      mode, Classical CAN mode and CAN-FD mode (default). In FD-Only mode,
> +      communication in Classical CAN frame format is disabled. Specify this
> +      property to put the controller in FD-Only mode.
> 
>    assigned-clocks:
>      description:
> @@ -267,6 +275,30 @@ allOf:
>        patternProperties:
>          "^channel[6-7]$": false
> 
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - renesas,rcar-gen3-canfd
> +    then:
> +      properties:
> +        renesas,fd-only: false
> +
> +  - if:
> +      required:
> +        - renesas,no-can-fd
> +    then:
> +      properties:
> +        renesas,fd-only: false
> +
> +  - if:
> +      required:
> +        - renesas,fd-only
> +    then:
> +      properties:
> +        renesas,no-can-fd: false
> +
>  unevaluatedProperties: false
> 
>  examples:
> @@ -297,3 +329,39 @@ examples:
>              channel1 {
>              };
>      };
> +
> +  - |
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +    #include <dt-bindings/clock/r9a07g044-cpg.h>
> +
> +    canfd1: can@...50000 {
> +            compatible = "renesas,r9a07g044-canfd", "renesas,rzg2l-canfd";
> +            reg = <0x10050000 0x8000>;
> +            interrupts = <GIC_SPI 426 IRQ_TYPE_LEVEL_HIGH>,
> +                         <GIC_SPI 427 IRQ_TYPE_LEVEL_HIGH>,
> +                         <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>,
> +                         <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>,
> +                         <GIC_SPI 428 IRQ_TYPE_LEVEL_HIGH>,
> +                         <GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH>,
> +                         <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>,
> +                         <GIC_SPI 429 IRQ_TYPE_LEVEL_HIGH>;
> +            interrupt-names = "g_err", "g_recc",
> +                              "ch0_err", "ch0_rec", "ch0_trx",
> +                              "ch1_err", "ch1_rec", "ch1_trx";
> +            clocks = <&cpg CPG_MOD R9A07G044_CANFD_PCLK>, <&cpg CPG_CORE R9A07G044_CLK_P0_DIV2>,
> <&can_clk>;
> +            clock-names = "fck", "canfd", "can_clk";
> +            assigned-clocks = <&cpg CPG_CORE R9A07G044_CLK_P0_DIV2>;
> +            assigned-clock-rates = <50000000>;
> +            resets = <&cpg R9A07G044_CANFD_RSTP_N>, <&cpg R9A07G044_CANFD_RSTC_N>;
> +            reset-names = "rstp_n", "rstc_n";
> +            power-domains = <&cpg>;
> +            renesas,no-can-fd;
> +            renesas,fd-only;
> +
> +            channel0 {
> +            };
> +
> +            channel1 {
> +            };
> +    };

Oops, Added testing device nodes by mistake.

Will send v4, fixing it.

Cheers,
Biju

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ