<?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: Enable IMX8QXP LSIO PWM in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Enable-IMX8QXP-LSIO-PWM/m-p/966483#M143990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at example from&amp;nbsp;i.MX8QXP-B0 L4.9.88_2.2.0-8qxp_beta2 release&lt;/P&gt;&lt;P&gt;for LSIO_PWM0 (use pin SC_P_UART1_TX_LSIO_PWM0_OUT) and try to port it.&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>Tue, 11 Jun 2019 07:43:47 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-06-11T07:43:47Z</dc:date>
    <item>
      <title>Enable IMX8QXP LSIO PWM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-IMX8QXP-LSIO-PWM/m-p/966482#M143989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am&amp;nbsp;working with a custom board that requires UART1_RTS_B to be&amp;nbsp;used as a PWM output. I have currently configured our device tree to set the mux_mode of UART1_RTS_B to LSIO_PWM2_OUT. Our device tree is based on the following DTSI files from NXP:&amp;nbsp;fsl-imx8qxp.dtsi, fsl-imx8dxp.dtsi, fsl-imx8dx.dtsi, and fsl-imx8-ca35.dtsi. I did not see any nodes in these files for the LSIO PWM modules and I did not see them enabled in the device tree for the IMX8QXP MEK. Therefore I have to write my own node for LSIO PWM 2.&amp;nbsp;What I have written so far&amp;nbsp;is based on the&amp;nbsp;pwm_adma_lcdif,&amp;nbsp;pwm_mipi_lvds0, and&amp;nbsp;pwm_mipi_lvds1 nodes in fsl-imx8dx.dtsi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pwm2: pwm@5d020000 {&lt;BR /&gt; compatible = "fsl,imx8qxp-pwm", "fsl,imx27-pwm";&lt;BR /&gt; reg = &amp;lt;0x0 0x5d020000 0x0 0x10000&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clk IMX8QXP_LSIO_PWM2_IPG_S_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clk IMX8QXP_LSIO_PWM2_CLK&amp;gt;;&lt;BR /&gt; clock-names = "ipg", "per";&lt;BR /&gt; assigned-clocks = &amp;lt;&amp;amp;clk IMX8QXP_LSIO_PWM2_CLK&amp;gt;;&lt;BR /&gt; assigned-clock-rates = &amp;lt;24000000&amp;gt;;&lt;BR /&gt; #pwm-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt; power-domains = &amp;lt;&amp;amp;pd_lsio_pwm2&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that nodes such as pwm_adma_lcdif have the size cells of the reg property set to 0x0 0x1000, even though the memory map shows that region is 64KB. Should I also set the size cells of the reg property of my PWM node to 0x0 0x1000 even though the memory map says it is 64KB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that&amp;nbsp;dt-bindings/clock/imx8qxp-clock.h has the following clocks defined for LSIO PWM 2:&amp;nbsp;IMX8QXP_LSIO_PWM2_DIV, IMX8QXP_LSIO_PWM2_IPG_S_CLK, IMX8QXP_LSIO_PWM2_IPG_SLV_CLK, IMX8QXP_LSIO_PWM2_IPG_MSTR_CLK, IMX8QXP_LSIO_PWM2_HF_CLK, and IMX8QXP_LSIO_PWM2_CLK. I could not find an explanation for what these clocks do. What is the difference between the IPG_S, IPG_SLV, and IPG_MSTR clocks and which should be used for the IPG clock in my PWM node? Should the PER clock be set with the IMX8QXP_LSIO_PWM2_CLK or some other clock? Are the assigned-clocks and assigned-clock-rates properties set correctly in my PWM node?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 20:59:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-IMX8QXP-LSIO-PWM/m-p/966482#M143989</guid>
      <dc:creator>paul_katarzis</dc:creator>
      <dc:date>2019-06-10T20:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Enable IMX8QXP LSIO PWM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-IMX8QXP-LSIO-PWM/m-p/966483#M143990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at example from&amp;nbsp;i.MX8QXP-B0 L4.9.88_2.2.0-8qxp_beta2 release&lt;/P&gt;&lt;P&gt;for LSIO_PWM0 (use pin SC_P_UART1_TX_LSIO_PWM0_OUT) and try to port it.&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>Tue, 11 Jun 2019 07:43:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-IMX8QXP-LSIO-PWM/m-p/966483#M143990</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-06-11T07:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enable IMX8QXP LSIO PWM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-IMX8QXP-LSIO-PWM/m-p/966484#M143991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very helpful. Thank you, Igor!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-IMX8QXP-LSIO-PWM/m-p/966484#M143991</guid>
      <dc:creator>paul_katarzis</dc:creator>
      <dc:date>2019-06-11T13:48:53Z</dc:date>
    </item>
  </channel>
</rss>

