From: Marek Szyprowski <m.szyprowski@samsung.com>
To: Sam Protsenko <semen.protsenko@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Cc: Alim Akhtar <alim.akhtar@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Chanho Park <chanho61.park@samsung.com>,
David Virag <virag.david003@gmail.com>,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/6] soc: samsung: pm_domains: Add Exynos850 support
Date: Thu, 9 Mar 2023 11:12:59 +0100 [thread overview]
Message-ID: <d1175c3e-301d-1cbc-607c-e94051780806@samsung.com> (raw)
In-Reply-To: <20230308230931.27261-1-semen.protsenko@linaro.org>
Hi Sam,
On 09.03.2023 00:09, Sam Protsenko wrote:
> Power Domains in Exynos850 are not really different from other Exynos
> platforms. Enabling Exynos850 support in the PD driver is really just a
> matter of adding:
>
> static const struct exynos_pm_domain_config exynos850_cfg = {
> .local_pwr_cfg = 0x1,
> };
>
> to the driver. But in the face of recent developments, e.g. this patch:
>
> arm64: dts: exynos: move MIPI phy to PMU node in Exynos5433
>
> it looked logical to rework the PD driver a bit to support its nesting
> under the PMU node, while adding Exynos850 support to it. Initially I
> only wanted to add syscon regmap support via some dedicated property,
> but pulling PD nodes under the PMU syscon looks like more correct way.
Frankly speaking if you are changing this, you can go even further.
Simply make PMU node a PM domain provider and specify the power domain
as a phandle parameter. This is how it should have been done from the
beginning, but for some unknown reasons wasn't. There is really no need
to have a separate node for each power domain. This will also move
implementation details to the PMU / power domain drivers and it will
make it much easier to extend/modify it in the future. IMHO same applies
for PHY nodes.
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
next prev parent reply other threads:[~2023-03-09 10:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230308230935eucas1p1e919f4d4b020e3386ce0eac8b4c8d299@eucas1p1.samsung.com>
2023-03-08 23:09 ` Sam Protsenko
2023-03-08 23:09 ` [PATCH 1/6] dt-bindings: power: pd-samsung: " Sam Protsenko
2023-03-09 9:15 ` Krzysztof Kozlowski
2023-03-08 23:09 ` [PATCH 2/6] dt-bindings: power: pd-samsung: Allow pd nodes to be children of PMU Sam Protsenko
2023-03-10 14:41 ` Krzysztof Kozlowski
2023-03-08 23:09 ` [PATCH 3/6] soc: samsung: pm_domains: Extract DT handling into a separate function Sam Protsenko
2023-03-08 23:09 ` [PATCH 4/6] soc: samsung: pm_domains: Implement proper I/O operations Sam Protsenko
2023-03-09 0:45 ` kernel test robot
2023-03-08 23:09 ` [PATCH 5/6] soc: samsung: pm_domains: Allow PD to be a child of PMU syscon Sam Protsenko
2023-03-08 23:09 ` [PATCH 6/6] soc: samsung: pm_domains: Add Exynos850 support Sam Protsenko
2023-03-09 10:12 ` Marek Szyprowski [this message]
2023-03-10 14:41 ` [PATCH 0/6] " Krzysztof Kozlowski
2023-03-20 17:57 ` Sam Protsenko
2023-03-22 18:52 ` Krzysztof Kozlowski
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=d1175c3e-301d-1cbc-607c-e94051780806@samsung.com \
--to=m.szyprowski@samsung.com \
--cc=alim.akhtar@samsung.com \
--cc=chanho61.park@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=semen.protsenko@linaro.org \
--cc=virag.david003@gmail.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
all inboxes | Powered by JetHome®