ARM: dts: omap3-igep0020: add mux conf for GPIO LEDs
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Thu, 20 Jun 2013 14:42:31 +0000 (16:42 +0200)
committerBenoit Cousson <bcousson@baylibre.com>
Tue, 8 Oct 2013 15:51:39 +0000 (17:51 +0200)
The IGEPv2 has a number of GPIO LED connected to OMAP
pins. Configure these pins as output GPIO.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
arch/arm/boot/dts/omap3-igep0020.dts

index e8c4828..51c084e 100644 (file)
        compatible = "isee,omap3-igep0020", "ti,omap3";
 
        leds {
+               pinctrl-names = "default";
+               pinctrl-0 = <&leds_pins>;
                compatible = "gpio-leds";
+
                boot {
                         label = "omap3:green:boot";
                         gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
        };
 };
 
+&leds_pins {
+       pinctrl-single,pins = <
+               0x5c4 (PIN_OUTPUT | MUX_MODE4) /* etk_d12.gpio_26 */
+               0x5c6 (PIN_OUTPUT | MUX_MODE4) /* etk_d13.gpio_27 */
+               0x5c8 (PIN_OUTPUT | MUX_MODE4) /* etk_d14.gpio_28 */
+       >;
+};
+
 &i2c3 {
        clock-frequency = <100000>;