ath79: rb91x: enable pcie power early (WIP)
authorKoen Vandeputte <koen.vandeputte@citymesh.com>
Mon, 8 Jan 2024 16:25:07 +0000 (17:25 +0100)
committerKoen Vandeputte <koen.vandeputte@citymesh.com>
Tue, 17 Dec 2024 14:10:52 +0000 (15:10 +0100)
ensure PCIe devices get enumerated properly during power-on

Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi

index 1c5a2a18e4fa8a71544484f7493f16f4994b0fb3..f888988c42f49db790887d088ba06b819fa089f1 100644 (file)
                        gpio-export,output = <1>;
                        gpios = <&ssr 6 GPIO_ACTIVE_HIGH>;
                };
-
-               pcie_power {
-                       gpio-export,name = "power-pcie";
-                       gpio-export,output = <0>;
-                       gpios = <&ssr 7 GPIO_ACTIVE_HIGH>;
-               };
        };
 };
 
                registers-number = <1>;
                reg = <1>;
                spi-max-frequency = <50000000>;
+
+               power_pcie {
+                       gpio-hog;
+                       gpios = <7 0>;
+                       output-high;
+               };
        };
 };