<?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: i.MX6ULL - LCD Reset / GPIO5_IO09 / Tamper in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/1312552#M177401</link>
    <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;I am also using the same pin for lcd reset in my custom board. I changed in uboot, i am getting nxp logo in uboot stage but i am not able to see anything when kernel booting starts. Can you please let me know the issues you faced while configuring in kernel and device tree. I am getting black screen when kernel booting starts. Please let me know&lt;/P&gt;&lt;P&gt;With regards&lt;/P&gt;&lt;P&gt;Shamiullah&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 10:18:13 GMT</pubDate>
    <dc:creator>shamiullah</dc:creator>
    <dc:date>2021-07-23T10:18:13Z</dc:date>
    <item>
      <title>i.MX6ULL - LCD Reset / GPIO5_IO09 / Tamper</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/856684#M130960</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;I am investigating an issue with our custom board and I cannot seem to control the pad MX6_PAD_SNVS_TAMPER9__GPIO5_IO09 inside u-boot. I am using an LCD. It is a different LCD than on the 14x14 imx6ull dev kit, however the LCD pin configuration is the same on the dev kit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot seem to toggle the pin, either as a GPIO or through the LCD interface. It always appears high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref 1: i.MX 6ULL Applications Processor Reference Manual, Rev. 1, 11/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the following in u-boot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read &lt;STRONG&gt;SW_PAD_CTL_PAD_SNVS_TAMPER9 SW PAD Control Register&lt;/STRONG&gt;, page 1541 (Ref 1)&lt;/P&gt;&lt;P&gt;Reg Address: 229_0070h&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; md 2290070 &amp;nbsp;&lt;BR /&gt;02290070: &lt;STRONG&gt;000110a0&lt;/STRONG&gt; 00000000 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Looks like the default values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read &lt;STRONG&gt;SW_MUX_CTL_PAD_SNVS_TAMPER9 SW MUX Control Register&lt;/STRONG&gt;, page 1508 (Ref 1)&lt;/P&gt;&lt;P&gt;Reg Address: 229_002Ch&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; md 229002C&lt;BR /&gt;0229002c: &lt;STRONG&gt;00000000&lt;/STRONG&gt; 000030a0 0001b0a0 0001b0a0&amp;nbsp;&amp;nbsp;&amp;nbsp; .....0..........&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing has no effect:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; mw.l 229002C 5&lt;BR /&gt;=&amp;gt; md 229002C&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;0229002c: &lt;STRONG&gt;00000000&lt;/STRONG&gt; 000030a0 0001b0a0 0001b0a0&amp;nbsp;&amp;nbsp;&amp;nbsp; .....0..........&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It does state that the value here depends on TAMPER_PIN_DISABLE[1:0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So read the fuses:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; fuse read 0 3&lt;BR /&gt;Reading bank 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Word 0x00000003: 71310098&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Bits 21:20 are 11, so the tamper pins are used as GPIO according to the &lt;STRONG&gt;Fusemap Descriptions Table&lt;/STRONG&gt; on page 228 (Ref 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read &lt;STRONG&gt;GPIO direction register (GPIO5_GDIR)&lt;/STRONG&gt; , page 1357 (Ref 1)&lt;/P&gt;&lt;P&gt;Reg Address: 20A_C004&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; md 20AC004&lt;BR /&gt;020ac004: &lt;STRONG&gt;00000200&lt;/STRONG&gt; 00000820 00000000 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; .... ...........&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Bit 9 is set, so we have an output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read &lt;STRONG&gt;GPIO data register (GPIO5_DR)&lt;/STRONG&gt;, page 1357 (Ref 1)&lt;/P&gt;&lt;P&gt;Reg Address: 20A_C000&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; md 20AC000&lt;BR /&gt;020ac000: &lt;STRONG&gt;00000a20&lt;/STRONG&gt; 00000200 00000820 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....... .......&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempt to write, pin stays high:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; mw.l 20AC000 820&lt;BR /&gt;=&amp;gt; md 20AC000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;020ac000: &lt;STRONG&gt;00000820&lt;/STRONG&gt; 00000200 00000820 00000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....... .......&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the LCD module has control? Try a write of &lt;STRONG&gt;eLCDIF General Control1 Register (LCDIF_CTRL1)&lt;/STRONG&gt;, page 2171 (Ref 1)&lt;/P&gt;&lt;P&gt;Reg Address: 21C_8010h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read first:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; md 21C8010&lt;BR /&gt;021c8010: 00070300 00070300 00070300 00070300&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to toggle:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; mw.l 21C8010 00070301&lt;BR /&gt;=&amp;gt; md 21C8010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;021c8010: 00070301 00070301 00070301 00070301&amp;nbsp;&amp;nbsp;&amp;nbsp; ................&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the pin is still high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts? I must be missing something obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 17:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/856684#M130960</guid>
      <dc:creator>brianptl</dc:creator>
      <dc:date>2019-01-23T17:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6ULL - LCD Reset / GPIO5_IO09 / Tamper</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/856685#M130961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may be hardware issue, one can try to toggle it with jtag,&lt;/P&gt;&lt;P&gt;may be useful to check baremetal sdk test (zip can be found on &lt;A href="https://community.nxp.com/thread/432859"&gt;https://community.nxp.com/thread/432859&lt;/A&gt;&amp;nbsp;)&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>Wed, 23 Jan 2019 23:26:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/856685#M130961</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-01-23T23:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6ULL - LCD Reset / GPIO5_IO09 / Tamper</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/856686#M130962</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;It turns out the u-boot file &lt;STRONG&gt;u-boot-imx/board/freescale/mx6ullevk/mx6ullevk.c&lt;/STRONG&gt; has a different pin for LCD reset than the one that is suggested in the schematic. I assumed the code was correct, which it does not appear to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LCD_RST */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6_PAD_SNVS_TAMPER9__GPIO5_IO09 | MUX_PAD_CTRL(NO_PAD_CTRL),&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Reset the LCD */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpio_request(IMX_GPIO_NR(5, 9), "lcd reset");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpio_direction_output(IMX_GPIO_NR(5, 9) , 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;udelay(500);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpio_direction_output(IMX_GPIO_NR(5, 9) , 1);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;misled me down the wrong path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GPIO that I actually needed was &lt;STRONG&gt;MX6_PAD_LCD_RESET__GPIO3_IO04&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LCD_RST */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6_PAD_LCD_RESET__GPIO3_IO04 | MUX_PAD_CTRL(NO_PAD_CTRL),&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Reset the LCD */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpio_request(IMX_GPIO_NR(3, 4), "lcd reset");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpio_direction_output(IMX_GPIO_NR(3, 4) , 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;udelay(20);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpio_direction_output(IMX_GPIO_NR(3, 4) , 1);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 17:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/856686#M130962</guid>
      <dc:creator>brianptl</dc:creator>
      <dc:date>2019-01-25T17:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6ULL - LCD Reset / GPIO5_IO09 / Tamper</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/1312552#M177401</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;I am also using the same pin for lcd reset in my custom board. I changed in uboot, i am getting nxp logo in uboot stage but i am not able to see anything when kernel booting starts. Can you please let me know the issues you faced while configuring in kernel and device tree. I am getting black screen when kernel booting starts. Please let me know&lt;/P&gt;&lt;P&gt;With regards&lt;/P&gt;&lt;P&gt;Shamiullah&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 10:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6ULL-LCD-Reset-GPIO5-IO09-Tamper/m-p/1312552#M177401</guid>
      <dc:creator>shamiullah</dc:creator>
      <dc:date>2021-07-23T10:18:13Z</dc:date>
    </item>
  </channel>
</rss>

