User reported that R64 doesn't provide power to the mPCIe slot in case
the PCIe port is disabled as it is when selecting the SATA
configuration. As users may still want to use USB-connected mPCIe
modules in CN8 slot.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
-@@ -297,14 +297,14 @@
- &pcie1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pcie1_pins>;
-- status = "okay";
-+ status = "disabled";
- };
-
- &pio {
+@@ -304,7 +304,7 @@
/* Attention: GPIO 90 is used to switch between PCIe@1,0 and
* SATA functions. i.e. output-high: PCIe, output-low: SATA
*/
+};
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-pcie1.dts
-@@ -0,0 +1,24 @@
+@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
+
+#include <dt-bindings/gpio/gpio.h>
+ gpios = <90 GPIO_ACTIVE_HIGH>;
+ };
+ };
-+
-+ fragment@1 {
-+ target = <&pcie1>;
-+ __overlay__ {
-+ status = "okay";
-+ };
-+ };
+};