]> www.infradead.org Git - linux.git/commitdiff
ARM: dts: aspeed: mtmitchell: Add LEDs
authorChanh Nguyen <chanh@os.amperecomputing.com>
Tue, 6 Aug 2024 07:18:06 +0000 (07:18 +0000)
committerJoel Stanley <joel@jms.id.au>
Thu, 22 Aug 2024 03:37:15 +0000 (13:07 +0930)
Add LED nodes as the gpio-leds devices. They are led-bmc-ready,
led-sw-heartbeat, led-identify, led-fault, led-fan-fault, led-psu-fault

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20240806071806.1666550-6-chanh@os.amperecomputing.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts

index 3111f23e56dc653e6e037e51648b4f59155c4f1a..0295f5adcfbc8414b061bffc484bd1cdc65330f3 100644 (file)
                };
        };
 
+       leds {
+               compatible = "gpio-leds";
+               /*
+                * Use gpio-leds to configure GPIOW5 (bmc-ready) pin to be reseted when
+                * watchdog timeout.
+                */
+               led-bmc-ready {
+                       gpios = <&gpio0 ASPEED_GPIO(W, 5) (GPIO_ACTIVE_HIGH | GPIO_TRANSITORY)>;
+               };
+
+               led-sw-heartbeat {
+                       gpios = <&gpio0 ASPEED_GPIO(N, 3) GPIO_ACTIVE_HIGH>;
+               };
+
+               led-identify {
+                       gpios = <&gpio0 ASPEED_GPIO(S, 3) GPIO_ACTIVE_HIGH>;
+               };
+
+               led-fault {
+                       gpios = <&gpio0 ASPEED_GPIO(P, 4) GPIO_ACTIVE_HIGH>;
+               };
+
+               led-fan-fault {
+                       gpios = <&gpio_expander1 0 GPIO_ACTIVE_HIGH>;
+               };
+
+               led-psu-fault {
+                       gpios = <&gpio_expander1 1 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
        voltage_mon_reg: voltage-mon-regulator {
                compatible = "regulator-fixed";
                regulator-name = "ltc2497_reg";