* [PATCH 0/2] spi: spi-stm32-ospi: dt-bindings fixes
@ 2025-03-21 9:44 Patrice Chotard
2025-03-21 9:44 ` [PATCH 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
2025-03-21 9:44 ` [PATCH 2/2] spi: spi-stm32-ospi: " Patrice Chotard
0 siblings, 2 replies; 5+ messages in thread
From: Patrice Chotard @ 2025-03-21 9:44 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>
---
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 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property
2025-03-21 9:44 [PATCH 0/2] spi: spi-stm32-ospi: dt-bindings fixes Patrice Chotard
@ 2025-03-21 9:44 ` Patrice Chotard
2025-03-21 10:13 ` Krzysztof Kozlowski
2025-03-21 9:44 ` [PATCH 2/2] spi: spi-stm32-ospi: " Patrice Chotard
1 sibling, 1 reply; 5+ messages in thread
From: Patrice Chotard @ 2025-03-21 9:44 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" 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 related [flat|nested] 5+ messages in thread
* [PATCH 2/2] spi: spi-stm32-ospi: Make "resets" a required property
2025-03-21 9:44 [PATCH 0/2] spi: spi-stm32-ospi: dt-bindings fixes Patrice Chotard
2025-03-21 9:44 ` [PATCH 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
@ 2025-03-21 9:44 ` Patrice Chotard
1 sibling, 0 replies; 5+ messages in thread
From: Patrice Chotard @ 2025-03-21 9:44 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 related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property
2025-03-21 9:44 ` [PATCH 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
@ 2025-03-21 10:13 ` Krzysztof Kozlowski
2025-03-24 10:19 ` Patrice CHOTARD
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-21 10:13 UTC (permalink / raw)
To: Patrice Chotard, 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
On 21/03/2025 10:44, Patrice Chotard wrote:
> Make "resets" a required property.
Please explain why. This is technically an ABI break, so you please
provide explanation what sort of issue is being fixed.
>
> 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(+)
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property
2025-03-21 10:13 ` Krzysztof Kozlowski
@ 2025-03-24 10:19 ` Patrice CHOTARD
0 siblings, 0 replies; 5+ messages in thread
From: Patrice CHOTARD @ 2025-03-24 10:19 UTC (permalink / raw)
To: Krzysztof Kozlowski, 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
On 3/21/25 11:13, Krzysztof Kozlowski wrote:
> On 21/03/2025 10:44, Patrice Chotard wrote:
>> Make "resets" a required property.
>
> Please explain why. This is technically an ABI break, so you please
> provide explanation what sort of issue is being fixed.
Hi
Right, i will add more details
Thanks
Patrice
>
>>
>> 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(+)
>
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-24 10:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-21 9:44 [PATCH 0/2] spi: spi-stm32-ospi: dt-bindings fixes Patrice Chotard
2025-03-21 9:44 ` [PATCH 1/2] spi: dt-bindings: st,stm32mp25-ospi: Make "resets" a required property Patrice Chotard
2025-03-21 10:13 ` Krzysztof Kozlowski
2025-03-24 10:19 ` Patrice CHOTARD
2025-03-21 9:44 ` [PATCH 2/2] spi: spi-stm32-ospi: " Patrice Chotard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).