board/aarch64: alder: Add power supply status support

Add a gpio-charger for each input and wire up the alert LEDs to
trigger when their respective supply goes offline.
This commit is contained in:
Tobias Waldekranz
2023-11-14 16:41:03 +01:00
committed by Joachim Wiberg
parent 2a9e87ea75
commit 6d655d3f5e
+14 -2
View File
@@ -546,6 +546,18 @@
/* System LEDs */
/ {
power-a {
compatible = "gpio-charger";
charger-type = "mains";
gpios = <&GPIO_VIN1_PGOOD>;
};
power-b {
compatible = "gpio-charger";
charger-type = "mains";
gpios = <&GPIO_VIN2_PGOOD>;
};
leds: leds {
compatible = "gpio-leds";
@@ -600,13 +612,13 @@
};
led-vin1-alert {
function = "power-1";
function = "power-a";
color = <LED_COLOR_ID_RED>;
gpios = <&GPIO_LED_VIN1_ALERT>;
};
led-vin2-alert {
function = "power-2";
function = "power-b";
color = <LED_COLOR_ID_RED>;
gpios = <&GPIO_LED_VIN2_ALERT>;
};