From: Amelie Delaunay <amelie.delaunay@foss.st.com>
To: Gabriel Fernandez <gabriel.fernandez@foss.st.com>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Rob Herring <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Christophe Roullier <christophe.roullier@foss.st.com>
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
<linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5 3/5] soc: st: stm32mp2-syscfg: register the clock device
Date: Thu, 3 Dec 2026 11:01:18 +0100 [thread overview]
Message-ID: <1f8c776b-1aa5-4e47-a234-d012dc1e9641@foss.st.com> (raw)
In-Reply-To: <20261201-ups_mp25_clk_syscfg-v5-3-aaf559bf6c15@foss.st.com>
On 12/1/26 09:33, Gabriel Fernandez wrote:
> From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
>
> The STM32MP23x and STM32MP25x SYSCFG provides the LTDC pixel clock mux,
> whose driver is an auxiliary driver since the SYSCFG node is bound to
> this driver.
>
> Create the auxiliary device for the clock driver.
>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> [gabriel.fernandez@foss.st.com: create the device on STM32MP23x too]
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
> ---
> drivers/soc/st/Kconfig | 1 +
> drivers/soc/st/stm32mp2-syscfg.c | 19 ++++++++++++++++++-
> 2 files changed, 19 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/soc/st/Kconfig b/drivers/soc/st/Kconfig
> index 2a9d6a77be45..62bbe8c63238 100644
> --- a/drivers/soc/st/Kconfig
> +++ b/drivers/soc/st/Kconfig
> @@ -5,6 +5,7 @@ config SOC_STM32MP2
> tristate "STM32MP2 SoC family support"
> depends on ARCH_STM32 || COMPILE_TEST
> default ARCH_STM32 && ARM64
> + select AUXILIARY_BUS
> select SOC_BUS
> help
> If you say yes here, you get support for the ST STM32MP2 family
> diff --git a/drivers/soc/st/stm32mp2-syscfg.c b/drivers/soc/st/stm32mp2-syscfg.c
> index 770321a4a6f7..f77f41e38d97 100644
> --- a/drivers/soc/st/stm32mp2-syscfg.c
> +++ b/drivers/soc/st/stm32mp2-syscfg.c
> @@ -3,13 +3,30 @@
> * Copyright 2026 Marek Vasut
> */
>
> +#include <linux/auxiliary_bus.h>
> #include <linux/module.h>
> +#include <linux/of.h>
> #include <linux/of_platform.h>
> #include <linux/platform_device.h>
>
> static int stm32mp2_syscfg_probe(struct platform_device *pdev)
> {
> - return devm_of_platform_populate(&pdev->dev);
> + struct device *dev = &pdev->dev;
> + int ret;
> +
> + ret = devm_of_platform_populate(dev);
> + if (ret)
> + return ret;
Minor improvement, return dev_err_probe() here?
Anyway, since the existing driver already returns the error without
logging it,
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Thanks,
Amélie
> +
> + /* The LTDC pixel clock mux needs the SYSCFG clock inputs */
> + if (!of_property_present(dev->of_node, "clocks"))
> + return 0;
> +
> + if (!devm_auxiliary_device_create(dev, "clk", NULL))
> + return dev_err_probe(dev, -ENODEV,
> + "failed to register the clock device\n");
> +
> + return 0;
> }
>
> static const struct of_device_id stm32mp2_syscfg_ids[] = {
>
next prev parent reply other threads:[~2026-12-03 10:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:33 [PATCH v5 0/5] clk: stm32: Add the STM32MP2 SYSCFG LTDC pixel clock mux Gabriel Fernandez
2026-12-01 8:33 ` [PATCH v5 1/5] dt-bindings: arm: stm32: Add clock inputs to STM32MP2 SYSCFG Gabriel Fernandez
2026-12-01 8:33 ` [PATCH v5 2/5] clk: stm32: Add STM32MP25 SYSCFG clock driver Gabriel Fernandez
2026-12-01 8:33 ` [PATCH v5 3/5] soc: st: stm32mp2-syscfg: register the clock device Gabriel Fernandez
2026-12-03 10:01 ` Amelie Delaunay [this message]
2026-12-01 8:33 ` [PATCH v5 4/5] arm64: dts: st: add LTDC pixel clock mux inputs on stm32mp23 Gabriel Fernandez
2026-12-03 10:04 ` Amelie Delaunay
2026-12-01 8:33 ` [PATCH v5 5/5] arm64: dts: st: add LTDC pixel clock mux inputs on stm32mp25 Gabriel Fernandez
2026-12-03 10:05 ` Amelie Delaunay
2026-12-01 16:04 ` [PATCH v5 0/5] clk: stm32: Add the STM32MP2 SYSCFG LTDC pixel clock mux Brian Masney
2026-12-02 8:38 ` Gabriel FERNANDEZ
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=1f8c776b-1aa5-4e47-a234-d012dc1e9641@foss.st.com \
--to=amelie.delaunay@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=bmasney+clk@redhat.com \
--cc=christophe.roullier@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=dario.binacchi@amarulasolutions.com \
--cc=devicetree@vger.kernel.org \
--cc=gabriel.fernandez@foss.st.com \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh@kernel.org \
--cc=sboyd@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