All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] mips: bmips: add Comtrend VR-3032u bcm6328-leds
Date: Wed,  3 May 2017 15:08:27 +0200	[thread overview]
Message-ID: <1493816907-30486-6-git-send-email-noltari@gmail.com> (raw)
In-Reply-To: <1493816907-30486-1-git-send-email-noltari@gmail.com>

This board has several LEDs attached to its BCM6328 led controller.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
 arch/mips/dts/comtrend,vr-3032u.dts    | 43 ++++++++++++++++++++++++++++++++++
 configs/comtrend_vr3032u_ram_defconfig |  4 ++++
 2 files changed, 47 insertions(+)

diff --git a/arch/mips/dts/comtrend,vr-3032u.dts b/arch/mips/dts/comtrend,vr-3032u.dts
index 6715304..54e738c 100644
--- a/arch/mips/dts/comtrend,vr-3032u.dts
+++ b/arch/mips/dts/comtrend,vr-3032u.dts
@@ -21,6 +21,49 @@
 	};
 };
 
+&leds {
+	status = "okay";
+	brcm,serial-leds;
+	brcm,serial-dat-low;
+	brcm,serial-shift-inv;
+
+	led at 2 {
+		reg = <2>;
+		active-low;
+		label = "VR-3032u:red:inet";
+	};
+
+	led at 3 {
+		reg = <3>;
+		active-low;
+		label = "VR-3032u:green:dsl";
+	};
+
+	led at 4 {
+		reg = <4>;
+		active-low;
+		label = "VR-3032u:green:usb";
+	};
+
+	led at 7 {
+		reg = <7>;
+		active-low;
+		label = "VR-3032u:green:wps";
+	};
+
+	led at 8 {
+		reg = <8>;
+		active-low;
+		label = "VR-3032u:green:inet";
+	};
+
+	led at 20 {
+		reg = <20>;
+		active-low;
+		label = "VR-3032u:green:power";
+	};
+};
+
 &uart0 {
 	u-boot,dm-pre-reloc;
 	status = "okay";
diff --git a/configs/comtrend_vr3032u_ram_defconfig b/configs/comtrend_vr3032u_ram_defconfig
index c62ef0c..a04b0e5 100644
--- a/configs/comtrend_vr3032u_ram_defconfig
+++ b/configs/comtrend_vr3032u_ram_defconfig
@@ -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
-- 
2.1.4

  parent reply	other threads:[~2017-05-03 13:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-03 13:08 [U-Boot] [PATCH 0/5] dm: led: add BCM6328 led support Álvaro Fernández Rojas
2017-05-03 13:08 ` [U-Boot] [PATCH 1/5] dm: led: add BCM6328 led driver Álvaro Fernández Rojas
2017-05-04 16:50   ` Simon Glass
2017-05-03 13:08 ` [U-Boot] [PATCH 2/5] mips: bmips: add bcm6328-led driver support for BCM6328 Álvaro Fernández Rojas
2017-05-04 16:50   ` Simon Glass
2017-05-03 13:08 ` [U-Boot] [PATCH 3/5] mips: bmips: add bcm6328-led driver support for BCM63268 Álvaro Fernández Rojas
2017-05-04 16:51   ` Simon Glass
2017-05-03 13:08 ` [U-Boot] [PATCH 4/5] mips: bmips: add Comtrend AR-5387un bcm6328-leds Álvaro Fernández Rojas
2017-05-04 16:51   ` Simon Glass
2017-05-03 13:08 ` Álvaro Fernández Rojas [this message]
2017-05-04 16:51   ` [U-Boot] [PATCH 5/5] mips: bmips: add Comtrend VR-3032u bcm6328-leds Simon Glass
2017-05-07 18:10 ` [U-Boot] [PATCH v2 0/5] dm: led: add BCM6328 led support Álvaro Fernández Rojas
2017-05-07 18:10   ` [U-Boot] [PATCH v2 1/5] dm: led: add BCM6328 led driver Álvaro Fernández Rojas
2017-05-07 18:10   ` [U-Boot] [PATCH v2 2/5] mips: bmips: add bcm6328-led driver support for BCM6328 Álvaro Fernández Rojas
2017-05-07 18:10   ` [U-Boot] [PATCH v2 3/5] mips: bmips: add bcm6328-led driver support for BCM63268 Álvaro Fernández Rojas
2017-05-07 18:10   ` [U-Boot] [PATCH v2 4/5] mips: bmips: add Comtrend AR-5387un bcm6328-leds Álvaro Fernández Rojas
2017-05-07 18:10   ` [U-Boot] [PATCH v2 5/5] mips: bmips: add Comtrend VR-3032u bcm6328-leds Álvaro Fernández Rojas
2017-05-10 14:19   ` [U-Boot] [PATCH v2 0/5] dm: led: add BCM6328 led support Daniel Schwierzeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493816907-30486-6-git-send-email-noltari@gmail.com \
    --to=noltari@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.