Go to advanced search

by shibata
Fri Sep 11, 2015 3:44 am
Forum: Device Tree
Topic: brcm pull-up
Replies: 0
Views: 1358

brcm pull-up

I'm willing to use gpio-keys with the board's internal pull-up. Looking at the device tree disassembly I ended up at brcm,bcm2835-gpio . I couldn't find any example or reference on the internet with gpio-keys, is it possible to mix them? I tried writing my own and it looks similar to the other devic...
by shibata
Sun Sep 06, 2015 3:20 am
Forum: Device Tree
Topic: gpio_keys device tree overlay
Replies: 20
Views: 7624

Re: gpio_keys device tree overlay

You will have to edit ID_PATH to match your ID. On mine,

Code: Select all

SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_PATH}=="platform-soc:keypad", ATTRS{keys}=="*116*", TAG+="power-switch"
works.
by shibata
Sun Jul 12, 2015 4:29 am
Forum: Device Tree
Topic: gpio_keys device tree overlay
Replies: 20
Views: 7624

Re: gpio_keys device tree overlay

Thanks for the help. At first I though it still wasn't working because I was using showkey to test the buttons, which wasn't giving any output, but I saw gpio_keys automatically loaded and cat /dev/input/event0 gave me data. Any idea why keys won't appear on terminal/applications? EDIT: Nevermind, I...
by shibata
Sat Jul 11, 2015 2:55 am
Forum: Device Tree
Topic: gpio_keys device tree overlay
Replies: 20
Views: 7624

gpio_keys device tree overlay

I'm trying to setup gpio_keys to trigger keyboard events on GPIO activity. The desired behavior is using a GPIO pin to send a shutdown key code and halt the system. I know there are other ways of doing that and I'm currently using a simple bash script to read the GPIO, but since there is a gpio_keys...

Go to advanced search