arm64: dts: freescale: imx93-phyboard-nash: Move ADC vref to SoM
Subsystems (2)
PATCH 1/1 arm64: dts: freescale: imx93-phyboard-nash: Move ADC vref to SoM
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.
--- .../boot/dts/freescale/imx93-phyboard-nash.dts | 8 -------- .../arm64/boot/dts/freescale/imx93-phycore-som.dtsi | 13 +++++++++++++ 2 files changed, 13 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts +0 -8
@@ -53,18 +53,10 @@ reg_vcc_1v8: regulator-vcc-1v8 { 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 = <®_vref_1v8>; status = "okay"; };
arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi +13 -0
@@ -46,6 +46,19 @@ led-0 { 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 = <®_vdda_1v8>; }; /* Ethernet */
Signature · 1 line
2.34.1
Quoted 11 lines · Primoz Fiser
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.dtsiand enable adc1 in their own DTS without the need to define dummy ADC vref regulator themselves anymore.Signed-off-by Primoz Fiser <[email protected]>
Shawn Guo
AppliedQuoted 11 lines · Primoz Fiser
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.dtsiand enable adc1 in their own DTS without the need to define dummy ADC vref regulator themselves anymore.Signed-off-by Primoz Fiser <[email protected]>
Applied, thanks!