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: 633714 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EB0FC4332F for ; Tue, 13 Dec 2022 11:57:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235430AbiLML5Q (ORCPT ); Tue, 13 Dec 2022 06:57:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235491AbiLML4f (ORCPT ); Tue, 13 Dec 2022 06:56:35 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5441821A9 for ; Tue, 13 Dec 2022 03:56:33 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id a19so3093823ljk.0 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=vFrDLyUQgtpUO4HNeRXgnbb5z/4dI4xe+oNzF9dAFtiM9rOyOBKMBfmWJMZ+LjAE5w WDDhXvKfvexXWbXjbTKLOndAZOGcPHlWZb7SqT8C9f5ponXsc0nLJ2Hg1sw2G2CcdVPh Aj5HXp/AHVpyNtJVkFtTG0wPqeEUIv6lb0+L00LNZrCKx0YCt7bT67PcB1wmcJ9v1EaJ XEuGDXmAE3jE1BlRB0SZup5gVRJOUonqNEIyxL/X70209UfPd6ehiWG4WEoeChUbQXcY ijUrDIENqy1h42Or6DWA0tYTHb6t6IN/r9ErRaoSsWcWNzhqQN+msutWU0k+aYM2Cowa mu4w== X-Gm-Message-State: ANoB5pmbRCLzz5A0f/z1QDTWgxmXkK7xtCoyX8YVLUGzxTPpm/DXhgnY +BBD5jb6qP0Ej6yBfjOJsXQw8g== X-Google-Smtp-Source: AA0mqf6ChXZfr6yeU+E61wLJwlKqL2Pk9XG9Z7kOZivDCk4SZpS8RfDvaC6Gc5ABVG2j5hA0TKBlTA== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 From patchwork Tue Dec 13 11:56:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 633713 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BD81C4167B for ; Tue, 13 Dec 2022 11:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235453AbiLML5S (ORCPT ); Tue, 13 Dec 2022 06:57:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235520AbiLML4w (ORCPT ); Tue, 13 Dec 2022 06:56:52 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA7EC1EC65 for ; Tue, 13 Dec 2022 03:56:37 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id bp15so4457757lfb.13 for ; Tue, 13 Dec 2022 03:56:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=81cVYB4WBwyYTibh03Nt60wZieVhPQ4WqxkREiyJ0l4=; b=L6MfK/DT800uQ4C1wKH33reBgBDMlE1HZD232OP7tDjjxyofJ8A1IIzMb/EEl7ZcEn zRyiaui1F6D2u0L34qTlhgMUALFVF0aZgC8joPXJ8vnKZEmD5Pyfu4YjXSkg1MV8zGYC bSjQE56KLlPJSwGf2BmE5k8ciuoDx9sfiqQFCMAGMVLq31X/fQm4R1/IIvtGY9U+gyth 0IP20h5UY9PwOVj/kQKxDONtYJywA4XucyilypM/7tnpDLk+ptke0hLgCVBTf8oOo0Ve qRvnni0gGZa4aTgqLHdv7w2Eod+92Uixi/j8sD8yQy6+Ia8a1T1BBeppSlrsGJ9hAA3o HxKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=81cVYB4WBwyYTibh03Nt60wZieVhPQ4WqxkREiyJ0l4=; b=qVoXBrCH5/SVz+GxvVGCLTJAchCTpRj1b385xGYtd9tdT6NBoejuxEL6HDD9MEIFlt KUDIRfR2Usp7z8F6kBR+dh5I7x4ywiLvwYZz0jHFdDrmdi78IQVA01v4zTxTteksgdmb jzL3236LFgxj0FV0BHq+lsynMopr1lNpasVKMy/KyFiAV2PZtxMO84tREUJdiJwgRP/t YZoCWUVlCGZ3pzwXnZlZ0eQ4/phIUMBJ0/ySv75YOpn4tNMEkWhqkTKKAgu3oVGD1C2e KGOsVz1GlUnYwjN4fyC7SOsxG/8qHVegMFDkF3W5pGxhhdQ4LJfJylIx8gfloui91x/X Ai8Q== X-Gm-Message-State: ANoB5plYAa8zlI1jMw45TtLkdT+oscu6/MP+tv8HBUHT3F0yF9kyjsPd 6S6uNuXdlmRg0tZbYb67NzUQaQ== X-Google-Smtp-Source: AA0mqf6OAUdWKElxTu2E2vcEHGn6PHuw+ai1qzAKHvmmzM4ECQRepR0TXTC0YvLh1TcAUVNVBb3UjQ== X-Received: by 2002:a05:6512:798:b0:4b4:f913:18b6 with SMTP id x24-20020a056512079800b004b4f91318b6mr6031932lfr.21.1670932596260; Tue, 13 Dec 2022 03:56:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 03:56:35 -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 4/4] arm64: dts: qcom: sm8250: Add fallback CCI compatible Date: Tue, 13 Dec 2022 12:56:28 +0100 Message-Id: <20221213115628.105149-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213115628.105149-1-konrad.dybcio@linaro.org> References: <20221213115628.105149-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a fallback CCI compatible, as required by bindings. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 0c4ecdab1244..6d16857fed26 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3723,7 +3723,7 @@ videocc: clock-controller@abf0000 { }; cci0: cci@ac4f000 { - compatible = "qcom,sm8250-cci"; + compatible = "qcom,sm8250-cci", "qcom,msm8996-cci"; #address-cells = <1>; #size-cells = <0>; @@ -3764,7 +3764,7 @@ cci0_i2c1: i2c-bus@1 { }; cci1: cci@ac50000 { - compatible = "qcom,sm8250-cci"; + compatible = "qcom,sm8250-cci", "qcom,msm8996-cci"; #address-cells = <1>; #size-cells = <0>;