From patchwork Mon May 3 08:13:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 430683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F39B5C43461 for ; Mon, 3 May 2021 08:13:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF4C661353 for ; Mon, 3 May 2021 08:13:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232956AbhECIOj (ORCPT ); Mon, 3 May 2021 04:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232752AbhECIOj (ORCPT ); Mon, 3 May 2021 04:14:39 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83303C06138B for ; Mon, 3 May 2021 01:13:46 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id h11so3661638pfn.0 for ; Mon, 03 May 2021 01:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pkyuZ9w9SVl5FNnTg3eNaI04ikRI6sqPwMnFjLPyWLQ=; b=fp4ehAXbPy0P6QBADkWiA21e0FoLHzCjhS54WtU2bE8qN93Dbn51PdbbNhzAJLVGAZ vvLV0u6j38q1fycArjrR0+SLk8lJGofW9ZT5vJheOSj/cFhv1Cktop3M97XaOgKDqkql E9p1Rrfj7cDKhPD2m5s+qajfu8rte0woyJ+jzXCVH6GsOaHFO9va6HENeibL6+apYutP GQxfBoDADxGD/X64cOTXZNgaEHQZmQFF0znz0Sq+i+aM5aH3emKpOi74A/XH9EwVtypm QcZ404dfi1KkxYUEkt+16yOQdZgOh5vAyfFXlcCUBQkPCA0Wb/eUFD0XjOJK5apppJVu BFdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pkyuZ9w9SVl5FNnTg3eNaI04ikRI6sqPwMnFjLPyWLQ=; b=HU3zzC9isOmthzF7q2wIlE7nvlzAwMzCgOQH8FzK/qZNSPyzIFIXWuJvztDFkEzNF/ khaWc58v9fZ5ugHQibl8cU5DfiRlrKtow74NRRDeM0dZG5vN6P0jFbvIDhcA2JFApF7S OEDMvL48m1fCPqhDo08JGniyQfgrZYVSdmx9G5RkrFr4+PnWLh2hkhRjhLt8rworcS3s 5EDWpURd7iAIPb/oo52Oy0duGC2ORqUt9YJVofzBESf5PaNQc4jt0Mj3BdDosOm5nD+C HrMfMTbcbn9gqMzCr7BjHFH3+QHFrbYOq827yOC9wdpJJaxN4a3QXOHiuBzV1lkXuzjz nCHw== X-Gm-Message-State: AOAM530kU3zo7ubpzYgvst91qw3OqomhnqOYCQAXCZxGPXAYBx7yrhqH 3qb2iSDOWHSbdZdEt3i8kBkTEg== X-Google-Smtp-Source: ABdhPJzE6UDcvwvHjiHnJkj5mXksff61vxr4Jb2FBfg4LorAI4u1JoIBcipCTnR2dyU6Ojd0nHE7tg== X-Received: by 2002:a63:2c92:: with SMTP id s140mr17466249pgs.39.1620029626072; Mon, 03 May 2021 01:13:46 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id fa17sm12031939pjb.17.2021.05.03.01.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 01:13:45 -0700 (PDT) From: Shawn Guo To: Jassi Brar Cc: Rob Herring , Sivaprakash Murugesan , Bjorn Andersson , Benjamin Li , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH v2 1/2] dt-bindings: mailbox: qcom: Add MSM8939 APCS compatible Date: Mon, 3 May 2021 16:13:33 +0800 Message-Id: <20210503081334.17143-2-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210503081334.17143-1-shawn.guo@linaro.org> References: <20210503081334.17143-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible for the Qualcomm MSM8939 APCS block to the Qualcomm APCS bindings. Signed-off-by: Shawn Guo Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 5dc1173d03fd..96b29aa6c338 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -19,6 +19,7 @@ properties: - qcom,ipq6018-apcs-apps-global - qcom,ipq8074-apcs-apps-global - qcom,msm8916-apcs-kpss-global + - qcom,msm8939-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global From patchwork Mon May 3 08:13:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 430989 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14A1FC433ED for ; Mon, 3 May 2021 08:13:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC0EB6127A for ; Mon, 3 May 2021 08:13:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232996AbhECIOp (ORCPT ); Mon, 3 May 2021 04:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233003AbhECIOm (ORCPT ); Mon, 3 May 2021 04:14:42 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A52EC06138B for ; Mon, 3 May 2021 01:13:49 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id m6-20020a17090a8586b02901507e1acf0fso2862677pjn.3 for ; Mon, 03 May 2021 01:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=955BiMpV3PxxTlbeWzeYLgt/LzlJsdPGuHod6o4UA4E=; b=X97vfRTMZSRPBomlNkjB6efr8TTBpOaW7naOI2DtIlaReTurqYZAocxryK+VOyENWm WokG7Hh6F3+Q3L9dUHZbfIu0Xs30IPWFbVuKgUCLJaRhLFAb6p0+Eaintyl/gaCgL1il 43rCzqHquXIYf1CAvdy8niOMiQXKKMIKB0OH2tq4967WkTtB5HArAZC4tbFB38p0tiCc +pZHj1tVB5h7nifN8gQJj74NVEAdXXI77kPDtb08qhSd4aWQKvpEhvB0NPYuYfj+5I06 r3lbaYaVIbHcqLVMryj116lYEXEcD2OYIPM5AWGsBg9YHdbBBE8d3ayVwWym/Mh+nNHJ xmFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=955BiMpV3PxxTlbeWzeYLgt/LzlJsdPGuHod6o4UA4E=; b=IVcnsMLjPaahS1wJvYi8jsu/ZTCZL0hyYOYu8CGaq9E4wms5VlBg0WA/650HNAigb/ 8A7gRc2ZQqFYE6pT29JD7JCD6lo1BKbCa9ndJos7RBZtJM/m5GnYvisJIFIdyO/grgds Iuhx8KIAn4DsEp+sH5ukjcSdM9/FXeZxZksYDaqLNy79WfL+h60jYWiYYri0ajD3izz6 wXHBARSkCZwBCDGC8jVmjEyWyiSsrBqbX/poQAlfTqs/ceJWit0SVbpCOBZPqsSsW2Gg tZu4ByJ5foWYZXVLEaB8hB65pn2FvyVn5ErjpqsNwTsaBb9GYhx68esN1ho7HZDfqZYz k74A== X-Gm-Message-State: AOAM532Kh6l6huAMSi57VjxGb7QiFJdkWc6JfKvUV7Y7av7S8nv7U/6G 9QKxfSdH7GyeDzwPdrydk49p8Q== X-Google-Smtp-Source: ABdhPJyS1dxcmHjCU/RIV2HqfxsE8XyNao1S0c4YGeqjmxUUsa5CTLQs6mQtUMlJ2MftWQ71cf1QCg== X-Received: by 2002:a17:90a:8b12:: with SMTP id y18mr391778pjn.153.1620029629129; Mon, 03 May 2021 01:13:49 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id fa17sm12031939pjb.17.2021.05.03.01.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 01:13:48 -0700 (PDT) From: Shawn Guo To: Jassi Brar Cc: Rob Herring , Sivaprakash Murugesan , Bjorn Andersson , Benjamin Li , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH v2 2/2] mailbox: qcom: Add MSM8939 APCS support Date: Mon, 3 May 2021 16:13:34 +0800 Message-Id: <20210503081334.17143-3-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210503081334.17143-1-shawn.guo@linaro.org> References: <20210503081334.17143-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org MSM8939 has 3 APCS instances for Cluster0 (little cores), Cluster1 (big cores) and CCI (Cache Coherent Interconnect). Although only APCS of Cluster0 and Cluster1 have IPC bits, each of 3 APCS has A53PLL clock control bits. That said, we need to register 3 'qcom-apcs-msm8916-clk' devices to instantiate all 3 clocks. Let's use PLATFORM_DEVID_AUTO rather than PLATFORM_DEVID_NONE for platform_device_register_data() call. Otherwise, the second A53PLL clock registration will fail due to duplicate device name. [ 0.519657] sysfs: cannot create duplicate filename '/bus/platform/devices/qcom-apcs-msm8916-clk' ... [ 0.661158] qcom_apcs_ipc b111000.mailbox: failed to register APCS clk Signed-off-by: Shawn Guo Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index f25324d03842..1699ec38bc3b 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -132,7 +132,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) if (apcs_data->clk_name) { apcs->clk = platform_device_register_data(&pdev->dev, apcs_data->clk_name, - PLATFORM_DEVID_NONE, + PLATFORM_DEVID_AUTO, NULL, 0); if (IS_ERR(apcs->clk)) dev_err(&pdev->dev, "failed to register APCS clk\n"); @@ -158,6 +158,7 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data }, { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, + { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8994-apcs-kpss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data }, { .compatible = "qcom,msm8998-apcs-hmss-global", .data = &msm8998_apcs_data },