Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4399692pxv; Tue, 27 Jul 2021 06:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKoHPZrxe6Pp5g3hkZ1XjdT8xlDN85ZQW4V2/DcFeBqlLn+byIRVCgpjaBM8ppSA+P6U4T X-Received: by 2002:a05:6638:c58:: with SMTP id g24mr21566858jal.63.1627392773910; Tue, 27 Jul 2021 06:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627392773; cv=none; d=google.com; s=arc-20160816; b=R5sDQdnJNJJd1cR9z4Z3L1EWOjZrXokgkEMCMthzr9Wz5mDxHpI1ImpWSZUj8NzHfZ 58Q887Juxhof49XnrvqdSNPPPvbwggLMh37kkPfUD0Rwm+CwmVD8xfWGIjt3ANj1CvjP YkYUdutf8C9F9AiBCvjBn6p26uezX9KuuPOxcK+vA8GRhSQR5I+S3oOA/Rx7tIhTniOX PYZ99ei+VUGFfz/FOP22ujlOE2dtiIfvjKzv7yuCAdg86tECwQAvx31a+3qhpXbkyUFw i0VgNimn98HobS8rl4lc2+nyEOkKN9UivnWO26fMQThxZryAYcwBIg2NxsITCdKNVO0k 2lhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=s2p0/KrIefTRh/jWVVFMbjH0SAlQvX5XP/1H2P9IAU4=; b=VdJP6w/h8kUpkX4zBQ9ow1MIwPqfITyR+RtEM/Q3tUi/4rarY8JpoRXLbTmb8t9ZzM I2JIlPORA5ZrZ7fpGmetjq23VFrUZYadUtfBjdriltd3nNpXqAJ+FyEozKDPOCrjDv3R 4bs+XxcuzhJm8Zz1Q9Il1DHCmrmJrt/JKyIWddxA0mUq2tfu+Yql1RpXAhoiAZubFF0a tJOfA/UhURkUf1rQq7vzMNl3fiqMokP4pmIXrb4P6Co/Vl0kG0c3oo5BhAUSaNdDOeJh 1Ykv8BAt3VrLQeSdfTzUEr6O5jjSak2dsJV4h6lDze7HSj9JSZDbt+tnzSsUm3ljHnnw H9mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si3058850ioc.42.2021.07.27.06.32.42; Tue, 27 Jul 2021 06:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237218AbhG0Nb0 (ORCPT + 99 others); Tue, 27 Jul 2021 09:31:26 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:3045 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236828AbhG0Naj (ORCPT ); Tue, 27 Jul 2021 09:30:39 -0400 X-IronPort-AV: E=Sophos;i="5.84,273,1620658800"; d="scan'208";a="88920763" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 27 Jul 2021 22:30:37 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id B90284270492; Tue, 27 Jul 2021 22:30:33 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Rob Herring , Fabrizio Castro , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Magnus Damm , Philipp Zabel , linux-can@vger.kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v4 1/3] dt-bindings: net: can: renesas,rcar-canfd: Document RZ/G2L SoC Date: Tue, 27 Jul 2021 14:30:20 +0100 Message-Id: <20210727133022.634-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210727133022.634-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20210727133022.634-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add CANFD binding documentation for Renesas RZ/G2L SoC. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring --- .../bindings/net/can/renesas,rcar-canfd.yaml | 69 +++++++++++++++++-- 1 file changed, 63 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 0b33ba9ccb47..546c6e6d2fb0 100644 --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml @@ -30,13 +30,15 @@ properties: - renesas,r8a77995-canfd # R-Car D3 - const: renesas,rcar-gen3-canfd # R-Car Gen3 and RZ/G2 + - items: + - enum: + - renesas,r9a07g044-canfd # RZ/G2{L,LC} + - const: renesas,rzg2l-canfd # RZ/G2L family + reg: maxItems: 1 - interrupts: - items: - - description: Channel interrupt - - description: Global interrupt + interrupts: true clocks: maxItems: 3 @@ -50,8 +52,7 @@ properties: power-domains: maxItems: 1 - resets: - maxItems: 1 + resets: true renesas,no-can-fd: $ref: /schemas/types.yaml#/definitions/flag @@ -91,6 +92,62 @@ required: - channel0 - channel1 +if: + properties: + compatible: + contains: + enum: + - renesas,rzg2l-canfd +then: + properties: + interrupts: + items: + - description: CAN global error interrupt + - description: CAN receive FIFO interrupt + - description: CAN0 error interrupt + - description: CAN0 transmit interrupt + - description: CAN0 transmit/receive FIFO receive completion interrupt + - description: CAN1 error interrupt + - description: CAN1 transmit interrupt + - description: CAN1 transmit/receive FIFO receive completion interrupt + + interrupt-names: + items: + - const: g_err + - const: g_recc + - const: ch0_err + - const: ch0_rec + - const: ch0_trx + - const: ch1_err + - const: ch1_rec + - const: ch1_trx + + resets: + maxItems: 2 + + reset-names: + items: + - const: rstp_n + - const: rstc_n + + required: + - interrupt-names + - reset-names +else: + properties: + interrupts: + items: + - description: Channel interrupt + - description: Global interrupt + + interrupt-names: + items: + - const: ch_int + - const: g_int + + resets: + maxItems: 1 + unevaluatedProperties: false examples: -- 2.17.1