]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: freescale: imx93-phyboard-nash: Move ADC vref to SoM
authorPrimoz Fiser <primoz.fiser@norik.com>
Mon, 2 Jun 2025 12:52:07 +0000 (14:52 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 1 Jul 2025 13:05:32 +0000 (21:05 +0800)
Move configuration for ADC voltage reference from board DTS to a SoM
include file. The SoC ADC reference voltage is connected to a "VDDA_1V8"
voltage node and supplied by the PMIC's BUCK5 regulator. The reference
voltage is thus defined by the SoM and cannot be changed by the carrier
board design and as such belongs into the SoM include file.

Moreover, with this in place, customers designing own carrier boards can
simply include imx93-phycore-som.dtsi and enable adc1 in their own DTS
without the need to define dummy ADC vref regulator themselves anymore.

Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi

index e1c9aa77c0004ed4338aead7abae68f80ff968a7..475913cf0cb9e8858f74f117103dcf0fc7f658cc 100644 (file)
                regulator-max-microvolt = <1800000>;
                regulator-min-microvolt = <1800000>;
        };
-
-       reg_vref_1v8: regulator-adc-vref {
-               compatible = "regulator-fixed";
-               regulator-name = "VREF_1V8";
-               regulator-min-microvolt = <1800000>;
-               regulator-max-microvolt = <1800000>;
-       };
 };
 
 /* ADC */
 &adc1 {
-       vref-supply = <&reg_vref_1v8>;
        status = "okay";
 };
 
index 0ea61841e591e8d65025a92d8d24ba523ad4b07c..26bd801a49bb036330d02a1019595244395e8505 100644 (file)
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       reg_vdda_1v8: regulator-vdda-1v8 {
+               compatible = "regulator-fixed";
+               regulator-name = "VDDA_1V8";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               vin-supply = <&buck5>;
+       };
+};
+
+/* ADC */
+&adc1 {
+       vref-supply = <&reg_vdda_1v8>;
 };
 
 /* Ethernet */