Hi there, i am trying to control the debug led on the imx6sl-evk board. I have read posts on it and they have included the debug led support in the linux kernel at linux/imx6sl-evk.dts at master · torvalds/linux · GitHub. However, for the linux kernel at Freescale: linux-2.6-imx.git - Freescale i.MX Linux Tree, the debug led support is not present.
I have tried adding the following in the imx6sl-evk.dts:
leds {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led>;
compatible = "gpio-leds";
user {
label = "Heartbeat";
gpios = <&gpio3 20 0>;
linux,default-trigger = "heartbeat";
};
};
and in imx6sl.dtsi under iomux:
leds {
pinctrl_led: ledgrp {
fsl,pins = <
MX6SL_PAD_HSIC_STROBE__GPIO3_IO20 0x17059
>;
};
};
But however, i am unable to generate the dtb file. The error is syntax error in the imx6sl-evk.dts file where the "leds" is at. Any advise on this? Thanks!
Hi,
Was the last answer helpful?
Best Regards,
Alejandro
I think you can use as reference the below example found in our BSP
leds {
compatible = "gpio-leds";
debug-led {
label = "Heartbeat";
gpios = <&gpio3 25 0>;
linux,default-trigger = "heartbeat";
};
};
/Alejandro