[PATCH 2/4] arm64: dts: st: ensure IMX335 is enabled on stm32mp257f-ev1

From: Alain Volmat

Date: Mon Sep 14 2026 - 02:57:20 EST


Set the GPIO enable line for the IMX335 camera via a GPIO hog
in order to ensure it is well enabled.

Use scmi_v3v3 for imx335 regulators.
The 3 imx335 supplies are generated within the MB1854 and all come
from the v3v3 coming from the board. Ensure that this regulator is
enabled by using the scmi_v3v3 as supplier of the imx335.

Signed-off-by: Hugues Fruchet <hugues.fruchet@xxxxxxxxxxx>
Signed-off-by: Alain Volmat <alain.volmat@xxxxxxxxxxx>
---
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 40 ++++++++++--------------------
1 file changed, 13 insertions(+), 27 deletions(-)

diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 12b4018edeb0..acc730146287 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -72,30 +72,6 @@ ddr_channel: sdram-channel-0 {
io-width = <32>;
};

- imx335_2v9: regulator-2v9 {
- compatible = "regulator-fixed";
- regulator-name = "imx335-avdd";
- regulator-min-microvolt = <2900000>;
- regulator-max-microvolt = <2900000>;
- regulator-always-on;
- };
-
- imx335_1v8: regulator-1v8 {
- compatible = "regulator-fixed";
- regulator-name = "imx335-ovdd";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- regulator-always-on;
- };
-
- imx335_1v2: regulator-1v2 {
- compatible = "regulator-fixed";
- regulator-name = "imx335-dvdd";
- regulator-min-microvolt = <1200000>;
- regulator-max-microvolt = <1200000>;
- regulator-always-on;
- };
-
memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x1 0x0>;
@@ -253,6 +229,16 @@ phy0_eth2: ethernet-phy@1 {
};
};

+&gpioi {
+ /* Enable the IMX335 power line */
+ imx335-en-hog {
+ gpio-hog;
+ gpios = <0 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "imx335_en";
+ };
+};
+
&i2c2 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c2_pins_a>;
@@ -269,9 +255,9 @@ imx335: camera@1a {
compatible = "sony,imx335";
reg = <0x1a>;
clocks = <&clk_ext_camera>;
- avdd-supply = <&imx335_2v9>;
- ovdd-supply = <&imx335_1v8>;
- dvdd-supply = <&imx335_1v2>;
+ avdd-supply = <&scmi_v3v3>;
+ ovdd-supply = <&scmi_v3v3>;
+ dvdd-supply = <&scmi_v3v3>;
reset-gpios = <&gpioi 7 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;

port {

--
2.34.1