Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1158097pxm; Wed, 23 Feb 2022 19:49:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwe0FTCE71g7JeUDrXa2WR8+tHHa/nyR+G28toSHnjNwLfvm4YkhIBc3nmr1gmEWTU/leSK X-Received: by 2002:a17:906:2bc1:b0:6cf:d009:7f6b with SMTP id n1-20020a1709062bc100b006cfd0097f6bmr652737ejg.17.1645674560322; Wed, 23 Feb 2022 19:49:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645674560; cv=none; d=google.com; s=arc-20160816; b=AV2lS1kEVLIKbyC0RQJixlAOLilrhXC9fx6cSz7/v9VQp2Cm/k+2cGLuO/KXtmN46U yC7TNUqr9kgN/rxbweVxToKu3mikLoBsgUpYLtVo9v40Z717uJo1ePWjQeR5Uo8Te0Gd x2k46GUjJ4+INA/FYbglUETAHmU5mnHvPPFBls5U0DX/mm01fkkcc+3LmWlRlcrteb1g hUttAs9QEuyp4hRvXYAr2drvhZFvFP7zRiq42PlBgatUq9hu0tNbgbAh5bCpUBVm+VeE 4wXLBJnJDWvspgxbkR/SjmOrv/G3YTSeHd5LdN89gieH2ZF5GdPPz1+12YKp41FH0ZbF nHUg== 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=BxZQsI9Ur9IiwZjtiMx8X36wZnIDnwb/WkHly+HDiJ0=; b=CgUoxqm2P7BZhZdIAao5UAn1xs87yIKUIo1kJ3jTw3apWTBxlBveSES1Jy2XzB2dFj UNimZfzXlUIEKApcYLK3md83Pw7g4S5gjNLBBBDswwUrzAwH7RQZGDdQM2zpuunzLU3s ghDMcXKWuPP8rCnE9UT+PiNgtcOB4yYmlrnXpYSXkdQvFIWYBj0hv6I84DcDteFdfloC lIW+aKe4CSIElB3mJQI6tLfBMBk8Wh3xvsaKVxZ3zrjGWYx126i3GVR0/Q7m4XfJEl9C J/VdpPQ33nEH5Wbj8ZTXsk8F7VHOFOt9f504TLJKyhwWFt4ZHGadKvaBlp6qM75IBtIj aSZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rbt5kRB9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18si829593ejn.789.2022.02.23.19.48.54; Wed, 23 Feb 2022 19:49:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rbt5kRB9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229502AbiBXDjX (ORCPT + 99 others); Wed, 23 Feb 2022 22:39:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbiBXDjV (ORCPT ); Wed, 23 Feb 2022 22:39:21 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81E0C247757 for ; Wed, 23 Feb 2022 19:38:52 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id l25so1160903oic.13 for ; Wed, 23 Feb 2022 19:38:52 -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=BxZQsI9Ur9IiwZjtiMx8X36wZnIDnwb/WkHly+HDiJ0=; b=Rbt5kRB9jY34xgGOun2ec/5vxnlaxjSDv/VEnPbfJXnK23qcSZHzdzPKJ6bj7KYNjq agHsYvSPUYBTX4uU3LIsBm9GsUpdviPDbKjuxIylmDkG7c0aE+qwsL5GxJtJpL1Ipmnt ViRt5M5yr9aW02T81YhiJ4yZvevufWJ9TT2XPa0IMROh0GaqO0V3lyp1GmkQSSzgsw+t /nvW3mq1RiF3UdzoKzE8G9VIawHhYJQVBYHpaPUbk3k3YzvYuVvUzOqhrFwUqx48nHyz +BRlzQFPqVJvUMfC0pEgXPS9GCZN2JHXAFBQC01S8pFlxtFICxvUZP/68f1CzYNW7jcx ByCg== 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=BxZQsI9Ur9IiwZjtiMx8X36wZnIDnwb/WkHly+HDiJ0=; b=ymYifPJ2W++hzn1kjbnMIDUuLc6jCr2A2hP99ARItXU/jGHNO5SijnIdTF5uS4NlJ3 EVI0+HUPi8DN1Zyi0DucyevYnDoNliwQd+zT8WS6VAFqjzQ8he4/3779kd+Y7ACpSy63 tw541L70n6k13AiQWDwfQBp/fljcijh0WLUYxyhq4AQe4PH6rmqOVGawGVh0tVXCiWpS pDoA1Jy5Zbl/i4xKgLDlqrz1TsCVDGEI8CQ/vhX2I2PmKyRPxlAtnYVxkeHwzKNMC4iL IXYhTnMuZ9LB1HNmQAgbwzvFikkbStgZ/c3LH14ztgQ3CeDnWEcUxYpQrdGsMhRa0Jks 8wlw== X-Gm-Message-State: AOAM530U68jdP5twT/qkApgJmPkeWOMm2sSmW5QPUM2Quyr0FC1WRH7w HUL8oEXwdYrHCwibl2HiLfJb1w== X-Received: by 2002:aca:aa07:0:b0:2d4:4386:a195 with SMTP id t7-20020acaaa07000000b002d44386a195mr6126653oie.107.1645673931738; Wed, 23 Feb 2022 19:38:51 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id q16sm779705oiv.16.2022.02.23.19.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 19:38:51 -0800 (PST) Date: Wed, 23 Feb 2022 21:38:49 -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 v4 01/16] dt-bindings: clock: split qcom,gcc.yaml to common and specific schema Message-ID: References: <20220217235703.26641-1-ansuelsmth@gmail.com> <20220217235703.26641-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220217235703.26641-2-ansuelsmth@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 17 Feb 17:56 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. > > Signed-off-by: Ansuel Smith > --- > .../bindings/clock/qcom,gcc-other.yaml | 76 +++++++++++++++++++ > .../devicetree/bindings/clock/qcom,gcc.yaml | 63 ++------------- > 2 files changed, 82 insertions(+), 57 deletions(-) > create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml > > diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml > new file mode 100644 > index 000000000000..824d80530683 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml This work for me. > @@ -0,0 +1,76 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/qcom,gcc.yaml# But shouldn't this be qcom,gcc-other.yaml then? > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Global Clock & Reset Controller Binding > + > +maintainers: > + - Stephen Boyd > + - Taniya Das > + > +description: > + Qualcomm global clock control module which supports the clocks, resets and > + power domains. > + > + See also: > + - dt-bindings/clock/qcom,gcc-apq8084.h > + - dt-bindings/reset/qcom,gcc-apq8084.h > + - dt-bindings/clock/qcom,gcc-ipq4019.h > + - dt-bindings/clock/qcom,gcc-ipq6018.h > + - dt-bindings/reset/qcom,gcc-ipq6018.h > + - dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) > + - dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) > + - dt-bindings/clock/qcom,gcc-msm8939.h > + - dt-bindings/clock/qcom,gcc-msm8953.h > + - dt-bindings/reset/qcom,gcc-msm8939.h > + - dt-bindings/clock/qcom,gcc-msm8660.h > + - dt-bindings/reset/qcom,gcc-msm8660.h > + - dt-bindings/clock/qcom,gcc-msm8974.h (qcom,gcc-msm8226 and qcom,gcc-msm8974) > + - dt-bindings/reset/qcom,gcc-msm8974.h (qcom,gcc-msm8226 and qcom,gcc-msm8974) > + - dt-bindings/clock/qcom,gcc-mdm9607.h > + - dt-bindings/clock/qcom,gcc-mdm9615.h > + - 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.yaml#" > + > +properties: > + compatible: > + enum: > + - qcom,gcc-apq8084 > + - qcom,gcc-ipq4019 > + - qcom,gcc-ipq6018 > + - qcom,gcc-ipq8064 > + - qcom,gcc-mdm9607 > + - qcom,gcc-msm8226 > + - qcom,gcc-msm8660 > + - qcom,gcc-msm8916 > + - qcom,gcc-msm8939 > + - qcom,gcc-msm8953 > + - qcom,gcc-msm8960 > + - qcom,gcc-msm8974 > + - qcom,gcc-msm8974pro > + - qcom,gcc-msm8974pro-ac > + - qcom,gcc-mdm9615 > + - qcom,gcc-sdm630 > + - qcom,gcc-sdm660 > + > +required: > + - compatible > + > +unevaluatedProperties: false > + > +examples: > + # Example for GCC for MSM8960: > + - | > + clock-controller@900000 { > + compatible = "qcom,gcc-msm8960"; > + reg = <0x900000 0x4000>; > + #clock-cells = <1>; > + #reset-cells = <1>; > + #power-domain-cells = <1>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml > index f66d703bd913..ea1dd94d8bf1 100644 > --- a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml > +++ b/Documentation/devicetree/bindings/clock/qcom,gcc.yaml > @@ -1,60 +1,20 @@ > -# SPDX-License-Identifier: GPL-2.0-only > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause We would need to double check with existing copyright holders. My suggestion is that we change that separately. > %YAML 1.2 > --- > -$id: http://devicetree.org/schemas/clock/qcom,gcc.yaml# > +$id: http://devicetree.org/schemas/clock/qcom,gcc-common.yaml# You forgot to change this back to just gcc.yaml. With those two things this looks good to me. Regards, Bjron > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: Qualcomm Global Clock & Reset Controller Binding > +title: Qualcomm Global Clock & Reset Controller Binding Common Bindings > > maintainers: > - Stephen Boyd > - Taniya Das > > description: | > - Qualcomm global clock control module which supports the clocks, resets and > - power domains. > - > - See also: > - - dt-bindings/clock/qcom,gcc-apq8084.h > - - dt-bindings/reset/qcom,gcc-apq8084.h > - - dt-bindings/clock/qcom,gcc-ipq4019.h > - - dt-bindings/clock/qcom,gcc-ipq6018.h > - - dt-bindings/reset/qcom,gcc-ipq6018.h > - - dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) > - - dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064) > - - dt-bindings/clock/qcom,gcc-msm8939.h > - - dt-bindings/clock/qcom,gcc-msm8953.h > - - dt-bindings/reset/qcom,gcc-msm8939.h > - - dt-bindings/clock/qcom,gcc-msm8660.h > - - dt-bindings/reset/qcom,gcc-msm8660.h > - - dt-bindings/clock/qcom,gcc-msm8974.h (qcom,gcc-msm8226 and qcom,gcc-msm8974) > - - dt-bindings/reset/qcom,gcc-msm8974.h (qcom,gcc-msm8226 and qcom,gcc-msm8974) > - - dt-bindings/clock/qcom,gcc-mdm9607.h > - - dt-bindings/clock/qcom,gcc-mdm9615.h > - - dt-bindings/reset/qcom,gcc-mdm9615.h > - - dt-bindings/clock/qcom,gcc-sdm660.h (qcom,gcc-sdm630 and qcom,gcc-sdm660) > + Common bindings for Qualcomm global clock control module which supports > + the clocks, resets and power domains. > > properties: > - compatible: > - enum: > - - qcom,gcc-apq8084 > - - qcom,gcc-ipq4019 > - - qcom,gcc-ipq6018 > - - qcom,gcc-ipq8064 > - - qcom,gcc-mdm9607 > - - qcom,gcc-msm8226 > - - qcom,gcc-msm8660 > - - qcom,gcc-msm8916 > - - qcom,gcc-msm8939 > - - qcom,gcc-msm8953 > - - qcom,gcc-msm8960 > - - qcom,gcc-msm8974 > - - qcom,gcc-msm8974pro > - - qcom,gcc-msm8974pro-ac > - - qcom,gcc-mdm9615 > - - qcom,gcc-sdm630 > - - qcom,gcc-sdm660 > - > '#clock-cells': > const: 1 > > @@ -72,22 +32,11 @@ properties: > Protected clock specifier list as per common clock binding. > > required: > - - compatible > - reg > - '#clock-cells' > - '#reset-cells' > - '#power-domain-cells' > > -additionalProperties: false > +additionalProperties: true > > -examples: > - # Example for GCC for MSM8960: > - - | > - clock-controller@900000 { > - compatible = "qcom,gcc-msm8960"; > - reg = <0x900000 0x4000>; > - #clock-cells = <1>; > - #reset-cells = <1>; > - #power-domain-cells = <1>; > - }; > ... > -- > 2.34.1 >