Received: by 2002:a19:ef0c:0:0:0:0:0 with SMTP id n12csp950957lfh; Tue, 1 Feb 2022 12:53:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJynv2+7eHuXM+lfCfVellJOTn9KnfB0O1S7+Ex4bteerd4G9nOeWcuvY+J9JhLQs33hWUC+ X-Received: by 2002:a17:903:110c:: with SMTP id n12mr27452949plh.127.1643748791370; Tue, 01 Feb 2022 12:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748791; cv=none; d=google.com; s=arc-20160816; b=SikdIsIlPyZvFN+MNneXxgiN7cJt8+v0DR2k0nhi29vcwO1eyGbVt1UjomURqOB8qv QdfMGqjqWu0/hcbXG+YkEmg5ZI0hhg+SKPIVsmKNA40FO7iZVpERRKNaPMmed2hfVmnA k9bv2x+NyW2YKZYW+1/ZNCqX39ZMkljXJOHi0HGI5FpLNSDpkXktxx78IIGNU1bNP73C ZgbDrTtQ4ctYYNTV7v2hqlhEWqNJXhQfe8j+R6NWEW+TsRCRfWu3eK/vWYG2nHoPtAGI gLRiERenfITDRAzjHeyZVnorKZkEFddeehtKCNHQWrWq+j0Bvcb5o5vB/gcZILqa+2M8 2FdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BEp1YW6cXZjOzQZ2AT1X2T5G6w7sQ/rQe7vI6oRyACg=; b=f9FTQEI0NKYweHz+tXepcowi8v81TUAMZiQdiBG3srwW2gSHipykkQtkTJxiYuEox6 if4D/BSZ0iFirmsAZlx09bSjTLxQNZj5BVBTrmXHK1eR1iOIHCYnxP1MMXK4CY2j/V7Q 5FLHdyXhV6bCCZDAJI628GDmudNTBkD+0d6Xb3aEOIxKVXvy+8l1xTFTmjBCyi4yF3TA k2mq1OvPys3WUlBe+us7ufFpyMvPmtsfQ36VIiuRMUpE71Hc8u89zs6a2ygXyUvCHOpE HHIkpD8uHdAsVpUT0+oTlkui4CG9YJFpGUFHCAqPBVuY2vGDt8TM7wHPL7ErItvOk1pL KU3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aufXy6V/"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kk6si3619061pjb.167.2022.02.01.12.53.00; Tue, 01 Feb 2022 12:53:11 -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=@linaro.org header.s=google header.b="aufXy6V/"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237144AbiAaXLt (ORCPT + 99 others); Mon, 31 Jan 2022 18:11:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237245AbiAaXLs (ORCPT ); Mon, 31 Jan 2022 18:11:48 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19296C06173E for ; Mon, 31 Jan 2022 15:11:48 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id m10so4814962oie.2 for ; Mon, 31 Jan 2022 15:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BEp1YW6cXZjOzQZ2AT1X2T5G6w7sQ/rQe7vI6oRyACg=; b=aufXy6V/hF3UwWmb051IYrOsjd77oVt4OlkZKiwzaXUqeQaM+/5wnV5hmFJV1oicEA ZiXzYgKFARloxCYbXsPdhddJ6cXwdTwWQq4THKHH/5xmq8eQ8BNJU7FQGTmLNRJ1BaDw 3yX+xsDGTTJf4P4+HAstY5Sr7d8O5XIp/wc1DwGg3RhkuqrAzEoz11V8I2IIe68oCp/0 fLq9q6CRADErInCsOORTG3CQIh6UEYJBkdspR9iiRwp5fr7hiP9r1DLfQrmm6nNhf5Lp e05hCWWHxwRwsZdrOi+M16KHWq2JMbzbMkfBuS4uUG1pHlo9kHMUOIuZkpMEBj+cDzap ubsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BEp1YW6cXZjOzQZ2AT1X2T5G6w7sQ/rQe7vI6oRyACg=; b=quoruICS0k8N3MCZp4sPryeqon85KOJ4YAxgHRJ8NZX8D43k1Y+LAaoshxI8C/4/pp HfVrbgpOfQToofIsbPHyDDCzqJVACT+LnZB1iM13I0i0O65mWBFfiKHU7kKN7gDOBtRY 70qIOg+p/9nPTY/S8Og5XlKBQZ4FJMz0DMV5xFKOq2nNe49Lzj/ALrrxSRfA9FtebXsO ZZUFibUcCv16qjaLjyJtaYDqI6b50LtuyQQii58Kp5UfRQrVZFJX56/sGyAFhsfysp2l l11sZcXj9Ovqbm6cXr4UMl8OqmqmVNewncA6PJx9IjOyfUUdGPaMwiiFsrqTHq2p8c9z jexA== X-Gm-Message-State: AOAM533srcVHrKWYuDwX1Oboaelo2Fu4AQLbXqN9FoWL1QBx/WwpEhok 8La6SJ0ztw4/E70K4WGc/8J1iodOuAt6iA== X-Received: by 2002:a05:6808:5d2:: with SMTP id d18mr14389237oij.93.1643670707385; Mon, 31 Jan 2022 15:11:47 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id o12sm15181247ooi.18.2022.01.31.15.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 15:11:46 -0800 (PST) Date: Mon, 31 Jan 2022 17:11:44 -0600 From: Bjorn Andersson To: Ansuel Smith Cc: Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Philipp Zabel , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 01/15] dt-bindings: clock: split qcom,gcc.yaml to common and specific schema Message-ID: References: <20220121210340.32362-1-ansuelsmth@gmail.com> <20220121210340.32362-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220121210340.32362-2-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 21 Jan 15:03 CST 2022, Ansuel Smith wrote: > 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. > Nice! > 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 It seems reasonable to expect that qcom,gcc.yaml should be split out in a number of trivial qcom,gcc-platform.yaml files to define input clock etc. So how about using qcom,gcc.yaml for the common properties and for now rename the existing file to something like qcom,gcc-others.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: | No need to preserve the formatting here, so the pipe can go. Regards, Bjorn > + 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 >