devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gpio_key.c device tree question
@ 2017-01-09  3:42 noman pouigt
  2017-01-10  7:29 ` noman pouigt
  0 siblings, 1 reply; 2+ messages in thread
From: noman pouigt @ 2017-01-09  3:42 UTC (permalink / raw)
  To: dmitry.torokhov, linux-input; +Cc: devicetree, linux-kernel

Hello,

I am trying to see how to disable the sub device nodes in
gpio_keys device node.

I have this in my base dtsi file:

#include "vendor_file.dtsi"

        gpio_keys {
                compatible = "gpio-keys";
                input-name = "gpio-keys";
                pinctrl-names = "gpio_key_active","gpio_key_suspend";
                pinctrl-0 = <&key_active>;
                pinctrl-1 = <&key_suspend>;
                camera_snapshot {
                        label = "camera_snapshot";
                        //snip
                };
        };

I have this in vendor_file.dtsi:
       gpio_keys {
               source_key_1 {
                       label = "source_key_1";
                       //snip
               };
       };

In my current consolidated dtb file all nodes are getting
added i.e. camera_snapshot and source_key_1. How
can i remove camera_snapshot node from the
gpio_keys device node or disable it?


Thanks,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-10  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09  3:42 gpio_key.c device tree question noman pouigt
2017-01-10  7:29 ` noman pouigt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).