Announcement

Collapse
No announcement yet.

gen4-4dcape-70ct-clb - optional buttons & driver vs. pin usage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • gen4-4dcape-70ct-clb - optional buttons & driver vs. pin usage

    Hey,

    if I do *not* want to use the optional buttons one can connect to the adapter cape, but only the display:
    Does the display driver that's loaded still "block" the pins used by those buttons? (I.e. I'm prevented from loading a dev tree overlay using those pins for other things?)
    If so, can the pins be "freed" somehow?
    Can't try out now, replacement LCD is on the way - would be good to be able to prepare before, though. Pointers that help me with that much appreciated.

    Regards,
    sk


  • #2
    Hi, sktprin,

    You can manage the pins in a BB by utilizing bb overlays and there are overlays designed for gen4-4DCAPES that allow you to use the other pins not used by the display.
    In order to use the overlays, you need to install a specific kernel that is capable of managing them. Kindly refer to this link for the procedure.
    Note: This method applies to Debian OS

    After setting up, edit the uboot_overlay_addr0 in the uEnv.txt file as shown below. You can edit it using the command "sudo nano /boot/uEnv.txt".

    For this example, overlay for gen4-4DCAPE-50Ct ------ BB-BONE-4D5C-01-00A1.dtbo
    Code:
    ###Overide capes with eeprom
    uboot_overlay_addr0=/lib/firmware/BB-BONE-4D5C-01-00A1.dtbo
    #uboot_overlay_addr1=/lib/firmware/<file1>.dtbo
    #uboot_overlay_addr2=/lib/firmware/<file2>.dtbo
    #uboot_overlay_addr3=/lib/firmware/<file3>.dtbo
    Reboot the board and check the pins if they are now working.

    Additional info:
    If you want to use special pins such as PWM pins, you can add another overlay as shown:

    For this example, pwm pins P8_13 and P8_19 -------- BB-PWM2-00A0.dtbo
    Code:
    ###Overide capes with eeprom
    uboot_overlay_addr0=/lib/firmware/BB-BONE-4D5C-01-00A1.dtbo
    uboot_overlay_addr1=/lib/firmware/BB-PWM2-00A0.dtbo
    #uboot_overlay_addr2=/lib/firmware/<file2>.dtbo
    #uboot_overlay_addr3=/lib/firmware/<file3>.dtbo
    You can view the installed overlays using the command "ls /lib/firmware".
    You may refer to this link for additional information about the overlays.

    Also, software support for BeagleBone is not something we can fully assist you with, it is still best to ask in BeagleBone forums.

    I hope this will help.

    Best regards,
    Vince_4D

    Comment

    Working...
    X