From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Praveen Talari <praveen.talari@oss.qualcomm.com>,
Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>,
Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
bjorn.andersson@oss.qualcomm.com,
dmitry.baryshkov@oss.qualcomm.com
Cc: prasad.sodagudi@oss.qualcomm.com, quic_vtanuku@quicinc.com,
aniket.randive@oss.qualcomm.com,
chandana.chiluveru@oss.qualcomm.com,
jyothi.seerapu@oss.qualcomm.com, chiluka.harish@oss.qualcomm.com
Subject: Re: [PATCH v5 13/13] i2c: qcom-geni: Enable I2C on SA8255p Qualcomm platforms
Date: Tue, 17 Feb 2026 12:50:03 +0100 [thread overview]
Message-ID: <389dc762-bd20-44e5-a3fc-256b42f3c82a@oss.qualcomm.com> (raw)
In-Reply-To: <20260206174112.4149893-14-praveen.talari@oss.qualcomm.com>
On 2/6/26 6:41 PM, Praveen Talari wrote:
> The Qualcomm automotive SA8255p SoC relies on firmware to configure
> platform resources, including clocks, interconnects and TLMM.
> The driver requests resources operations over SCMI using power
> and performance protocols.
>
> The SCMI power protocol enables or disables resources like clocks,
> interconnect paths, and TLMM (GPIOs) using runtime PM framework APIs,
> such as resume/suspend, to control power on/off.
>
> The SCMI performance protocol manages I2C frequency, with each
> frequency rate represented by a performance level. The driver uses
> geni_se_set_perf_opp() API to request the desired frequency rate..
>
> As part of geni_se_set_perf_opp(), the OPP for the requested frequency
> is obtained using dev_pm_opp_find_freq_floor() and the performance
> level is set using dev_pm_opp_set_opp().
>
> Acked-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
> Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
> ---
[...]
> @@ -215,6 +220,7 @@ static void qcom_geni_i2c_conf(struct geni_i2c_dev *gi2c)
> val |= itr->t_low_cnt << LOW_COUNTER_SHFT;
> val |= itr->t_cycle_cnt;
> writel_relaxed(val, gi2c->se.base + SE_I2C_SCL_COUNTERS);
> + return 0;
ultra nit: a \n before return statements is preferred
[...]
> static const struct geni_i2c_desc i2c_master_hub = {
> .no_dma_support = true,
> .tx_fifo_depth = 16,
> + .resources_init = geni_i2c_resources_init,
> + .set_rate = qcom_geni_i2c_conf,
> + .power_on = geni_se_resources_activate,
> + .power_off = geni_se_resources_deactivate,
> +};
> +
> +static const struct geni_i2c_desc sa8255p_geni_i2c = {
> + .resources_init = geni_se_domain_attach,
> + .set_rate = geni_se_set_perf_opp,
I noticed that because this lacks .power_on/off, the
pinctrl_pm_select_xxx_state() functions are never called. Are the GPIOs
managed through the power/perf domains of the QUP devices too? (I would
assume not since there's a TLMM node in [0])
Konrad
[0] https://lore.kernel.org/linux-arm-msm/20250422231249.871995-1-quic_djaggi@quicinc.com/
next prev parent reply other threads:[~2026-02-17 11:50 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 17:40 [PATCH v5 00/13] Enable I2C on SA8255p Qualcomm platforms Praveen Talari
2026-02-06 17:41 ` [PATCH v5 01/13] soc: qcom: geni-se: Refactor geni_icc_get() and make qup-memory ICC path optional Praveen Talari
2026-02-06 17:41 ` [PATCH v5 02/13] soc: qcom: geni-se: Add geni_icc_set_bw_ab() function Praveen Talari
2026-02-06 17:41 ` [PATCH v5 03/13] soc: qcom: geni-se: Introduce helper API for resource initialization Praveen Talari
2026-02-06 17:41 ` [PATCH v5 04/13] soc: qcom: geni-se: Handle core clk in geni_se_clks_off() and geni_se_clks_on() Praveen Talari
2026-02-06 17:41 ` [PATCH v5 05/13] soc: qcom: geni-se: Add resources activation/deactivation helpers Praveen Talari
2026-02-17 12:02 ` Konrad Dybcio
2026-02-23 13:39 ` Praveen Talari
2026-02-25 14:38 ` Konrad Dybcio
2026-02-06 17:41 ` [PATCH v5 06/13] soc: qcom: geni-se: Introduce helper API for attaching power domains Praveen Talari
2026-02-17 11:39 ` Konrad Dybcio
2026-02-19 14:58 ` Praveen Talari
2026-02-19 15:07 ` Konrad Dybcio
2026-02-06 17:41 ` [PATCH v5 07/13] soc: qcom: geni-se: Introduce helper APIs for performance control Praveen Talari
2026-02-25 14:28 ` Konrad Dybcio
2026-02-26 3:52 ` Praveen Talari
2026-02-06 17:41 ` [PATCH v5 08/13] dt-bindings: i2c: Describe SA8255p Praveen Talari
2026-02-06 17:41 ` [PATCH v5 09/13] i2c: qcom-geni: Isolate serial engine setup Praveen Talari
2026-02-06 17:41 ` [PATCH v5 10/13] i2c: qcom-geni: Move resource initialization to separate function Praveen Talari
2026-02-06 17:41 ` [PATCH v5 11/13] i2c: qcom-geni: Use resources helper APIs in runtime PM functions Praveen Talari
2026-02-17 11:55 ` Konrad Dybcio
2026-02-06 17:41 ` [PATCH v5 12/13] i2c: qcom-geni: Store of_device_id data in driver private struct Praveen Talari
2026-02-17 11:46 ` Konrad Dybcio
2026-02-19 14:48 ` Praveen Talari
2026-02-06 17:41 ` [PATCH v5 13/13] i2c: qcom-geni: Enable I2C on SA8255p Qualcomm platforms Praveen Talari
2026-02-17 11:50 ` Konrad Dybcio [this message]
2026-02-19 14:46 ` Praveen Talari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=389dc762-bd20-44e5-a3fc-256b42f3c82a@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=aniket.randive@oss.qualcomm.com \
--cc=bjorn.andersson@oss.qualcomm.com \
--cc=chandana.chiluveru@oss.qualcomm.com \
--cc=chiluka.harish@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=jyothi.seerapu@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mukesh.savaliya@oss.qualcomm.com \
--cc=prasad.sodagudi@oss.qualcomm.com \
--cc=praveen.talari@oss.qualcomm.com \
--cc=quic_vtanuku@quicinc.com \
--cc=robh@kernel.org \
--cc=viken.dadhaniya@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox