Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp604383imn; Sat, 2 Jul 2022 01:51:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJYwN9Hk2ZlnBQ/yl0JdJsxFSUNHm6RuujxxU2fM81OtayRMcKnPDozwLXvVMa6SfaqilF X-Received: by 2002:a05:6402:27d1:b0:436:dd8:a6d5 with SMTP id c17-20020a05640227d100b004360dd8a6d5mr24499790ede.342.1656751896193; Sat, 02 Jul 2022 01:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656751896; cv=none; d=google.com; s=arc-20160816; b=hyTgds3Z6XAUfKNlY2tyI8zYmZ/H9Z6lIRGj8Vo88K7nEx/datfrqsbtpVjQ0EYlwX QIMtb0nsuQPvvjkY+cGGWqW4gvVZkEj7eRtxzBtAj2RGUQ/pbwwSt6mbRHvDEqRQ74po PvkFaulSIOiakdHY/lDpP9tso6CIndvaxDG8WciNUnAcSjyibRsKYD2iXNnkYgsGqTka SxaBpatbyYIm3qDa44Is2GoFvBciiIf/vSNpVUs/zd6luXZ2ig7bmWS6LE/fZN9NvGJJ PGQuhQoEJywPk/H93GwZYOaXsGVAy1A3aWR/f8IKlL59Zx6Gn1eyyFOPg3QcR7zjwqoN yXfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=aSIAvc7KtzXSphA6BBEHtRuo/0ZuFKvDK1z1leqnzb8=; b=lwRY8URXX/8XTRRzZBFvSpryHLjsGlSraqFP0NcMuxaeZkMfWWgvwtDIxTueXo9shL e6SVXqPywYzElNEnFUtsldNegryy0+zPJEL0F6qe/Innv2NRG7SwrTTyRAckB/JKj3K+ jRpHaJPCG2LUASo4M731Bse0WpgKX5HGMNUjX82+RPlXKk2tKmZ5nd9kroK5FUDxSBgV HWleQ5kWyReLXKSoueipbmM+MvI4MzbJwL21IL1Mny3B8mZe8TG9IrBC9xNWDzeT2SmH 8uxq2FlmaJJ66VRf46LBeLvhIsDXTaZV+au78+hf6GlX19TKMHVXlQfGkmpZKxD+oSsD 8EDQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020aa7d410000000b0043559d9ed5dsi2211075edq.64.2022.07.02.01.51.11; Sat, 02 Jul 2022 01:51:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231594AbiGBIgn (ORCPT + 99 others); Sat, 2 Jul 2022 04:36:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiGBIgm (ORCPT ); Sat, 2 Jul 2022 04:36:42 -0400 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [IPv6:2001:4b7a:2000:18::171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18DE15A16 for ; Sat, 2 Jul 2022 01:36:40 -0700 (PDT) Received: from [192.168.1.101] (abxi46.neoplus.adsl.tpnet.pl [83.9.2.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id C330D3F6DB; Sat, 2 Jul 2022 10:36:36 +0200 (CEST) Message-ID: <3d1c84f6-bd38-902f-3499-d32d0d4ab846@somainline.org> Date: Sat, 2 Jul 2022 10:36:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] dt-bindings: qcom: readme: document preferred compatible naming Content-Language: en-US To: Rob Herring , Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Dmitry Baryshkov , Vinod Koul , Alex Elder , Robert Foss , Bhupesh Sharma References: <20220701074659.12680-1-krzysztof.kozlowski@linaro.org> <20220701204218.GA1478943-robh@kernel.org> From: Konrad Dybcio In-Reply-To: <20220701204218.GA1478943-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,TVD_PH_BODY_ACCOUNTS_PRE,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 1.07.2022 22:42, Rob Herring wrote: > On Fri, Jul 01, 2022 at 09:46:59AM +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 >> readme file documenting preferred policy. > > Is this all I needed to do to stop this from QCom? > > This convention is not QCom specific, though the error mostly is. > Perhaps this should be documented generically. > >> Signed-off-by: Krzysztof Kozlowski >> >> --- >> >> Cc: Srinivas Kandagatla >> Cc: Dmitry Baryshkov >> Cc: Vinod Koul >> Cc: Alex Elder >> Cc: Robert Foss >> Cc: Bhupesh Sharma >> --- >> .../devicetree/bindings/soc/qcom/README.rst | 16 ++++++++++++++++ >> 1 file changed, 16 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/soc/qcom/README.rst >> >> diff --git a/Documentation/devicetree/bindings/soc/qcom/README.rst b/Documentation/devicetree/bindings/soc/qcom/README.rst >> new file mode 100644 >> index 000000000000..322b329ac7c1 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/soc/qcom/README.rst >> @@ -0,0 +1,16 @@ >> +.. SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> + >> +Qualcomm SoC compatibles naming convention >> +========================================== >> +1. When adding new compatibles in new bindings, use the format: >> + :: >> + >> + qcom,SoC-IP >> + >> + For example: >> + :: >> + >> + qcom,sdm845-llcc-bwmon > > Assuming the list of possible SoCs was maintained, you could make this a > schema. Though there might be false positives. Maybe there could be a list of *all* (maaaybe except the really vintage ones that could barely run Linux at all, if even..), qcom SoCs (for example based on the Wikipedia one [1]) that would account for future porting and could be updated with new platforms as they get released? Konrad [1] https://en.wikipedia.org/wiki/List_of_Qualcomm_Snapdragon_processors > >> + >> +2. When adding new compatibles to existing bindings, use the format >> + in the existing binding, even if it contradicts the above. >> -- >> 2.34.1 >> >>