From nobody Mon Dec 1 23:07:04 2025 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74263331A6E for ; Wed, 26 Nov 2025 15:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764171371; cv=none; b=Jxir3cqCGfhLU1WQAHm0sY6Hcvjc4ZY05VFHpFEe+8wk3dSrH0qhsG4gPDHblYA5yHXh6D0cpY554qGmKw2znHHkNewQCrMVFuSMN5Jvt5h46iWTRWl1aDeMadkUFYp+5H3LZGtEn2ibLWXrJPYy0s5gY1/nNuDfgzo7UiSAMn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764171371; c=relaxed/simple; bh=LlzzsLiv/t3fNeaCdKhq3FPYopoxNZ0lmuHTClS6u54=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a+KDiGwygNL6h5xYxb2swUA4yELLYJ23JaThnlp59witY43QNdRqAjb+bTqOfyXvH+m14ckhyeZme0VPAChLmSJMLTDMGr+5gPg6BCKafC2d7wIDnn8/kmqB6mN2JfDijl1sL9y25VcqcqWEArg4rd7HOSPPzVjEFT1AyTBRC6E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fvklJMK7; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fvklJMK7" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-429c48e05aeso595020f8f.1 for ; Wed, 26 Nov 2025 07:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764171366; x=1764776166; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qEW5IUsnqhZHbo7o0lYoYpk+rA/ZSKOVlb3MFwI2MDY=; b=fvklJMK7d2kvzfwzUsfhCo+0nHZS+uyrjDWWu2qtyUo4jO5+8Vfx1XQhYlgVN0FOf7 Ksq7SVvfmlm46VZnjpjgT3QN14OT194P8SsSoQW8kR1ETmqzDmTpz76W4tSk6fudBFQ2 /3i9BrsXPWOH+urxQtR9oe9ThrY2AjjSHJ52x/8r/a27WEVFuESfH2/OulS27Ff9PBKR UXhp8l65RvRZT6pGd91J0CitUblu0FuK4ecBxOKwHlqt4jTpLpOlj87m4JpNDZVK7GaM G6hH7mVD/XYfnvbYNsp8wzwdrYidX85PE+PYuffXIg4TFPRpSYW7FAMxu6gpS6wRb5yZ vIMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764171366; x=1764776166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=qEW5IUsnqhZHbo7o0lYoYpk+rA/ZSKOVlb3MFwI2MDY=; b=hdgrdkGhnYuGrv0zUbyVRDs2UNKh5kEhL25Qui7JD77ttsv2k6XHxqT1mznAXY8+WF wvR7SjozE3RE6Mr3VcvItDoS7rCLLMIzXww/GBaN+BaBYEnD17txg9r8YsfSHi4fcFNN krZwrvNYZKWhkTIVVU105Jktx7shgy/1AXhoaJBJCvJPh0aP1P7M9d3rbqB3P04q1P0p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97d-42cba63b5b2mr28330678f8f.4.1764171366237; Wed, 26 Nov 2025 07:36:06 -0800 (PST) Received: from biju.lan (host86-162-200-138.range86-162.btcentralplus.com. [86.162.200.138]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7f2e454sm41223775f8f.2.2025.11.26.07.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Nov 2025 07:36:06 -0800 (PST) From: Biju X-Google-Original-From: Biju To: Marc Kleine-Budde , Vincent Mailhol , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm Cc: Biju Das , Fabrizio Castro , linux-can@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar Mahadev Lad , Biju Das Subject: [PATCH v3 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property Date: Wed, 26 Nov 2025 15:35:57 +0000 Message-ID: <20251126153603.312265-2-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251126153603.312265-1-biju.das.jz@bp.renesas.com> References: <20251126153603.312265-1-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Biju Das 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 --- 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.y= aml 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 mo= de. + 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 th= is + 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. =20 assigned-clocks: description: @@ -267,6 +275,30 @@ allOf: patternProperties: "^channel[6-7]$": false =20 + - 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 =20 examples: @@ -297,3 +329,39 @@ examples: channel1 { }; }; + + - | + #include + #include + + canfd1: can@10050000 { + compatible =3D "renesas,r9a07g044-canfd", "renesas,rzg2l-canfd= "; + reg =3D <0x10050000 0x8000>; + interrupts =3D , + , + , + , + , + , + , + ; + interrupt-names =3D "g_err", "g_recc", + "ch0_err", "ch0_rec", "ch0_trx", + "ch1_err", "ch1_rec", "ch1_trx"; + clocks =3D <&cpg CPG_MOD R9A07G044_CANFD_PCLK>, <&cpg CPG_CORE= R9A07G044_CLK_P0_DIV2>, <&can_clk>; + clock-names =3D "fck", "canfd", "can_clk"; + assigned-clocks =3D <&cpg CPG_CORE R9A07G044_CLK_P0_DIV2>; + assigned-clock-rates =3D <50000000>; + resets =3D <&cpg R9A07G044_CANFD_RSTP_N>, <&cpg R9A07G044_CANF= D_RSTC_N>; + reset-names =3D "rstp_n", "rstc_n"; + power-domains =3D <&cpg>; + renesas,no-can-fd; + renesas,fd-only; + + channel0 { + }; + + channel1 { + }; + }; + --=20 2.43.0