From: Frank Li <Frank.li@nxp.com>
To: Joy Zou <joy.zou@nxp.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com, peng.fan@nxp.com,
richardcochran@gmail.com, catalin.marinas@arm.com,
will@kernel.org, ulf.hansson@linaro.org, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, mcoquelin.stm32@gmail.com,
alexandre.torgue@foss.st.com, frieder.schrempf@kontron.de,
primoz.fiser@norik.com, othacehe@gnu.org,
Markus.Niebel@ew.tq-group.com, alexander.stein@ew.tq-group.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux@ew.tq-group.com, netdev@vger.kernel.org,
linux-pm@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com
Subject: Re: [PATCH v8 10/11] pmdomain: imx93-blk-ctrl: mask DSI and PXP PD domain register on i.MX91
Date: Wed, 6 Aug 2025 11:51:54 -0400 [thread overview]
Message-ID: <aJN6GozZ9c/apcdP@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20250806114119.1948624-11-joy.zou@nxp.com>
On Wed, Aug 06, 2025 at 07:41:18PM +0800, Joy Zou wrote:
> The i.MX91 is derived from i.MX93, but there is no DSI and PXP in i.MX91,
> Add skip_mask in struct imx93_blk_ctrl_data, then skip DSI and PXP for
> i.MX91 Soc.
>
> Signed-off-by: Joy Zou <joy.zou@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> ---
> Changes for v8:
> 1. modify commit message.
>
> Changes for v7:
> 1. Optimize i.MX91 num_clks hardcode with ARRAY_SIZE().
>
> Changes for v5:
> 1. The i.MX91 has different PD domain compared to i.MX93,
> so add new imx91 dev_data.
> ---
> drivers/pmdomain/imx/imx93-blk-ctrl.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c
> index 1dcb84593e01..e094fe5a42bf 100644
> --- a/drivers/pmdomain/imx/imx93-blk-ctrl.c
> +++ b/drivers/pmdomain/imx/imx93-blk-ctrl.c
> @@ -86,6 +86,7 @@ struct imx93_blk_ctrl_domain {
>
> struct imx93_blk_ctrl_data {
> const struct imx93_blk_ctrl_domain_data *domains;
> + u32 skip_mask;
> int num_domains;
> const char * const *clk_names;
> int num_clks;
> @@ -250,6 +251,8 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev)
> int j;
>
> domain->data = data;
> + if (bc_data->skip_mask & BIT(i))
> + continue;
>
> for (j = 0; j < data->num_clks; j++)
> domain->clks[j].id = data->clk_names[j];
> @@ -422,6 +425,15 @@ static const char * const media_blk_clk_names[] = {
> "axi", "apb", "nic"
> };
>
> +static const struct imx93_blk_ctrl_data imx91_media_blk_ctl_dev_data = {
> + .domains = imx93_media_blk_ctl_domain_data,
> + .skip_mask = BIT(IMX93_MEDIABLK_PD_MIPI_DSI) | BIT(IMX93_MEDIABLK_PD_PXP),
> + .num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
> + .clk_names = media_blk_clk_names,
> + .num_clks = ARRAY_SIZE(media_blk_clk_names),
> + .reg_access_table = &imx93_media_blk_ctl_access_table,
> +};
> +
> static const struct imx93_blk_ctrl_data imx93_media_blk_ctl_dev_data = {
> .domains = imx93_media_blk_ctl_domain_data,
> .num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
> @@ -432,6 +444,9 @@ static const struct imx93_blk_ctrl_data imx93_media_blk_ctl_dev_data = {
>
> static const struct of_device_id imx93_blk_ctrl_of_match[] = {
> {
> + .compatible = "fsl,imx91-media-blk-ctrl",
> + .data = &imx91_media_blk_ctl_dev_data
> + }, {
> .compatible = "fsl,imx93-media-blk-ctrl",
> .data = &imx93_media_blk_ctl_dev_data
> }, {
> --
> 2.37.1
>
next prev parent reply other threads:[~2025-08-06 15:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-06 11:41 [PATCH v8 00/11] Add i.MX91 platform support Joy Zou
2025-08-06 11:41 ` [PATCH v8 01/11] dt-bindings: arm: fsl: add i.MX91 11x11 evk board Joy Zou
2025-08-06 15:50 ` Frank Li
2025-08-22 8:40 ` Shawn Guo
2025-08-06 11:41 ` [PATCH v8 02/11] dt-bindings: soc: imx-blk-ctrl: add i.MX91 blk-ctrl compatible Joy Zou
2025-08-06 11:41 ` [PATCH v8 03/11] arm64: dts: freescale: move aliases from imx93.dtsi to board dts Joy Zou
2025-08-22 8:42 ` Shawn Guo
2025-08-06 11:41 ` [PATCH v8 04/11] arm64: dts: freescale: rename imx93.dtsi to imx91_93_common.dtsi and modify them Joy Zou
2025-08-06 11:41 ` [PATCH v8 05/11] arm64: dts: imx91: add i.MX91 dtsi support Joy Zou
2025-08-06 11:41 ` [PATCH v8 06/11] arm64: dts: freescale: add i.MX91 11x11 EVK basic support Joy Zou
2025-08-06 11:41 ` [PATCH v8 07/11] arm64: dts: imx93-11x11-evk: remove fec property eee-broken-1000t Joy Zou
2025-08-06 11:41 ` [PATCH v8 08/11] arm64: defconfig: enable i.MX91 pinctrl Joy Zou
2025-08-22 8:42 ` Shawn Guo
2025-08-06 11:41 ` [PATCH v8 09/11] pmdomain: imx93-blk-ctrl: use ARRAY_SIZE() instead of hardcode number Joy Zou
2025-08-06 11:41 ` [PATCH v8 10/11] pmdomain: imx93-blk-ctrl: mask DSI and PXP PD domain register on i.MX91 Joy Zou
2025-08-06 15:51 ` Frank Li [this message]
2025-08-06 11:41 ` [PATCH v8 11/11] net: stmmac: imx: add i.MX91 support Joy Zou
2025-08-06 13:48 ` Russell King (Oracle)
2025-08-19 12:26 ` [PATCH v8 00/11] Add i.MX91 platform support Ulf Hansson
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=aJN6GozZ9c/apcdP@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=Markus.Niebel@ew.tq-group.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=festevam@gmail.com \
--cc=frieder.schrempf@kontron.de \
--cc=imx@lists.linux.dev \
--cc=joy.zou@nxp.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux@ew.tq-group.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=othacehe@gnu.org \
--cc=pabeni@redhat.com \
--cc=peng.fan@nxp.com \
--cc=primoz.fiser@norik.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=will@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).