From patchwork Tue Dec 31 16:00:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13923881 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE7CA1632CA; Tue, 31 Dec 2024 16:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661402; cv=none; b=XnS+9Mr5mKXcjneGYp4U+vdPuKalXfyPju6Hxewz+dg+lrA8WzuwyiTA2/4uqtVl21DbViw8AzvDBpPvpt4gNQdKFt3dzbva61AurHHB+lCuGuADMrIFTao7q6NCol+CM5ukn6w3FvekYyQ/D4bBM18XzunoITuW6vTzJiKtT4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661402; c=relaxed/simple; bh=DpnrQEL6CozJF3mUatwwphvHvZU6Va/f8onXDizDmn4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GVLTGsjCp94b4MkcR7+GtrdKau0gWvK8yCFpBmq+3TzbuvtEyh3AzkR2p5qc1OsMcOQzTiR/oiAJTTGH6tpCqKllGyFOZQeuh5FDtX3hlwXJjexfRl3j4uZF2Kh2j5+QJTo/nHfYmzbiJzsvVWijhI+Laf+Uap0Zr541R0hKHsk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=XpX8WPCi; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="XpX8WPCi" Received: from [192.168.30.162] (254C25E0.nat.pool.telekom.hu [37.76.37.224]) by mail.mainlining.org (Postfix) with ESMTPSA id 4BE83E484C; Tue, 31 Dec 2024 16:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1735660875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zIxIbqCYxjh+W+UwImRvIKQDMyiYsiBHIAlUhyBxUVQ=; b=XpX8WPCiSJ4k8VT8wT/BhivG4fE3esZn60UO8giXkiv8sZ7O7O95lcD2yLMrtH3cvxH0Xz Sr9qZPqyKEBnHsA+YXHa0EQoGNW0nKdnDbLwakAiNBZocRddTDwkAVQWK7N4ZEmlfoXG/G rOr481wZFdfwHU4ePs2s0bvaWpzINSC5ouhpAEBdqNBWC5SXYfrqwOay1WF29fBJN1ja2F 4naYGtD2+ai+KSBGmrLM1oZ9eJc8MNV1GfGEISZY/hTtiNUDm0Fh6Z4eWbQiAk0EKj21fn dyDmvt6g94MpsvbQO6fsDEWMx1+sOwVbauQF2FVAd14ngmCkBtLrvDwTKx9wmg== From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Tue, 31 Dec 2024 17:00:49 +0100 Subject: [PATCH 1/4] dt-bindings: clock: qcom,rpmcc: Add MSM8937 compatible Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241231-rpmcc-v1-1-1212df9b2042@mainlining.org> References: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> In-Reply-To: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?QmFy?= =?utf-8?b?bmFiw6FzIEN6w6ltw6Fu?= , Daniil Titov X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735660873; l=1188; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=GC4Sxaf3yoPtDUN4BAwzx1GqbzDGKhrpINtUr0wJKoM=; b=siys6A3GvZkNo4eESS92Tdl5ul70rKklahGDaCaIaD8EBJo7w9YcKfoUGSAbaCs6hyB2x4EeB l3mDMaNwLtwDnF9H3CpnGH9imx8xiq8AZQUs1TMqXQ5zaJANcyiRBQx X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= From: Daniil Titov Document the qcom,rpmcc-msm8937 compatible. Signed-off-by: Daniil Titov Signed-off-by: Barnabás Czémán Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml index 02fcffe93f1aa86305140bdc090f21a5503f9119..e58f43b1ab602a6fc8484a60dccafbfa52357dbb 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml @@ -33,6 +33,7 @@ properties: - qcom,rpmcc-msm8916 - qcom,rpmcc-msm8917 - qcom,rpmcc-msm8936 + - qcom,rpmcc-msm8937 - qcom,rpmcc-msm8953 - qcom,rpmcc-msm8974 - qcom,rpmcc-msm8976 @@ -110,6 +111,7 @@ allOf: - qcom,rpmcc-msm8916 - qcom,rpmcc-msm8917 - qcom,rpmcc-msm8936 + - qcom,rpmcc-msm8937 - qcom,rpmcc-msm8953 - qcom,rpmcc-msm8974 - qcom,rpmcc-msm8976 From patchwork Tue Dec 31 16:00:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13923880 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE7851534F7; Tue, 31 Dec 2024 16:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661401; cv=none; b=DdHs5UeMtaYH1mLgGo12DGgZPTtROk+LUSK+oqScbrSZd1fzUjVggFVKxcs4i01PuE/n7FuKcnjgEPh+EtFJ09US8mxOnPm+6P/KYsE4UBsF8wR8gfHSEbkSX5B7lY6Hbhzm05tdlCFq/BnSJGPNgFM78AT5dL02ydKXdERQJCE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661401; c=relaxed/simple; bh=Sn1WL/ASqKe7LvSCxVop93VtOzfQ6PpV8GUQfkq2N/4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b0snBkCZLeU4jfAzLZKF3ObM7BNtv38HQiAYfNILet0TRsLmBMV/d04cEXqa78gTnJprWL/kHdd+uFUQ97s5ozMmOwPU35yQzzXlAq2oqijFZSYjwCIeH0o9lN6MC7lysbGW2yrGaqKt267Cj6N/yxS/E5l3MzhzVZeFhishgyw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=nsN/6VfE; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="nsN/6VfE" Received: from [192.168.30.162] (254C25E0.nat.pool.telekom.hu [37.76.37.224]) by mail.mainlining.org (Postfix) with ESMTPSA id 2F400E484D; Tue, 31 Dec 2024 16:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1735660876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mV7Q1mA6Gkos0E3Zx8HZwLxt9LcA2d1T+DCEDq3KTyM=; b=nsN/6VfEC8PktHmgQ/MYH+HEMReyIHg3lE9cELQlP1IUs/Hg5cxbU7EVGvTLkKxJ1o1AlV qaKW93+hqSrnRY47M5Xyx+7oGOn+8kFlsWSaBNaIa5KichT9BssafhlvXVSEK16tlcIuKP XF34syoEEIWUBdvLDqJ/1LP1CZCbwB8z0LdvtiuDfelnkpVAUpdeJXcDqKftP6LOQ1diEN 7WTbt3q3znlBA21N9u2sNrdrtTrJfJyLuhRe6D+jEoWVPEsKqxEN5B+sgwwEc6/MW0K/g/ kBMUe5Og6OGjiQKC2yBE9uvaZBQ0P3kSKZn0oSnLSEYF12eB3KSirIkIR6/qwA== From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Tue, 31 Dec 2024 17:00:50 +0100 Subject: [PATCH 2/4] clk: qcom: smd-rpm: Add clocks for MSM8937 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241231-rpmcc-v1-2-1212df9b2042@mainlining.org> References: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> In-Reply-To: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?QmFy?= =?utf-8?b?bmFiw6FzIEN6w6ltw6Fu?= , Daniil Titov X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735660873; l=2594; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=l/ob/gsTNz+Sh0thitcNhOKAaa6bVjD+d5VXUm2oFNo=; b=hYBf3Do7aIbUpZxNQpuodjBuKJCbhDHVrsF8K3ndieclJNjvVca9mfRZJ89jlH2Q95KGoNOpc CscdnHkPG6KDVYB1TbLGm2irc4TTtz+LZIhBTB1PEadJUXag9v+LPDq X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= From: Daniil Titov MSM8937 has mostly the same rpm clocks as MSM8953, but lacks RF_CLK3 and IPA_CLK. Signed-off-by: Daniil Titov Signed-off-by: Barnabás Czémán --- drivers/clk/qcom/clk-smd-rpm.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 45c5255bcd11bae69b83138ba1d5e52a8a3f3be8..b2992ee20cc3109daaeda22542faec5e61de0168 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -700,6 +700,32 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8936 = { .num_icc_clks = ARRAY_SIZE(bimc_pcnoc_snoc_smmnoc_icc_clks), }; +static struct clk_smd_rpm *msm8937_clks[] = { + [RPM_SMD_XO_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo, + [RPM_SMD_XO_A_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo_a, + [RPM_SMD_QDSS_CLK] = &clk_smd_rpm_qdss_clk, + [RPM_SMD_QDSS_A_CLK] = &clk_smd_rpm_qdss_a_clk, + [RPM_SMD_BB_CLK1] = &clk_smd_rpm_bb_clk1, + [RPM_SMD_BB_CLK1_A] = &clk_smd_rpm_bb_clk1_a, + [RPM_SMD_BB_CLK2] = &clk_smd_rpm_bb_clk2, + [RPM_SMD_BB_CLK2_A] = &clk_smd_rpm_bb_clk2_a, + [RPM_SMD_RF_CLK2] = &clk_smd_rpm_rf_clk2, + [RPM_SMD_RF_CLK2_A] = &clk_smd_rpm_rf_clk2_a, + [RPM_SMD_DIV_CLK2] = &clk_smd_rpm_div_clk2, + [RPM_SMD_DIV_A_CLK2] = &clk_smd_rpm_div_clk2_a, + [RPM_SMD_BB_CLK1_PIN] = &clk_smd_rpm_bb_clk1_pin, + [RPM_SMD_BB_CLK1_A_PIN] = &clk_smd_rpm_bb_clk1_a_pin, + [RPM_SMD_BB_CLK2_PIN] = &clk_smd_rpm_bb_clk2_pin, + [RPM_SMD_BB_CLK2_A_PIN] = &clk_smd_rpm_bb_clk2_a_pin, +}; + +static const struct rpm_smd_clk_desc rpm_clk_msm8937 = { + .clks = msm8937_clks, + .num_clks = ARRAY_SIZE(msm8937_clks), + .icc_clks = bimc_pcnoc_snoc_smmnoc_icc_clks, + .num_icc_clks = ARRAY_SIZE(bimc_pcnoc_snoc_smmnoc_icc_clks), +}; + static struct clk_smd_rpm *msm8974_clks[] = { [RPM_SMD_XO_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo, [RPM_SMD_XO_A_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo_a, @@ -1216,6 +1242,7 @@ static const struct of_device_id rpm_smd_clk_match_table[] = { { .compatible = "qcom,rpmcc-msm8916", .data = &rpm_clk_msm8916 }, { .compatible = "qcom,rpmcc-msm8917", .data = &rpm_clk_msm8917 }, { .compatible = "qcom,rpmcc-msm8936", .data = &rpm_clk_msm8936 }, + { .compatible = "qcom,rpmcc-msm8937", .data = &rpm_clk_msm8937 }, { .compatible = "qcom,rpmcc-msm8953", .data = &rpm_clk_msm8953 }, { .compatible = "qcom,rpmcc-msm8974", .data = &rpm_clk_msm8974 }, { .compatible = "qcom,rpmcc-msm8976", .data = &rpm_clk_msm8976 }, From patchwork Tue Dec 31 16:00:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13923882 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE72F1C683; Tue, 31 Dec 2024 16:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661403; cv=none; b=l4QPzajNVsEsIIa+Dc43XsyLJIV+p1ld5vZ0kPjoNNeVDfYoOdJBNsEMwG0XWvb9AT1u5ZYuTg+dX9fng19kFmfV3rik1Euk2KSlPqCAFaVLB2Dnp9rILfBHYewi8b1kQPSWOQOzQcDfqgUlVO46F23Ac3yY7VgXJPuTjLgClFw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661403; c=relaxed/simple; bh=1cYeVCa1cqFCojAdxxEbOjzcJ+8YkUGu48EGozYP1BA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RyX5hfSOu8IXskXjxg0h0ZDw9VShMk0UVy0VRhEpt3bS7GYMgPCOgbGk+FTBw8+d+NZLLSQP4XbNy1RAbqjbK9Z/pAJkjjzZHPMSFeOTzxixqcjTEdevsHy7mwMLc+K6eCZk9UbdOkcU+3f8Of0VvYH64aCh2tYy+fgqTRRdJ3k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=oCLGkiBK; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="oCLGkiBK" Received: from [192.168.30.162] (254C25E0.nat.pool.telekom.hu [37.76.37.224]) by mail.mainlining.org (Postfix) with ESMTPSA id 10B0AE484E; Tue, 31 Dec 2024 16:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1735660877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7tqrWvj7MAP+DSXKXlGXAA3BVwdXWO+loi5qVnWU4qk=; b=oCLGkiBKojvx4jKTGVZAraL5O+ee5rdruifc/bbbBH73tpwHem6JR5dB55Y3Xd2AKpc2F/ BrFsRfEcbY0udQCPMD8FcV7fNMQmijJc8jp5jQToxT9lqIW+airesCL9IQqNLudE7Rrhwi rVNsFXrQRfeujuWF7JHOj77y4Zy33Sxfs3X7jEjySsoVdhAdu1PUOu/cssOTIApbIGGQVd 1De2yKCTU7sUUCF6yGLjPvut4UiKjRfWxE+aqxoiP7pnjEK/UsOOvLGmZ8JW8x5X1hX+NB G64P0rtPzJata4Ni7wSx37PF71LC2YRBi1AIoo0jQsxZvxDdUNMwodSdsCxczA== From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Tue, 31 Dec 2024 17:00:51 +0100 Subject: [PATCH 3/4] dt-bindings: clock: qcom,rpmcc: Add MSM8940 compatible Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241231-rpmcc-v1-3-1212df9b2042@mainlining.org> References: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> In-Reply-To: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?QmFy?= =?utf-8?b?bmFiw6FzIEN6w6ltw6Fu?= , Daniil Titov X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735660873; l=1188; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=+B/k8lfRyPYXCbYKwvXEzA2xpb0TMTZSpGbxAyCxLwI=; b=/vyF/MuP57CxuPdKwxT/7J/6xWQtnCoc01cH8ydfkML+sqind7G6Nl8wJdKYU4aiUz5cBffxu aW7Lab0zMxPAeO6k7uVrYZYrBOr88Agur/oxL2Z3utlMrty9yJvFCr9 X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= From: Daniil Titov Document the qcom,rpmcc-msm8940 compatible. Signed-off-by: Daniil Titov Signed-off-by: Barnabás Czémán Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml index e58f43b1ab602a6fc8484a60dccafbfa52357dbb..be3835e2e04303dad483bf4b9d2e4ef3aab98c07 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml @@ -34,6 +34,7 @@ properties: - qcom,rpmcc-msm8917 - qcom,rpmcc-msm8936 - qcom,rpmcc-msm8937 + - qcom,rpmcc-msm8940 - qcom,rpmcc-msm8953 - qcom,rpmcc-msm8974 - qcom,rpmcc-msm8976 @@ -112,6 +113,7 @@ allOf: - qcom,rpmcc-msm8917 - qcom,rpmcc-msm8936 - qcom,rpmcc-msm8937 + - qcom,rpmcc-msm8940 - qcom,rpmcc-msm8953 - qcom,rpmcc-msm8974 - qcom,rpmcc-msm8976 From patchwork Tue Dec 31 16:00:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13923879 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE85C18787A; Tue, 31 Dec 2024 16:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661401; cv=none; b=cv0UD46DzrIxQTC+L4e6k0sYDLULud4TH4clToUgsW0kNziBK7pFi739XNMyttonMXQewRvKf5KzuFj1lgHXqRR390Zr7QsPHnvH95b3J+oszmYFB8yuKO9xSvf9vHD3EInAu+bs899JPfzlD8S4pjSQQpfw/i2Sd2KjzGdEgVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735661401; c=relaxed/simple; bh=Tb5xNZgfV4q7JGNfFQeVkpw+/siizt8XCXnKM1G/eyQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tyXMta7KaWEg/km3bsNfPLBeRbVvE83Cymw3XJuY4N/ON8E57xR67NF2E+KnBD6hZzUpvofJhfdKpqhsuBPjmUL32CgM92HjpowRg9EWvUf4hB6ZpDQSlphCZ+CQ9VqjV9k3PdUVidhbIx2auJepqOIhxALsBsew8EftT90acxM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=cPOydt6V; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="cPOydt6V" Received: from [192.168.30.162] (254C25E0.nat.pool.telekom.hu [37.76.37.224]) by mail.mainlining.org (Postfix) with ESMTPSA id 2B886E484F; Tue, 31 Dec 2024 16:01:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1735660878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/2e0rChM1U0ZS5e2rmenSOYMmW3o7RqX8ZqmpmV3JLM=; b=cPOydt6VBlG26PAEV+mRLVWNNqeBDT/blXuapnCyWkzA7BnYtDVmnm3zEaT96M1zJCnsDB aqhYDfA/sU+vzWLWUlp29KWpFlzNRslgDjKeGSLz2okUaWmw6EEE5cSZwDcWw9ReA50oIS O1f2B/MfuWXZGgY4+A41c5lXp6ce5OrTD2wzPD+wFf1suoN/W+Hz3ANuAsK11z+pK94KW2 zOYQOyUrF3XpNAPHXLoIORN0IpWBJ/A1tfi7NJk8OA4FPPXIAYBbRgh2cndkkgkYElOdYb buQgZDw8ktn2fEMLJnIMLQLcQC099I9gg4vdYCFlLgYaDmCQdhXjvPpCixSgSA== From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Tue, 31 Dec 2024 17:00:52 +0100 Subject: [PATCH 4/4] clk: qcom: smd-rpm: Add clocks for MSM8940 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241231-rpmcc-v1-4-1212df9b2042@mainlining.org> References: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> In-Reply-To: <20241231-rpmcc-v1-0-1212df9b2042@mainlining.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?QmFy?= =?utf-8?b?bmFiw6FzIEN6w6ltw6Fu?= , Daniil Titov X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735660873; l=2678; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=oCtbuZ2QCL4y+u0jLxZuuers8d8cXcJBkL/AYKhA5/M=; b=ylNJQRzEJcojoD+cfYlwTAsciBOTI5gaYp17oI01JIfddRSZwWB7eSWXtPa80FnRRbT8LHiou R48/VcDSnUoAerpDg1jPx+ptznxWY1K0JSqEXOWnOXzsZRGQoRQDJeb X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= From: Daniil Titov MSM8940 has mostly the same rpm clocks as MSM8953, but lacks RF_CLK3. Signed-off-by: Daniil Titov Signed-off-by: Barnabás Czémán --- drivers/clk/qcom/clk-smd-rpm.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index b2992ee20cc3109daaeda22542faec5e61de0168..7b91610f08914278173dfd2fe93b0463bf3e23eb 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -726,6 +726,34 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8937 = { .num_icc_clks = ARRAY_SIZE(bimc_pcnoc_snoc_smmnoc_icc_clks), }; +static struct clk_smd_rpm *msm8940_clks[] = { + [RPM_SMD_XO_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo, + [RPM_SMD_XO_A_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo_a, + [RPM_SMD_IPA_CLK] = &clk_smd_rpm_ipa_clk, + [RPM_SMD_IPA_A_CLK] = &clk_smd_rpm_ipa_a_clk, + [RPM_SMD_QDSS_CLK] = &clk_smd_rpm_qdss_clk, + [RPM_SMD_QDSS_A_CLK] = &clk_smd_rpm_qdss_a_clk, + [RPM_SMD_BB_CLK1] = &clk_smd_rpm_bb_clk1, + [RPM_SMD_BB_CLK1_A] = &clk_smd_rpm_bb_clk1_a, + [RPM_SMD_BB_CLK2] = &clk_smd_rpm_bb_clk2, + [RPM_SMD_BB_CLK2_A] = &clk_smd_rpm_bb_clk2_a, + [RPM_SMD_RF_CLK2] = &clk_smd_rpm_rf_clk2, + [RPM_SMD_RF_CLK2_A] = &clk_smd_rpm_rf_clk2_a, + [RPM_SMD_DIV_CLK2] = &clk_smd_rpm_div_clk2, + [RPM_SMD_DIV_A_CLK2] = &clk_smd_rpm_div_clk2_a, + [RPM_SMD_BB_CLK1_PIN] = &clk_smd_rpm_bb_clk1_pin, + [RPM_SMD_BB_CLK1_A_PIN] = &clk_smd_rpm_bb_clk1_a_pin, + [RPM_SMD_BB_CLK2_PIN] = &clk_smd_rpm_bb_clk2_pin, + [RPM_SMD_BB_CLK2_A_PIN] = &clk_smd_rpm_bb_clk2_a_pin, +}; + +static const struct rpm_smd_clk_desc rpm_clk_msm8940 = { + .clks = msm8940_clks, + .num_clks = ARRAY_SIZE(msm8940_clks), + .icc_clks = bimc_pcnoc_snoc_smmnoc_icc_clks, + .num_icc_clks = ARRAY_SIZE(bimc_pcnoc_snoc_smmnoc_icc_clks), +}; + static struct clk_smd_rpm *msm8974_clks[] = { [RPM_SMD_XO_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo, [RPM_SMD_XO_A_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo_a, @@ -1243,6 +1271,7 @@ static const struct of_device_id rpm_smd_clk_match_table[] = { { .compatible = "qcom,rpmcc-msm8917", .data = &rpm_clk_msm8917 }, { .compatible = "qcom,rpmcc-msm8936", .data = &rpm_clk_msm8936 }, { .compatible = "qcom,rpmcc-msm8937", .data = &rpm_clk_msm8937 }, + { .compatible = "qcom,rpmcc-msm8940", .data = &rpm_clk_msm8940 }, { .compatible = "qcom,rpmcc-msm8953", .data = &rpm_clk_msm8953 }, { .compatible = "qcom,rpmcc-msm8974", .data = &rpm_clk_msm8974 }, { .compatible = "qcom,rpmcc-msm8976", .data = &rpm_clk_msm8976 },