Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5210804pxj; Wed, 9 Jun 2021 11:47:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmRY5Z5AbTwojsX4dX2IWKJdDwubWcgXK8sUqN5U71mb86SIsixmP+8GqVkMKPrS5gg8Z0 X-Received: by 2002:a05:6402:b11:: with SMTP id bm17mr785750edb.109.1623264450276; Wed, 09 Jun 2021 11:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623264450; cv=none; d=google.com; s=arc-20160816; b=hAK1bcE2pnZcUDOWGhymWt1n9Fv/GQFjBqgqo+2fR2FwJGpj+DDCw5XqoBng7Nkz5l pUBIa2vaiqew6YEkyy8hFrm2wHO81En7tXfdjiOeBrauXyRdSimueHEMX2zC+L+LKius Ou4DvB66oFzfR8nBEhALp7vjxa1rVoFjUwrtzL+vYVQWi6hrfyusJW9R6k0xuCoKcIBQ I8Eoup0D1QWZ/0vKf81ay5QX6RuN3H1mQFojMyXdl4kePWNRpdaxuOZjPXn17ADJ0ga0 nyt0u9j9HWBJcrfZohBTeS8l+j80ZGoZl0bRdiN0VkXWRum0PRGvnXFWNDNeHkD1RwcG PxXg== 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=5xI1sMByrLq6jmjbrRsKD/jMoRfOf2wHsufg3lRjxvg=; b=IGIqkfCg+grgFnxvX02e7M6VUHWcwXYaNV3Vu6XO99I183ZpHCSKZPko3zqFbnEl8/ c1eftC091bZM3ytKkmHJRPVv2ha8sLzDwXCZkQfDxo6WiL542urqu5IFgvIRsbGXOO7h mV+k3p34gwtXHNycx0HnkEzm8GzuXy+3hJwMK3F8PIkO+yLGF6d6VdSPUo37hKyiAb94 OyNULltwj8CxM1ilq5+gtVdBWaSk+hBfROwE68NzsJmIm5P5tq56T2bvk2NrL/IS6lRq zF+aFJYvwKIJKBEUy50k2DGI/83hhlX2pEWMe+Re/+0v29gHe1U82RMR1sPgKvvUxkSr KH3A== 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 28si410298ejk.511.2021.06.09.11.47.06; Wed, 09 Jun 2021 11:47:30 -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 S238949AbhFIPfZ (ORCPT + 99 others); Wed, 9 Jun 2021 11:35:25 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:33258 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237166AbhFIPfP (ORCPT ); Wed, 9 Jun 2021 11:35:15 -0400 X-IronPort-AV: E=Sophos;i="5.83,261,1616425200"; d="scan'208";a="83733806" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 10 Jun 2021 00:33:19 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 5F3824009102; Thu, 10 Jun 2021 00:33:16 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Michael Turquette , Stephen Boyd , Catalin Marinas , Will Deacon , 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 Cc: Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v3 07/11] dt-bindings: clock: renesas: Document RZ/G2L SoC CPG driver Date: Wed, 9 Jun 2021 16:32:26 +0100 Message-Id: <20210609153230.6967-8-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210609153230.6967-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20210609153230.6967-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 Reviewed-by: Rob Herring --- .../bindings/clock/renesas,rzg2l-cpg.yaml | 83 +++++++++++++++++++ 1 file changed, 83 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..30b2e3d0d25d --- /dev/null +++ b/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml @@ -0,0 +1,83 @@ +# 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 Standby, 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} + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + description: + Clock source to CPG can be either from external clock input (EXCLK) or + crystal oscillator (XIN/XOUT). + 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 Standby 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