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 },