]> www.infradead.org Git - nvme.git/commitdiff
ARM: dts: imx6sll-evk: add debug LED support
authorAnson Huang <anson.huang@nxp.com>
Wed, 21 Nov 2018 07:03:44 +0000 (07:03 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:02:38 +0000 (10:02 +0800)
On i.MX6SLL EVK board, there is a debug LED controlled
by MX6SLL_PAD_EPDC_VCOM1__GPIO2_IO04 pin, add support
for it.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6sll-evk.dts

index 0c2406ac8a638dd2cadd919238315e6f96ae3179..da6c5ea67d0379dbde9313cbe7706b83fe144182 100644 (file)
                status = "okay";
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_led>;
+
+               user {
+                       label = "debug";
+                       gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+               };
+       };
+
        reg_usb_otg1_vbus: regulator-otg1-vbus {
                compatible = "regulator-fixed";
                pinctrl-names = "default";
                >;
        };
 
+       pinctrl_led: ledgrp {
+               fsl,pins = <
+                       MX6SLL_PAD_EPDC_VCOM1__GPIO2_IO04       0x17059
+               >;
+       };
+
        pinctrl_pwm1: pmw1grp {
                fsl,pins = <
                        MX6SLL_PAD_PWM1__PWM1_OUT   0x110b0