ramips: mt7621: add missing regulator-boot-on
authorRosen Penev <rosenp@gmail.com>
Wed, 6 Nov 2024 21:23:35 +0000 (13:23 -0800)
committerRobert Marko <robimarko@gmail.com>
Sat, 9 Nov 2024 16:31:59 +0000 (17:31 +0100)
What seems to be happening is that the kernel requests an ACTIVE_LOW
gpio initially and sets it to high later based on gpios in dts.

This seems to break some devices where the bootloader sets it to high.

Fixes: e612900ae0 ("ramips: mt7621: convert usb power to regulators")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16877
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
target/linux/ramips/dts/mt7621_humax_e10.dts
target/linux/ramips/dts/mt7621_mikrotik_routerboard-7xx.dtsi
target/linux/ramips/dts/mt7621_zyxel_lte3301-plus.dts
target/linux/ramips/dts/mt7621_zyxel_lte5398-m904.dts

index 00ff80e3ca9fd078dc3bf166bef4bb6cb2c3b83a..cba4ceae72810a0ae541f4976d5594e12ab0334d 100644 (file)
@@ -87,6 +87,7 @@
                regulator-max-microvolt = <5000000>;
                gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
                enable-active-high;
+               regulator-boot-on;
        };
 };
 
index 7ba772d5e50ad2be2d1fb55659933f7ce77e49b1..fd66578eaf0953193a5f7008abdb45b1c619ed5b 100644 (file)
@@ -63,6 +63,7 @@
                regulator-max-microvolt = <5000000>;
                gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
                enable-active-high;
+               regulator-boot-on;
        };
 };
 
index 4a3de8cfba7b883fde6504aaf84b9ae78cde174a..7429ce673dd2f88b1ea7b5909ff03e26b248d73d 100644 (file)
@@ -22,6 +22,7 @@
                regulator-max-microvolt = <5000000>;
                gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
                enable-active-high;
+               regulator-boot-on;
        };
 };
 
index 88894325b5ca6219489cec0918504666477861b6..2a556190d0b068a53dfeaf95171e8b50be97793e 100644 (file)
                regulator-max-microvolt = <5000000>;
                gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                enable-active-high;
+               regulator-boot-on;
        };
 };
 
index e6ff5ecf6aed5368b16ccd0d9669b81a0931d058..2d06b949f2f027ae2baf3d71c032fe537579d547 100644 (file)
                regulator-max-microvolt = <5000000>;
                gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                enable-active-high;
+               regulator-boot-on;
        };
 };