ath79: teltonika-rut230: drop reg_usb_vbus
authorLech Perczak <lech.perczak@gmail.com>
Sat, 4 Jan 2025 01:12:42 +0000 (02:12 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Jan 2025 20:36:04 +0000 (21:36 +0100)
USB VBUS regulator was attached to GPIO19, which isn't in fact
controlling the modem power itself, but rather modem power key - which
has to be asserted high for at least 500ms, to start the modem. Keeping
it high allows the modem to reboot upon shutdown - so it is desirable to
control this line from userspace, for example - to allow clean modem
shutdown down upon powering off the router part.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17503
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts

index aa8a2204700a9f1e82b7fcde79c719698e8f9b71..abac2797753dfc111462b9213ea98518e7988fd1 100644 (file)
                        /* GPIO 14 - ACTIVE HIGH for hwrev 0 */
                };
        };
-
-       reg_usb_vbus: reg_usb_vbus {
-               compatible = "regulator-fixed";
-               regulator-name = "usb_vbus";
-               regulator-min-microvolt = <5000000>;
-               regulator-max-microvolt = <5000000>;
-               gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
-               enable-active-high;
-       };
 };
 
 &eth0 {
 
 &usb {
        dr_mode = "host";
-       vbus-supply = <&reg_usb_vbus>;
        status = "okay";
 };