Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1613352pxb; Sat, 22 Jan 2022 01:19:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGueoCtq+NWS8dqxWzX0CWCEvv/1iac/DXiRaoEvMWF6FMoa3majip0dRtm4AlljIXhfiA X-Received: by 2002:a63:7f0c:: with SMTP id a12mr5601086pgd.548.1642843152727; Sat, 22 Jan 2022 01:19:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642843152; cv=none; d=google.com; s=arc-20160816; b=Wwvdy55mW4iIhq4LZUpohr41HMi1KAy/e06CyMlLYkLVjqBo8KwRtWUPQ29OWSXQGS y4aJqTZMz8a+9USXTIDpBl9OyCH4oF61JRp7lvvRXTE99EAZJopVhXMbZPW0V20SaHaC XLJ9hAoDJ0xFujtDAVfJalxbajpfb1QSZkWiolOVFLnL2+uzhibmE20eJzafymcNzLFd tHM4nGvs1LvoTbfO3a7GuPFzYF07GxJ1DTKmbILHGkPfmefaIOj2CE/M7adDBijsI88z r3uFjehQdMUpSSNsokpJ2ELHsPDRpuZLbYR2z4xtc44P2pU/TWhiY3iRx24rOFsaEJuH StWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=thoVAsRaEwpb4DhploDdrZwAcBcB7cc7KQIcQ0vTONA=; b=M3D8q6S2GZiuV//ykDiYe3fjDqDnH4wNOV40l5/JZLoBX0d1dX/ZvqawUxhCHqtRqy il/C8d60OgEgjdx5KJVp//A/UpJoI3c3VyTlAfyiNlH1/3WW1N9pwbH31Nv0gjCq+MDX cV+ipgsnp7ibCtDnxBL+KQW29Cmf7e/x6iHQfOvIR7Orkc00ShrwDcJ16gTmrWKTHnQn ttdPoW6wUnF7SB+xPcrKsIz+6vNnuHsMLk8QXF70w9cTdaJk3uwRbG6W8VvdCsKvRiSC ZKFDZjYQzHfeRg/BV+WgFSN/6VgxSzrTNCQzpl1Se4tHg8wvw+PKEcM8Wk1DSmuELmBf kkjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K0ZzayTd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si827949plp.61.2022.01.22.01.18.30; Sat, 22 Jan 2022 01:19:12 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K0ZzayTd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233006AbiAUVD4 (ORCPT + 99 others); Fri, 21 Jan 2022 16:03:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232237AbiAUVDx (ORCPT ); Fri, 21 Jan 2022 16:03:53 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27EEBC06173B; Fri, 21 Jan 2022 13:03:53 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id h7so3334683ejf.1; Fri, 21 Jan 2022 13:03:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=thoVAsRaEwpb4DhploDdrZwAcBcB7cc7KQIcQ0vTONA=; b=K0ZzayTdbBg4OwEgBwSR/qM8f9XwoITHN7ZGYjlhaXggiVd7vMSnnhCCjV1hIcz7db 5tfEfaJv+UKdSMau4QaCao5DJuH+4bhB5ZdCFV7KoRAdscW1aTWUhYTOiwlLfJGpWqZu obGL1kTFR1EN6QdnPBAxK08Gfbic2M9/XX+JBO81FxF+HFUkYmd5KZYQhTkKOspKumt4 tmvESl1a7sSXlvdOIVGI3eoxzHYChhArfXqKEpTKySFCQyrM+mF04Bf2EtOzjHP4tUYE ukgFI8y3PZTOwFlWJ4988aN8iEoRFIKnsM6wHlpEuDfdIqs3kOw0QmKMtcPIlaCJuUb7 ycYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=thoVAsRaEwpb4DhploDdrZwAcBcB7cc7KQIcQ0vTONA=; b=TEPBtvLFIcb5VfRGwRg8Nbpm4a+dCdjVOhHwQ1HzeO8ujfVgNCs4m9hXGjR6AyV592 kAr8pufH6Wb0YdIoLk9cY48DBo5fFqNtXJnTfdYod5AyIuNLOXs4283OJffLPdYuIF3I 1zNEHQN7MVmul/uLfvoSFo61BkwAXEPGu89N++crUxoO5M6t8YndXTarqRG/E5egE2qN 7ucrMDo267Ahe1FJx2NSuDaou7bHSDDHaOwNln0mhIh1UE/GvGXebwcKbqyKRhVbUqO7 SOTOG1FjiiPNJ/vbPNpPn/sN+9lOZeiDBOgDzof9rtBYz7mGLdH099sg1xC94y2yWRRK RNIg== X-Gm-Message-State: AOAM530fVks+DIo94SRAD9ouhr0dX0QoZUA/NwGTd2TCwDVvnHFOODHS +kelP9XbYyxCPdf0vjgjKZ4= X-Received: by 2002:a17:906:99c3:: with SMTP id s3mr3948309ejn.16.1642799031556; Fri, 21 Jan 2022 13:03:51 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id p23sm2898595edx.86.2022.01.21.13.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 13:03:51 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Philipp Zabel , Taniya Das , Ansuel Smith , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 01/15] dt-bindings: clock: split qcom,gcc.yaml to common and specific schema Date: Fri, 21 Jan 2022 22:03:26 +0100 Message-Id: <20220121210340.32362-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220121210340.32362-1-ansuelsmth@gmail.com> References: <20220121210340.32362-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Split qcom,gcc.yaml to common and specific schema to use it as a template for schema that needs to use the gcc bindings and require to add additional bindings. Signed-off-by: Ansuel Smith --- .../bindings/clock/qcom,gcc-common.yaml | 42 +++++++++++++++++++ .../devicetree/bindings/clock/qcom,gcc.yaml | 25 ++--------- 2 files changed, 46 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-common.yaml diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-common.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-common.yaml new file mode 100644 index 000000000000..ea1dd94d8bf1 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-common.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,gcc-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Global Clock & Reset Controller Binding Common Bindings + +maintainers: + - Stephen Boyd + - Taniya Das + +description: | + Common bindings for Qualcomm global clock control module which supports + the clocks, resets and power domains. + +properties: + '#clock-cells': + const: 1 + + '#reset-cells': + const: 1 + + '#power-domain-cells': + const: 1 + + reg: + maxItems: 1 + + protected-clocks: + description: + Protected clock specifier list as per common clock binding. + +required: + - reg + - '#clock-cells' + - '#reset-cells' + - '#power-domain-cells' + +additionalProperties: true + +... diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml index f66d703bd913..73e3ff4979c6 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml @@ -34,6 +34,9 @@ description: | - dt-bindings/reset/qcom,gcc-mdm9615.h - dt-bindings/clock/qcom,gcc-sdm660.h (qcom,gcc-sdm630 and qcom,gcc-sdm660) +allOf: + - $ref: "qcom,gcc-common.yaml#" + properties: compatible: enum: @@ -55,30 +58,10 @@ properties: - qcom,gcc-sdm630 - qcom,gcc-sdm660 - '#clock-cells': - const: 1 - - '#reset-cells': - const: 1 - - '#power-domain-cells': - const: 1 - - reg: - maxItems: 1 - - protected-clocks: - description: - Protected clock specifier list as per common clock binding. - required: - compatible - - reg - - '#clock-cells' - - '#reset-cells' - - '#power-domain-cells' -additionalProperties: false +unevaluatedProperties: false examples: # Example for GCC for MSM8960: -- 2.33.1