Thank you, this fixes the problem. Both drivers work perfectly when 
connected to the right gpios!

On Monday, November 19, 2018 at 1:24:28 PM UTC-5, RobertCNelson wrote:
>
> On Mon, Nov 19, 2018 at 12:18 PM <[email protected] <javascript:>> wrote: 
> > 
> > I have been trying to upgrade a number of beaglebone blacks to Debian 
> 9.5. I have been working off the 10-28-2018 IoT image. 
> > 
> > I have a custom-built cape that my lab uses to track animal behavior 
> experiments. The BBBs are currently running Debian 7 with the Linux 3.8 
> kernel. The cape makes heavy use of the gpio-keys and gpio-leds drivers, 
> and I wrote a custom device tree overlay to map various pins accordingly. 
> The gpio-keys driver is particularly important as it allows our node-based 
> software to respond to behavioral events. The gpio-leds driver is less 
> important, but I do find the oneshot trigger convenient for some things. 
> > 
> > So far, I have been unable to get either of these drivers to work in the 
> new kernel. If I leave the pins configured as GPIOs I can flip the output 
> and read inputs just fine. Here is a DTS that recreates the problem: 
>
> Well the gpio# changed after 3.8.13 (around 3.13.x)... use this 
> values.. (3.8.13_gpio(x) = 3.11+_gpio(x-1)) 
>
>
> >         exclusive-use = 
> >                 "P8.18", "gpio2_1", 
> >                 "P8.16", "gpio1_14"; 
> > 
>
> >                            sbd-cue-lrd { 
> >                                    label = "gpioled:red"; 
> >                                    //gpios = <&gpio3 1 0>; /* P8.18 */ 
>                                     gpios = <&gpio2 1 0>; /* P8.18 */ 
> >                                    //gpios = <&gpio3 6 
> GPIO_ACTIVE_HIGH>; /* P8.45 */ 
> >                                    default-state = "on"; 
>
>
> >                            hopper-up { 
> >                                    label = "starboard::hopper-up"; 
> >                                    debounce_interval = <100>; 
> >                                    linux,code = <1>; 
> >                                    //gpios = <&gpio2 14 
> GPIO_ACTIVE_LOW>; /* P8.16 */ 
>                                     gpios = <&gpio1 14 
> GPIO_ACTIVE_LOW>; /* P8.16 */ 
> >                                    gpio-key,wakeup; 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/76bb07a5-97a7-44dd-9276-61403658f667%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to