From: Josep Orga Date: Sat, 18 Apr 2020 17:18:23 +0000 (+0200) Subject: ARM: dts: Add Heartbeat LED support imx6ull-somdevices.dtsi. X-Git-Tag: rel_imx_4.19.35_1.1.0-somdevices.0~22 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=cd58454dc2780fbaeae1054158330252c0168b1d;p=linux.git ARM: dts: Add Heartbeat LED support imx6ull-somdevices.dtsi. Signed-off-by: Josep Orga --- diff --git a/arch/arm/boot/dts/imx6ull-somdevices.dtsi b/arch/arm/boot/dts/imx6ull-somdevices.dtsi index ca96862f0276..8a034c65f715 100644 --- a/arch/arm/boot/dts/imx6ull-somdevices.dtsi +++ b/arch/arm/boot/dts/imx6ull-somdevices.dtsi @@ -11,6 +11,7 @@ #include #include "imx6ull.dtsi" +#include / { model = "Freescale i.MX6 ULL µSMARC SOMDEVICES Board"; @@ -69,6 +70,18 @@ }; #endif }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_led>; + + led0 { + label = "Heartbeat"; + gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; }; &cpu0 { @@ -583,6 +596,12 @@ >; }; + pinctrl_led: ledgrp { + fsl,pins = < + MX6ULL_PAD_SNVS_TAMPER9__GPIO5_IO09 0x1b0b0 //LED + >; + }; + pinctrl_pf1550: pf1550 { fsl,pins = < MX6ULL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x1b0b0 //PMIC_INT