Hello,
I have a ad9528 that is powered by a GPIO switched, fixed regulator. The dts binding is shown below (note that regulator-boot-on and regulator-always-on were debugging attempts):
vdda_3v3_2: vdda-3v3-2 { compatible = "regulator-fixed"; regulator-name = "vdda_3v3_2"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; startup-delay-us = <150000>; gpio = <&gpio0 98 0>; enable-active-high; regulator-boot-on; regulator-always-on; };
The ad9528 has the following line in it:
vcc-supply = <&vdda_3v3_2>;
When I boot the ad9528 tried to probe the device before the regulator comes online - this is, of course, problematic because the probe fails. I have verified everything else in the devicetree is correct by manually enabling the GPIO in U-Boot, supplying power to the device before starting Linux. When I do this the device probes successfully.
Is there something I am missing? I looked at the driver code and it looks like it should be enabling the regulator before accessing the device.