Change default behavior of LED at boot using led_boot in DTS

A device I'm working with has two leds on top of each other, which can be blue or red.
Turning them on both produces purple.

Given an image with the following DTS:

aliases {
	led-boot = &led_status_red;
	led-failsafe = &led_status_red;
	led-running = &led_status_blue;
	led-upgrade = &led_status_red;
};

leds {
	compatible = "gpio-leds";

	led_status_blue: status_blue {
		label = "blue:status";
		gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
	};

	led_status_red: status_red {
		label = "red:status";
		gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
	};
};

At boot, right now the red led blinks, but I need the color to be purple (without blinking), how do I specify that both red and blue must be turned on without blinking?

I tried looking at the documentation of the DTS but I can't find this information.

Thanks in advance.

The only solution I have found is to avoid specifying led-boot and set the two leds to be on by default:

aliases {
  led-failsafe = &led_status_red;
  led-upgrade = &led_status_red;
};

leds {
  compatible = "gpio-leds";

  led_status_blue: status_blue {
    label = "blue:status";
    gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
    default-state = "on";
  };

  led_status_red: status_red {
    label = "red:status";
    gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
    default-state = "on";
  };
};

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.