Skip to content

Commit 51b4803

Browse files
vishwabmcshenki
authored andcommitted
ARM: dts: aspeed: Everest: Add directly controlled LEDs
These LEDs are directly connected to the BMC's GPIO bank Signed-off-by: Eddie James <[email protected]> Signed-off-by: Vishwanatha Subbanna <[email protected]> Signed-off-by: Joel Stanley <[email protected]>
1 parent 189e847 commit 51b4803

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,35 @@
202202
linux,code = <12>;
203203
};
204204
};
205+
206+
leds {
207+
compatible = "gpio-leds";
208+
209+
/* RTC battery fault LED at the back */
210+
led-rtc-battery {
211+
gpios = <&gpio0 ASPEED_GPIO(H, 0) GPIO_ACTIVE_LOW>;
212+
};
213+
214+
/* BMC Card fault LED at the back */
215+
led-bmc {
216+
gpios = <&gpio0 ASPEED_GPIO(H, 1) GPIO_ACTIVE_LOW>;
217+
};
218+
219+
/* Enclosure Identify LED at the back */
220+
led-rear-enc-id0 {
221+
gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>;
222+
};
223+
224+
/* Enclosure fault LED at the back */
225+
led-rear-enc-fault0 {
226+
gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>;
227+
};
228+
229+
/* PCIE slot power LED */
230+
led-pcieslot-power {
231+
gpios = <&gpio0 ASPEED_GPIO(P, 4) GPIO_ACTIVE_LOW>;
232+
};
233+
};
205234
};
206235

207236
&gpio0 {
@@ -214,15 +243,15 @@
214243
/*F0-F7*/ "PIN_HOLE_RESET_IN_N","","",
215244
"PIN_HOLE_RESET_OUT_N","","","","",
216245
/*G0-G7*/ "","","","","","","","",
217-
/*H0-H7*/ "","","","","","","","",
246+
/*H0-H7*/ "led-rtc-battery","led-bmc","led-rear-enc-id0","led-rear-enc-fault0","","","","",
218247
/*I0-I7*/ "","","","","","","","",
219248
/*J0-J7*/ "","","","","","","","",
220249
/*K0-K7*/ "","","","","","","","",
221250
/*L0-L7*/ "","","","","","","","",
222251
/*M0-M7*/ "","","","","","","","",
223252
/*N0-N7*/ "","","","","","","","",
224253
/*O0-O7*/ "","","","","","","","",
225-
/*P0-P7*/ "","","","","","","","",
254+
/*P0-P7*/ "","","","","led-pcieslot-power","","","",
226255
/*Q0-Q7*/ "","","","","","","","",
227256
/*R0-R7*/ "","","","","","I2C_FLASH_MICRO_N","","",
228257
/*S0-S7*/ "","","","","","","","",

0 commit comments

Comments
 (0)