devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: st: add dcmi nodes in stm32mp231 / stm32mp251
@ 2026-09-14  7:09 Alain Volmat
  2026-09-14  7:09 ` [PATCH 1/2] arm64: dts: st: add dcmi node on stm32mp25x Alain Volmat
  2026-09-14  7:09 ` [PATCH 2/2] arm64: dts: st: add dcmi node on stm32mp23x Alain Volmat
  0 siblings, 2 replies; 4+ messages in thread
From: Alain Volmat @ 2026-09-14  7:09 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
	Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Alain Volmat

STM32MP23 and STM32MP25 embed a Digital Camera Interface (DCMI)
block allowing to capture frames via a parallel interface.
Add the dcmi nodes in both stm32mp231.dtsi and stm32mp251.dtsi
describing this HW block.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
Alain Volmat (2):
      arm64: dts: st: add dcmi node on stm32mp25x
      arm64: dts: st: add dcmi node on stm32mp23x

 arch/arm64/boot/dts/st/stm32mp231.dtsi | 14 ++++++++++++++
 arch/arm64/boot/dts/st/stm32mp251.dtsi | 14 ++++++++++++++
 2 files changed, 28 insertions(+)
---
base-commit: 2f92d900f262a16c8ae02daf53ae2910d07185f5
change-id: 20260914-stm32mp2x-dcmi-9fd57ababe6c

Best regards,
--  
Alain Volmat <alain.volmat@foss.st.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] arm64: dts: st: add dcmi node on stm32mp25x
  2026-09-14  7:09 [PATCH 0/2] arm64: dts: st: add dcmi nodes in stm32mp231 / stm32mp251 Alain Volmat
@ 2026-09-14  7:09 ` Alain Volmat
  2026-09-14  7:09 ` [PATCH 2/2] arm64: dts: st: add dcmi node on stm32mp23x Alain Volmat
  1 sibling, 0 replies; 4+ messages in thread
From: Alain Volmat @ 2026-09-14  7:09 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
	Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Alain Volmat

Add the node for the DCMI controller in stm32mp251.dtsi

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
 arch/arm64/boot/dts/st/stm32mp251.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi
index 44938c036e30..4987ebcd8556 100644
--- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi
@@ -1450,6 +1450,20 @@ uart8: serial@40380000 {
 				status = "disabled";
 			};
 
+			dcmi: dcmi@404a0000 {
+				compatible = "st,stm32-dcmi";
+				reg = <0x404a0000 0x400>;
+				interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
+				resets = <&rcc CCI_R>;
+				clocks = <&rcc CK_BUS_CCI>;
+				clock-names = "mclk";
+				dmas = <&hpdma 137 0x60 0x00003012>;
+				dma-names = "tx";
+				access-controllers = <&rifsc 88>;
+				power-domains = <&CLUSTER_PD>;
+				status = "disabled";
+			};
+
 			rng: rng@42020000 {
 				compatible = "st,stm32mp25-rng";
 				reg = <0x42020000 0x400>;

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: dts: st: add dcmi node on stm32mp23x
  2026-09-14  7:09 [PATCH 0/2] arm64: dts: st: add dcmi nodes in stm32mp231 / stm32mp251 Alain Volmat
  2026-09-14  7:09 ` [PATCH 1/2] arm64: dts: st: add dcmi node on stm32mp25x Alain Volmat
@ 2026-09-14  7:09 ` Alain Volmat
  2026-09-14  7:21   ` sashiko-bot
  1 sibling, 1 reply; 4+ messages in thread
From: Alain Volmat @ 2026-09-14  7:09 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
	Alexandre Torgue
  Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
	Alain Volmat

Add the node for the DCMI controller in stm32mp231.dtsi

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
 arch/arm64/boot/dts/st/stm32mp231.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp231.dtsi b/arch/arm64/boot/dts/st/stm32mp231.dtsi
index 0feb8943efae..ad008049384b 100644
--- a/arch/arm64/boot/dts/st/stm32mp231.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp231.dtsi
@@ -646,6 +646,20 @@ uart7: serial@40370000 {
 				status = "disabled";
 			};
 
+			dcmi: dcmi@404a0000 {
+				compatible = "st,stm32-dcmi";
+				reg = <0x404a0000 0x400>;
+				interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
+				resets = <&rcc CCI_R>;
+				clocks = <&rcc CK_BUS_CCI>;
+				clock-names = "mclk";
+				dmas = <&hpdma 137 0x60 0x00003012>;
+				dma-names = "tx";
+				access-controllers = <&rifsc 88>;
+				power-domains = <&cluster_pd>;
+				status = "disabled";
+			};
+
 			rng: rng@42020000 {
 				compatible = "st,stm32mp25-rng";
 				reg = <0x42020000 0x400>;

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] arm64: dts: st: add dcmi node on stm32mp23x
  2026-09-14  7:09 ` [PATCH 2/2] arm64: dts: st: add dcmi node on stm32mp23x Alain Volmat
@ 2026-09-14  7:21   ` sashiko-bot
  0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-09-14  7:21 UTC (permalink / raw)
  To: Alain Volmat; +Cc: conor+dt, devicetree, robh

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Missing unconditionally required 'port' property in the newly added 'dcmi' node, causing a dtbs_check warning.
--

commit 42a2863a4d17c3ffce4549b0b100b843b4aeb937
Author: Alain Volmat <alain.volmat@foss.st.com>

arm64: dts: st: add dcmi node on stm32mp23x

This commit adds the devicetree node for the DCMI controller in the
stm32mp231.dtsi include file.

> diff --git a/arch/arm64/boot/dts/st/stm32mp231.dtsi b/arch/arm64/boot/dts/st/stm32mp231.dtsi
> index 0feb8943efae6..ad008049384b7 100644
> --- a/arch/arm64/boot/dts/st/stm32mp231.dtsi
> +++ b/arch/arm64/boot/dts/st/stm32mp231.dtsi
> @@ -646,6 +646,20 @@ uart7: serial@40370000 {
>  				status = "disabled";
>  			};
>  
> +			dcmi: dcmi@404a0000 {
> +				compatible = "st,stm32-dcmi";
> +				reg = <0x404a0000 0x400>;
> +				interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
> +				resets = <&rcc CCI_R>;
> +				clocks = <&rcc CK_BUS_CCI>;
> +				clock-names = "mclk";
> +				dmas = <&hpdma 137 0x60 0x00003012>;
> +				dma-names = "tx";
> +				access-controllers = <&rifsc 88>;
> +				power-domains = <&cluster_pd>;
> +				status = "disabled";
> +			};

[Severity: Low]
Does this node need a 'port' property to satisfy the st,stm32-dcmi.yaml
dt-binding?

While the driver safely handles a missing endpoint in dcmi_probe() by
returning -ENODEV:

drivers/media/platform/st/stm32/stm32-dcmi.c:dcmi_probe() {
	...
	np = of_graph_get_endpoint_by_regs(np, 0, -1);
	if (!np) {
		dev_err(&pdev->dev, "Could not find the endpoint\n");
		return -ENODEV;
	}
	...
}

the binding schema unconditionally requires the port property, which will
trigger a dtbs_check warning when omitted.

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260914-stm32mp2x-dcmi-v1-0-c594e081d21b@foss.st.com?part=2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-14  7:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14  7:09 [PATCH 0/2] arm64: dts: st: add dcmi nodes in stm32mp231 / stm32mp251 Alain Volmat
2026-09-14  7:09 ` [PATCH 1/2] arm64: dts: st: add dcmi node on stm32mp25x Alain Volmat
2026-09-14  7:09 ` [PATCH 2/2] arm64: dts: st: add dcmi node on stm32mp23x Alain Volmat
2026-09-14  7:21   ` sashiko-bot

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).