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: 854499 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: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: 854500 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 },