]> git.sur5r.net Git - u-boot/commitdiff
mips: bmips: add Comtrend AR-5387un bcm6328-leds
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 7 May 2017 18:10:27 +0000 (20:10 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 10 May 2017 14:16:09 +0000 (16:16 +0200)
This board has several LEDs attached to its BCM6328 led controller.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/mips/dts/comtrend,ar-5387un.dts
configs/comtrend_ar5387un_ram_defconfig

index 73f3be457c201c67cef060cd4b0f467465d57980..73f2b49b76c6607e5022b07476f341a008274a51 100644 (file)
        };
 };
 
+&leds {
+       status = "okay";
+
+       led@1 {
+               reg = <1>;
+               label = "AR-5387un:red:inet";
+       };
+
+       led@4 {
+               reg = <4>;
+               label = "AR-5387un:red:power";
+       };
+
+       led@7 {
+               reg = <7>;
+               label = "AR-5387un:green:inet";
+       };
+
+       led@8 {
+               reg = <8>;
+               label = "AR-5387un:green:power";
+       };
+
+       led@11 {
+               reg = <11>;
+               active-low;
+               label = "AR-5387un:green:dsl";
+       };
+};
+
 &uart0 {
        u-boot,dm-pre-reloc;
        status = "okay";
index c95a369ec61ebd864060ad142b0b87c6004a3467..f8656c48a0128748d30b4750a5c08d0b8db68873 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_CMD_CPU=y
 # CONFIG_CMD_GPIO is not set
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_IMPORTENV is not set
+CONFIG_CMD_LED=y
 CONFIG_CMD_LICENSE=y
 CONFIG_CMD_LOADB=y
 # CONFIG_CMD_LOADS is not set
@@ -31,6 +32,9 @@ CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DM_GPIO=y
 CONFIG_DM_SERIAL=y
 CONFIG_HUSH_PARSER=y
+CONFIG_LED=y
+CONFIG_LED_BCM6328=y
+CONFIG_LED_BLINK=y
 CONFIG_MIPS=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set