devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] arm64: dts: sprd: Add SC27XX breathing light controller device
@ 2018-07-23  6:10 Baolin Wang
  2018-07-23  6:10 ` [PATCH 2/5] arm64: dts: sprd: Add SC27XX vibrator device Baolin Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Baolin Wang @ 2018-07-23  6:10 UTC (permalink / raw)
  To: robh+dt, mark.rutland, catalin.marinas, will.deacon, arnd,
	orsonzhai, zhang.lyra
  Cc: devicetree, arm, linux-arm-kernel, linux-kernel, broonie,
	baolin.wang

The SC27xx breathing light controller can support 3 outputs:
red LED, green LED and blue LED.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
---
 arch/arm64/boot/dts/sprd/sc2731.dtsi |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi
index 98d3b4f..7d53ca6 100644
--- a/arch/arm64/boot/dts/sprd/sc2731.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi
@@ -17,6 +17,28 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		led-controller@200 {
+			compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc";
+			reg = <0x200>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			led@0 {
+				label = "red";
+				reg = <0x0>;
+			};
+
+			led@1 {
+				label = "green";
+				reg = <0x1>;
+			};
+
+			led@2 {
+				label = "blue";
+				reg = <0x2>;
+			};
+		};
+
 		rtc@280 {
 			compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc";
 			reg = <0x280>;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-26  7:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-23  6:10 [PATCH 1/5] arm64: dts: sprd: Add SC27XX breathing light controller device Baolin Wang
2018-07-23  6:10 ` [PATCH 2/5] arm64: dts: sprd: Add SC27XX vibrator device Baolin Wang
2018-07-23  6:10 ` [PATCH 3/5] arm64: dts: sprd: Add SC27XX eFuse device Baolin Wang
2018-07-23  6:10 ` [PATCH 4/5] arm64: dts: sprd: Add SC27XX ADC device Baolin Wang
2018-07-23  6:10 ` [PATCH 5/5] arm64: dts: sprd: Add one suspend timer Baolin Wang
2018-07-26  6:52 ` [PATCH 1/5] arm64: dts: sprd: Add SC27XX breathing light controller device Olof Johansson
2018-07-26  7:57   ` Baolin Wang

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).