From nobody Mon Dec 1 23:07:03 2025 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 3747A330D29 for ; Wed, 26 Nov 2025 15:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764172760; cv=none; b=Gv9vLawwq1nc3ENxskVhmwojYie9nOQFK+X0siSYwNT4LVLyf0zniNmrYmhfJ4aFViEk4Nj/JPQM/Wqv9Zpypz7uQnnlZA3BwcudxJtJ7V83ZZs5eFJ0ZhPkNKF3oI4RYYdYd0kJh0W8T0J8ofIcjtIDcray1GaGiBXS7GV1rHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764172760; c=relaxed/simple; bh=sBUk2K+LyWxsZ50kZXqzevdzeTfhAWsRwpcwQmtD5xA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WjGJxWzDJwgVU8XMH9RLEoLUWJwj1rKKc49064pQyob/dgy0Y8BDDxfwLcu1//dy9nyWZtl5S75plcey3r4VvEojz70l7Pa5cbeZD+2fh6oshswG39JW09RSKW/PsiQykjH0JtZeSmP197TuhSDlNihR7rLRnPpai8MFdW2dPOk= 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=faU8sh3L; arc=none smtp.client-ip=209.85.221.52 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="faU8sh3L" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-42b32a3e78bso5584f8f.0 for ; Wed, 26 Nov 2025 07:59:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764172754; x=1764777554; 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=fxqp4M5X4tgd8J3YZl7+OJdfIMx5GV6b0qSx7EidnZM=; b=faU8sh3LrH0MVhS5dDYQWjGIDqG4B7cZa3R/tAywZnuMbLIJc57FELzUgJNaEQv75o sz9tTghyeAtDy4qxjOjCq0uFIBdfg5A9k5skQCtz3pUt8NKzxZY7xFbO+iyv8AdryvXS gwC1WIr9h56rXzjq45oPZ+4+3QgFIBON24IbSs9yxMpqtbHH5YkHYhbtql1YxkBDZwIy 4Bn51naBafwtY/FO2+ROHgCkrOqb+2VeEplV8rIG3UUIIQ43QcCDnflde+v86eqYV5Wj F2TfYSZ4cGL2s4trZKBDxz4flqq4mB/V3Cu88i/JhRPftIuOfYM/3gk8cZ7bL3L5yEVU UuRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764172754; x=1764777554; 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=fxqp4M5X4tgd8J3YZl7+OJdfIMx5GV6b0qSx7EidnZM=; b=ctbCOOq/7GkifsmqM3jk5c60qkghUlqYuRHbEf6pVXOpgB4EDXBxyuzJe6hi2i+zoH wsong1PyBUjFp3/R3ywNYQSfwlLDNxl+1OKjRKqD7oigZfRti4EX9SfjLS2Qna9/PIF8 Z6aj2Ey9tz1FgW8qZrqn3Yw+26lDlpDsJByA77gtzOQeirTLjzqm08fNOgX2d+pDW0A3 TU1Th4RnnlcL7hMvereWVq3168QRaj7IrgK0ZX1RCJDqW+QdaGBjuHHe5vBhqnvw/BNK wOL/kuGQh6dnwj2bKUZg7Ur6KNn05zrVORxivX42V2CV1+GBtRUkDm71GVcjyLXKem8l 5cGw== X-Forwarded-Encrypted: i=1; AJvYcCW8298I+K02u1r/tqiGfy/qMcXOa2p2I1ndqpVOR7qjCp4aGs7DCusRbmtMGNaRc3C1YBnKSKL1/5WbtpE=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6SquY2DsYkcfL60KCqVQHoZDNhtA8kh564ri6GcstqETn5Ot9 o29ZcUCBzGMYdE7rC7T1iACfFSBXVdlDYd5wMJnx0Kzd1C1xFPxN4gIX X-Gm-Gg: ASbGncttB7pkEWXR7IBeAX+cE16hLJrNpKg9shSwmKcnGfxgX+NjCSPcOEkQpHEQck+ 9nOqDSrkHGqFQdqORdoszCjWivv9EePWeidL6SWJe+R0srUMskb0BgdAvDusrxJe1M/PKhxWRU+ hphWYBxaVox3Qq05uUPbw9HUUCQNwR9s/wcbe8m1r98jETt6BX0+4P3acCSPLfcS+5r6ALjH+WD jo8QF/VxHYTZQs3Q578eFxvUKqztJTttg+2hbtaaNN/GSGxv58PNM/QwARGGimsK0VT+dZLX8Ak WDxCv1nYy6gNPYHuKiTGz5SHEbu5mAtkC+YkJx1Ie1K+H4JFJ8aCuNRiq9aDePNjpV4+8NKOW7x IxZvDX1XDpT1Kvpma49dPLj9nznKEgdfhMjmca9EJ5jV66jqoY+1JxIbuqYnKljBf7FlXX8Ts8v 2gS+gRkyvOeCLkAK/CmSfVJBR+OEKhmIlNT6AOlSzk4OQ/Aq5Xax2dxb9zadqIO3U91vdQMAY= X-Google-Smtp-Source: AGHT+IGsHAyvJKxk7IgZs6cADiBilbwV9eEwOI5jq20QUYAnEsvLcBpBixq8p6RYLJIqdLmoTspabg== X-Received: by 2002:a05:6000:2410:b0:42b:396e:2817 with SMTP id ffacd0b85a97d-42cc1d199cdmr20649023f8f.40.1764172754101; Wed, 26 Nov 2025 07:59:14 -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-42cbd764dbesm38197188f8f.27.2025.11.26.07.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Nov 2025 07:59:13 -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 v4 1/2] dt-bindings: can: renesas,rcar-canfd: Document renesas,fd-only property Date: Wed, 26 Nov 2025 15:59:06 +0000 Message-ID: <20251126155911.320563-2-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251126155911.320563-1-biju.das.jz@bp.renesas.com> References: <20251126155911.320563-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 Reviewed-by: Krzysztof Kozlowski --- v3->v4: * Dropped the node added in example for just testing. 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 | 38 +++++++++++++++++-- 1 file changed, 35 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..e129bdceef84 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: --=20 2.43.0