Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp681716pxb; Wed, 3 Nov 2021 10:34:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHuNLkxPTbJjhOJ+GohxBOVq9bqs29k6Q3W7tcTA+WJUOSPfSv4wSH2K1RXyc8YCARw74Q X-Received: by 2002:a02:70d2:: with SMTP id f201mr22884826jac.52.1635960848903; Wed, 03 Nov 2021 10:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635960848; cv=none; d=google.com; s=arc-20160816; b=y2dZWyDMSabWmYufcnii3PJ6RGRXC+UQVYXARSf2R8W3Nspc4qwnXwzd9a8jEnC24A bvTe5X9Fm0qYomhOFST60WcPsa2xoFkRhY+Pp4c8P9txAfU5Hk+xcXZqUIRt4lutqjl2 npRnCozLYRSEq4PSITV1TlrQBCj061W0WT0JB947XdbbbQt+gDY0uTtVs76Jp4AvdAsW dqRXhJr6a03CK3lFWJDMNmiyile52vlVhZctTf95i8MBwPSMt+u89X+dIm9m4RlgCTqb lwOed3H4AW5FW88NFceCJBWTQE6UrzNZEVcgrmbmynmuPJ2e8iz+0vDAdYVfnJagj/Xh eFKg== 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=e3U7RYuEKxR++MRs7PmHbbpFWQDozbw/QvaJKOZJLQA=; b=n1vOUZp9DObxdHvL6Xdkd/VvLDgeWq3kotRkoay0Y2P5lt+9aJ8hfe2Qxmv+7w5hbG TpsPI9TVRKhBezMcH3H0v6GOwzqVduJRxmh/z2e6A0uBtcWVygG3FSH1CQg5Nf6AC7D0 iAx66bEr0kAoirie/aetOc2VFHjs13rmTDf2rAjZhmAbwrsTxrlkQ2a6VofiPCATTaE9 ymQt2dZ1BrAKnj9sLC/vbhdePeIuPSb7tfnj4mwQe3ObQoQ/ZLPZ6jszNOF31xTqZK1z zwdq9PTF95RJSa+XMNawBXPkyOJhci1YdR1ayckg1lLPWLZAmUnrzvizMa05rSLyeOWa d4hw== 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 y4si5595013jat.0.2021.11.03.10.33.56; Wed, 03 Nov 2021 10:34:08 -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 S229654AbhKCReW (ORCPT + 99 others); Wed, 3 Nov 2021 13:34:22 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:60101 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231130AbhKCReT (ORCPT ); Wed, 3 Nov 2021 13:34:19 -0400 X-IronPort-AV: E=Sophos;i="5.87,206,1631545200"; d="scan'208";a="99097628" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 04 Nov 2021 02:31:41 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id BBCB240B5157; Thu, 4 Nov 2021 02:31:38 +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 2/3] dt-bindings: serial: renesas,sci: Document RZ/G2L SoC Date: Wed, 3 Nov 2021 17:31:26 +0000 Message-Id: <20211103173127.13701-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211103173127.13701-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20211103173127.13701-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 real world DT node. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- .../bindings/serial/renesas,sci.yaml | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/renesas,sci.yaml b/Documentation/devicetree/bindings/serial/renesas,sci.yaml index 22ed2f0b1dc3..6fc573406240 100644 --- a/Documentation/devicetree/bindings/serial/renesas,sci.yaml +++ b/Documentation/devicetree/bindings/serial/renesas,sci.yaml @@ -14,7 +14,11 @@ allOf: properties: compatible: - const: renesas,sci + oneOf: + - items: + - enum: + - renesas,r9a07g044-sci # RZ/G2{L,LC} + - const: renesas,sci # generic SCI compatible UART reg: maxItems: 1 @@ -54,18 +58,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