Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e64b8cc7 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Jacek Anaszewski
Browse files

DT: leds: Improve examples by adding some context



During my work on some new LED trigger I tried adding example similar to
the existing ones which received following comment from Rob:
> It's not really clear in the example this is an LED node as it is
> incomplete.

Keeping that in mind I suggest adding context for the existing example
entries in hope to make documentation more clear.

Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent 7ce7d89f
Loading
Loading
Loading
Loading
+18 −10
Original line number Diff line number Diff line
@@ -61,12 +61,19 @@ property can be omitted.

Examples:

gpio-leds {
	compatible = "gpio-leds";

	system-status {
		label = "Status";
		linux,default-trigger = "heartbeat";
	...
		gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
	};
};

max77693-led {
	compatible = "maxim,max77693-led";

	camera-flash {
		label = "Flash";
		led-sources = <0>, <1>;
@@ -74,3 +81,4 @@ camera-flash {
		flash-max-microamp = <320000>;
		flash-max-timeout-us = <500000>;
	};
};