Hi,
Below is gpio-led example code.
-----------------------------------
ENET2_TX_CLK is multiplexed as ENET2_REF_CLK2 in imx6ul-14x14-evk.dtsi, so you should comment it, and multiplex it to be GPIO2_IO14.
---gpio iomux
pinctrl_gpio_led: gpioledgrp {
fsl,pins = <
MX6UL_PAD_ENET2_TX_CLK__GPIO2_IO14 0xb0
>;
};
--gpio led driver
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_led>;
status {
label = "status";
gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
};
----------------------------------
Have a nice day!
B.R,
weidong