soc: mcxw71: Add VREF node and clocking

Add VREF node and clocking to MCXW71 SOC.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-10-08 17:35:39 -05:00 committed by David Leach
commit 7d2f0b8476
2 changed files with 17 additions and 0 deletions

View file

@ -317,6 +317,19 @@
clk-source = <2>;
status = "disabled";
};
vref: regulator@4a000 {
compatible = "nxp,vref";
regulator-name = "mcxw71-vref";
reg = <0x4a000 0x20>;
#nxp,reference-cells = <1>;
nxp,buffer-startup-delay-us = <400>;
nxp,bandgap-startup-time-us = <20>;
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <2100000>;
nxp,current-compensation-en;
status = "disabled";
};
};
&fast_peripheral0 {

View file

@ -158,6 +158,10 @@ static ALWAYS_INLINE void clock_init(void)
if (IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN)) {
CLOCK_EnableClock(kCLOCK_Can0);
}
if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(vref), nxp_vref, okay)) {
CLOCK_EnableClock(kCLOCK_Vref0);
}
}
static void vbat_init(void)