Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp504853pxh; Tue, 9 Nov 2021 14:20:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUkCqEsneT/xRIoNv3Wy/1nQKFEm36KbF2FaOOSSBNcAPjq/Ym1NBgmwEXs7H7uifwoZkk X-Received: by 2002:a05:6402:d0b:: with SMTP id eb11mr15025161edb.388.1636496446015; Tue, 09 Nov 2021 14:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636496446; cv=none; d=google.com; s=arc-20160816; b=rHo1jS0SUqFVYN2mGqSmvnRkF64b+v09AUEPPTr4eLQ0HKpfDnjn4ifNH7J5wbeG98 6++HlBRyLfnq7hCnO7iXnHDCTxpZIBgOp8z4Juu+uv1a/1kA+/f8jwbqoIP4s/7Haffu OehfQGkUkuDlpn9ZZOT8PSJPW78SGIWGlsENmHbezYJaatrW9O+t0rodnxg+DivlFIzr yOmcT6UL7RCXdk8p1oEEsESGY58tr1B6BaQSMvf4nJd/kwXmqw18GpPtgQjyU4bC56PO PnnKXgJtMu0XE3QsX5V78mXJWGMHINuA8u6vxei1EadBtA8e6ra3kpvLLP8cSYzRNhSC yn+w== 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=QCezzwD7sAW9Bq1yqVsYaOQLQtiFoDRk+Vw98GWZTrI=; b=Elxeu4Yi2ZR+YNKFvR7IMx3WrbYxrpfP25XAYVTqJoGbKo8EJMBZs/ous5rO9jT382 Brv1VSU824sC7RNJZkAj9SLqC6igvQ0+o5cSUA9MqDYdYlXEQpo5937fGaPiN73hrysG w5XOMwD2dMh53EcBTQ+1RqTvtiJzXYqBdUu/MJZV2estg3Cr7UrKzVMk37mm4Hi9uqUO 17OHIH6Yc3lXf+PkPKfR93V/VpZeP4txPskmEzNQtky+pm1zcawkb8lJiikC6UTtlKru 1/W6C16OEsVs9jQdbRvFwE4+qMyAxaiHX9vbg3FWO8tXZuMRKrKIYR6pa9PBjrBVW1xm tcYg== 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 di1si47207943ejc.772.2021.11.09.14.20.21; Tue, 09 Nov 2021 14:20:46 -0800 (PST) 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 S242043AbhKIMTq (ORCPT + 99 others); Tue, 9 Nov 2021 07:19:46 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:44278 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S242052AbhKIMTl (ORCPT ); Tue, 9 Nov 2021 07:19:41 -0500 X-IronPort-AV: E=Sophos;i="5.87,220,1631545200"; d="scan'208";a="99679493" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 09 Nov 2021 21:16:54 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 3CED04391CBA; Tue, 9 Nov 2021 21:16:52 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Greg Kroah-Hartman , Rob Herring , Jiri Slaby , Philipp Zabel Cc: linux-serial@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 v2 2/3] dt-bindings: serial: renesas,sci: Document RZ/G2L SoC Date: Tue, 9 Nov 2021 12:16:30 +0000 Message-Id: <20211109121631.26687-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211109121631.26687-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20211109121631.26687-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add SCI binding documentation for Renesas RZ/G2L SoC. Also update the example node with RZ/G2L SCI0 node. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven --- v1->v2 * Added const "renesas,sci" entry in compatible property for h8300 * Included RB tag from Geert --- .../bindings/serial/renesas,sci.yaml | 44 ++++++++++++++++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/renesas,sci.yaml b/Documentation/devicetree/bindings/serial/renesas,sci.yaml index 22ed2f0b1dc3..141d3b368f10 100644 --- a/Documentation/devicetree/bindings/serial/renesas,sci.yaml +++ b/Documentation/devicetree/bindings/serial/renesas,sci.yaml @@ -14,7 +14,12 @@ allOf: properties: compatible: - const: renesas,sci + oneOf: + - items: + - enum: + - renesas,r9a07g044-sci # RZ/G2{L,LC} + - const: renesas,sci # generic SCI compatible UART + - const: renesas,sci # generic SCI compatible UART reg: maxItems: 1 @@ -54,18 +59,45 @@ required: - clocks - clock-names +if: + properties: + compatible: + contains: + enum: + - renesas,r9a07g044-sci +then: + properties: + resets: + maxItems: 1 + + power-domains: + maxItems: 1 + + required: + - resets + - power-domains + unevaluatedProperties: false examples: - | + #include + #include + aliases { serial0 = &sci0; }; - sci0: serial@ffff78 { - compatible = "renesas,sci"; - reg = <0xffff78 8>; - interrupts = <88 0>, <89 0>, <90 0>, <91 0>; - clocks = <&fclk>; + sci0: serial@1004d000 { + compatible = "renesas,r9a07g044-sci", "renesas,sci"; + reg = <0x1004d000 0x400>; + interrupts = , + , + , + ; + interrupt-names = "eri", "rxi", "txi", "tei"; + clocks = <&cpg CPG_MOD R9A07G044_SCI0_CLKP>; clock-names = "fck"; + power-domains = <&cpg>; + resets = <&cpg R9A07G044_SCI0_RST>; }; -- 2.17.1