<?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のトピックRe: configure tca8418 as gpio button</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654338#M100220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems gpio mode is not supported by current tca8418 driver,&lt;/P&gt;&lt;P&gt;one can add such functionality himself using existing driver&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://lxr.free-electrons.com/source/drivers/input/keyboard/tca8418_keypad.c" title="http://lxr.free-electrons.com/source/drivers/input/keyboard/tca8418_keypad.c"&gt;Linux/drivers/input/keyboard/tca8418_keypad.c - Linux Cross Reference - Free Electrons&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and vendor resources&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://e2e.ti.com/support/embedded/linux/f/354/p/473615/1705399" title="http://e2e.ti.com/support/embedded/linux/f/354/p/473615/1705399"&gt;tca8418 matrix &amp;amp; gpio - Linux forum - Linux - TI E2E Community&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>Tue, 02 May 2017 11:14:02 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-05-02T11:14:02Z</dc:date>
    <item>
      <title>configure tca8418 as gpio button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654337#M100219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,everyone&lt;BR /&gt;how to configure tca8418 as gpio button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 05:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654337#M100219</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2017-05-02T05:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: configure tca8418 as gpio button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654338#M100220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems gpio mode is not supported by current tca8418 driver,&lt;/P&gt;&lt;P&gt;one can add such functionality himself using existing driver&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://lxr.free-electrons.com/source/drivers/input/keyboard/tca8418_keypad.c" title="http://lxr.free-electrons.com/source/drivers/input/keyboard/tca8418_keypad.c"&gt;Linux/drivers/input/keyboard/tca8418_keypad.c - Linux Cross Reference - Free Electrons&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and vendor resources&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://e2e.ti.com/support/embedded/linux/f/354/p/473615/1705399" title="http://e2e.ti.com/support/embedded/linux/f/354/p/473615/1705399"&gt;tca8418 matrix &amp;amp; gpio - Linux forum - Linux - TI E2E Community&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>Tue, 02 May 2017 11:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654338#M100220</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-05-02T11:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: configure tca8418 as gpio button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654339#M100221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems adp5588 gpio driver is compatible with tca8418&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 12:33:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654339#M100221</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2017-05-02T12:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: configure tca8418 as gpio button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654340#M100222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have patched tca8418 driver to support devicetree base on gpio-adp5588.c in linux3.14.28.but it's not work properly.gpio works fine with echo/cat x &amp;gt; export,direction,value operation.It can't use as gpio for other device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tca8418:gpio@0x34{&lt;BR /&gt; compatible = "ti,tca8418-gpio";&lt;BR /&gt; reg = &amp;lt;0x34&amp;gt;;&lt;BR /&gt; interrupt-parent = &amp;lt;&amp;amp;gpio3&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;19 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; irq-gpios = &amp;lt;&amp;amp;gpio3 19 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; #gpio-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt; gpio-controller; &lt;BR /&gt; ngpios = &amp;lt;18&amp;gt;;&lt;BR /&gt; base = &amp;lt;224&amp;gt;;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rotary@1{&lt;BR /&gt; compatible = "rotary-encoder";&lt;BR /&gt;// depends = &amp;amp;tca8418;&lt;BR /&gt; //pinctrl-names = "default";&lt;BR /&gt; //pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpio_keys&amp;gt;;&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca8418 6 GPIO_ACTIVE_LOW&amp;gt;,&amp;lt;&amp;amp;tca8418 7 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; rotary-encoder,steps = &amp;lt;10&amp;gt;;&lt;BR /&gt; rotary-encoder,steps-per-period = &amp;lt;10&amp;gt;;&lt;BR /&gt; //rotary-encoder,relative-axis;&lt;BR /&gt; rotary-encoder,rollover;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpio-keys {&lt;BR /&gt; compatible = "gpio-keys";&lt;BR /&gt; pinctrl-names = "default";&lt;/P&gt;&lt;P&gt;num7 {&lt;BR /&gt; label = "num7";&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca8418 8 1&amp;gt;; //tca8418 C0&lt;BR /&gt; gpio-key,wakeup;&lt;BR /&gt; linux,code = &amp;lt;KEY_7&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; num4 {&lt;BR /&gt; label = "num4";&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca8418 9 1&amp;gt;; //tca8418 C1&lt;BR /&gt; gpio-key,wakeup;&lt;BR /&gt; linux,code = &amp;lt;KEY_4&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;num8 {&lt;BR /&gt; label = "num8";&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca8418 10 1&amp;gt;; //tca8418 C2&lt;BR /&gt; gpio-key,wakeup;&lt;BR /&gt; linux,code = &amp;lt;KEY_8&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regulators {&lt;BR /&gt; compatible = "simple-bus";&lt;BR /&gt; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; #size-cells = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lvds_pwr: regulator@4 {&lt;BR /&gt; compatible = "regulator-fixed";&lt;BR /&gt; reg = &amp;lt;4&amp;gt;;&lt;BR /&gt; regulator-name = "lvds-supply";&lt;BR /&gt;// depends = &amp;amp;tca8418;&lt;BR /&gt; //regulator-min-microvolt = &amp;lt;3300000&amp;gt;;&lt;BR /&gt; //regulator-max-microvolt = &amp;lt;3300000&amp;gt;;&lt;BR /&gt; //gpio = &amp;lt;&amp;amp;gpio1 10 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt; gpio = &amp;lt;&amp;amp;tca8418 5 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt; startup-delay-us = &amp;lt;500&amp;gt;;&lt;BR /&gt; enable-active-high;&lt;BR /&gt; regulator-boot-on;&lt;BR /&gt; };&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;erro message as below:&lt;/P&gt;&lt;P&gt;gpiod_request:invalid GPIO&lt;/P&gt;&lt;P&gt;rotary-encoder:rotary.20:unable to request GPIO -517&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rotary-encoder:probe of rotary.20 failed with error -22&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;seems tca8418-gpio device haven't be loaded before gpio-keys and rotary-encoder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have solved the problem&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 08:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/configure-tca8418-as-gpio-button/m-p/654340#M100222</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2017-05-04T08:21:47Z</dc:date>
    </item>
  </channel>
</rss>

