Hi, On Fri, Aug 13, 2010 at 03:29:11PM +0530, Ravi Gupta wrote: [...] > Thanks for the reply. > I had added the entries for gpio pin 9 for both controllers(I was not sure > with controller's pin is connected to LED, but now I know it is pin no. 233 > i.e 224+9) in the mpc8377_rdb.dts file. Below is a portion of my dts file, I > have attached the complete dts file as attachment. > > i...@e0000000 { [...] > * l...@0 { > compatible = "gpio-leds"; > label = "hdd"; > gpios = <&gpio1 9 0>; > };
What kernel version you look at? Please see the latest kernel, it has MCU GPIO LED nodes already, and you can just add some additional nodes. http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/powerpc/boot/dts/mpc8377_rdb.dts#l490 [...] > Also I have enabled drivers/leds/leds-gpio.c in my kernel. To test whether > the leds entires in dts file get attached to leds-gpio driver, I added > printks in the probe function of the driver. > > static int gpio_led_probe(struct platform_device *pdev) > { > struct gpio_led_platform_data *pdata = pdev->dev.platform_data; > struct gpio_led *cur_led; > struct gpio_led_data *leds_data, *led_dat; > int i, ret = 0; > > *printk(KERN_INFO "led: inside gpio_led_probe.\n");* You have put the printk into the wrong function. It should have been of_gpio_leds_probe(): http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/leds/leds-gpio.c#l227 If you don't have that function then you use too old kernel. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev