From: Alexandre GRIVEAUX <agriveaux@deutnet.info>
To: robh+dt@kernel.org, mark.rutland@arm.com, ralf@linux-mips.org,
paul.burton@mips.com, jhogan@kernel.org, agriveaux@deutnet.info
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: [PATCH v2 4/5] MIPS: CI20: DTS: Add Leds
Date: Tue, 1 Oct 2019 21:09:30 +0200 [thread overview]
Message-ID: <fa61d681bad1d551876ce879643226dd59611316.1569955865.git.agriveaux@deutnet.info> (raw)
In-Reply-To: <cover.1569955865.git.agriveaux@deutnet.info>
Adding leds and related triggers.
Signed-off-by: Alexandre GRIVEAUX <agriveaux@deutnet.info>
---
arch/mips/boot/dts/ingenic/ci20.dts | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
index c62c36ae94c2..37b93166bf22 100644
--- a/arch/mips/boot/dts/ingenic/ci20.dts
+++ b/arch/mips/boot/dts/ingenic/ci20.dts
@@ -25,6 +25,34 @@
0x30000000 0x30000000>;
};
+ leds {
+ compatible = "gpio-leds";
+
+ led0 {
+ label = "ci20:red:led0";
+ gpios = <&gpc 3 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "none";
+ };
+
+ led1 {
+ label = "ci20:red:led1";
+ gpios = <&gpc 2 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "nand-disk";
+ };
+
+ led2 {
+ label = "ci20:red:led2";
+ gpios = <&gpc 1 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "cpu1";
+ };
+
+ led3 {
+ label = "ci20:red:led3";
+ gpios = <&gpc 0 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "cpu0";
+ };
+ };
+
eth0_power: fixedregulator@0 {
compatible = "regulator-fixed";
regulator-name = "eth0_power";
--
2.20.1
next prev parent reply other threads:[~2019-10-01 19:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-01 19:08 [PATCH v2 0/5] MIPS: CI20: DTS: Add nodes to Creator CI20 board Alexandre GRIVEAUX
2019-10-01 19:08 ` [PATCH v2 1/5] MIPS: JZ4780: DTS: Add I2C nodes Alexandre GRIVEAUX
2019-10-07 17:53 ` Paul Burton
2019-10-01 19:09 ` [PATCH v2 2/5] MIPS: CI20: " Alexandre GRIVEAUX
2019-10-07 17:53 ` Paul Burton
2019-10-01 19:09 ` [PATCH v2 3/5] MIPS: CI20: DTS: Add IW8103 Wifi + bluetooth Alexandre GRIVEAUX
2019-10-07 17:53 ` Paul Burton
2019-10-01 19:09 ` Alexandre GRIVEAUX [this message]
2019-10-07 17:53 ` [PATCH v2 4/5] MIPS: CI20: DTS: Add Leds Paul Burton
2019-10-01 19:09 ` [PATCH v2 5/5] MIPS: JZ4780: DTS: Add CPU nodes Alexandre GRIVEAUX
2019-10-01 23:20 ` Paul Burton
2019-10-02 19:07 ` Alexandre GRIVEAUX
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=fa61d681bad1d551876ce879643226dd59611316.1569955865.git.agriveaux@deutnet.info \
--to=agriveaux@deutnet.info \
--cc=devicetree@vger.kernel.org \
--cc=jhogan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=paul.burton@mips.com \
--cc=ralf@linux-mips.org \
--cc=robh+dt@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).