On 5/8/14, 9:35 AM, "Charles Steinkuehler" <char...@steinkuehler.net> wrote:
>The way these systems are configured, I don't know if you can do what >you want without generating a custom device tree. > >The leds class has a trigger function and can be tied to various GPIO >pins, but I believe that conflicts with exporting that same GPIO pin. > >If anyone knows of a way to do this without requiring customizing a >device tree to move GPIO pins from /sys/class/gpio to /sys/class/leds/ >entries, or if there's a way to have both for the same pin, I'd love to >hear it! Without the benefit of a DT overlay, I think you are stuck with generating a customized DT. Rather than modifying the existing DT files, perhaps it would be better to update am335x-boneblack.dts to include a custom DTS like this: ‹ /include/ ³am33xs.dtsi² /include/ ³am335x-bone-common.dtsi² /include/ ³am335x-custom.dtsi² &am33xx_pinmux { etc ‹ Now am335x-custom.dtsi can be used to override any previous DT settings. It would also be possible to add various cape DT to am335x-custom.dtsi. Unfortunately DTC cannot detect conflicts and these will only be detected when the kernel boots. Regards, John > >On 5/8/2014 10:49 AM, Hannes Hörting wrote: >> Hello John! >> >> Thank you! >> I`m using Debian and also the universal device tree from >> Charles: https://github.com/cdsteinkuehler/beaglebone-universal-io >> >> Not sure if its there also available? I doesnt find an information >>about >> heartbeat and cpu for user led on the GPIO. >> >> Thank you! >> >> >> Am Mittwoch, 7. Mai 2014 20:58:10 UTC+2 schrieb john3909: >>> >>> >>> On 5/7/14, 11:32 AM, "Hannes Hörting" <fai...@gmail.com <javascript:>> >>> wrote: >>> >>>> Hello! >>>> >>>> Can I forward the User Led to the GPIO? >>>> I want to build my own Expansion Board and need this LED. >>>> >>>> OR is this function already connectet to some GPIO? >>>> >>>> Thank you! >>> You can change the GPIO for the User LED by modifying the BBB device >>>tree. >>> Look at arch/arm/boot/dts/am335x-bone-common.dtsi >>> >>> >>> Regards, >>> John >>>> >>>> -- >>>> 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 beagleboard...@googlegroups.com <javascript:>. >>>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> >> > > >-- >Charles Steinkuehler >char...@steinkuehler.net > >-- >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 beagleboard+unsubscr...@googlegroups.com. >For more options, visit https://groups.google.com/d/optout. -- 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.