From patchwork Tue Dec 13 11:56:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32783 Return-Path: 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 + 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 ); 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 ; Tue, 13 Dec 2022 03:56:33 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id g14so3018647ljh.10 for ; 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 To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , 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 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: 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?= 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 --- .../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: + - 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