<?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 LSIO GPIO Driver in SCFW 1.1 not working in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867107#M131957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have our custom board based on iMX8QXP. We are using the SCFW1.1. Trying to toggle a LSIO GPIO pin using the GPIO Driver interfaces provided in the SCFW documentation.&lt;/P&gt;&lt;P&gt;But the GPIO driver is accessing a different register base address that corresponds to FGPIO instead of the GPIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g&amp;nbsp;&lt;/P&gt;&lt;P&gt;scfw_export_mx8qx_b0\platform\drivers\gpio\fsl_gpio.h&lt;/P&gt;&lt;P&gt;static inline void GPIO_WritePinOutput(GPIO_Type *base, uint32_t pin, uint8_t output)&lt;BR /&gt;{&lt;BR /&gt; if (output == 0U)&lt;BR /&gt; {&lt;BR /&gt; base-&amp;gt;PCOR = 1 &amp;lt;&amp;lt; pin;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; base-&amp;gt;PSOR = 1 &amp;lt;&amp;lt; pin;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The PCOR and PSOR are not part of LSIO GPIO subsystem as per the reference manual.&lt;/P&gt;&lt;P&gt;Is the LSIO GPIO is not supported in the current SCFW1.1 version?&lt;/P&gt;&lt;P&gt;If so is there a plan to support in the future versions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2019 04:12:18 GMT</pubDate>
    <dc:creator>vmuthusu</dc:creator>
    <dc:date>2019-01-29T04:12:18Z</dc:date>
    <item>
      <title>LSIO GPIO Driver in SCFW 1.1 not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867107#M131957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have our custom board based on iMX8QXP. We are using the SCFW1.1. Trying to toggle a LSIO GPIO pin using the GPIO Driver interfaces provided in the SCFW documentation.&lt;/P&gt;&lt;P&gt;But the GPIO driver is accessing a different register base address that corresponds to FGPIO instead of the GPIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g&amp;nbsp;&lt;/P&gt;&lt;P&gt;scfw_export_mx8qx_b0\platform\drivers\gpio\fsl_gpio.h&lt;/P&gt;&lt;P&gt;static inline void GPIO_WritePinOutput(GPIO_Type *base, uint32_t pin, uint8_t output)&lt;BR /&gt;{&lt;BR /&gt; if (output == 0U)&lt;BR /&gt; {&lt;BR /&gt; base-&amp;gt;PCOR = 1 &amp;lt;&amp;lt; pin;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; base-&amp;gt;PSOR = 1 &amp;lt;&amp;lt; pin;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The PCOR and PSOR are not part of LSIO GPIO subsystem as per the reference manual.&lt;/P&gt;&lt;P&gt;Is the LSIO GPIO is not supported in the current SCFW1.1 version?&lt;/P&gt;&lt;P&gt;If so is there a plan to support in the future versions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 04:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867107#M131957</guid>
      <dc:creator>vmuthusu</dc:creator>
      <dc:date>2019-01-29T04:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: LSIO GPIO Driver in SCFW 1.1 not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867108#M131958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i click on the "Branched to a new discussion" link above i am getting unauthorized error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 03:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867108#M131958</guid>
      <dc:creator>vmuthusu</dc:creator>
      <dc:date>2019-02-01T03:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: LSIO GPIO Driver in SCFW 1.1 not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867109#M131959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I internally asked to confirm the features of the SCFW, because the M4 dedicated to the SCU includes a dedicated UART, I2C and HSGPIO (the one that seems you are seeing) that are not accessible to the user A and M cores, but just want to confirm if the regular GPIOs of the SoC are accessible from the SCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post an update as soon as having news.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 20:28:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867109#M131959</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2019-02-01T20:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: LSIO GPIO Driver in SCFW 1.1 not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867110#M131960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I internally received the following information:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;scfw_export_mx8qx_b0\platform\drivers\gpio\fsl_gpio.* driver is specific only for SCU GPIOs and for LSIO GPIO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Generally, the above steps should be done if you want to program LSIO GPIO from SCU.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;0. Since LSIO GPIO belongs to other subsystem then SCU, please power DB cross switch in order to be able to access LSIO IPs from SC.&lt;/P&gt;&lt;P style="border: 0px;"&gt;0.1 Mark LSIO GPIO resource as nonmovable if you need to keep it in SCU partition.&lt;/P&gt;&lt;P style="border: 0px;"&gt;1. Set the mux (&amp;nbsp;example:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;pad_set_mux(SC_PT, SC_P_ADC_IN5, 4, SC_PAD_CONFIG_NORMAL,&amp;nbsp;&amp;nbsp;SC_PAD_ISO_OFF)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="border: 0px;"&gt;2. Power up the resource ( example:&amp;nbsp;&amp;nbsp;pm_force_resource_power_mode(SC_R_GPIO_1, SC_PM_PW_MODE_ON); )&lt;/P&gt;&lt;P style="border: 0px;"&gt;3. Program specific PIN (direction, value etc):&lt;/P&gt;&lt;P style="border: 0px;"&gt;a.&amp;nbsp; With Structure&lt;/P&gt;&lt;P&gt;/* LSIO GPIO registers */&lt;BR /&gt;typedef struct {&lt;BR /&gt; __IO uint32_t DR; /* Data Register */&lt;BR /&gt; __IO uint32_t GDIR; /* Direction Register */&lt;BR /&gt; __IO uint32_t PSR; /* Pad Status Register */&lt;BR /&gt; __IO uint32_t ICR1; /* Interrupt Configuration Register 1 */&lt;BR /&gt; __IO uint32_t ICR2; /* Interrupt Configuration Register 2 */&lt;BR /&gt; __IO uint32_t IMR; /* Interrupt Mask Register */&lt;BR /&gt; __IO uint32_t EDGE_SEL; /* Edge Select Register */&lt;BR /&gt;} LSIO_GPIO_Type;&lt;/P&gt;&lt;P&gt;#define LSIO_GPIO0 ((LSIO_GPIO_Type *) 0x5D080000)&lt;BR /&gt;#define LSIO_GPIO1 ((LSIO_GPIO_Type *) 0x5D090000)&lt;BR /&gt;#define LSIO_GPIO2 ((LSIO_GPIO_Type *) 0x5D0A0000)&lt;BR /&gt;#define LSIO_GPIO3 ((LSIO_GPIO_Type *) 0x5D0B0000)&lt;BR /&gt;#define LSIO_GPIO4 ((LSIO_GPIO_Type *) 0x5D0C0000)&lt;BR /&gt;#define LSIO_GPIO5 ((LSIO_GPIO_Type *) 0x5D0D0000)&lt;BR /&gt;#define LSIO_GPIO6 ((LSIO_GPIO_Type *) 0x5D0E0000)&lt;BR /&gt;#define LSIO_GPIO7 ((LSIO_GPIO_Type *) 0x5D0F0000)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Direction&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;uint32_t lsioGpioMask = BIT(13);&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp; LSIO_GPIO1-&amp;gt;GDIR |= lsioGpioMask;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Toggling:&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;/* Toggle GPIO outputs each 1 sec */&lt;BR /&gt;for (uint i = 0; i &amp;lt; GPIO_TOGGLE_SEC; i++)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (LSIO_GPIO1-&amp;gt;DR &amp;amp; lsioGpioMask)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LSIO_GPIO1-&amp;gt;DR &amp;amp;= (~(lsioGpioMask));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LSIO_GPIO1-&amp;gt;DR |= lsioGpioMask;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SystemTimeDelay(1000000);&lt;BR /&gt;}&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;b. Direct accessing the memory:&lt;/P&gt;&lt;P style="border: 0px;"&gt;Direction:&lt;/P&gt;&lt;P style="border: 0px;"&gt;(*((int *)0x5D090004)) |= (1&amp;lt;&amp;lt;13);&lt;/P&gt;&lt;P style="border: 0px;"&gt;Toggling:&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;for (int i = 0; i &amp;lt;GPIO_TOGGLE_SEC; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if( (*((int *)0x5D090000)) &amp;amp; (1&amp;lt;&amp;lt;13))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(*((int *)0x5D090000)) &amp;amp;= ~(1&amp;lt;&amp;lt;13);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(*((int *)0x5D090000)) |= (1&amp;lt;&amp;lt;13);&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SystemTimeDelay(1000000);&lt;/P&gt;&lt;P style="border: 0px;"&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;The Architecture of SCFW porting provides the flexibility to add your own drivers if there are needed in boards/mx8qx_* directory.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="border: 0px;"&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&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, 06 Feb 2019 16:38:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867110#M131960</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2019-02-06T16:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: LSIO GPIO Driver in SCFW 1.1 not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867111#M131961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;Thanks for your reply and help.&lt;/P&gt;&lt;P&gt;I will try out the suggestion and get back if in case any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;V.Muthusubramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 03:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867111#M131961</guid>
      <dc:creator>vmuthusu</dc:creator>
      <dc:date>2019-02-07T03:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: LSIO GPIO Driver in SCFW 1.1 not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867112#M131962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&amp;nbsp;I try your suggestion，operation GPIO4_25 in SCFW with the I.MX8 QM。&lt;/P&gt;&lt;P&gt;When I operation LSIO_GPIO4-&amp;gt;GDIR，SCFW stoped。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give some advices？&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much！！&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2019 07:46:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LSIO-GPIO-Driver-in-SCFW-1-1-not-working/m-p/867112#M131962</guid>
      <dc:creator>liuxi</dc:creator>
      <dc:date>2019-02-18T07:46:39Z</dc:date>
    </item>
  </channel>
</rss>

