From: "André Draszik" <andre.draszik@linaro.org>
To: Peter Griffin <peter.griffin@linaro.org>,
lee@kernel.org, arnd@arndb.de, krzk@kernel.org,
alim.akhtar@samsung.com
Cc: linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
tudor.ambarus@linaro.org, saravanak@google.com,
willmcvicker@google.com, semen.protsenko@linaro.org,
kernel-team@android.com
Subject: Re: [PATCH 1/2] mfd: syscon: add of_syscon_register_regmap() API
Date: Mon, 17 Jun 2024 10:35:03 +0100 [thread overview]
Message-ID: <dec7f7542d1445818a02d2adbd4d5942fe80ce7d.camel@linaro.org> (raw)
In-Reply-To: <20240614140421.3172674-2-peter.griffin@linaro.org>
On Fri, 2024-06-14 at 15:04 +0100, Peter Griffin wrote:
> The of_syscon_register_regmap() API allows an externally created regmap
> to be registered with syscon. This regmap can then be returned to client
> drivers using the syscon_regmap_lookup_by_phandle() APIs.
>
> The API is used by platforms where mmio access to the syscon registers is
> not possible, and a underlying soc driver like exynos-pmu provides a SoC
> specific regmap that can issue a SMC or hypervisor call to write the
> register.
>
> This approach keeps the SoC complexities out of syscon, but allows common
> drivers such as syscon-poweroff, syscon-reboot and friends that are used
> by many SoCs already to be re-used.
>
> Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
With this series, the exynos5 usb phy driver works on gs101 without
having to patch it to use exynos_get_pmu_regmap_by_phandle() instead
of the standard syscon_regmap_lookup_by_phandle():
Tested-by: André Draszik <andre.draszik@linaro.org>
next prev parent reply other threads:[~2024-06-17 9:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-14 14:04 [PATCH 0/2] Add syscon of_syscon_register_regmap api Peter Griffin
2024-06-14 14:04 ` [PATCH 1/2] mfd: syscon: add of_syscon_register_regmap() API Peter Griffin
2024-06-17 9:35 ` André Draszik [this message]
2024-06-18 14:43 ` Arnd Bergmann
2024-06-18 17:50 ` Sam Protsenko
2024-06-19 6:29 ` Krzysztof Kozlowski
2024-06-19 8:17 ` Peter Griffin
2024-06-14 14:04 ` [PATCH 2/2] soc: samsung: exynos-pmu: update to use of_syscon_register_regmap() Peter Griffin
2024-06-17 9:35 ` André Draszik
2024-06-18 14:43 ` Arnd Bergmann
2024-06-18 17:47 ` Sam Protsenko
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=dec7f7542d1445818a02d2adbd4d5942fe80ce7d.camel@linaro.org \
--to=andre.draszik@linaro.org \
--cc=alim.akhtar@samsung.com \
--cc=arnd@arndb.de \
--cc=kernel-team@android.com \
--cc=krzk@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=peter.griffin@linaro.org \
--cc=saravanak@google.com \
--cc=semen.protsenko@linaro.org \
--cc=tudor.ambarus@linaro.org \
--cc=willmcvicker@google.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®