erstrom / linux-ath

Linux qca/ath wireless driver tree (based on git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git)
Other
21 stars 12 forks source link

SDIO Device tree documentation #16

Closed fpoussin closed 3 years ago

fpoussin commented 3 years ago

Hello,

I can't find any documentation for using ath10k_sdio with an SD/MMC controller.

I am using a patched kernel, v5.10.10: https://github.com/STMicroelectronics/linux/tree/v5.10-stm32mp-r1

Here's my current sd node config:

&sdmmc2{
    pinctrl-names = "default", "opendrain", "sleep";
    pinctrl-0 = <&sdmmc2_pins_mx>;
    pinctrl-1 = <&sdmmc2_opendrain_pins_mx>;
    pinctrl-2 = <&sdmmc2_sleep_pins_mx>;
    status = "okay";

    bus-width = <4>;
    non-removable;
    no-sd;
    no-sdio;

    st,neg-edge;
    max-frequency = <120000000>;

    vmmc-supply  = <&reg_3v3>;
    vqmmc-supply = <&reg_vdd>;
    mmc-pwrseq   = <&wifi_pwrseq>;

    qca_wifi: qca-wifi@1 {
        reg = <1>;
        compatible = "qcom,ath10k";
    };
};

Unfortunately, probing it not happening so I must be missing something. Any ideas?

Thank you

fpoussin commented 3 years ago

Please disregard, this was caused by these 2 properties:

no-sd;
no-sdio;

and these missing:

#address-cells = <1>;
#size-cells = <0>;

It is now working:

[    1.668318] ath10k_sdio mmc1:0001:1: qca9377 hw1.1 sdio target 0x05020001 chip_id 0x00000000 sub 0000:0000
[    1.668341] ath10k_sdio mmc1:0001:1: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    1.675228] ath10k_sdio mmc1:0001:1: firmware ver WLAN.TF.1.1.1-00061-QCATFSWPZ-1 api 5 features ignore-otp crc32 7746e551
[    1.856479] ath10k_sdio mmc1:0001:1: failed to fetch board data for bus=sdio,vendor=0271,device=0701,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA9377/hw1.0/board-2.bin
[    1.858515] ath10k_sdio mmc1:0001:1: board_file api 1 bmi_id N/A crc32 544289f7
[    3.216939] ath10k_sdio mmc1:0001:1: htt-ver 3.32 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1