Message ID | 20221213115628.105149-1-konrad.dybcio@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp75131wrn; Tue, 13 Dec 2022 04:04:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4L/fw7sStmchAbZPTTwqfCJpheQiT3ZR7rsRzWeLqPiGEWbhm7qIeAUznVI8zb/HKfK4bH X-Received: by 2002:a17:906:1594:b0:7b2:757a:1411 with SMTP id k20-20020a170906159400b007b2757a1411mr16833911ejd.9.1670933079347; Tue, 13 Dec 2022 04:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670933079; cv=none; d=google.com; s=arc-20160816; b=i6cWIGEEze/J/I6Cu1maLMm7Qs+Tq6knavpwutWRk4frwyPYcszNqMSP+KtTDMw1oz kMGcV1NH1TETTnB5Co+lhk5k7yZVJd4X/TY9jpwfrmLU3blBPTmraKWPoyLL+Prj/OGX dCxiiMWVENhKYvU+aCZtfkAPLl4DlmyF3awypXaHgFQdIHIlH6R+MTt8BV9znS73tMO0 pFnyXKxqJKyez/KjlmvYOhE8E5hP7qIWccyj3iysePpxPwfwyMArt3tK5SCcWgBPWAEN e7+zADqh8PE7oX/Fqyin32M2yI2Gd4Af16nAck1lMYqu2orA0Vz9/FRwymvYSypH266X hkPA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7WSa5YG1jZqcHIsQqtvI5oWLoQrCTutP6LxjZjnHFZc=; b=qZZhZ4YuwSCEO4LhD7/uLpyG1SW8uHQiYKR4AdWxp71RoNN2MKCcO2x3Omxcv1Tmeo QEdhAB9DTPwofsyLY+f6i8rmkhde9CgdAygE+ROMo7fWWi3YUal6CmTEPJ1ZPD4RtU7O UbkKdKt1IRQ+RQmhhSnNPdT87ynq2N2BYE8CwoPy3zNY45hU0aaifLwBC5OfEssTAuDi 4N5SxRS6FTRXJw3/5AYpkvx21HTSsihUz9xoWIERU51iJ/JturnQMbI8d59tompVVeip fBYBQGGUtazblVoWUaEyxpmY9jZyFCsAAD8gf6RD/tzYupZUjriSz4yawS/8lE/ZLl1Y Y1nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iCOyGQ2k; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa42-20020a1709076d2a00b0078d112eaf80si9211536ejc.86.2022.12.13.04.04.12; Tue, 13 Dec 2022 04:04:39 -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=iCOyGQ2k; 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 S235500AbiLML5Z (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Tue, 13 Dec 2022 06:57:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235476AbiLML4f (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Dec 2022 06:56:35 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5289210CB for <linux-kernel@vger.kernel.org>; Tue, 13 Dec 2022 03:56:33 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id g14so3018647ljh.10 for <linux-kernel@vger.kernel.org>; Tue, 13 Dec 2022 03:56:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7WSa5YG1jZqcHIsQqtvI5oWLoQrCTutP6LxjZjnHFZc=; b=iCOyGQ2kbacZcy43TpWKZ+7380PIwooK2kzfhDsH2/44Lvy3wn8YS9XwtmvVotm/l6 NrGV4DwlUZmD2+NGYFTRGwnwrxt21PY2l8nFHTJTxm9dGxptcKdWYWKYXY7OYB2LdMiP frYWQjFzldLXR80Klearv7+W1glUcOArqG7ZdZtBqoKvrucimDxG05RLiC6ZaPdsv4ug zZ7DT23OxkVX0kQ72YFbwU1uyOnKMDaR/++yv239/+2uJbFrVjFqUMvjdF9UxcpvRo9k F0EHXRNQa6NEOOOeuZnHcHfJdolcL2ScZjZN+6rnkfz613nyE1OkoTZkS37HVu6vvacs JEdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7WSa5YG1jZqcHIsQqtvI5oWLoQrCTutP6LxjZjnHFZc=; b=IAePSMU+IVShNvY9lz62n8BBK1Y+cpsL2ae3juSFhtgQ6dgZ8VFmkAmfIz/LriTVjN LacEhDLxGxmr9RJISJ5khklcOXlrJcVQ8EtNe2arkCmgEM1rgEQ/JZuPltatpWJEYbN0 NjVuPvBsN6X5ghwxIZAfb8di57QtHC5MHQZ5U+UXv3vASXKCM2G/eAsbHM1ciSNAPfVI sSrmvROryMUg7EYEietqjYERlbIzaHR5NkE518ejxcqKminQVQa/Z1w7CLCcqusw1lXx Oi/OsXZSfQCA33bUQ7tFhmRoeFZv+DGLhym0HcrBSlVMVXu5BkOSz1S23F6N+Xgd6mXE /uAQ== X-Gm-Message-State: ANoB5plaH4G52cb3/aQmH9CTM+mpbRpLnhJbcQUhOmyDFYEseOiqWue9 pjBTrr18t0fkOqPOpqEgQ8QIkw== X-Received: by 2002:a2e:b4ab:0:b0:27a:25f:b274 with SMTP id q11-20020a2eb4ab000000b0027a025fb274mr4392242ljm.42.1670932591705; Tue, 13 Dec 2022 03:56:31 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id 8-20020a2eb948000000b0026daf4fc0f7sm234573ljs.92.2022.12.13.03.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 03:56:31 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Loic Poulain <loic.poulain@linaro.org>, Robert Foss <robert.foss@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: i2c: qcom,i2c-cci: Fall back to common compatibles Date: Tue, 13 Dec 2022 12:56:25 +0100 Message-Id: <20221213115628.105149-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752100324652299170?= X-GMAIL-MSGID: =?utf-8?q?1752100324652299170?= |
Series |
[1/4] dt-bindings: i2c: qcom,i2c-cci: Fall back to common compatibles
|
|
Commit Message
Konrad Dybcio
Dec. 13, 2022, 11:56 a.m. UTC
Almost every compatible string in the CCI driver is a duplicate. Adjust
the bindings to include a common (first-soc-implementing-vX) compatible
to remove the need to keep adding superfluous compatible strings.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
.../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 25 +++++++++++++------
1 file changed, 17 insertions(+), 8 deletions(-)
Comments
On Tue, 13 Dec 2022 12:56:25 +0100, Konrad Dybcio wrote: > Almost every compatible string in the CCI driver is a duplicate. Adjust > the bindings to include a common (first-soc-implementing-vX) compatible > to remove the need to keep adding superfluous compatible strings. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 25 +++++++++++++------ > 1 file changed, 17 insertions(+), 8 deletions(-) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.example.dtb: cci@ac4a000: compatible: 'oneOf' conditional failed, one must be fixed: ['qcom,sdm845-cci'] is too short 'qcom,sdm845-cci' is not one of ['qcom,msm8226-cci', 'qcom,msm8974-cci', 'qcom,msm8996-cci'] 'qcom,sdm845-cci' is not one of ['qcom,msm8916-cci'] From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221213115628.105149-1-konrad.dybcio@linaro.org The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
On 13/12/2022 12:56, Konrad Dybcio wrote: > Almost every compatible string in the CCI driver is a duplicate. Adjust > the bindings to include a common (first-soc-implementing-vX) compatible > to remove the need to keep adding superfluous compatible strings. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 25 +++++++++++++------ > 1 file changed, 17 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml > index cf9f8fda595f..65cf7860a9a0 100644 > --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml > +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml > @@ -12,14 +12,23 @@ maintainers: > > properties: > compatible: > - enum: > - - qcom,msm8226-cci > - - qcom,msm8916-cci > - - qcom,msm8974-cci > - - qcom,msm8996-cci > - - qcom,sdm845-cci > - - qcom,sm8250-cci > - - qcom,sm8450-cci > + oneOf: Except missing test, how about also adding a comment to the driver, that list of compatibles should not grow when not needed? Best regards, Krzysztof
On 13.12.2022 17:58, Krzysztof Kozlowski wrote: > On 13/12/2022 12:56, Konrad Dybcio wrote: >> Almost every compatible string in the CCI driver is a duplicate. Adjust >> the bindings to include a common (first-soc-implementing-vX) compatible >> to remove the need to keep adding superfluous compatible strings. >> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> --- >> .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 25 +++++++++++++------ >> 1 file changed, 17 insertions(+), 8 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >> index cf9f8fda595f..65cf7860a9a0 100644 >> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >> @@ -12,14 +12,23 @@ maintainers: >> >> properties: >> compatible: >> - enum: >> - - qcom,msm8226-cci >> - - qcom,msm8916-cci >> - - qcom,msm8974-cci >> - - qcom,msm8996-cci >> - - qcom,sdm845-cci >> - - qcom,sm8250-cci >> - - qcom,sm8450-cci >> + oneOf: > > Except missing test, Hm? I tested this locally with dt_binding_check and it passed.. how about also adding a comment to the driver, that > list of compatibles should not grow when not needed? Sure. Konrad > > Best regards, > Krzysztof >
On 13.12.2022 18:01, Konrad Dybcio wrote: > > > On 13.12.2022 17:58, Krzysztof Kozlowski wrote: >> On 13/12/2022 12:56, Konrad Dybcio wrote: >>> Almost every compatible string in the CCI driver is a duplicate. Adjust >>> the bindings to include a common (first-soc-implementing-vX) compatible >>> to remove the need to keep adding superfluous compatible strings. >>> >>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >>> --- >>> .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 25 +++++++++++++------ >>> 1 file changed, 17 insertions(+), 8 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> index cf9f8fda595f..65cf7860a9a0 100644 >>> --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml >>> @@ -12,14 +12,23 @@ maintainers: >>> >>> properties: >>> compatible: >>> - enum: >>> - - qcom,msm8226-cci >>> - - qcom,msm8916-cci >>> - - qcom,msm8974-cci >>> - - qcom,msm8996-cci >>> - - qcom,sdm845-cci >>> - - qcom,sm8250-cci >>> - - qcom,sm8450-cci >>> + oneOf: >> >> Except missing test, > Hm? I tested this locally with dt_binding_check and it passed.. Eh, looks like I didn't hit save before running it or something, I see it now, sorry bout that.. Konrad > > how about also adding a comment to the driver, that >> list of compatibles should not grow when not needed? > Sure. > > Konrad >> >> Best regards, >> Krzysztof >>
diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml index cf9f8fda595f..65cf7860a9a0 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml @@ -12,14 +12,23 @@ maintainers: properties: compatible: - enum: - - qcom,msm8226-cci - - qcom,msm8916-cci - - qcom,msm8974-cci - - qcom,msm8996-cci - - qcom,sdm845-cci - - qcom,sm8250-cci - - qcom,sm8450-cci + oneOf: + - enum: + - qcom,msm8226-cci + - qcom,msm8974-cci + - qcom,msm8996-cci + + - items: + - enum: + - qcom,msm8916-cci + - const: qcom,msm8226-cci # CCI v1 + + - items: + - enum: + - qcom,sdm845-cci + - qcom,sm8250-cci + - qcom,sm8450-cci + - const: qcom,msm8996-cci # CCI v2 "#address-cells": const: 1