[PATCH 2/2] ath79: add support for Dell SonicPoint ACi APL27-0B1
Sander Vanheule
sander at svanheule.net
Sun Feb 2 10:37:37 PST 2025
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
More information about the openwrt-devel
mailing list