Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 150833

Forum Post: RE: Sitara SDK on Beaglebone Black GPIO

$
0
0

Hi Moses,

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

[quote]    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";
        };
    };[/quote]

Best regards,
Miroslav


Viewing all articles
Browse latest Browse all 150833

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>