From patchwork Tue Jan 17 22:30:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643570 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 C2690C00A5A for ; Tue, 17 Jan 2023 22:45:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbjAQWoq (ORCPT ); Tue, 17 Jan 2023 17:44:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbjAQWnO (ORCPT ); Tue, 17 Jan 2023 17:43:14 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 695345D929 for ; Tue, 17 Jan 2023 14:30:19 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id qx13so20528064ejb.13 for ; Tue, 17 Jan 2023 14:30:19 -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=eion5X6q0VGOUxLUpNxKDysfDIqbYrJk68bo85TaH+Q=; b=VoyIsv4dph5cVUhjhEFt5ShuNiAHmXfJfanoTfOyckl1ni8SujS/8QgYx0Qo5hSiVy VkldYfJOuMGyp0mw70ptCMM7d8jWbnu3X5r7l6C2aynym5UxDG6JfUDi7lewFgTIcLUh 153j7dSvhNDfZhIwT9rwIKvgJSfgkLxpv156cqqvhCQYVkMCIeytGDC+y3dlo/pvleSh r3xyQxuEsmRzIT8gLNA7aK1RevD4OMIZz6U0JQYKF5jHayVpxFYd7qZeCmSFWGIS1G9v b/dGCAr/LSciZHAvcqbzmTJrg9rVXabuJKgYNZ6H9k1x1e384qbGc8iQnHEJPdm4vbHw ePGw== 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=eion5X6q0VGOUxLUpNxKDysfDIqbYrJk68bo85TaH+Q=; b=SIwsWkuqYE0abt9iglz4CHms9Q+qmBG0cv/3MzlwiE71dukTb4KENtJCIW9UuwDdeN Ry0lzqXiKNAWdJyc8vfRHEOLTwIIgwoKpp4DNglKy9naZfyyHFjXfMJ+l9oFvaDiocjc 5zLMy3ohIVMVrn91GBcsMUFfuWqtVaMFWGdKc9Fqx8A/Mj2IWrL9NgwZ1PZucbpZtMVn Vy5QCRljSLunMMok4kiBMwIHZc5vuFDikdS+fOVQX4fMxgUdf9ulKFJ7dvSGn8xHKD+o SYtFknpdgN+8m5LG9HYlMIb05+XnlkjUNc5E+Eo0X0/S24iqZny6sMYoHRJRGYC6cyNv 9y/w== X-Gm-Message-State: AFqh2kodvh6MjyX/o/QytqZ1FXAM6gwbzZLey7A6o4xaGBc/edcTWw+J wsJk1mx6OzQPLdLhN9xUfVf3mQ== X-Google-Smtp-Source: AMrXdXsVPq4w7cMK7zZzgZlY54dTlW+FD5LbTIjkx3OGzdQPjeGc7eDqOrmlrhG0fRBorpGJTUkB3g== X-Received: by 2002:a17:907:a80b:b0:86f:220e:94af with SMTP id vo11-20020a170907a80b00b0086f220e94afmr13486876ejc.56.1673994617996; Tue, 17 Jan 2023 14:30:17 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:17 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/6] dt-bindings: mailbox: qcom: correct the list of platforms using clocks Date: Wed, 18 Jan 2023 00:30:10 +0200 Message-Id: <20230117223013.1545026-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Only three platforms require `pll' and `aux' clocks: msm8916, msm8939 and qcs404. Correct the list of platforms in the corresponding clause. Fixes: 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") Signed-off-by: Dmitry Baryshkov --- .../mailbox/qcom,apcs-kpss-global.yaml | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index ecc286ab49ef..7d8de7a16984 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -72,15 +72,8 @@ allOf: compatible: enum: - qcom,msm8916-apcs-kpss-global - - qcom,msm8994-apcs-kpss-global - - qcom,msm8996-apcs-hmss-global - - qcom,msm8998-apcs-hmss-global + - qcom,msm8939-apcs-kpss-global - qcom,qcs404-apcs-apps-global - - qcom,sc7180-apss-shared - - qcom,sdm660-apcs-hmss-global - - qcom,sdm845-apss-shared - - qcom,sm6125-apcs-hmss-global - - qcom,sm8150-apss-shared then: properties: clocks: @@ -124,6 +117,30 @@ allOf: items: - const: pll - const: xo + + - if: + properties: + compatible: + enum: + - qcom,msm8953-apcs-kpss-global + - qcom,msm8976-apcs-kpss-global + - qcom,msm8994-apcs-kpss-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,sm6115-apcs-hmss-global + - qcom,sm6125-apcs-hmss-global + - qcom,sm8150-apss-shared + then: + properties: + clocks: false + clock-names: false + - if: properties: compatible: From patchwork Tue Jan 17 22:30:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 643569 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 D0F7DC38142 for ; Tue, 17 Jan 2023 22:45:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjAQWpW (ORCPT ); Tue, 17 Jan 2023 17:45:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjAQWnZ (ORCPT ); Tue, 17 Jan 2023 17:43:25 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B06676CB for ; Tue, 17 Jan 2023 14:30:20 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id bk15so21405485ejb.9 for ; Tue, 17 Jan 2023 14:30:20 -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=60yxEW22hoAOOhOWGOTH5M2hZiABdMD97947KesUJto=; b=LwMWS+VvZVE3ldXkhlFA4EaXFH8AblN2KRcYiAQP6o7of1u4dcCgb1dJP/rpth5t4k Y2IKKB9CIj6xVahlZZVQRDwnoe799ut4gnmptapV2yjLf9nqZE3+bM+JVITcyGE8RUx9 PqKz0Ew1R1Ro5BgRDODZvcJhESueuzOCt6ScW22dAAUK41oGvh+z8ehqv7FXQKUH5chy /KAxV60irRCRx4xAyP7eLp7pHVO6ejLc82KYB6c9i4i4bJdTXhA/L6JW0nfxGc2v7gQB feHpE3i1Jw6SyPKMo5PQskzRr+9CP6ykf31ReA0enPDSNgkWMTQng2u5/3BS7rUG+9mv 5Ysg== 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=60yxEW22hoAOOhOWGOTH5M2hZiABdMD97947KesUJto=; b=uZfzaDJiVOd09sCfZephs0dL4rvTf4M41EFARlHW3GTlbsvT1DzuPEqine3alxeCKX 4ddZyjgcRFXg/a6pQly9TL0mZOLadZ5wfwNyhBciTT2qPl3t9GHOxdR4s2g0hMlEglwJ cFn0iTJBzzeLmK27DbOtYHshsS4lTCuiP3hMrRQo8VEexHBXnDK28Z0/eQQbAcG+f2kk PG79L81kAiGWS9DDTvtlNQn5HB6HFzN6jI/vI8xYEnTo6zsLWNQsKjkQDueMdFnouZ7M YhxrdFgcx8Wf88l5ck4wrGfU3FEfh+7aT8LVjrbTn5WV3NXcUlYMj1CsSAfTM7wJWyBl zUjA== X-Gm-Message-State: AFqh2kpAeif8A2bBcvWQA6D0zHQrf6bLOT56yx8YgD861mloD2BDf5r5 558Ch/nbW484473HzDGY8mURpQ== X-Google-Smtp-Source: AMrXdXtjLoM3h1yIIOScwTckOqNzXWURKc4/sjRj8UvHCQsCg/p9ym++eVy5WH4cGIlE66qHNG9S4w== X-Received: by 2002:a17:907:a092:b0:85a:4230:756c with SMTP id hu18-20020a170907a09200b0085a4230756cmr4816939ejc.59.1673994620146; Tue, 17 Jan 2023 14:30:20 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id ec20-20020a170906b6d400b007c0f5d6f754sm13835189ejb.79.2023.01.17.14.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 14:30:19 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/6] mailbox: qcom-apcs-ipc: enable APCS clock device for MSM8996 Date: Wed, 18 Jan 2023 00:30:12 +0200 Message-Id: <20230117223013.1545026-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> References: <20230117223013.1545026-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org MSM8996 also has the clock-related part of the APCS mailbox device. Follow the usual pattern and create a child device to handle these clocks. Signed-off-by: Dmitry Baryshkov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 0e9f9cba8668..bd61dacb44ba 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -42,7 +42,7 @@ static const struct qcom_apcs_ipc_data msm8994_apcs_data = { }; static const struct qcom_apcs_ipc_data msm8996_apcs_data = { - .offset = 16, .clk_name = NULL + .offset = 16, .clk_name = "qcom-apcs-msm8996-clk" }; static const struct qcom_apcs_ipc_data apps_shared_apcs_data = {