Skip to content

Commit 7d2f0b8

Browse files
decsnydleach02
authored andcommitted
soc: mcxw71: Add VREF node and clocking
Add VREF node and clocking to MCXW71 SOC. Signed-off-by: Declan Snyder <[email protected]>
1 parent 3853fb2 commit 7d2f0b8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

dts/arm/nxp/nxp_mcxw71.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,19 @@
317317
clk-source = <2>;
318318
status = "disabled";
319319
};
320+
321+
vref: regulator@4a000 {
322+
compatible = "nxp,vref";
323+
regulator-name = "mcxw71-vref";
324+
reg = <0x4a000 0x20>;
325+
#nxp,reference-cells = <1>;
326+
nxp,buffer-startup-delay-us = <400>;
327+
nxp,bandgap-startup-time-us = <20>;
328+
regulator-min-microvolt = <1000000>;
329+
regulator-max-microvolt = <2100000>;
330+
nxp,current-compensation-en;
331+
status = "disabled";
332+
};
320333
};
321334

322335
&fast_peripheral0 {

soc/nxp/mcx/mcxw/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ static ALWAYS_INLINE void clock_init(void)
158158
if (IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN)) {
159159
CLOCK_EnableClock(kCLOCK_Can0);
160160
}
161+
162+
if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(vref), nxp_vref, okay)) {
163+
CLOCK_EnableClock(kCLOCK_Vref0);
164+
}
161165
}
162166

163167
static void vbat_init(void)

0 commit comments

Comments
 (0)