From: Matthias Brugger <mbrugger@suse.com>
To: AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
ulfh@kernel.org
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
matthias.bgg@gmail.com, nfraprado@collabora.com,
irving-ch.lin@mediatek.com, macpaul.lin@mediatek.com,
aford173@gmail.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, justin.yeh@mediatek.com,
kernel@collabora.com
Subject: Re: [PATCH 4/4] pmdomain: mediatek: Add support for MT8196 HFRP DirectCTL domains
Date: Mon, 6 Jul 2026 17:21:30 +0200 [thread overview]
Message-ID: <747bb78f-5ebf-40cf-9922-98e69920a9d8@suse.com> (raw)
In-Reply-To: <20260701121920.19347-5-angelogioacchino.delregno@collabora.com>
On 01/07/2026 14:19, AngeloGioacchino Del Regno wrote:
> Add support for the power domains provided by the HFRPSYS Power
> Controller of the MT8196 SoC.
> Those control power to the eDP and DP Transmitter IPs.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
> ---
> drivers/pmdomain/mediatek/mt8196-pm-domains.h | 27 +++++++++++++++++++
> drivers/pmdomain/mediatek/mtk-pm-domains.c | 4 +++
> 2 files changed, 31 insertions(+)
>
> diff --git a/drivers/pmdomain/mediatek/mt8196-pm-domains.h b/drivers/pmdomain/mediatek/mt8196-pm-domains.h
> index 2e4b28720659..d704c9fa9337 100644
> --- a/drivers/pmdomain/mediatek/mt8196-pm-domains.h
> +++ b/drivers/pmdomain/mediatek/mt8196-pm-domains.h
> @@ -602,6 +602,27 @@ static const struct scpsys_hwv_domain_data hfrpsys_hwv_domain_data_mt8196[] = {
> },
> };
>
> +static const struct scpsys_domain_data hfrpsys_domain_data_mt8196[] = {
> + [MT8196_POWER_DOMAIN_EDPTX] = {
> + .name = "edp-tx",
> + .sta_mask = MT8196_PWR_ACK,
> + .sta2nd_mask = MT8196_PWR_ACK_2ND,
> + .ctl_offs = 0x74,
> + .pwr_sta_offs = 0x74,
> + .pwr_sta2nd_offs = 0x74,
> + .caps = MTK_SCPD_SIMPLE_PWRSEQ,
> + },
> + [MT8196_POWER_DOMAIN_DPTX] = {
> + .name = "dp-tx",
> + .sta_mask = MT8196_PWR_ACK,
> + .sta2nd_mask = MT8196_PWR_ACK_2ND,
> + .ctl_offs = 0x78,
> + .pwr_sta_offs = 0x78,
> + .pwr_sta2nd_offs = 0x78,
> + .caps = MTK_SCPD_SIMPLE_PWRSEQ,
> + },
> +};
> +
> static const struct scpsys_soc_data mt8196_scpsys_data = {
> .domains_data = scpsys_domain_data_mt8196,
> .num_domains = ARRAY_SIZE(scpsys_domain_data_mt8196),
> @@ -616,6 +637,12 @@ static const struct scpsys_soc_data mt8196_scpsys_hwv_data = {
> .type = SCPSYS_MTCMOS_TYPE_HW_VOTER,
> };
>
> +static const struct scpsys_soc_data mt8196_hfrpsys_data = {
> + .domains_data = hfrpsys_domain_data_mt8196,
> + .num_domains = ARRAY_SIZE(hfrpsys_domain_data_mt8196),
> + .type = SCPSYS_MTCMOS_TYPE_DIRECT_CTL,
> +};
> +
> static const struct scpsys_soc_data mt8196_hfrpsys_hwv_data = {
> .hwv_domains_data = hfrpsys_hwv_domain_data_mt8196,
> .num_hwv_domains = ARRAY_SIZE(hfrpsys_hwv_domain_data_mt8196),
> diff --git a/drivers/pmdomain/mediatek/mtk-pm-domains.c b/drivers/pmdomain/mediatek/mtk-pm-domains.c
> index 5276adea1d04..f69cf69ba0f6 100644
> --- a/drivers/pmdomain/mediatek/mtk-pm-domains.c
> +++ b/drivers/pmdomain/mediatek/mtk-pm-domains.c
> @@ -1252,6 +1252,10 @@ static const struct of_device_id scpsys_of_match[] = {
> .compatible = "mediatek,mt8196-power-controller",
> .data = &mt8196_scpsys_data,
> },
> + {
> + .compatible = "mediatek,mt8196-hfrp-power-controller",
> + .data = &mt8196_hfrpsys_data,
> + },
> {
> .compatible = "mediatek,mt8196-hwv-hfrp-power-controller",
> .data = &mt8196_hfrpsys_hwv_data,
prev parent reply other threads:[~2026-07-06 15:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 12:19 [PATCH 0/4] pmdomains: Fixes and add support for HFRP Direct AngeloGioacchino Del Regno
2026-07-01 12:19 ` [PATCH 1/4] dt-bindings: power: mediatek: Add support for MT8196 direct HFRP AngeloGioacchino Del Regno
2026-07-06 15:06 ` Matthias Brugger
2026-07-01 12:19 ` [PATCH 2/4] pmdomain: mediatek: Respect PD relationships during error cleanup AngeloGioacchino Del Regno
2026-07-01 12:35 ` sashiko-bot
2026-07-06 15:09 ` Matthias Brugger
2026-07-01 12:19 ` [PATCH 3/4] pmdomain: mediatek: Add support for Direct CTL simple power sequence AngeloGioacchino Del Regno
2026-07-01 12:44 ` sashiko-bot
2026-07-06 15:20 ` Matthias Brugger
2026-07-01 12:19 ` [PATCH 4/4] pmdomain: mediatek: Add support for MT8196 HFRP DirectCTL domains AngeloGioacchino Del Regno
2026-07-01 13:00 ` sashiko-bot
2026-07-06 15:21 ` Matthias Brugger [this message]
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=747bb78f-5ebf-40cf-9922-98e69920a9d8@suse.com \
--to=mbrugger@suse.com \
--cc=aford173@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=irving-ch.lin@mediatek.com \
--cc=justin.yeh@mediatek.com \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=macpaul.lin@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=nfraprado@collabora.com \
--cc=robh@kernel.org \
--cc=ulfh@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