Hi Tomasz,
On Sun, 2025-02-02 at 16:10 +0100, Tomasz Maciej Nowak wrote:
> + reg_usb_vbus: regulator-usb-vbus {
> + compatible = "regulator-fixed";
> + regulator-name = "usb-vbus";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
> + };
> +
> + output-usb-vbus {
> + compatible = "regulator-output";
> + vout-supply = <®_usb_vbus>;
> + };
> +};
>
> + DEVICE_PACKAGES += kmod-regulator-userspace-consumer
You could also add the regulator-boot-on to regulator-usb-vbus. If it is
already enabled by the
bootloader, regulator-boot-on will keep it enabled. Otherwise it should cause
the regulator to be
enabled (GPIO set low in this case) when the driver probes.
You could also add regulator-always-on to regulator-usb-vbus, in which case the
USB port can't be
powered down anymore (from userspace). Is there any specific reason you would
want to power the port
down?
Best,
Sander
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel