<?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のトピックPWM Buzzer doesn't work with Kernel 4.14</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874797#M132797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;i configured pwm1 with linux kernel 3.14.38 and my pwm buzzer works. I try to upgrade the kernel to 4.14.101 and take the same device tree configuration. I've connected the pin to an oscilloscope. When I turn on the buzzer, however, no frequency is generated.&amp;nbsp;As a gpio the pin generates a signal. Is it possible that the driver for the pwm has a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defconfig&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_PWM=y&lt;BR /&gt;CONFIG_PWM_IMX=y&lt;BR /&gt;CONFIG_PWM_SYSFS=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Freescale part of the device tree (imx6ul.dtsi)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pwm1: pwm@02080000 {&lt;BR /&gt; compatible = "fsl,imx6ul-pwm", "fsl,imx27-pwm";&lt;BR /&gt; reg = &amp;lt;0x02080000 0x4000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_PWM1&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6UL_CLK_PWM1&amp;gt;;&lt;BR /&gt; clock-names = "ipg", "per";&lt;BR /&gt; #pwm-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt; status = "disabled";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My device tree extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt; pinctrl_pwm1: pwm1grp {&lt;BR /&gt; fsl,pin = &amp;lt;&lt;BR /&gt; MX6UL_PAD_GPIO1_IO08__PWM1_OUT 0x110b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;amp;pwm1 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pwm1&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cat /sys/kernel/debug/pwm gives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;platform/2080000.pwm, 1 PWM device&lt;BR /&gt; pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I export and configure the with:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;echo 0 &amp;gt; /sys/class/pwm/pwmchip0/export&lt;BR /&gt;echo 190000 &amp;gt; /sys/class/pwm/pwmchip0/pwm0/&lt;BR /&gt;echo 190000 &amp;gt; /sys/class/pwm/pwmchip0/pwm0/duty_cycle &lt;BR /&gt;echo 1 &amp;gt; /sys/class/pwm/pwmchip0/pwm0/enable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that cat /sys/kernel/debug/pwm gives&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;platform/2080000.pwm, 1 PWM device&lt;BR /&gt; pwm-0 (sysfs ): requested enabled period: 250000 ns duty: 190000 ns polarity: normal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2019 12:24:06 GMT</pubDate>
    <dc:creator>erichschmidt</dc:creator>
    <dc:date>2019-03-07T12:24:06Z</dc:date>
    <item>
      <title>PWM Buzzer doesn't work with Kernel 4.14</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874797#M132797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;i configured pwm1 with linux kernel 3.14.38 and my pwm buzzer works. I try to upgrade the kernel to 4.14.101 and take the same device tree configuration. I've connected the pin to an oscilloscope. When I turn on the buzzer, however, no frequency is generated.&amp;nbsp;As a gpio the pin generates a signal. Is it possible that the driver for the pwm has a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defconfig&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_PWM=y&lt;BR /&gt;CONFIG_PWM_IMX=y&lt;BR /&gt;CONFIG_PWM_SYSFS=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Freescale part of the device tree (imx6ul.dtsi)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pwm1: pwm@02080000 {&lt;BR /&gt; compatible = "fsl,imx6ul-pwm", "fsl,imx27-pwm";&lt;BR /&gt; reg = &amp;lt;0x02080000 0x4000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_PWM1&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6UL_CLK_PWM1&amp;gt;;&lt;BR /&gt; clock-names = "ipg", "per";&lt;BR /&gt; #pwm-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt; status = "disabled";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My device tree extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt; pinctrl_pwm1: pwm1grp {&lt;BR /&gt; fsl,pin = &amp;lt;&lt;BR /&gt; MX6UL_PAD_GPIO1_IO08__PWM1_OUT 0x110b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;amp;pwm1 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pwm1&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cat /sys/kernel/debug/pwm gives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;platform/2080000.pwm, 1 PWM device&lt;BR /&gt; pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I export and configure the with:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;echo 0 &amp;gt; /sys/class/pwm/pwmchip0/export&lt;BR /&gt;echo 190000 &amp;gt; /sys/class/pwm/pwmchip0/pwm0/&lt;BR /&gt;echo 190000 &amp;gt; /sys/class/pwm/pwmchip0/pwm0/duty_cycle &lt;BR /&gt;echo 1 &amp;gt; /sys/class/pwm/pwmchip0/pwm0/enable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that cat /sys/kernel/debug/pwm gives&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;platform/2080000.pwm, 1 PWM device&lt;BR /&gt; pwm-0 (sysfs ): requested enabled period: 250000 ns duty: 190000 ns polarity: normal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 12:24:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874797#M132797</guid>
      <dc:creator>erichschmidt</dc:creator>
      <dc:date>2019-03-07T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Buzzer doesn't work with Kernel 4.14</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874798#M132798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot the category and can't update it. I am using a imx6ul cpu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 12:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874798#M132798</guid>
      <dc:creator>erichschmidt</dc:creator>
      <dc:date>2019-03-07T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Buzzer doesn't work with Kernel 4.14</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874799#M132799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Linux BSP 4.14 for i.MX processors include a basic PWM library (mainly oriented for LCD backlight control).&lt;/P&gt;&lt;P&gt;Please refer to chapter 2.7 “Pulse-Width Modulator (PWM)” section of “i.MX Reference Manual” document (attached) for additional details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2019 18:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874799#M132799</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2019-03-11T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Buzzer doesn't work with Kernel 4.14</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874800#M132800</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 found the mistake now. There was a syntax error in the devicetree which Yocto did not recognize and therefore compiled the devicetree anyway. Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PWM-Buzzer-doesn-t-work-with-Kernel-4-14/m-p/874800#M132800</guid>
      <dc:creator>erichschmidt</dc:creator>
      <dc:date>2019-03-25T13:28:17Z</dc:date>
    </item>
  </channel>
</rss>

