This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sitara SDK on Beaglebone Black GPIO

Hi team,

I'm currently running Sitara SDK v07.00 on the beaglebone black. I have a sample program to blink an external LED because the on-board LED's are used by the kernel I believe to show CPU and SD card activity.I'd like to know how I can reclaim at least one of the on-board LED's for my application.

Thanks,

Moses

  • Hi Moses,

    The LEDs are reserved in the following file: <linux_dir>/arch/arm/boot/dts/am335x-bone-common.dtsi:

        leds {
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&user_leds_default>;
            pinctrl-1 = <&user_leds_sleep>;

            compatible = "gpio-leds";

            led@2 {
                label = "beaglebone:green:heartbeat";
                gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
                linux,default-trigger = "heartbeat";
                default-state = "off";
            };

            led@3 {
                label = "beaglebone:green:mmc0";
                gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
                linux,default-trigger = "mmc0";
                default-state = "off";
            };

            led@4 {
                label = "beaglebone:green:usr2";
                gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
                linux,default-trigger = "cpu0";
                default-state = "off";
            };

            led@5 {
                label = "beaglebone:green:usr3";
                gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
                linux,default-trigger = "mmc1";
                default-state = "off";
            };
        };

    Best regards,
    Miroslav