Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/PROCESSOR-SDK-AM335X: active-delay value using timer for GPIO with device tree

$
0
0

Part Number:PROCESSOR-SDK-AM335X

Tool/software: Linux

Hello, 

We have a LED tied to a GPIO pin we are trying to control using the timer trigger in device tree. The timer trigger is working, however, the blink rate of the LED does not match the values of the active/inactive-delay values. Here's the device tree entry.

		blink_led {
			label = "LED_Blinky";
			gpios = <&gpio1 19 0>;
			linux,default-trigger = "timer";
			active-delay = <250>;
			inactive-delay = <250>;
		};

The LED does blink, but at a period of one second instead of a half second. If I check the delay-on and delay-off values under /sys/class/platform/leds/LED_Blinky both values are set to 500. Is 500 a default value? What else needs to be done?

Regards,

Tim Entinger


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>