LEDEN of TPS65950

Hi,

I remember Koen's suggestion that the LEDA pin of TPS65950 can be
toggled using GPIO.

I also see some code for this in the board file:

    beagle_config.usb_pwr_level = GPIOF_OUT_INIT_HIGH;
     ...
    gpio_request_one(gpio + TWL4030_GPIO_MAX, beagle_config.usb_pwr_level,
            "nEN_USB_PWR");

However, there is no mention of this in the SRM. Could anyone clarify this?

I am able to set LEDA through I2C following details in the SRM, +
sysfs but I think setting it through GPIO + sysfs in userspace would
be cleaner as it wouldn't involve a change to the kernel.

Thanks,
Joel.

Assuming we are talking abut the BeagleBoard-xM Rev C, it is on page 79, Figure 37.

Gerald

You do need a change to the kernel for it to work, e.g.:

--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -567,6 +567,10 @@ static int beagle_twl_gpio_setup(struct device *dev,
        else
                gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);

+ # export it to sysfs, remove when it's properly hooked up to the EHCI PM code
+ gpio_export(gpio + TWL4030_GPIO_MAX, 0);

Hi Gerald,

Thanks for your post.

It isn’t practical to mention every thing about these devices in a SRM. If I did it would be a 500,000 page book and my fingers can’t handle that much typing. As always, to understand how these devices work, you need to refer to the individual datasheets and manuals. In fact, that is mentioned in the first paragraph of the SRM.

Gerald

Sure, Gerald. I was just trying to clarifying my understand.

I can’t even begin to imagine the amount of effort that went into writing the manual.

regards,
Joel

hello ,
can you tell me how to use i2c command
and example