<?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のトピックHow to configure tca6416 as a button</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-tca6416-as-a-button/m-p/657538#M100873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,everyone&lt;/P&gt;&lt;P&gt;I need tca6416a as input button and output control for my new design,how to configure tca6416 as gpio button and gpio.Is it like below?&amp;nbsp;&lt;/P&gt;&lt;P&gt;i2c@3 {&lt;BR /&gt; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; #size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt; reg = &amp;lt;3&amp;gt;;&lt;BR /&gt; tca6416: tca6416@21{&lt;BR /&gt; compatible = "ti,tca6416";&lt;BR /&gt; reg = &amp;lt;0x21&amp;gt;;&lt;BR /&gt; gpio-controller;&lt;BR /&gt; #gpio-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;gpio_keys {&lt;BR /&gt; compatible = "gpio-keys";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; &lt;BR /&gt; power-button {&lt;BR /&gt; label = "Power Button";&lt;BR /&gt; linux,code = &amp;lt;KEY_POWER&amp;gt;;&lt;BR /&gt; gpios = &amp;lt;&amp;amp;gpio4 22 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; left{&lt;BR /&gt; label = "left";&lt;BR /&gt; linux,code = &amp;lt;KEY_RIGHT&amp;gt;;&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca6416 0 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; right {&lt;BR /&gt; label = "right";&lt;BR /&gt; linux,code = &amp;lt;KEY_LEFT&amp;gt;;&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca6416 1 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;leds {&lt;BR /&gt; compatible = "gpio-leds";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; keybacklight{&lt;BR /&gt; label = "keybl";&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca6416 2 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 03:19:45 GMT</pubDate>
    <dc:creator>末班车上的乘客</dc:creator>
    <dc:date>2017-03-16T03:19:45Z</dc:date>
    <item>
      <title>How to configure tca6416 as a button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-tca6416-as-a-button/m-p/657538#M100873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,everyone&lt;/P&gt;&lt;P&gt;I need tca6416a as input button and output control for my new design,how to configure tca6416 as gpio button and gpio.Is it like below?&amp;nbsp;&lt;/P&gt;&lt;P&gt;i2c@3 {&lt;BR /&gt; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; #size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt; reg = &amp;lt;3&amp;gt;;&lt;BR /&gt; tca6416: tca6416@21{&lt;BR /&gt; compatible = "ti,tca6416";&lt;BR /&gt; reg = &amp;lt;0x21&amp;gt;;&lt;BR /&gt; gpio-controller;&lt;BR /&gt; #gpio-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;gpio_keys {&lt;BR /&gt; compatible = "gpio-keys";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; &lt;BR /&gt; power-button {&lt;BR /&gt; label = "Power Button";&lt;BR /&gt; linux,code = &amp;lt;KEY_POWER&amp;gt;;&lt;BR /&gt; gpios = &amp;lt;&amp;amp;gpio4 22 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; &lt;BR /&gt; left{&lt;BR /&gt; label = "left";&lt;BR /&gt; linux,code = &amp;lt;KEY_RIGHT&amp;gt;;&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca6416 0 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; right {&lt;BR /&gt; label = "right";&lt;BR /&gt; linux,code = &amp;lt;KEY_LEFT&amp;gt;;&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca6416 1 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;leds {&lt;BR /&gt; compatible = "gpio-leds";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; keybacklight{&lt;BR /&gt; label = "keybl";&lt;BR /&gt; gpios = &amp;lt;&amp;amp;tca6416 2 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 03:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-tca6416-as-a-button/m-p/657538#M100873</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2017-03-16T03:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure tca6416 as a button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-tca6416-as-a-button/m-p/657539#M100874</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 tca6416 used on wandboard so one can check its configuration :&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/smartpathinfosystemsindia/mx6-wandboard/blob/master/kernel/linux-3.0.35-imx6-wand/drivers/input/keyboard/tca6416-keypad.c" title="https://github.com/smartpathinfosystemsindia/mx6-wandboard/blob/master/kernel/linux-3.0.35-imx6-wand/drivers/input/keyboard/tca6416-keypad.c"&gt;mx6-wandboard/tca6416-keypad.c at master · smartpathinfosystemsindia/mx6-wandboard · GitHub&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>Thu, 16 Mar 2017 05:17:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-tca6416-as-a-button/m-p/657539#M100874</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-03-16T05:17:18Z</dc:date>
    </item>
  </channel>
</rss>

