mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 07:33:01 +02:00
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:
committed by
Joachim Wiberg
parent
2a9e87ea75
commit
6d655d3f5e
@@ -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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user