From patchwork Sat Jun 13 06:26:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 11602545 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D1EB4739 for ; Sat, 13 Jun 2020 06:27:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BEB4020739 for ; Sat, 13 Jun 2020 06:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726441AbgFMG1J (ORCPT ); Sat, 13 Jun 2020 02:27:09 -0400 Received: from relay-2.mailobj.net ([213.182.54.5]:48763 "EHLO relay-2.mailobj.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgFMG1J (ORCPT ); Sat, 13 Jun 2020 02:27:09 -0400 Received: from v-1.localdomain (v-1.in.mailobj.net [192.168.90.191]) by relay-2.mailobj.net (Postfix) with SMTP id 1317512EB; Sat, 13 Jun 2020 08:27:06 +0200 (CEST) Received: by ip-25.net-c.com [213.182.54.25] with ESMTP Sat, 13 Jun 2020 08:28:01 +0200 (CEST) X-EA-Auth: gCDkemgpab3r57raDVk3e6dU6QG0VvILS+PktL2zvaf02NHZKw8aazvbCo2bQXdeoms2YKGELTJ6kqWAggZLhPikVC84GhWGWUeRUvRoXTI= From: Vincent Knecht To: sboyd@kernel.org Cc: konradybcio@gmail.com, Vincent Knecht , Andy Gross , Bjorn Andersson , Michael Turquette , Rob Herring , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks Date: Sat, 13 Jun 2020 08:26:39 +0200 Message-Id: <20200613062642.1213591-2-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200613062642.1213591-1-vincent.knecht@mailoo.org> References: <20200613062642.1213591-1-vincent.knecht@mailoo.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add missing definition of rpm clk for msm8936 soc (also used by msm8939) Signed-off-by: Vincent Knecht --- drivers/clk/qcom/clk-smd-rpm.c | 50 ++++++++++++++++++++++++++ include/dt-bindings/clock/qcom,rpmcc.h | 2 ++ 2 files changed, 52 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 52f63ad787ba..de42f012af57 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -452,6 +452,55 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8916 = { .num_clks = ARRAY_SIZE(msm8916_clks), }; +/* msm8936 */ +DEFINE_CLK_SMD_RPM(msm8936, pcnoc_clk, pcnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0); +DEFINE_CLK_SMD_RPM(msm8936, snoc_clk, snoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 1); +DEFINE_CLK_SMD_RPM(msm8936, bimc_clk, bimc_a_clk, QCOM_SMD_RPM_MEM_CLK, 0); +DEFINE_CLK_SMD_RPM(msm8936, sysmmnoc_clk, sysmmnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 2); +DEFINE_CLK_SMD_RPM_QDSS(msm8936, qdss_clk, qdss_a_clk, QCOM_SMD_RPM_MISC_CLK, 1); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, bb_clk1, bb_clk1_a, 1); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, bb_clk2, bb_clk2_a, 2); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, rf_clk1, rf_clk1_a, 4); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8936, rf_clk2, rf_clk2_a, 5); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, bb_clk1_pin, bb_clk1_a_pin, 1); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, bb_clk2_pin, bb_clk2_a_pin, 2); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, rf_clk1_pin, rf_clk1_a_pin, 4); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8936, rf_clk2_pin, rf_clk2_a_pin, 5); + +static struct clk_smd_rpm *msm8936_clks[] = { + [RPM_SMD_PCNOC_CLK] = &msm8936_pcnoc_clk, + [RPM_SMD_PCNOC_A_CLK] = &msm8936_pcnoc_a_clk, + [RPM_SMD_SNOC_CLK] = &msm8936_snoc_clk, + [RPM_SMD_SNOC_A_CLK] = &msm8936_snoc_a_clk, + [RPM_SMD_BIMC_CLK] = &msm8936_bimc_clk, + [RPM_SMD_BIMC_A_CLK] = &msm8936_bimc_a_clk, + [RPM_SMD_SYSMMNOC_CLK] = &msm8936_sysmmnoc_clk, + [RPM_SMD_SYSMMNOC_A_CLK] = &msm8936_sysmmnoc_a_clk, + [RPM_SMD_QDSS_CLK] = &msm8936_qdss_clk, + [RPM_SMD_QDSS_A_CLK] = &msm8936_qdss_a_clk, + [RPM_SMD_BB_CLK1] = &msm8936_bb_clk1, + [RPM_SMD_BB_CLK1_A] = &msm8936_bb_clk1_a, + [RPM_SMD_BB_CLK2] = &msm8936_bb_clk2, + [RPM_SMD_BB_CLK2_A] = &msm8936_bb_clk2_a, + [RPM_SMD_RF_CLK1] = &msm8936_rf_clk1, + [RPM_SMD_RF_CLK1_A] = &msm8936_rf_clk1_a, + [RPM_SMD_RF_CLK2] = &msm8936_rf_clk2, + [RPM_SMD_RF_CLK2_A] = &msm8936_rf_clk2_a, + [RPM_SMD_BB_CLK1_PIN] = &msm8936_bb_clk1_pin, + [RPM_SMD_BB_CLK1_A_PIN] = &msm8936_bb_clk1_a_pin, + [RPM_SMD_BB_CLK2_PIN] = &msm8936_bb_clk2_pin, + [RPM_SMD_BB_CLK2_A_PIN] = &msm8936_bb_clk2_a_pin, + [RPM_SMD_RF_CLK1_PIN] = &msm8936_rf_clk1_pin, + [RPM_SMD_RF_CLK1_A_PIN] = &msm8936_rf_clk1_a_pin, + [RPM_SMD_RF_CLK2_PIN] = &msm8936_rf_clk2_pin, + [RPM_SMD_RF_CLK2_A_PIN] = &msm8936_rf_clk2_a_pin, +}; + +static const struct rpm_smd_clk_desc rpm_clk_msm8936 = { + .clks = msm8936_clks, + .num_clks = ARRAY_SIZE(msm8936_clks), +}; + /* msm8974 */ DEFINE_CLK_SMD_RPM(msm8974, pnoc_clk, pnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0); DEFINE_CLK_SMD_RPM(msm8974, snoc_clk, snoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 1); @@ -768,6 +817,7 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8998 = { static const struct of_device_id rpm_smd_clk_match_table[] = { { .compatible = "qcom,rpmcc-msm8916", .data = &rpm_clk_msm8916 }, + { .compatible = "qcom,rpmcc-msm8936", .data = &rpm_clk_msm8936 }, { .compatible = "qcom,rpmcc-msm8974", .data = &rpm_clk_msm8974 }, { .compatible = "qcom,rpmcc-msm8976", .data = &rpm_clk_msm8976 }, { .compatible = "qcom,rpmcc-msm8996", .data = &rpm_clk_msm8996 }, diff --git a/include/dt-bindings/clock/qcom,rpmcc.h b/include/dt-bindings/clock/qcom,rpmcc.h index ae74c43c485d..4a0238ccf9f2 100644 --- a/include/dt-bindings/clock/qcom,rpmcc.h +++ b/include/dt-bindings/clock/qcom,rpmcc.h @@ -133,5 +133,7 @@ #define RPM_SMD_RF_CLK3_A 87 #define RPM_SMD_RF_CLK3_PIN 88 #define RPM_SMD_RF_CLK3_A_PIN 89 +#define RPM_SMD_SYSMMNOC_CLK 90 +#define RPM_SMD_SYSMMNOC_A_CLK 91 #endif From patchwork Sat Jun 13 06:26:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 11602551 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 129F61667 for ; Sat, 13 Jun 2020 06:27:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 00BA5208C3 for ; Sat, 13 Jun 2020 06:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbgFMG1N (ORCPT ); Sat, 13 Jun 2020 02:27:13 -0400 Received: from relay-1.mailobj.net ([213.182.54.6]:46028 "EHLO relay-1.mailobj.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgFMG1M (ORCPT ); Sat, 13 Jun 2020 02:27:12 -0400 Received: from v-1.localdomain (v-1.in.mailobj.net [192.168.90.191]) by relay-1.mailobj.net (Postfix) with SMTP id 2BB491269; Sat, 13 Jun 2020 08:27:10 +0200 (CEST) Received: by ip-25.net-c.com [213.182.54.25] with ESMTP Sat, 13 Jun 2020 08:28:05 +0200 (CEST) X-EA-Auth: tTaKxTeiJSoaf6PZDPAaXBKYMy/mPy6nEafq15+/wKidNuheZOz0/4YiVzu1r5BHZQObR+spJI2OigYoWPwem3cYoOvne0NST7LYAqROibk= From: Vincent Knecht To: sboyd@kernel.org Cc: konradybcio@gmail.com, Vincent Knecht , Rob Herring , Andy Gross , Bjorn Andersson , Michael Turquette , Rob Herring , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible Date: Sat, 13 Jun 2020 08:26:40 +0200 Message-Id: <20200613062642.1213591-3-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200613062642.1213591-1-vincent.knecht@mailoo.org> References: <20200613062642.1213591-1-vincent.knecht@mailoo.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Vincent Knecht --- Documentation/devicetree/bindings/clock/qcom,rpmcc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt index 90a1349bc713..51d1ef62c745 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt @@ -13,6 +13,7 @@ Required properties : "qcom,rpmcc-msm8660", "qcom,rpmcc" "qcom,rpmcc-apq8060", "qcom,rpmcc" "qcom,rpmcc-msm8916", "qcom,rpmcc" + "qcom,rpmcc-msm8936", "qcom,rpmcc" "qcom,rpmcc-msm8974", "qcom,rpmcc" "qcom,rpmcc-msm8976", "qcom,rpmcc" "qcom,rpmcc-apq8064", "qcom,rpmcc" From patchwork Sat Jun 13 06:26:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 11602553 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 42BAB17F0 for ; Sat, 13 Jun 2020 06:27:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3296320789 for ; Sat, 13 Jun 2020 06:27:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbgFMG1Q (ORCPT ); Sat, 13 Jun 2020 02:27:16 -0400 Received: from relay-2.mailobj.net ([213.182.54.5]:45419 "EHLO relay-2.mailobj.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbgFMG1O (ORCPT ); Sat, 13 Jun 2020 02:27:14 -0400 Received: from v-1.localdomain (v-1.in.mailobj.net [192.168.90.191]) by relay-2.mailobj.net (Postfix) with SMTP id 92D261311; Sat, 13 Jun 2020 08:27:12 +0200 (CEST) Received: by ip-25.net-c.com [213.182.54.25] with ESMTP Sat, 13 Jun 2020 08:28:07 +0200 (CEST) X-EA-Auth: uxJr0Zj8wZma9+98nZfFGMgTkxDQWIrQbh8TIfmpscj7fisnVlyRbQV2FBhyWUCFGFM7Sg4m3V9OI5s7yutxdtUYfn3r/4g9DbKnQg5QlXo= From: Vincent Knecht To: sboyd@kernel.org Cc: konradybcio@gmail.com, Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] drivers: soc: Add MSM8936 SMD RPM compatible Date: Sat, 13 Jun 2020 08:26:41 +0200 Message-Id: <20200613062642.1213591-4-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200613062642.1213591-1-vincent.knecht@mailoo.org> References: <20200613062642.1213591-1-vincent.knecht@mailoo.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Konrad Dybcio Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/smd-rpm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c index 005dd30c58fa..8f290c67cb47 100644 --- a/drivers/soc/qcom/smd-rpm.c +++ b/drivers/soc/qcom/smd-rpm.c @@ -231,6 +231,7 @@ static void qcom_smd_rpm_remove(struct rpmsg_device *rpdev) static const struct of_device_id qcom_smd_rpm_of_match[] = { { .compatible = "qcom,rpm-apq8084" }, { .compatible = "qcom,rpm-msm8916" }, + { .compatible = "qcom,rpm-msm8936" }, { .compatible = "qcom,rpm-msm8974" }, { .compatible = "qcom,rpm-msm8976" }, { .compatible = "qcom,rpm-msm8996" }, From patchwork Sat Jun 13 06:26:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 11602555 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 26445138C for ; Sat, 13 Jun 2020 06:27:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 180E820789 for ; Sat, 13 Jun 2020 06:27:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726501AbgFMG1X (ORCPT ); Sat, 13 Jun 2020 02:27:23 -0400 Received: from relay-2.mailobj.net ([213.182.54.5]:47307 "EHLO relay-2.mailobj.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbgFMG1U (ORCPT ); Sat, 13 Jun 2020 02:27:20 -0400 Received: from v-1.localdomain (v-1.in.mailobj.net [192.168.90.191]) by relay-2.mailobj.net (Postfix) with SMTP id 4AF891322; Sat, 13 Jun 2020 08:27:17 +0200 (CEST) Received: by ip-25.net-c.com [213.182.54.25] with ESMTP Sat, 13 Jun 2020 08:28:12 +0200 (CEST) X-EA-Auth: 7sf4/AF6oJO28/+/mPG3JGTMo+YHqbzlbbvXqAO5tm4lJuCFyQrTh6gHhWUQhD45EddorqGn9n1sIoTWfCIsyE7YH+xXQZQkSDfV7zu4/1o= From: Vincent Knecht To: sboyd@kernel.org Cc: konradybcio@gmail.com, Vincent Knecht , Rob Herring , Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] dt-bindings: soc: qcom: Document MSM8936 SMD RPM Date: Sat, 13 Jun 2020 08:26:42 +0200 Message-Id: <20200613062642.1213591-5-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200613062642.1213591-1-vincent.knecht@mailoo.org> References: <20200613062642.1213591-1-vincent.knecht@mailoo.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Vincent Knecht --- Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt index 616fddcd09fd..55f8abd845a7 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt @@ -21,6 +21,7 @@ resources. Definition: must be one of: "qcom,rpm-apq8084" "qcom,rpm-msm8916" + "qcom,rpm-msm8936" "qcom,rpm-msm8974" "qcom,rpm-msm8976" "qcom,rpm-msm8998"