[PATCH 3/3] arm64: dts: st: add delay on imx335 reset gpio on stm32mp235f-dk
From: Alain Volmat
Date: Mon Nov 16 2026 - 05:32:25 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.
Signed-off-by: Alain Volmat <alain.volmat@xxxxxxxxxxx>
---
arch/arm64/boot/dts/st/stm32mp235f-dk.dts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/st/stm32mp235f-dk.dts b/arch/arm64/boot/dts/st/stm32mp235f-dk.dts
index f06b334dc9ce..137bed62b2ad 100644
--- a/arch/arm64/boot/dts/st/stm32mp235f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp235f-dk.dts
@@ -74,6 +74,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)>;
+ };
+
memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
@@ -227,7 +234,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>;
status = "okay";
port {
--
2.34.1