This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM625:AM62X SKEVM PROC142A WiFi 模块无法驱动

Guru**** 2465890 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1476148/am625-am62x-skevm-proc142a-the-wifi-module-cannot-drive

器件型号:AM625

工具与软件:

问题说明:

  • 我尝试使用 AP6275S WiFi 模块、发现 无法上拉 WLAN EN 的引脚

我的设置:

/ {
        wlan_lten: regulator-6 {
                compatible = "regulator-fixed";
                regulator-name = "wlan_lten";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                vin-supply = <&vcc_3v3_sys>;
                gpios = <&exp1 11 GPIO_ACTIVE_LOW>;
        };

        wlan_en: regulator-7 {
                compatible = "regulator-fixed";
                regulator-name = "wlan_en";
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
                vin-supply = <&wlan_lten>;
                enable-active-high;
                gpios = <&main_gpio0 71 GPIO_ACTIVE_HIGH>;
                pinctrl-names = "default";
                pinctrl-0 = <&wlan_en_pins_default>;
        };
};

&sdhci2 {
        status = "okay";
        vmmc-supply = <&wlan_en>;
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc2_pins_default>;
        bus-width = <4>;
        non-removable;
        ti,fails-without-test-cd;
        cap-power-off-card;
        keep-power-in-suspend;
        assigned-clocks = <&k3_clks 157 158>;
        assigned-clock-parents = <&k3_clks 157 160>;

        #address-cells = <1>;
        #size-cells = <0>;
        wlcore: wlcore@2 {
                #if 0
                compatible = "ti,wl1837";
                reg = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&main_wlirq_pins_default>;
                interrupt-parent = <&main_gpio0>;
                interrupts = <72 IRQ_TYPE_EDGE_RISING>;
                #endif
                compatible = "android,bcmdhd_wlan";
                reg = <2>;
                pinctrl-names = "default";
                pinctrl-0 = <&main_wlirq_pins_default>;
                interrupt-parent = <&main_gpio0>;
                interrupts = <72 IRQ_TYPE_EDGE_RISING>;
        };
};

&main_pmx0 {
    ...
     wlan_en_pins_default: wlan-en-pins-default {
                pinctrl-single,pins = <
                                AM62X_IOPAD(0x124, PIN_OUTPUT, 7) /* (A23) MMC2_SDCD.GPIO0_71 */
                >;
        };

        main_mmc2_pins_default: main-mmc2-pins-default {
                pinctrl-single,pins = <
                        AM62X_IOPAD(0x120, PIN_INPUT, 0) /* (C24) MMC2_CMD */
                        AM62X_IOPAD(0x118, PIN_INPUT, 0) /* (D25) MMC2_CLK */
                        AM62X_IOPAD(0x114, PIN_INPUT, 0) /* (B24) MMC2_DAT0 */
                        AM62X_IOPAD(0x110, PIN_INPUT, 0) /* (C25) MMC2_DAT1 */
                        AM62X_IOPAD(0x10c, PIN_INPUT, 0) /* (E23) MMC2_DAT2 */
                        AM62X_IOPAD(0x108, PIN_INPUT, 0) /* (D24) MMC2_DAT3 */
                        AM62X_IOPAD(0x11c, PIN_INPUT, 0) /* (#N/A) MMC2_CLKB */
                >;
        };

        main_wlirq_pins_default: main-wlirq-pins-default {
                pinctrl-single,pins = <
                        AM62X_IOPAD(0x128, PIN_INPUT, 7) /* (B23) MMC2_SDWP.GPIO0_72 */
                >;
        };
        ......
};