powerpc/5200: Add Lite5200 on-board LEDs as devices
authorGrant Likely <grant.likely@secretlab.ca>
Fri, 8 Feb 2013 08:02:50 +0000 (08:02 +0000)
committerAnatolij Gustschin <agust@denx.de>
Mon, 11 Feb 2013 21:24:53 +0000 (21:24 +0000)
commit4fd0a21353bd40a2f1f726faf0d74cf8cdcbce7f
tree18d0c05540382d1856c1ef93fb521ab621748fe6
parent63410b0b80b6aa841d9abe212ad7f16899841b32
powerpc/5200: Add Lite5200 on-board LEDs as devices

The Lite5200 evaluation board has a number of debug LEDs that Linux
doesn't know about yet. This change adds a gpio-leds stanza to the
lite5200 device tree so that the correct driver can get hooked up.

Also, make use of the dtc labels feature to reduce the number of source
lines required to add the gpio-controller property to the general
purpose timer nodes. In addition, the required #gpio-cells properties
are added to the common mpc5200b dtsi include file so that each board
doesn't need to add them explicitly. This still doesn't enable gpio
mode, 'gpio-controller' is required for that, but it means less work
needs to be done by board ports.

Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/boot/dts/lite5200b.dts
arch/powerpc/boot/dts/mpc5200b.dtsi