<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Disabling cd,wp signals with wifi modules</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Disabling-cd-wp-signals-with-wifi-modules/m-p/534123#M84887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX6Q Sabre board uses emmc on SD4 as non-removable media, imx6qdl-sabresd.dtsi&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=imx_3.14.52_1.1.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=imx_3.14.52_1.1.0_ga"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In general one can debug&amp;nbsp; drivers/mmc/host//sdhci-esdhc-imx.c,&lt;/P&gt;&lt;P&gt;please also check attached Linux Manual Chapter 47 Wi-Fi BCM4339 Driver,&lt;/P&gt;&lt;P&gt;Chapter 33 MMC/SD/SDIO Host Driver&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwireless.murata.com%2Fdatasheet%3F%2FRFM%2Fdata%2Fmurata_quick_start_guide_linux.pdf" rel="nofollow" target="_blank"&gt;http://wireless.murata.com/datasheet?/RFM/data/murata_quick_start_guide_linux.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwireless.murata.com%2Fdatasheet%3F%2FRFM%2Fdata%2Fmurata_quick_start_guide_android.pdf" rel="nofollow" target="_blank"&gt;http://wireless.murata.com/datasheet?/RFM/data/murata_quick_start_guide_android.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2016 12:18:07 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-08-17T12:18:07Z</dc:date>
    <item>
      <title>Disabling cd,wp signals with wifi modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Disabling-cd-wp-signals-with-wifi-modules/m-p/534122#M84886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our custom product is refer to i.MX6Q SABRE and&amp;nbsp; we are porting wifi module to Android 5.1 which use 3.14.52 kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We just encounter a problem: our wifi module is ap6335 which&amp;nbsp; is soldered into the board, Theoretically,there is no need to handle card detect / write protect on this port.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but ,without&amp;nbsp; cd_gpio and wp_gpio configuration in dts file, we just can't load this wifi's driver:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;======== bcm_wlan_set_plat_data ========&lt;/P&gt;&lt;P&gt;GPIO(WL_HOST_WAKE) = GPIO_4_25&lt;/P&gt;&lt;P&gt;host_oob_irq: 281 &lt;/P&gt;&lt;P&gt;host_oob_irq_flags=4&lt;/P&gt;&lt;P&gt;dhd_wifi_platform_load: Enter&lt;/P&gt;&lt;P&gt;Power-up adapter 'DHD generic adapter'&lt;/P&gt;&lt;P&gt;wifi_platform_set_power = 1&lt;/P&gt;&lt;P&gt;wifi_platform_bus_enumerate device present 1&lt;/P&gt;&lt;P&gt;======== Card detection to detect SDIO card! ========&lt;/P&gt;&lt;P&gt;failed to power up DHD generic adapter, 3 retry left&lt;/P&gt;&lt;P&gt;wifi_platform_set_power = 0&lt;/P&gt;&lt;P&gt;wifi_platform_bus_enumerate device present 0&lt;/P&gt;&lt;P&gt;======== Card detection to remove SDIO card! ========&lt;/P&gt;&lt;P&gt;wifi_platform_set_power = 1&lt;/P&gt;&lt;P&gt;wifi_platform_bus_enumerate device present 1&lt;/P&gt;&lt;P&gt;======== Card detection to detect SDIO card! ========&lt;/P&gt;&lt;P&gt;failed to power up DHD generic adapter, 2 retry left&lt;/P&gt;&lt;P&gt;wifi_platform_set_power = 0&lt;/P&gt;&lt;P&gt;wifi_platform_bus_enumerate device present 0&lt;/P&gt;&lt;P&gt;======== Card detection to remove SDIO card! ========&lt;/P&gt;&lt;P&gt;wifi_platform_set_power = 1&lt;/P&gt;&lt;P&gt;wifi_platform_bus_enumerate device present 1&lt;/P&gt;&lt;P&gt;======== Card detection to detect SDIO card! ========&lt;/P&gt;&lt;P&gt;failed to power up DHD generic adapter, 1 retry left&lt;/P&gt;&lt;P&gt;wifi_platform_set_power = 0&lt;/P&gt;&lt;P&gt;wifi_platform_bus_enumerate device present 0&lt;/P&gt;&lt;P&gt;======== Card detection to remove SDIO card! ========&lt;/P&gt;&lt;P&gt;wifi_platform_set_power = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We have ported this wifi module on Android 4.4.2 before ,which use 3.0.35 kernel ,the solution to this problem was to make cd_gpio = -EINVAL, like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*connect to wifi module*/&lt;/P&gt;&lt;P&gt;static const struct esdhc_platform_data mx6q_sabresd_sd2_data __initconst = {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .cd_gpio = -EINVAL,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .wp_gpio = -EINVAL,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .keep_power_at_suspend = 1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .support_8bit = 0, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .delay_line = 0, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .cd_type = ESDHC_CD_CONTROLLER,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;.always_present=1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .runtime_pm = 1, &lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void __init mx6_sabresd_board_init(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp; imx6q_add_sdhci_usdhc_imx(1, &amp;amp;mx6q_sabresd_sd2_data);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;now, in android 5.1, we try to configure dts file like this in 3.14.52 kernel:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;usdhc2 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc2&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bus-width = &amp;lt;4&amp;gt;; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //cd-gpios = &amp;lt;&amp;amp;gpio5 16 0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //wp-gpios = &amp;lt;&amp;amp;gpio5 13 0&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; no-1-8-v;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;non-removable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wifi-host;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pm-ignore-notify;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep-power-in-suspend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;//enable-sdio-wakeup;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = "okay";&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d;"&gt;but they don't seem to help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;our question is : how can we configure these two gpios (without using cd_gpio and wp_gpio) in&amp;nbsp; 3.14.52 kernel to solve our wifi driver load problem?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 08:41:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Disabling-cd-wp-signals-with-wifi-modules/m-p/534122#M84886</guid>
      <dc:creator>chenli_2016</dc:creator>
      <dc:date>2016-08-17T08:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling cd,wp signals with wifi modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Disabling-cd-wp-signals-with-wifi-modules/m-p/534123#M84887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX6Q Sabre board uses emmc on SD4 as non-removable media, imx6qdl-sabresd.dtsi&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=imx_3.14.52_1.1.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-sabresd.dtsi?h=imx_3.14.52_1.1.0_ga"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In general one can debug&amp;nbsp; drivers/mmc/host//sdhci-esdhc-imx.c,&lt;/P&gt;&lt;P&gt;please also check attached Linux Manual Chapter 47 Wi-Fi BCM4339 Driver,&lt;/P&gt;&lt;P&gt;Chapter 33 MMC/SD/SDIO Host Driver&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwireless.murata.com%2Fdatasheet%3F%2FRFM%2Fdata%2Fmurata_quick_start_guide_linux.pdf" rel="nofollow" target="_blank"&gt;http://wireless.murata.com/datasheet?/RFM/data/murata_quick_start_guide_linux.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwireless.murata.com%2Fdatasheet%3F%2FRFM%2Fdata%2Fmurata_quick_start_guide_android.pdf" rel="nofollow" target="_blank"&gt;http://wireless.murata.com/datasheet?/RFM/data/murata_quick_start_guide_android.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 12:18:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Disabling-cd-wp-signals-with-wifi-modules/m-p/534123#M84887</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-08-17T12:18:07Z</dc:date>
    </item>
  </channel>
</rss>

