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.