Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5187938rwi; Mon, 17 Oct 2022 17:09:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5YPMov2EeOLDtp2elOxtmTUG7L734EjVyNw/FydnKc4sz5asolSu6rnETxSkGELTBJfrLP X-Received: by 2002:a05:6402:5510:b0:459:5ea:9bc0 with SMTP id fi16-20020a056402551000b0045905ea9bc0mr222416edb.152.1666051766735; Mon, 17 Oct 2022 17:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666051766; cv=none; d=google.com; s=arc-20160816; b=Om6/SErNyi+3ejSojLu5a+TjjYyEPMyDiAHpCOO0/0f0MYbSZrwz1FTNhciK2Sjkut nJ1GCJF611nHXH2M0vlxKCCqXmG1vIw5RSJ5BIjqfc8YxvUaXqVfibIS4ZcESVuQbs7e WKk0Dp1jLczD2I0puaecpTqyDbGBdS0aGyc2T87XjBYOGdsCUQya2X4lsSi1v5eCyJMB sEuYRNuNqBk7I8i6oKoqEHdk1ToFlZ4AkSgZOn7aKOyhwXItos+BquDMLM5wI3yacA95 Z354WJr2yJeg+4SHc7as32b/a2oZSGZdxim3vNfC1GGEwWt+d9/0+UrSDU8DVVtlKmaf FaMg== 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=JN9YEy+or/bFTmJzzgaLx03tyiq0P3aB/YdqxUHzdfk=; b=W5O6hzY2ucEjmvp7XBdvkLSQCTpx37VdP5UHXjtfb3GUwIJjxBWzcAJ63LC3Qx0e9W Bsvdu0G9bkhb1NkwiQVh1GdBesddSjfv1fP8HoapqseUN8YrY7CCPMEXO5L3UtROcSYH EfK/B563wYin1PC+IaT5wUKv5d6bA7gZo7k5yVdCScRR7S4v66pP3Kc+g6Vzz8vyamPc 4bhskGo76A1E0vHtTrvqz609vQSykC0PQVC1S1jJVUXkqG5fb5I0DmempKBJhIqwAhnZ v7MQY7UMfkh2eTKO4hQHqoinEKbu54h+Ch8yRxGAdOYG8OIWm3XZo8cPhz0Ff+tjS66w jFjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b+s92lE/"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs17-20020a1709072d1100b007807e1f3d9dsi13833669ejc.842.2022.10.17.17.09.01; Mon, 17 Oct 2022 17:09:26 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b="b+s92lE/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230316AbiJQWk4 (ORCPT + 99 others); Mon, 17 Oct 2022 18:40:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbiJQWkw (ORCPT ); Mon, 17 Oct 2022 18:40:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B48BC7B29F; Mon, 17 Oct 2022 15:40:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 78697B81B43; Mon, 17 Oct 2022 22:40:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26ECBC433C1; Mon, 17 Oct 2022 22:40:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666046449; bh=/3nMyjfwYNbh6D7yFQ8tG56v/iKyuORuuufbK2reUGU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b+s92lE/wj1Cc66gkJmt2hnZFn8KBqhq2faVp7hHgiec5lNHLCkPI5mRPLLP9MMeZ +d+CY9X+Jhob1g7etZ9J7vyQmru/A9jVx2MOiEh1TBWUONR63I0eb9zQyOLjonF1qK y5ehqg41I99RARHtttQxWnLt9m/DjZN9L2Mai6Z4J7MZLiBnzjC7T9dzvGhtgBDGFm TnfNM/eI/sQfuJwhVgd+e/zV8xjdRp+f6b+Wva/8/kodw8n7knfjhLBQvKaNiyJ7uK 9401JCy8POV/B2cPDEQy0u3xBuRuaD+mHIM5gbfHEJTP0XiccMSou3JpI9xh7+fSib xUBQOsGeM3Iqg== Date: Mon, 17 Oct 2022 17:40:46 -0500 From: Bjorn Andersson To: Krzysztof Kozlowski Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Dmitry Baryshkov , Bhupesh Sharma , Srinivas Kandagatla , Vinod Koul , Alex Elder , Robert Foss Subject: Re: [PATCH v6] dt-bindings: qcom: document preferred compatible naming Message-ID: <20221017224046.yxgpkhlqv4cykwc3@builder.lan> References: <20220928152501.490840-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220928152501.490840-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Wed, Sep 28, 2022 at 05:25:01PM +0200, Krzysztof Kozlowski wrote: > Compatibles can come in two formats. Either "vendor,ip-soc" or > "vendor,soc-ip". Qualcomm bindings were mixing both of usages, so add a > DT schema file documenting preferred policy and enforcing it for all new > compatibles, except few existing patterns. > > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Rob Herring > Reviewed-by: Dmitry Baryshkov > Reviewed-by: Bhupesh Sharma Reviewed-by: Bjorn Andersson Regards, Bjorn > > --- > > Changes since v5: > 1. Correct Bjorn's email. > 2. Add tags. > > Changes since v4: > 1. Add qcm. > 2. Add more qcom,ipq806x exceptions. > 3. Add Rob's tag. > > Changes since v3: > 1. Add qcom,kpss-wdt-xxx to pattern for exceptions. > 2. Add ipq806x entries to list of exceptions. > > Changes since v2: > 1. Narrow the expected pattern to be followed by dash '-' after model > number (msm8996-) or by two letters and a dash (sc8280xp-). > 2. Add qcom,apss-wdt-xxx to list of exceptions. > 3. Use comment instead of description in the oneOf list. > > Changes since v1: > 1. Add schema instead of readme (Rob). > > Cc: Srinivas Kandagatla > Cc: Dmitry Baryshkov > Cc: Vinod Koul > Cc: Alex Elder > Cc: Robert Foss > Cc: Bhupesh Sharma > --- > .../devicetree/bindings/arm/qcom-soc.yaml | 65 +++++++++++++++++++ > 1 file changed, 65 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/qcom-soc.yaml > > diff --git a/Documentation/devicetree/bindings/arm/qcom-soc.yaml b/Documentation/devicetree/bindings/arm/qcom-soc.yaml > new file mode 100644 > index 000000000000..889fbfacf226 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/qcom-soc.yaml > @@ -0,0 +1,65 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/qcom-soc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm SoC compatibles naming convention > + > +maintainers: > + - Bjorn Andersson > + > +description: | > + Guidelines for new compatibles for SoC blocks/components. > + When adding new compatibles in new bindings, use the format:: > + qcom,SoC-IP > + > + For example:: > + qcom,sdm845-llcc-bwmon > + > + When adding new compatibles to existing bindings, use the format in the > + existing binding, even if it contradicts the above. > + > +select: > + properties: > + compatible: > + pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" > + required: > + - compatible > + > +properties: > + compatible: > + oneOf: > + # Preferred naming style for compatibles of SoC components: > + - pattern: "^qcom,(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+-.*$" > + - pattern: "^qcom,(sa|sc)8[0-9]+[a-z][a-z]?-.*$" > + > + # Legacy namings - variations of existing patterns/compatibles are OK, > + # but do not add completely new entries to these: > + - pattern: "^qcom,[ak]pss-wdt-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" > + - pattern: "^qcom,gcc-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" > + - pattern: "^qcom,mmcc-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" > + - pattern: "^qcom,pcie-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" > + - pattern: "^qcom,rpm-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" > + - pattern: "^qcom,scm-(apq|ipq|mdm|msm|qcm|qcs|sa|sc|sdm|sdx|sm)[0-9]+.*$" > + - enum: > + - qcom,gpucc-sdm630 > + - qcom,gpucc-sdm660 > + - qcom,lcc-apq8064 > + - qcom,lcc-ipq8064 > + - qcom,lcc-mdm9615 > + - qcom,lcc-msm8960 > + - qcom,lpass-cpu-apq8016 > + - qcom,usb-ss-ipq4019-phy > + - qcom,usb-hs-ipq4019-phy > + - qcom,vqmmc-ipq4019-regulator > + > + # Legacy compatibles with wild-cards - list cannot grow with new bindings: > + - enum: > + - qcom,ipq806x-gmac > + - qcom,ipq806x-nand > + - qcom,ipq806x-sata-phy > + - qcom,ipq806x-usb-phy-ss > + - qcom,ipq806x-usb-phy-hs > + > +additionalProperties: true > -- > 2.34.1 >