OSDN Git Service

ARM: dts: aspeed: Everest: Add directly controlled LEDs
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Fri, 30 Apr 2021 19:00:00 +0000 (14:00 -0500)
committerJoel Stanley <joel@jms.id.au>
Fri, 4 Jun 2021 06:41:24 +0000 (16:11 +0930)
These LEDs are directly connected to the BMC's GPIO bank

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts

index 27af28c..2ddd10e 100644 (file)
                        linux,code = <12>;
                };
        };
+
+       leds {
+               compatible = "gpio-leds";
+
+               /* RTC battery fault LED at the back */
+               led-rtc-battery {
+                       gpios = <&gpio0 ASPEED_GPIO(H, 0) GPIO_ACTIVE_LOW>;
+               };
+
+               /* BMC Card fault LED at the back */
+               led-bmc {
+                       gpios = <&gpio0 ASPEED_GPIO(H, 1) GPIO_ACTIVE_LOW>;
+               };
+
+               /* Enclosure Identify LED at the back */
+               led-rear-enc-id0 {
+                       gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>;
+               };
+
+               /* Enclosure fault LED at the back */
+               led-rear-enc-fault0 {
+                       gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>;
+               };
+
+               /* PCIE slot power LED */
+               led-pcieslot-power {
+                       gpios = <&gpio0 ASPEED_GPIO(P, 4) GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &gpio0 {
        /*F0-F7*/       "PIN_HOLE_RESET_IN_N","","",
                                "PIN_HOLE_RESET_OUT_N","","","","",
        /*G0-G7*/       "","","","","","","","",
-       /*H0-H7*/       "","","","","","","","",
+       /*H0-H7*/       "led-rtc-battery","led-bmc","led-rear-enc-id0","led-rear-enc-fault0","","","","",
        /*I0-I7*/       "","","","","","","","",
        /*J0-J7*/       "","","","","","","","",
        /*K0-K7*/       "","","","","","","","",
        /*M0-M7*/       "","","","","","","","",
        /*N0-N7*/       "","","","","","","","",
        /*O0-O7*/       "","","","","","","","",
-       /*P0-P7*/       "","","","","","","","",
+       /*P0-P7*/       "","","","","led-pcieslot-power","","","",
        /*Q0-Q7*/       "","","","","","","","",
        /*R0-R7*/       "","","","","","I2C_FLASH_MICRO_N","","",
        /*S0-S7*/       "","","","","","","","",