<?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>topic Re: mmc wp - imx6ul in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797968#M123443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed I followed the linux documentation. [As I mentioned in my initial post]. But still I dont see wp enabled when the GPIO is set to high through hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured the register MX6UL_PAD_CSI_DATA04__USDHC1_WP&amp;nbsp;&lt;/P&gt;&lt;P&gt;[#define&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6UL_PAD_CSI_DATA04__USDHC1_WP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x01F4 0x0480 0x0000 8 0]&amp;nbsp; in DTB set to 0x17059.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70882iDB8B548BD7D0054C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; modified usdhc1 node as mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;usdhc1 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc1&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cd-gpios = &amp;lt;&amp;amp;gpio2 21 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;wp-gpios = &amp;lt;&amp;amp;gpio4 25 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;no-1-8-v;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;keep-power-in-suspend;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enable-sdio-wakeup;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even polarity is checked - GPIO value toggles when pin input toggles. But WP functionality is not working as expected. [it allows file/folder creation still to the mmc]. Can you please let me know if I miss any further setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Anantha R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2018 07:39:41 GMT</pubDate>
    <dc:creator>anantharamachan</dc:creator>
    <dc:date>2018-09-27T07:39:41Z</dc:date>
    <item>
      <title>mmc wp - imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797966#M123441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using i.MX6UL processor. I want to enable write protection for the usdhc1 [mmc].&lt;/P&gt;&lt;P&gt;But setting the register MX6UL_PAD_CSI_DATA04__USDHC1_WP to proper value. but still seeing write protection is not enabled for the sd card connected.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried adding following line to DTS file:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;usdhc1 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc1&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cd-gpios = &amp;lt;&amp;amp;gpio2 21 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;wp-gpios = &amp;lt;&amp;amp;gpio4 25 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;no-1-8-v;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;keep-power-in-suspend;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enable-sdio-wakeup;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still it didnt work.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing any setting further? Can you please help me out.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Anantha R&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 12:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797966#M123441</guid>
      <dc:creator>anantharamachan</dc:creator>
      <dc:date>2018-09-26T12:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: mmc wp - imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797967#M123442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anantha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mmc wp-gpios usage is described in linux documentation&lt;/P&gt;&lt;P&gt;linux/Documentation/devicetree/bindings/mmc/mmc.txt&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/mmc/mmc.txt?h=imx_4.9.88_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/mmc/mmc.txt?h=imx_4.9.88_2.0.0_ga"&gt;mmc.txt\mmc\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and one can check if valid gpio polarity used in the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 02:02:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797967#M123442</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-09-27T02:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: mmc wp - imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797968#M123443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed I followed the linux documentation. [As I mentioned in my initial post]. But still I dont see wp enabled when the GPIO is set to high through hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured the register MX6UL_PAD_CSI_DATA04__USDHC1_WP&amp;nbsp;&lt;/P&gt;&lt;P&gt;[#define&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6UL_PAD_CSI_DATA04__USDHC1_WP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x01F4 0x0480 0x0000 8 0]&amp;nbsp; in DTB set to 0x17059.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70882iDB8B548BD7D0054C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; modified usdhc1 node as mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;usdhc1 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc1&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cd-gpios = &amp;lt;&amp;amp;gpio2 21 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;wp-gpios = &amp;lt;&amp;amp;gpio4 25 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;no-1-8-v;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;keep-power-in-suspend;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enable-sdio-wakeup;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even polarity is checked - GPIO value toggles when pin input toggles. But WP functionality is not working as expected. [it allows file/folder creation still to the mmc]. Can you please let me know if I miss any further setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Anantha R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 07:39:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797968#M123443</guid>
      <dc:creator>anantharamachan</dc:creator>
      <dc:date>2018-09-27T07:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: mmc wp - imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797969#M123444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anantha&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for using gpio4 25 as wp IOMUXC_SW_MUX_CTL_PAD_CSI_DATA04&lt;/P&gt;&lt;P&gt;should be configured as 0101 ALT5 — Select mux mode: ALT5 mux port: GPIO4_IO25 of instance: gpio4&lt;/P&gt;&lt;P&gt;not as 1000 ALT8 — Select mux mode: ALT8 mux port: USDHC1_WP of instance: usdhc1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 10:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mmc-wp-imx6ul/m-p/797969#M123444</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-09-27T10:04:09Z</dc:date>
    </item>
  </channel>
</rss>

