Cypress WIFI Bringup on TX2 Custom Board

We are designing a carrier board with TX2-4GB module with baseline R32.4.3. Here we have connected AW-CM235NF WIFI/BT combo module on sdmmc3 with SDIO interface.

So i have defined the dtsi entry like this.

sdhci@3440000 {     /*added AW-CM235NF wifi support on SDMMC3*/
    #address-cells = <1>;
    #size-cells = <0>;
    uhs-mask = <0x8>;
    only-1-8-v;
    status = "okay";
    brcmfmac: brcmfmac@0 {
        reg = <0>;
        compatible = "brcm,bcm4329-fmac";
    };
};

and i am getting this error in the kernel logs
[ 4.438676] mmc1: error -110 whilst initialising SDIO card

Is this due to hardware issue or any dtsi configuration ?

Please compare your dts configuration with official brcm4354 case.

Hi Wayne,

Actually i took reference of this thread https://community.cypress.com/thread/58531. Can you specify more on the official case means where i can look into for this.

By default, jetson TX2 has brcm4354 enabled on sdio.
You can compare your code with this part in dts.

Hi wayne,

Is this the entry you are talking about ?

bcm4354: bcmdhd_wlan {                                                                                                                                         
    compatible = "android,bcmdhd_wlan";
    interrupt-parent = <&tegra_aon_gpio>;
    interrupts = <TEGRA_AON_GPIO(FF, 3) 0x14>;
    wlan-pwr-gpio = <&tegra_main_gpio TEGRA_MAIN_GPIO(N, 0) 0>;
    fw_path = "/vendor/firmware/fw_bcmdhd_4354.bin";
    nv_path = "/vendor/firmware/nvram_quill_4354.txt";
    sdhci-host = <&sdmmc3>;
    pwr-retry-cnt = <5>;
    status = "okay";
};

Hi Wayne,

there is one pin WIFI_BT_WL_REG_ON which needs to be high so i pulled it up from hardware as per our design after that i am facing below errors:

root@localhost:/home/ubuntu# dmesg | grep mmc
[ 0.000000] Kernel command line: console=ttyS0,115200 androidboot.presilicon=true firmware_class.path=/etc/firmware root=/dev/mmcblk0p1 rw rootwait rootfstype=M
[ 0.448485] GPIO line 445 (sdmmc-wake-support-input) hogged as input
[ 0.448531] GPIO line 446 (sdmmc-wake-support-output) hogged as output/low
[ 0.525550] vddio-sdmmc1: 1800 <–> 3300 mV at 3300 mV
[ 5.414531] mmc0: SDHCI controller on 3460000.sdhci [3460000.sdhci] using ADMA 64-bit with 64 bit addr
[ 5.426511] mmc1: SDHCI controller on 3440000.sdhci [3440000.sdhci] using ADMA 64-bit with 64 bit addr
[ 5.442510] mmc2: SDHCI controller on 3400000.sdhci [3400000.sdhci] using ADMA 64-bit with 64 bit addr
[ 5.456222] mmc0: mmc_decode_ext_csd: CMDQ supported: depth: 31, cmdq_support: 1
[ 5.470048] mmc0: periodic cache flush enabled
[ 5.470054] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[ 5.470380] mmcblk0: mmc0:0001 DG4016 14.7 GiB
[ 5.474511] mmcblk0boot0: mmc0:0001 DG4016 partition 1 4.00 MiB
[ 5.478623] mmcblk0boot1: mmc0:0001 DG4016 partition 2 4.00 MiB
[ 5.482764] mmcblk0rpmb: mmc0:0001 DG4016 partition 3 4.00 MiB
[ 5.486519] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32
[ 5.661574] mmc1: tuning execution failed: -5
[ 5.661581] mmc1: error -5 whilst initialising SDIO card
[ 5.973171] mmc1: tuning execution failed: -5
[ 5.973175] mmc1: error -5 whilst initialising SDIO card
[ 6.388527] mmc1: tuning execution failed: -5
[ 6.388534] mmc1: error -5 whilst initialising SDIO card
[ 6.619255] mmcblk mmc0:0001: Card claimed for testing.
[ 6.784663] Root device found: mmcblk0p1
[ 6.789449] Found dev node: /dev/mmcblk0p1
[ 6.916199] EXT4-fs (mmcblk0p1): 3 orphan inodes deleted
[ 6.921544] EXT4-fs (mmcblk0p1): recovery complete
[ 6.931207] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 6.939975] Rootfs mounted over mmcblk0p1
[ 7.014865] mmc1: tuning execution failed: -5
[ 7.019243] mmc1: error -5 whilst initialising SDIO card
[ 7.469536] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)

Please suggest to proceed further on this.

Any suggestion will be appreciated .

Please share your full dmesg and board schematic.