From: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
To: u-boot@lists.denx.de
Subject: [PATCH v6 6/8] board: presidio: add LED support
Date: Mon, 20 Apr 2020 22:29:33 -0700 [thread overview]
Message-ID: <1587446975-27114-7-git-send-email-alex.nemirovsky@cortina-access.com> (raw)
In-Reply-To: <1587446975-27114-1-git-send-email-alex.nemirovsky@cortina-access.com>
From: Jway Lin <jway.lin@cortina-access.com>
Add LED support for Cortina Access Presidio Engineering Board
Signed-off-by: Jway Lin <jway.lin@cortina-access.com>
Signed-off-by: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
CC: Simon Glass <sjg@chromium.org>
---
Changes in v6: None
Changes in v5: None
Changes in v4:
- rename DT blink rate symbol
Changes in v3: None
Changes in v2: None
arch/arm/dts/ca-presidio-engboard.dts | 31 ++++++++++++++++++++++++++++
configs/cortina_presidio-asic-emmc_defconfig | 2 ++
2 files changed, 33 insertions(+)
diff --git a/arch/arm/dts/ca-presidio-engboard.dts b/arch/arm/dts/ca-presidio-engboard.dts
index 40c93d7..eef433e 100644
--- a/arch/arm/dts/ca-presidio-engboard.dts
+++ b/arch/arm/dts/ca-presidio-engboard.dts
@@ -64,4 +64,35 @@
spi-max-frequency = <108000000>;
};
};
+
+ leds: led-controller at f43200f0 {
+ compatible = "cortina,ca-leds";
+ reg = <0x0 0xf43200f0 0x40>;
+
+ cortina,blink-rate1 = <256>;
+ cortina,blink-rate2 = <512>;
+
+ led at 0 {
+ pin = <0>;
+ active-low;
+ blink-sel =<0>;
+ port = <0>;
+ off-event = <0>;
+ label = "led0";
+ };
+
+ led at 1 {
+ pin = <1>;
+ active-low;
+ blink-sel =<1>;
+ label = "led1";
+ };
+
+ led at 2 {
+ pin = <2>;
+ active-low;
+ label = "led2";
+ };
+
+ };
};
diff --git a/configs/cortina_presidio-asic-emmc_defconfig b/configs/cortina_presidio-asic-emmc_defconfig
index e45e23c..3c6bd6b 100644
--- a/configs/cortina_presidio-asic-emmc_defconfig
+++ b/configs/cortina_presidio-asic-emmc_defconfig
@@ -27,6 +27,8 @@ CONFIG_DM=y
CONFIG_CORTINA_GPIO=y
CONFIG_DM_I2C=y
CONFIG_SYS_I2C_CA=y
+CONFIG_LED=y
+CONFIG_LED_CORTINA=y
CONFIG_DM_MMC=y
CONFIG_MMC_DW=y
CONFIG_MMC_DW_CORTINA=y
--
2.7.4
next prev parent reply other threads:[~2020-04-21 5:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 5:29 [PATCH v6 0/8] Cortina Access Drivers Package 2 Alex Nemirovsky
2020-04-21 5:29 ` [PATCH v6 1/8] mmc: ca_dw_mmc: Misc cleanup of driver Alex Nemirovsky
2020-04-21 5:29 ` [PATCH v6 2/8] board: presidio-asic: update eMMC DT informatino Alex Nemirovsky
2020-04-21 5:29 ` [PATCH v6 3/8] i2c: i2c-cortina: added CAxxxx I2C support Alex Nemirovsky
2020-04-21 5:46 ` Heiko Schocher
2020-04-21 5:29 ` [PATCH v6 4/8] board: presidio-asic: Add " Alex Nemirovsky
2020-04-21 5:47 ` Heiko Schocher
2020-04-21 5:29 ` [PATCH v6 5/8] led: led_cortina: Add CAxxx LED support Alex Nemirovsky
2020-04-21 17:37 ` Simon Glass
2020-04-21 5:29 ` Alex Nemirovsky [this message]
2020-04-21 17:36 ` [PATCH v6 6/8] board: presidio: add " Simon Glass
2020-04-21 5:29 ` [PATCH v6 7/8] spi: ca_sflash: Add CAxxxx SPI Flash Controller Alex Nemirovsky
2020-04-21 5:29 ` [PATCH v6 8/8] board: presidio-asic: Add SPI NOR support Alex Nemirovsky
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=1587446975-27114-7-git-send-email-alex.nemirovsky@cortina-access.com \
--to=alex.nemirovsky@cortina-access.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox