- Muchas notas - Fran Acién

20230918 - OBC V2 Device tree

The steps are:

  1. Get the default overlay, is the one that I put in the computer from work
  2. Start modifying from there

LEDS

leds {
		compatible = "gpio-leds";

		led-0 {
			function = "status";
			gpios = <0x24 0x02 0x01 0x00>;
		};

    // MOD LEDS OBCV2
    led-1 {
			function = "status";
			gpios = <0x24 0x01 0x0B 0x00>;   // PB11, 0x1 0x1b
		};

    led-2 {
			function = "status";
			gpios = <0x24 0x01 0x0a 0x00>;
		};
	};
/sys/class/leds/:status_2# echo 1 > brightness

de0de47c5831ab4ace70b16c39af62e0.png