Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp623279pxj; Thu, 3 Jun 2021 15:22:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCC1ILwmTwSp/oG9AHFU9tT39PALOKHdc1QG0KdpIcp3VIBxb0I3x+kt4vJ5++N/nlFhnd X-Received: by 2002:a50:cc0b:: with SMTP id m11mr1480258edi.297.1622758952389; Thu, 03 Jun 2021 15:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622758952; cv=none; d=google.com; s=arc-20160816; b=QfzAOk+29FKTBYXNo5DUpoNFZdP6mB8lyb4+tgLS4LDtAX3xGKWGlLiPU4+N3h1nSv 6RHv9O5k/d0Sft42r5VX4TwFfNQ4zvT0SKiSyufy4rjpuFuow2v26yKZrJJv/cnGD6fj Y2BZ1SxqckHuY9Ay9yNcchbablT5jMRXe61U+wQThOce4BmTzxvn6tqCU7OIIk90dQ/u bWQ0ZYdp6DPLjpgsrD+dSlBNxNQjNO6SRPV5CjHjNl9Jc1d4e28sITPTLOsAf75tiqWs sMK/ut3X095oEW9af//RA1Zz/+nBLO8dm4qWv55rtdsmy8Gb2H6EUm3h095UFagJnswu J0hQ== 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=BX0E/kRo8FzroK02RSwGAXuto5GUxBBT2LCwcBRPCrk=; b=r614oEzOk0ibiKn8KWZdz3DMTS3JHx/z0Hv2J5eP1m2vVIa99ni+c6F/3gh/0Y3tDj 40GzaQrzp4fHIS38GAUY9MPKBvlv0MW14dl+acbawMbDt/7jPJhR1/TiV/sOvUszucUv nFbzU4W3Hq4a6SwDlWc/ddNvvHegYwfwVFJr4o1qTlAIfucYdFP8A661e49YPzmVufXo e3v8OlusvExik+ALOaBQHNAec2pG2vf1xqoz23WTRtjZxdTprp23hIpEqwHph/r83HPc kxtxiZbExgSS26fpepoQRtz34sKWTAdiDIR4ph3vW1AG7TsOZZDFCMW+lLIiHaqKliRp GRmQ== 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 m25si1127163ejb.570.2021.06.03.15.22.09; Thu, 03 Jun 2021 15:22:32 -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 S231260AbhFCWUY (ORCPT + 99 others); Thu, 3 Jun 2021 18:20:24 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:57649 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230265AbhFCWUY (ORCPT ); Thu, 3 Jun 2021 18:20:24 -0400 X-IronPort-AV: E=Sophos;i="5.83,246,1616425200"; d="scan'208";a="83343560" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 04 Jun 2021 07:18:38 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id ADE52410B534; Fri, 4 Jun 2021 07:18:34 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Michael Turquette , Stephen Boyd , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Jiri Slaby , Philipp Zabel , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org Cc: Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v2 07/12] dt-bindings: clock: renesas: Document RZ/G2L SoC CPG driver Date: Thu, 3 Jun 2021 23:17:53 +0100 Message-Id: <20210603221758.10305-8-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210603221758.10305-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20210603221758.10305-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the device tree bindings of the Renesas RZ/G2L SoC clock driver in Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das Acked-by: Rob Herring --- .../bindings/clock/renesas,rzg2l-cpg.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml diff --git a/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml b/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml new file mode 100644 index 000000000000..fe32d4daac32 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/clock/renesas,rzg2l-cpg.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Renesas RZ/G2L Clock Pulse Generator / Module Standby Mode + +maintainers: + - Geert Uytterhoeven + +description: | + On Renesas RZ/G2L SoC, the CPG (Clock Pulse Generator) and Module + Standby Mode share the same register block. + + They provide the following functionalities: + - The CPG block generates various core clocks, + - The Module Standby Mode block provides two functions: + 1. Module Stop, providing a Clock Domain to control the clock supply + to individual SoC devices, + 2. Reset Control, to perform a software reset of individual SoC devices. + +properties: + compatible: + const: renesas,r9a07g044-cpg # RZ/G2{L,LC,UL} + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: extal + + '#clock-cells': + description: | + - For CPG core clocks, the two clock specifier cells must be "CPG_CORE" + and a core clock reference, as defined in + + - For module clocks, the two clock specifier cells must be "CPG_MOD" and + a module number, as defined in the . + const: 2 + + '#power-domain-cells': + description: + SoC devices that are part of the CPG/Module Standby Mode Clock Domain and + can be power-managed through Module Stop should refer to the CPG device + node in their "power-domains" property, as documented by the generic PM + Domain bindings in Documentation/devicetree/bindings/power/power-domain.yaml. + const: 0 + + '#reset-cells': + description: + The single reset specifier cell must be the module number, as defined in + the . + const: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - '#power-domain-cells' + - '#reset-cells' + +additionalProperties: false + +examples: + - | + cpg: clock-controller@11010000 { + compatible = "renesas,r9a07g044-cpg"; + reg = <0x11010000 0x10000>; + clocks = <&extal_clk>; + clock-names = "extal"; + #clock-cells = <2>; + #power-domain-cells = <0>; + #reset-cells = <1>; + }; -- 2.17.1