* [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes
@ 2025-03-24 9:40 Patrice Chotard
2025-03-24 9:40 ` [PATCH v2 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Patrice Chotard @ 2025-03-24 9:40 UTC (permalink / raw)
To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Philipp Zabel
Cc: Krzysztof Kozlowski, christophe.kerello, linux-spi, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel, Patrice Chotard
Make "resets" property mandatory.
Update spi-stm32-ospi driver and dt-bindings accordingly.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
Changes in v2:
- Update dt-bindings commit message to explain why OSPI's resets becomes
a required property.
- Link to v1: https://lore.kernel.org/r/20250321-upstream_ospi_required_resets-v1-0-9aa4702e3ae2@foss.st.com
---
Patrice Chotard (2):
spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property
spi: spi-stm32-ospi: Make "resets" a required property
Documentation/devicetree/bindings/spi/st,stm32mp25-ospi.yaml | 1 +
drivers/spi/spi-stm32-ospi.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
base-commit: e94bd4ec45ac156616da285a0bf03056cd7430fc
change-id: 20250321-upstream_ospi_required_resets-34a8b17611b6
Best regards,
--
Patrice Chotard <patrice.chotard@foss.st.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property
2025-03-24 9:40 [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes Patrice Chotard
@ 2025-03-24 9:40 ` Patrice Chotard
2025-03-24 16:28 ` Krzysztof Kozlowski
2025-03-24 9:40 ` [PATCH v2 2/2] spi: spi-stm32-ospi: " Patrice Chotard
2025-04-08 16:43 ` [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes Mark Brown
2 siblings, 1 reply; 5+ messages in thread
From: Patrice Chotard @ 2025-03-24 9:40 UTC (permalink / raw)
To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Philipp Zabel
Cc: Krzysztof Kozlowski, christophe.kerello, linux-spi, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel, Patrice Chotard
On STM32MP2x SoC's family, OSPI is child of Octo Memory Manager which
must have asccess to OSPI's reset to ensure its initialization.
Make "resets" a required property.
Fixes: bed97e35786a ("dt-bindings: spi: Add STM32 OSPI controller")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
Documentation/devicetree/bindings/spi/st,stm32mp25-ospi.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/spi/st,stm32mp25-ospi.yaml b/Documentation/devicetree/bindings/spi/st,stm32mp25-ospi.yaml
index 5f276f27dc4c1fd2056f129cafc1005eaee8008f..272bc308726b2dfdf3ec80740d70e0fd1bfc4fea 100644
--- a/Documentation/devicetree/bindings/spi/st,stm32mp25-ospi.yaml
+++ b/Documentation/devicetree/bindings/spi/st,stm32mp25-ospi.yaml
@@ -68,6 +68,7 @@ required:
- compatible
- reg
- clocks
+ - resets
- interrupts
- st,syscfg-dlyb
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] spi: spi-stm32-ospi: Make "resets" a required property
2025-03-24 9:40 [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes Patrice Chotard
2025-03-24 9:40 ` [PATCH v2 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
@ 2025-03-24 9:40 ` Patrice Chotard
2025-04-08 16:43 ` [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Patrice Chotard @ 2025-03-24 9:40 UTC (permalink / raw)
To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, Philipp Zabel
Cc: Krzysztof Kozlowski, christophe.kerello, linux-spi, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel, Patrice Chotard
On some STM32MP2 SoCs, an Octo Memory Manager is embedded and
need to retrieve OSPI's reset to perform its own initialization.
Make "resets" property mandatory.
Fixes: 79b8a705e26c ("spi: stm32: Add OSPI driver")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
drivers/spi/spi-stm32-ospi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-stm32-ospi.c b/drivers/spi/spi-stm32-ospi.c
index d4f413c8c3ce1a51d2302602d46c7605a8bbc605..d3839a4dacf9f2eb95bafad9f7a8538ce2bb3598 100644
--- a/drivers/spi/spi-stm32-ospi.c
+++ b/drivers/spi/spi-stm32-ospi.c
@@ -804,7 +804,7 @@ static int stm32_ospi_get_resources(struct platform_device *pdev)
return ret;
}
- ospi->rstc = devm_reset_control_array_get_optional_exclusive(dev);
+ ospi->rstc = devm_reset_control_array_get_exclusive(dev);
if (IS_ERR(ospi->rstc))
return dev_err_probe(dev, PTR_ERR(ospi->rstc),
"Can't get reset\n");
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property
2025-03-24 9:40 ` [PATCH v2 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
@ 2025-03-24 16:28 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-24 16:28 UTC (permalink / raw)
To: Patrice Chotard, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Maxime Coquelin, Alexandre Torgue, Philipp Zabel
Cc: christophe.kerello, linux-spi, devicetree, linux-stm32,
linux-arm-kernel, linux-kernel
On 24/03/2025 10:40, Patrice Chotard wrote:
> On STM32MP2x SoC's family, OSPI is child of Octo Memory Manager which
> must have asccess to OSPI's reset to ensure its initialization.
> Make "resets" a required property.
>
> Fixes: bed97e35786a ("dt-bindings: spi: Add STM32 OSPI controller")
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes
2025-03-24 9:40 [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes Patrice Chotard
2025-03-24 9:40 ` [PATCH v2 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
2025-03-24 9:40 ` [PATCH v2 2/2] spi: spi-stm32-ospi: " Patrice Chotard
@ 2025-04-08 16:43 ` Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2025-04-08 16:43 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue, Philipp Zabel, Patrice Chotard
Cc: Krzysztof Kozlowski, christophe.kerello, linux-spi, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
On Mon, 24 Mar 2025 10:40:12 +0100, Patrice Chotard wrote:
> Make "resets" property mandatory.
> Update spi-stm32-ospi driver and dt-bindings accordingly.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property
commit: d58b4eb7c03cabb10d4eebc89d7596e06376e54d
[2/2] spi: spi-stm32-ospi: Make "resets" a required property
commit: 69e3433fa5e24edc94e94b4f34e3dbb754bdedbf
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-04-08 16:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-24 9:40 [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes Patrice Chotard
2025-03-24 9:40 ` [PATCH v2 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
2025-03-24 16:28 ` Krzysztof Kozlowski
2025-03-24 9:40 ` [PATCH v2 2/2] spi: spi-stm32-ospi: " Patrice Chotard
2025-04-08 16:43 ` [PATCH v2 0/2] spi: spi-stm32-ospi: dt-bindings fixes Mark Brown
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®