ARM: dts: stm32: add dummy vdd_adc regulator on stm32mp135f-dk
authorOlivier Moysan <olivier.moysan@foss.st.com>
Wed, 12 Oct 2022 14:22:04 +0000 (16:22 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Mon, 24 Oct 2022 09:11:38 +0000 (11:11 +0200)
Add a dummy fixed regulator vdd-adc for STM32 ADC,
on STM32MP135F-DK board, while SCMI regulators are not available.
This patch will have to be removed when SCMI regulator support
is added to STM32MP13.

This patch intends to allow ADC enabling on STM32MP13.
With this patch the ADC can probe but it cannot return
valid conversion data, as it's regulator is not actually enabled.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp135f-dk.dts

index 5cdd9e3756a8fbf6080fb5182efc1bb4becf8ca3..c1c4b5ac81289830a87137b13dbc82cde2cba198 100644 (file)
                };
        };
 
+       vdd_adc: vdd-adc {
+               compatible = "regulator-fixed";
+               regulator-name = "vdd_adc";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+       };
+
        vdd_sd: vdd-sd {
                compatible = "regulator-fixed";
                regulator-name = "vdd_sd";