Commit 09e2a571505b8f5abbb8fbf7feabd5400e6a6969

Authored by Álvaro Fernández Rojas
Committed by Daniel Schwierzeck
1 parent 6def1b24d5

mips: bmips: add Comtrend VR-3032u bcm6328-leds

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>

Showing 2 changed files with 47 additions and 0 deletions Side-by-side Diff

arch/mips/dts/comtrend,vr-3032u.dts
... ... @@ -21,6 +21,49 @@
21 21 };
22 22 };
23 23  
  24 +&leds {
  25 + status = "okay";
  26 + brcm,serial-leds;
  27 + brcm,serial-dat-low;
  28 + brcm,serial-shift-inv;
  29 +
  30 + led@2 {
  31 + reg = <2>;
  32 + active-low;
  33 + label = "VR-3032u:red:inet";
  34 + };
  35 +
  36 + led@3 {
  37 + reg = <3>;
  38 + active-low;
  39 + label = "VR-3032u:green:dsl";
  40 + };
  41 +
  42 + led@4 {
  43 + reg = <4>;
  44 + active-low;
  45 + label = "VR-3032u:green:usb";
  46 + };
  47 +
  48 + led@7 {
  49 + reg = <7>;
  50 + active-low;
  51 + label = "VR-3032u:green:wps";
  52 + };
  53 +
  54 + led@8 {
  55 + reg = <8>;
  56 + active-low;
  57 + label = "VR-3032u:green:inet";
  58 + };
  59 +
  60 + led@20 {
  61 + reg = <20>;
  62 + active-low;
  63 + label = "VR-3032u:green:power";
  64 + };
  65 +};
  66 +
24 67 &uart0 {
25 68 u-boot,dm-pre-reloc;
26 69 status = "okay";
configs/comtrend_vr3032u_ram_defconfig
... ... @@ -16,6 +16,7 @@
16 16 # CONFIG_CMD_GPIO is not set
17 17 # CONFIG_CMD_IMLS is not set
18 18 # CONFIG_CMD_IMPORTENV is not set
  19 +CONFIG_CMD_LED=y
19 20 CONFIG_CMD_LICENSE=y
20 21 CONFIG_CMD_LOADB=y
21 22 # CONFIG_CMD_LOADS is not set
... ... @@ -31,6 +32,9 @@
31 32 CONFIG_DM_GPIO=y
32 33 CONFIG_DM_SERIAL=y
33 34 CONFIG_HUSH_PARSER=y
  35 +CONFIG_LED=y
  36 +CONFIG_LED_BCM6328=y
  37 +CONFIG_LED_BLINK=y
34 38 CONFIG_MIPS=y
35 39 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
36 40 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set