Hi,
I am trying to modify the LEDs in board file (board-am335xevm.c). Presently it has configured for the GPIO_TO_PIN(1, 21), but we want to test the same functionlity for GPIO_TO_PIN(1,2).
We have modified the following:
#define BEAGLEBONE_USR1_LED  GPIO_TO_PIN(1, 6)
#define BEAGLEBONE_USR2_LED  GPIO_TO_PIN(1, 7)
#define BEAGLEBONE_USR3_LED  GPIO_TO_PIN(1, 2)
#define BEAGLEBONE_USR4_LED  GPIO_TO_PIN(1, 3)
static struct gpio_led bone_gpio_leds[] = {
        {
                .name                   = "beaglebone::usr0",
                .default_trigger        = "heartbeat",
                .gpio                   = BEAGLEBONE_USR1_LED,
        },
        {
                .name                   = "beaglebone::usr1",
                .default_trigger        = "mmc0",
                .gpio                   = BEAGLEBONE_USR2_LED,
        },
        {
                .name                   = "beaglebone::usr2",
                .gpio                   = BEAGLEBONE_USR3_LED,
        },
        {
                .name           = "beaglebone::usr3",
                .gpio           = BEAGLEBONE_USR4_LED,
        },
};
static struct gpio_led_platform_data bone_gpio_led_info = {
        .leds           = bone_gpio_leds,
        .num_leds       = ARRAY_SIZE(bone_gpio_leds),
};
static struct platform_device bone_leds_gpio = {
        .name   = "leds-gpio",
        .id     = -1,
        .dev    = {
                .platform_data  = &bone_gpio_led_info,
        },
};
static struct pinmux_config bone_pin_mux[] = {
{"gpmc_ad6.gpio1_6",    OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA }, //LED1
        {"gpmc_ad7.gpio1_7",    OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA }, //LED2
        {"gpmc_ad2.gpio1_2",    OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA }, //LED3
        {"gpmc_ad3.gpio1_3",    OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA }, //LED4
    /* Grounding gpio1_6 (pin 3 Conn A) signals bone tester to start diag tests */
    {"gpmc_ad6.gpio1_6", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, //chandu commented for b_cast_pin_MUX
        {NULL, 0},
};
static void boneleds_init(int evm_id, int profile )
{
        int err;
        setup_pin_mux(bone_pin_mux);
        err = platform_device_register(&bone_leds_gpio);
        if (err)
                pr_err("failed to register BeagleBone LEDS\n");
}
if (beaglebone_leds_free == 1) {
                        pr_info("Beaglebone: initializing onboard LEDs");
                        boneleds_init(0,0);
after updating pinmux with different pins i am not able to see /sys/class entry of these LEDs.
Please let me know what is the change i need to look into.
 
				 
		 
					 
                           
				 
				 
				