arm64: dts: mt7622: add ePA/eLNA pinmux for built-in WiFi
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 29 Mar 2021 17:24:48 +0000 (01:24 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 30 Mar 2021 09:48:27 +0000 (11:48 +0200)
This just illustrates one of possible combinations. User should setup
the corresponding pins according to the onboard RF data that stores
in eeprom.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Link: https://lore.kernel.org/r/641c5e40f54e7c9c8eaa6be398d7169445b6fede.1617006498.git.ryder.lee@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts

index 08ad0ffb24df345c53e0bc6eb6f98386db4b0e9c..f2dc850010f10c1e73b48a2897e31ae0aeb6eb7b 100644 (file)
                        groups = "watchdog";
                };
        };
+
+       wmac_pins: wmac-pins {
+               mux {
+                       function = "antsel";
+                       groups = "antsel0", "antsel1", "antsel2", "antsel3",
+                                "antsel4", "antsel5", "antsel6", "antsel7",
+                                "antsel8", "antsel9", "antsel12", "antsel13",
+                                "antsel14", "antsel15", "antsel16", "antsel17";
+               };
+       };
 };
 
 &pwm {
 };
 
 &wmac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&wmac_pins>;
        status = "okay";
 };