I’ve created the regulator and did some tests to disable the power when the Jetson is in suspend. The Z.02 pin enables the 5V USB voltage when high. I’ve created this vbus supply for the USB power:
reg_5v_usb: regulator@11 {
compatible = "regulator-fixed";
reg = <11>;
regulator-name = "5V USB";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
regulator-boot-on;
enable-active-high;
regulator-state-mem {
regulator-off-in-suspend;
};
};
The 5V supply goes on when the Jetson is on, but the 5V supply stays on during a suspend. Do you know what could cause this, as I thought the “regulator-off-in-suspend” should turn the supply off during suspend.