GPIO leds not working on imx6ul

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO leds not working on imx6ul

Jump to solution
145 Views
Contributor III

Hi all, 

I configured few leds like that :

leds
	{
		compatible = "gpio-leds";

		debug-led
		{
			label = "Heartbeat";
			gpios = <&gpio5 4 0>;
			linux,default-trigger = "heartbeat";
		};//end debug led

		led-r1
		{
			label = "LED_R_1";
			gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		led-o1
		{
			label = "LED_O_1";
			gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		led-r2
		{
			label = "LED_R_2";
			gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		led-o2
		{
			label = "LED_O_2";
			gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		led-v1
		{
			label = "LED_V_1";
			gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		led-v2
		{
			label = "LED_V_2";
			gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		led-v3
		{
			label = "LED_V_3";
			gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
		led-v4
		{
			label = "LED_V_4";
			gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
	};//end leds

 

All the leds appear in /sys/class/leds.

However when I do "echo 1 > LED_V_1/brightness", nothing happen, and that is the same for all the leds...

Some of them (LED_R_ and LED_O_1) are on at the start whereas the brightness is at 0.

Did I forgot something ?

0 Kudos
1 Solution
138 Views
Contributor III

Basic error...

The same pins were configured for spi somewhere else ...

View solution in original post

0 Kudos
1 Reply
139 Views
Contributor III

Basic error...

The same pins were configured for spi somewhere else ...

View solution in original post

0 Kudos