DAC stops working on M4 side shortly after Linux boots.
This is might save someone the few hours I spent tracking this down. I am wondering if this is a bug. It would seem like a reason that you have m4 sections in the device tree. So linux can be aware not to touch an M4 resource.
Linux shuts off the vdda shortly after booting thinking no one is using vdda and then it seems like the DAC is not working as we control it from M4.
So I am not sure if this is considered a bug or not. The solution is to set vdda as "regulator-always-on"
&m4_dac{
pinctrl-names = "default";
pinctrl-0 = <&m4_dac1_pins_mx>;
status = "okay";
vref-supply = <&vdda>; // Does not prevent vdda from being shut off.
};vdda:ldo5{
regulator-name = "vdda";
regulator-min-microvolt = <2900000>;
regulator-max-microvolt = <2900000>;
interrupts = <IT_CURLIM_LDO5 0>;
regulator-always-on; // <--added
};