[PATCH v2 1/3] arm64: dts: st: add delay on imx335 reset gpio on stm32mp257f-dk

From: Alain Volmat

Date: Mon Nov 16 2026 - 06:46:37 EST


The imx335 reset gpio is connected to the sensor reset via an RC hence
a delay is needed in order to take into account the time needed to
reach the level for which the sensor sees the correct level.
This prevent having imx335 power-on issues due to the fact that the
driver is trying to access to the sensor while the reset hasn't been
yet properly handled.

Fixes: 95ae2aa3caf0 ("arm64: dts: st: add imx335/csi/dcmipp nodes on stm32mp257f-dk")

Signed-off-by: Alain Volmat <alain.volmat@xxxxxxxxxxx>
---
arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
index a8f18508db3e..ce7bb4a4d9a7 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
@@ -76,6 +76,13 @@ led-orange {
};
};

+ imx335_reset_delay: imx335-reset-delay {
+ compatible = "gpio-delay";
+ #gpio-cells = <3>;
+ gpio-controller;
+ gpios = <&gpiob 1 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
+ };
+
lpddr_channel: sdram-channel-0 {
#address-cells = <1>;
#size-cells = <0>;
@@ -236,7 +243,7 @@ imx335: camera@1a {
avdd-supply = <&scmi_v3v3>;
ovdd-supply = <&scmi_v3v3>;
dvdd-supply = <&scmi_v3v3>;
- reset-gpios = <&gpiob 1 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
+ reset-gpios = <&imx335_reset_delay 0 1000 1000>;

port {
imx335_ep: endpoint {

--
2.34.1