
The source code can be seen below.
What I don't know is whether or not this is the correct, recommended, or a reasonable way to do it or if there's a better way.
I'd be very grateful if someone reviewed the code and let me know if it's ok or can be improved.
Code: Select all
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&leds>;
__overlay__ {
my_led: myled {
label = "MYLED";
gpios = <&gpio 14 0>;
linux,default-trigger = "heartbeat";
};
};
};
};