From patchwork Thu Aug 1 13:41:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13750546 X-Patchwork-Delegate: geert@linux-m68k.org Received: from andre.telenet-ops.be (andre.telenet-ops.be [195.130.132.53]) (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 AC01D1A255A for ; Thu, 1 Aug 2024 13:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722519712; cv=none; b=LoYtPUXo5Sfg40Iqi9K1pAzdhqzX+hsxzZ1wAfCJ/e3E2QODxLPTN/WYBjZZHf7fxDJ5jRkgOd84+I9S3zyOxieIB5MuYdhTJri58nqWX3SJFeImqYPyEtQ85Kgtal4WtkLnZqmGNOdOVu2/VRGxVIimtvC7F+SS3ngiV2iok90= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722519712; c=relaxed/simple; bh=2pBooiMpVZcLBbSFYVW0Xm0PsJcpq1lqLkpVUrdr49Y=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XjCqDT9EgpW4/2+Y4tFnvLNDir7Becr6iHQdiaS+/OE9wrvrr5vSuwCEwJI76TnlH1Wo7wdQlsTt/x7YhX3tDx9NLR14Fy/sKtaYzjH5hO8Q+W6y5wEwcedDHXIyFtldaoihbL9mkA8Opbd4uDXNRFYCRz7lm4WIivw3NZLtOMk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:fff7:d11a:41d8:a195]) by andre.telenet-ops.be with bizsmtp id udhb2C00W5XJrhx01dhbHr; Thu, 01 Aug 2024 15:41:42 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sZW3L-004S6w-Jn; Thu, 01 Aug 2024 15:41:35 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sZW3j-00HO83-OF; Thu, 01 Aug 2024 15:41:35 +0200 From: Geert Uytterhoeven To: Marc Kleine-Budde , Vincent Mailhol , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fabrizio Castro Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Duy Nguyen , Geert Uytterhoeven Subject: [PATCH v2] dt-bindings: can: renesas,rcar-canfd: Document R-Car V4M support Date: Thu, 1 Aug 2024 15:41:34 +0200 Message-Id: <2c40290b3948ef1b9a5fa2e38794dc95ed3b2fd4.1722519580.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Duy Nguyen Document support for the CAN-FD Interface on the Renesas R-Car V4M (R8A779H0) SoC, which supports up to four channels. Signed-off-by: Duy Nguyen Signed-off-by: Geert Uytterhoeven --- v2: - Drop RFC state now it works. Changes compared to the BSP: - Restrict number of channels to four. --- .../bindings/net/can/renesas,rcar-canfd.yaml | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml index d3f45d29fa0a550a..7c5ac5d2e880bbb8 100644 --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml @@ -32,6 +32,7 @@ properties: - enum: - renesas,r8a779a0-canfd # R-Car V3U - renesas,r8a779g0-canfd # R-Car V4H + - renesas,r8a779h0-canfd # R-Car V4M - const: renesas,rcar-gen4-canfd # R-Car Gen4 - items: @@ -163,14 +164,23 @@ allOf: maxItems: 1 - if: - not: - properties: - compatible: - contains: - const: renesas,rcar-gen4-canfd + properties: + compatible: + contains: + const: renesas,r8a779h0-canfd then: patternProperties: - "^channel[2-7]$": false + "^channel[5-7]$": false + else: + if: + not: + properties: + compatible: + contains: + const: renesas,rcar-gen4-canfd + then: + patternProperties: + "^channel[2-7]$": false unevaluatedProperties: false