From patchwork Mon Mar 27 14:07:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 668266 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 70660C761A6 for ; Mon, 27 Mar 2023 14:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232949AbjC0ORD (ORCPT ); Mon, 27 Mar 2023 10:17:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232699AbjC0OQs (ORCPT ); Mon, 27 Mar 2023 10:16:48 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 270B16589 for ; Mon, 27 Mar 2023 07:15:18 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id ew6so36768171edb.7 for ; Mon, 27 Mar 2023 07:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679926469; 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=22QlH78r30mKptSQUkIWzE57vqh8AC7rlz//RU6jXdY=; b=AfCrN1i2xIgn6wwC9icg2OS4DCmKfS+z5Nyv9CmF4mLF7ttRQOatpUd6XVrxEjfpuT Gln1DcQyVvnZSxoz7gJM7274ueEfHyjZzkVlkmO+zVueGTX/AbWfD1QeDbB9W1hSGW1u wptrsYFTK+wbh9fOSIm4XmnuU4ooqQlTRC6b2AeMfqXINelXJvyEB5CoUH9EqXQvmjtQ tNw0jdKn0oiMr5jH9RBo7uWxGxAO/s75hiFkfGF8Vh7f/8g8z3zNGB7XVY8R9zwLj0fx Nyb/VBw0Jh20LhVL9zQkgMTf5zo/9FRSKtLUDa54WHnPgrdDh8Rx+5UJs8zQHXyzfqBx DO4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679926469; 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=22QlH78r30mKptSQUkIWzE57vqh8AC7rlz//RU6jXdY=; b=hLogohPKWNPND9WBxTvlJA938rzndxr5K2QZnBGGzqvOuYIxNZF6EJjC6yLT10iNm9 ulO18NJFdqDkGhiXoHqxTvThM7VCrwZAWsjle47zbBZJSwNRgHafPz1xc4RUX3huJRgy 74+WtO0Zb1la7POixcfhwpGAGxw6uFKdN+opjMnDHn/ubbU2HYqe5ikpQBbwY1ij5HBC oI3oTknwHMCaI6xmtq9bkERDB9SUHZuu193zS42I4dIMdJaSZ7cFntiMwI5P4AnvwG9+ YFm8VDlpvM9GzRfzRTVfBPH8smrxwuH7g1A21BDA/Tgop8HWbhn3QoWGbxH8f8vmW+BX 0QeA== X-Gm-Message-State: AAQBX9fIdmpjOCZu4d1wPzDYYC22ls3uz6NVNB9vfvr0Q3FiCkvzUdh8 3nv+LB4N8LT4VLr05vaY0TGb/w== X-Google-Smtp-Source: AKy350YmQv6hHiUGGLcJ241v2uYAzUMQy8PH4CEurgzdHJV5/JTDiWtzCCR5u5jsenJzjqUsj8x6ug== X-Received: by 2002:a17:906:478a:b0:930:fded:5bf2 with SMTP id cw10-20020a170906478a00b00930fded5bf2mr14687354ejc.52.1679926469679; Mon, 27 Mar 2023 07:14:29 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:581e:789c:7616:5ee]) by smtp.gmail.com with ESMTPSA id ha25-20020a170906a89900b00934212e973esm11273339ejb.198.2023.03.27.07.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 07:14:29 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v4 1/5] dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks for few variants Date: Mon, 27 Mar 2023 16:07:48 +0200 Message-Id: <20230327140752.163009-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> References: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Rework the compatibles of IPQ8074, SC7180, SC8180X and SM8150 as compatible devices (same from Linux driver point of view). This allows smaller of_device_id table in the Linux driver and smaller allOf:if:then: constraints. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes since v3: 1. Narrow the scope of the patch after feedback from Dmitry. Depends on (merged to Qualcomm SoC tree): https://lore.kernel.org/linux-arm-msm/20230322173559.809805-1-krzysztof.kozlowski@linaro.org/T/#t --- .../mailbox/qcom,apcs-kpss-global.yaml | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 4d2f408a5efb..99cbf284ce9c 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -19,22 +19,14 @@ properties: - items: - enum: - qcom,ipq5332-apcs-apps-global + - qcom,ipq8074-apcs-apps-global - const: qcom,ipq6018-apcs-apps-global - items: - enum: - - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global - - qcom,msm8996-apcs-hmss-global - - qcom,msm8998-apcs-hmss-global - - qcom,qcm2290-apcs-hmss-global - qcom,sc7180-apss-shared - qcom,sc8180x-apss-shared - - qcom,sdm660-apcs-hmss-global - - qcom,sdm845-apss-shared - - qcom,sm4250-apcs-hmss-global - - qcom,sm6125-apcs-hmss-global - - qcom,sm6115-apcs-hmss-global - qcom,sm8150-apss-shared + - const: qcom,sdm845-apss-shared - items: - enum: - qcom,msm8916-apcs-kpss-global @@ -45,6 +37,18 @@ properties: - qcom,qcs404-apcs-apps-global - qcom,sdx55-apcs-gcc - const: syscon + - enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global + - qcom,msm8996-apcs-hmss-global + - qcom,msm8998-apcs-hmss-global + - qcom,qcm2290-apcs-hmss-global + - qcom,sdm660-apcs-hmss-global + - qcom,sdm845-apss-shared + - qcom,sm4250-apcs-hmss-global + - qcom,sm6115-apcs-hmss-global + - qcom,sm6125-apcs-hmss-global + reg: maxItems: 1 @@ -88,6 +92,7 @@ allOf: items: - const: pll - const: aux + - if: properties: compatible: @@ -106,13 +111,13 @@ allOf: - const: ref - const: pll - const: aux + - if: properties: compatible: contains: enum: - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global then: properties: clocks: @@ -134,14 +139,11 @@ allOf: - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global - qcom,qcm2290-apcs-hmss-global - - qcom,sc7180-apss-shared - - qcom,sc8180x-apss-shared - qcom,sdm660-apcs-hmss-global - qcom,sdm845-apss-shared - qcom,sm4250-apcs-hmss-global - qcom,sm6115-apcs-hmss-global - qcom,sm6125-apcs-hmss-global - - qcom,sm8150-apss-shared then: properties: clocks: false @@ -153,7 +155,6 @@ allOf: contains: enum: - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global then: properties: '#clock-cells': From patchwork Mon Mar 27 14:07:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 668264 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 62BD3C77B62 for ; Mon, 27 Mar 2023 14:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232934AbjC0ORS (ORCPT ); Mon, 27 Mar 2023 10:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232940AbjC0OQy (ORCPT ); Mon, 27 Mar 2023 10:16:54 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CDB16A4E for ; Mon, 27 Mar 2023 07:15:23 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id y4so36916153edo.2 for ; Mon, 27 Mar 2023 07:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679926470; 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=Ypp3NNcegTahHFAJNE8cAdEswtLOr/02h21RPqRbA94=; b=OPSWVcDdoVEuWN3Zw9tIjO3jwrBx/Orrb0Pigm+CooSKbjqiVGMTC32LXGXhBmWuJx quK4glIZrWL05bS2bxUQg4DEYNLVQ4ESRpi6ni3ubXCRVFFrBJp+Yu/rJNq55J4oaz5q 43wbF2EL/EFQGq/Q6D8EQFFZjCDehZ0DHfutCYmikHeoMOr66QUxNUsGFF/U7MwTCe5o Doqxpprx0GYl31NIA2rZLzfeWfmLQ8gwQ9a5z9BnHERl6lfkNnEf+Hh7mwLNUtvcvnqo fH4Fk1o6M15aPhgX87omLyz3uFZCpV/S8cJQP5W7NifvfDVIsUGV1t+7+RGG8H7sSKvy 72lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679926470; 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=Ypp3NNcegTahHFAJNE8cAdEswtLOr/02h21RPqRbA94=; b=BdVbUiVehXLzhwZF+7qMwxT4aPT3x6dRWTWsMrfp1xn4YANHF/ShzeAbzwH1IYwIUK gdVs4kv38P7vassRU1CXuxu3BJRO4xai7erjAu7Og1wt+Q7Xe+y1uUVH1EmuC6LUi/Af PvAdUUzXjgOqxGWDAyrwxLrOMCpIlftpISs1WgXFP/ku8AUsb4YjnGXmnm1JylQP454z SePguYluT++DkaNOqlliqJQQJ+Yk5ZJkLj7bwHibDiwdkBclw0ed1kEsmnYlLVqWXlsg M0fCghmaHvmFhkUJwHDi3mVMulMIAegnAJrZLEOeVcrzBKJWCl4XYyC/eBq0Id5KHY/a cemw== X-Gm-Message-State: AAQBX9cEs4JMdv5Q2Xr27KlEsr0FdZLHYXPd3Yqj0/US35t1kIOUIVVT v9yQSfgAujxy/iuckf8RJL+ihw== X-Google-Smtp-Source: AKy350ZWu65scU+w1dPWdRX0dJtcdEO11ugkZOZ3p+kqY0PWkPqdNleawHDU9QbpmCtWx46vAzlrvA== X-Received: by 2002:a17:907:1707:b0:922:ae30:3c23 with SMTP id le7-20020a170907170700b00922ae303c23mr12428458ejc.18.1679926470538; Mon, 27 Mar 2023 07:14:30 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:581e:789c:7616:5ee]) by smtp.gmail.com with ESMTPSA id ha25-20020a170906a89900b00934212e973esm11273339ejb.198.2023.03.27.07.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 07:14:30 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v4 2/5] mailbox: qcom-apcs-ipc: do not grow the of_device_id Date: Mon, 27 Mar 2023 16:07:49 +0200 Message-Id: <20230327140752.163009-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> References: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Re-organize the compatible devices and add a comment to avoid unneeded of_device_id growth with every new SoC. These devices have quite a lot of similarities and they can use only one compatible fallback for driver binding. Signed-off-by: Krzysztof Kozlowski --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 6bbf87c6d60b..002a135ee868 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -141,9 +141,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev) /* .data is the offset of the ipc register within the global block */ static const struct of_device_id qcom_apcs_ipc_of_match[] = { - { .compatible = "qcom,ipq5332-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, - { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data }, @@ -153,15 +151,18 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,msm8998-apcs-hmss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,qcm2290-apcs-hmss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,qcs404-apcs-apps-global", .data = &msm8916_apcs_data }, - { .compatible = "qcom,sc7180-apss-shared", .data = &apps_shared_apcs_data }, - { .compatible = "qcom,sc8180x-apss-shared", .data = &apps_shared_apcs_data }, { .compatible = "qcom,sdm660-apcs-hmss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,sdm845-apss-shared", .data = &apps_shared_apcs_data }, { .compatible = "qcom,sm4250-apcs-hmss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,sm6125-apcs-hmss-global", .data = &msm8994_apcs_data }, - { .compatible = "qcom,sm8150-apss-shared", .data = &apps_shared_apcs_data }, { .compatible = "qcom,sm6115-apcs-hmss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data }, + /* Do not add any more entries using existing driver data */ + { .compatible = "qcom,ipq5332-apcs-apps-global", .data = &ipq6018_apcs_data }, + { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data }, + { .compatible = "qcom,sc7180-apss-shared", .data = &apps_shared_apcs_data }, + { .compatible = "qcom,sc8180x-apss-shared", .data = &apps_shared_apcs_data }, + { .compatible = "qcom,sm8150-apss-shared", .data = &apps_shared_apcs_data }, {} }; MODULE_DEVICE_TABLE(of, qcom_apcs_ipc_of_match); From patchwork Mon Mar 27 14:07:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 668265 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 B82A5C761A6 for ; Mon, 27 Mar 2023 14:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233062AbjC0ORR (ORCPT ); Mon, 27 Mar 2023 10:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232654AbjC0OQx (ORCPT ); Mon, 27 Mar 2023 10:16:53 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C0296195 for ; Mon, 27 Mar 2023 07:15:22 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id w9so36887847edc.3 for ; Mon, 27 Mar 2023 07:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679926471; 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=979bDGKht4sTcPvoh4er/U+zmo9ulR4Dq1wytmjDqYM=; b=oUzd/9aUKVm0GdaahbuFfy/DWKP1+FYgEMM+RyLeGyzPjXluHrME8MeMAtJyiimfX5 5PJgNbjghIwrjwWhfMxSjK2S/z4olHqIUVrHVJh5JDkyUD4ne5Gn0LyQ0gRH5N6KVX8f wnuUL5JImmvpCzzn9rLiREBxYVAq0y5Xd4OBRWQ8T9om1NaRGnXtm5eWNXn730hs2EA9 ps/D+cRwlferKDpr3FJEdqcrE+dFXYSnCy6T4juqEYHxw2znkOZ5FImQ6/HoQR2hAilY r0Nct8QYn/ac+r5CRdA/8MIxprxkQagW05chgX4szLAuDKkH7B+jsY+6rTTbgSSl0Ri2 1BeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679926471; 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=979bDGKht4sTcPvoh4er/U+zmo9ulR4Dq1wytmjDqYM=; b=OB5of3QCiC0XokYYT/TDwTqpzI4wuEqVmAuqMxslxCg7HMCuW31NjAod7GElKdhONX ChSMNNHGLr/aLD6uVasXp+eeQXpnZibJS5f7A09SrLpcL1WT1BmCi9a/8IdTfJj5KObY 7hYIaYsme89PJhM6KAx6g17LXbN0LE354YQWbPApCTxWisfVGOrTqiDVNdpn/Fku49Nz cinY0ElX0A3nPkwHKIdbwk6WpTbvbvR00hErC91U2pHLhG8n611Oc2aPDaSdp2szTRHT iuP5qGqnaIWleTLypHJXSOrskkrx/pJ/BV21rmda0/h2Tb+747YFYKHeMg0/nwwkPpMy dWow== X-Gm-Message-State: AAQBX9eZwFuJtIeztJliZtt251QphfNlAvMfZZH3ECaO3Lib43jbKKrx WZWk8LvBCH7XkWPJf/PSds78jQ== X-Google-Smtp-Source: AKy350bVl9nCxCIg/cC2I6S/Kr1LzGtEnS4bTindm15Jh7tvtqQmZV5ORAHb+zAA52IBp2P13iHSNA== X-Received: by 2002:a17:906:cb98:b0:931:73d:4cc3 with SMTP id mf24-20020a170906cb9800b00931073d4cc3mr13061245ejb.11.1679926471484; Mon, 27 Mar 2023 07:14:31 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:581e:789c:7616:5ee]) by smtp.gmail.com with ESMTPSA id ha25-20020a170906a89900b00934212e973esm11273339ejb.198.2023.03.27.07.14.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 07:14:31 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v4 3/5] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Date: Mon, 27 Mar 2023 16:07:50 +0200 Message-Id: <20230327140752.163009-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> References: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ8074 mailbox is compatible with IPQ6018. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index fe37dcdc52c8..84e715aa4310 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -686,7 +686,8 @@ watchdog: watchdog@b017000 { }; apcs_glb: mailbox@b111000 { - compatible = "qcom,ipq8074-apcs-apps-global"; + compatible = "qcom,ipq8074-apcs-apps-global", + "qcom,ipq6018-apcs-apps-global"; reg = <0x0b111000 0x1000>; clocks = <&a53pll>, <&xo>; clock-names = "pll", "xo"; From patchwork Mon Mar 27 14:07:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 667526 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 DB995C76195 for ; Mon, 27 Mar 2023 14:17:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232958AbjC0ORS (ORCPT ); Mon, 27 Mar 2023 10:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232850AbjC0OQx (ORCPT ); Mon, 27 Mar 2023 10:16:53 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 589E07AB6 for ; Mon, 27 Mar 2023 07:15:23 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id eg48so36722998edb.13 for ; Mon, 27 Mar 2023 07:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679926472; 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=VMo5mk6M+0hlW82wXM7SGHXpxbM/f39pn/sc0oURYAs=; b=QgkE+mkboWATCDENaIf+7VwDJST7w1u9Js4eaaCtIYD9EbO+hBcE8XnJpjYxgz2QiQ gSyET6cvy7IK+V5YAsIPhdH/u3aqtkm9h1m1ek0NknaiUfczWiMRWnx1z/pgMNcCbsZO q4KxeX+owvBgA/ieX9XPJYKUTlR87q9PwAfmKg4Pzi5/z4T5W8kn65eAWwyTwWwUB9tl TdXITiqc06D3PqeMO1FE3AcXcEojdc0oyjCJQLYTByUU70pFOsb8kuGOaIBslLglWKyL ulJz46GUoaYku8y2XDG6JG4V2F6uUpztxiZbf+O81IAJlLWq5lc+76LV60FmxgFOQR32 ySTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679926472; 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=VMo5mk6M+0hlW82wXM7SGHXpxbM/f39pn/sc0oURYAs=; b=xixbDgKxPiGnMKGZM3osWfFv0SKsGQECiLsn/xhU29On26wsb+DQdBVq5Kwctcg9C9 thMnWKz926AkprH2NPyBfsYfmepX7mpkgGpnUHsbfaqqMND/NepB+twV1SjyDu9J5Ija Ga4FI7D87T9EAQTjWQWF7feLLapmdhREdcw7ib/G4SStbtPdey/F9wnuPve5c3dAVVrO 2rX5T63CAAoD5WbSQHPnobD7Z5Rw3QTM8jIEk0veV7OeBQhVbXB/Fx2kAN/cDPd6DTRp Mx6HLPHOUfWxc4X/ujo6hAXglftprD8tt9IsNwEqhyhUHkvRP/hkCBBJOGRshrheq+0X BOmQ== X-Gm-Message-State: AAQBX9cFcb07twQ5t+5udocmeJaeYGMbpkwiOi0tcUzMHV3KbZXfaP2K ld+xjrHfByqxIfv7uuL3kNYGCQ== X-Google-Smtp-Source: AKy350bquPBTcGxJPoF+/Q5WSiFpB7Ht3GStZp0nKS61pRxY9nxjIafot0ypLdfHQfP3b91rf7253A== X-Received: by 2002:a17:906:f2d1:b0:932:35b1:47f8 with SMTP id gz17-20020a170906f2d100b0093235b147f8mr12600175ejb.34.1679926472472; Mon, 27 Mar 2023 07:14:32 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:581e:789c:7616:5ee]) by smtp.gmail.com with ESMTPSA id ha25-20020a170906a89900b00934212e973esm11273339ejb.198.2023.03.27.07.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 07:14:32 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v4 4/5] arm64: dts: qcom: sc7180: add compatible fallback to mailbox Date: Mon, 27 Mar 2023 16:07:51 +0200 Message-Id: <20230327140752.163009-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> References: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SC7180 mailbox is compatible with SDM845. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 3c799b564b64..009e054d53e5 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -3413,7 +3413,8 @@ msi-controller@17a40000 { }; apss_shared: mailbox@17c00000 { - compatible = "qcom,sc7180-apss-shared"; + compatible = "qcom,sc7180-apss-shared", + "qcom,sdm845-apss-shared"; reg = <0 0x17c00000 0 0x10000>; #mbox-cells = <1>; }; From patchwork Mon Mar 27 14:07:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 667527 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 4EE25C76195 for ; Mon, 27 Mar 2023 14:17:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233058AbjC0ORG (ORCPT ); Mon, 27 Mar 2023 10:17:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232996AbjC0OQw (ORCPT ); Mon, 27 Mar 2023 10:16:52 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD74659A for ; Mon, 27 Mar 2023 07:15:21 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id y4so36916778edo.2 for ; Mon, 27 Mar 2023 07:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679926473; 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=+OUr3ek7eyRlv1LZDnFEQKf+EnBNrg4hiiPgZCQTep0=; b=MB4n3cSdQQ5K+mXJDqM/x8XmRm8dD95zP+nHF7wpJ6o05fae4xLkIFkJMk8lv5dax9 DzL7RW8UXve8DqcKojY5q0ZJE2DdPTaG0XOGj/Ww2KgsgESqIectuh8IRZdJI1Pm240s +PIv/eg2yXOVHWl45sefRi30z9NC12Rpz9fIK03ryJqbcxCeoqPbDrC8YzpI3NoncwKA c1pc6F6CRyxTHG0FgQav+vxPuL7cDT2w7i2Vp2u5Va6qGrvwnlGm4RGWKpSdYw2d4ROT xeBztrXooB0ZuSdkg1JqzEJGo8eXShndMf7LY23CeDY5bS67MIxqT2a8UOjNuLzR8mbq UbOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679926473; 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=+OUr3ek7eyRlv1LZDnFEQKf+EnBNrg4hiiPgZCQTep0=; b=yvgIdY634I8zRZhSuFrGUHLCFb6n61F5HegSvRJS1YmzahCKWeQLb5uj9Cwa4cMwAx 296GZ1cSxzjTXFFYOHFds78U7LoKg0js3buYvhBB8IJK65kpgg1ZxCzOFLdka9Ck9HW4 hPkwz3dAb4yQyrGdn0Wkj0TIIbrou+pefwllvznlA3m0BOM5ZbPNoPAsh147wdUtqlc0 DkB/pmfjRfTG2ZcYgYJtDu++rrkmcWafWzy7aENlmEMt202GyFbTcSNaURi2zCIv/7+Y +lQk20frRhV2h4GWetfthzBOBqBYHdowPoxtW8K8LMjfvyJjKRAEACMvGvmY4vAwVSrC mHig== X-Gm-Message-State: AAQBX9fLzW4XkC/zu3PFkCRI6ICabmGDdlfcnbKvfNOQgQoKbuxI0nr6 rtsVT0au5w4DCeAiHWVAHGe3Wg== X-Google-Smtp-Source: AKy350alMd1q+R1RdunDNEoilFSbZ6aX+GFNX26H0tNImhtvNm6bqJvEu0jxKgyhIXdshzciQ5fIFA== X-Received: by 2002:a17:907:7718:b0:93d:c57f:b8b4 with SMTP id kw24-20020a170907771800b0093dc57fb8b4mr11881834ejc.26.1679926473395; Mon, 27 Mar 2023 07:14:33 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:581e:789c:7616:5ee]) by smtp.gmail.com with ESMTPSA id ha25-20020a170906a89900b00934212e973esm11273339ejb.198.2023.03.27.07.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 07:14:33 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v4 5/5] arm64: dts: qcom: sm8150: add compatible fallback to mailbox Date: Mon, 27 Mar 2023 16:07:52 +0200 Message-Id: <20230327140752.163009-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> References: <20230327140752.163009-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SC8150 mailbox is compatible with SDM845. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 9491be4a6bf0..05c1f352f115 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -4128,7 +4128,8 @@ intc: interrupt-controller@17a00000 { }; apss_shared: mailbox@17c00000 { - compatible = "qcom,sm8150-apss-shared"; + compatible = "qcom,sm8150-apss-shared", + "qcom,sdm845-apss-shared"; reg = <0x0 0x17c00000 0x0 0x1000>; #mbox-cells = <1>; };