mediatek: filogic: bpi-r3-mini: fix power on M.2 slot
authorTianling Shen <cnsztl@immortalwrt.org>
Fri, 16 Feb 2024 05:37:17 +0000 (13:37 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 16 Feb 2024 13:56:01 +0000 (13:56 +0000)
One of the pins requiered by M.2 slot is conflict with spi1,
however, spi1 seems unused so simply disable it for now, this
matches the factory behavior [1].

1. https://github.com/BPI-SINOVOIP/BPI-R3MINI-OPENWRT-V21.02.3/commit/9bd78779f267a21c04c5bb4d16c32e83aae8d1d3

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts

index fdf6b8818ce945100e4fd7914d50cde53515935f..09a557c0cb8122d10308204bd1e33c935b845c56 100644 (file)
        };
 
        usb_ngff_pins: usb-ngff-pins {
+               ngff-gnss-off {
+                       pins = "GPIO_6";
+                       drive-strength = <8>;
+                       mediatek,pull-up-adv = <1>;
+               };
                ngff-pe-rst {
                        pins = "GPIO_7";
                        drive-strength = <8>;
                        drive-strength = <8>;
                        mediatek,pull-up-adv = <1>;
                };
+               ngff-coex {
+                       pins = "SPI1_CS";
+                       drive-strength = <8>;
+                       mediatek,pull-up-adv = <1>;
+               };
        };
 
        wf_2g_5g_pins: wf-2g-5g-pins {
 &spi1 {
        pinctrl-names = "default";
        pinctrl-0 = <&spic_pins>;
-       status = "okay";
+       /* conflicts with M.2 pin */
+       status = "disabled";
 };
 
 &ssusb {