summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2025-11-19 18:19:55 +0100
committerTien Fong Chee <[email protected]>2025-12-01 14:29:37 +0800
commitda09bb6a6c1f40dd5fec18ee5c946ebf5722b7ad (patch)
tree36a352564297e5f3fd5bb19c4b235eb5ce34cde2 /arch
parent0af9efa7c1873b2d52eaa82d67a8c67351a7f8ca (diff)
board: softing: vining: migrate to modern LED framework
This migrates from the legacy LED API to use the modern LED framework which makes use of the FDT. Signed-off-by: Quentin Schulz <[email protected]> Acked-by: Tien Fong Chee <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi b/arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi
index 330949c0184..bf5e12ec90c 100644
--- a/arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi
+++ b/arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi
@@ -13,6 +13,32 @@
spi0 = "/soc/spi@ff705000";
udc0 = &usb1;
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ led-0 {
+ default-state = "off";
+ gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
+ };
+
+ led-1 {
+ default-state = "off";
+ gpios = <&portb 25 GPIO_ACTIVE_HIGH>;
+ label = "status_1";
+ };
+
+ led-2 {
+ default-state = "off";
+ gpios = <&portb 26 GPIO_ACTIVE_HIGH>;
+ label = "status_2";
+ };
+
+ led-3 {
+ default-state = "off";
+ gpios = <&portc 7 GPIO_ACTIVE_HIGH>;
+ };
+ };
};
&mmc {