[beagleboard] Re: Troubles when adding a LED to Device Tree

2020-09-01 Thread Mark A. Yoder
Pedro: I think I got lucky and the mux was already set to gpio. --Mark On Tuesday, September 1, 2020 at 3:55:33 PM UTC-4 phfber...@gmail.com wrote: > Hi Mark. Great, thanks! > > Per my understanding, the Device Tree approach of > https://elinux.org/EBC_Exercise_17_Switching_a_GPIO_to_an_LED d

[beagleboard] Re: Troubles when adding a LED to Device Tree

2020-09-01 Thread phfbertoleti
Hi Mark. Great, thanks! Per my understanding, the Device Tree approach of https://elinux.org/EBC_Exercise_17_Switching_a_GPIO_to_an_LED doesn't include modifying user_leds_s0 (pinmux for user leds). Do you know why isn't this needed? Best Regards, Pedro Bertoleti Em terça-feira, 1 de setembr

[beagleboard] Re: Troubles when adding a LED to Device Tree

2020-09-01 Thread phfbertoleti
Hi TJF. I've never heard about libpruio before. It seems to be very nice and fast, once it uses PRUs for writing and reading I/Os, per my understanding. Thanks for the suggestion. Best Regards, Pedro Bertoleti Em terça-feira, 1 de setembro de 2020 às 11:36:13 UTC-3, TJF escreveu: > Hi! > >

[beagleboard] Re: Troubles when adding a LED to Device Tree

2020-09-01 Thread Mark A. Yoder
Your steps look right, but there is a simpler way to do them. Check out: https://elinux.org/EBC_Exercise_17_Switching_a_GPIO_to_an_LED No need to cross compile etc. --Mark On Tuesday, September 1, 2020 at 10:36:13 AM UTC-4 TJF wrote: > Hi! > > Forget about all that device tree trouble, use lib

[beagleboard] Re: Troubles when adding a LED to Device Tree

2020-09-01 Thread TJF
Hi! Forget about all that device tree trouble, use libpruio instead. You can configure the pin and set the desired output state by a single function call in your programm running at user space (no sudo commands, no re