GPIO leds not working on imx6ul

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO leds not working on imx6ul

ソリューションへジャンプ
1,351件の閲覧回数
okwaj
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 件の賞賛
返信
1 解決策
1,344件の閲覧回数
okwaj
Contributor III

Basic error...

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

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,345件の閲覧回数
okwaj
Contributor III

Basic error...

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

0 件の賞賛
返信