diff mbox series

[1/5] arm64: dts: sprd: Add SC27XX breathing light controller device

Message ID 2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org (mailing list archive)
State New, archived
Headers show
Series [1/5] arm64: dts: sprd: Add SC27XX breathing light controller device | expand

Commit Message

(Exiting) Baolin Wang July 23, 2018, 6:10 a.m. UTC
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(+)

Comments

Olof Johansson July 26, 2018, 6:52 a.m. UTC | #1
On Mon, Jul 23, 2018 at 02:10:16PM +0800, Baolin Wang wrote:
> 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>

Applied 1-5, thanks. If you send a series like this, feel free to send a cover
letter as well, to let us know what you want done to them. I'm presuming you
wanted them applied in this case.


-Olof
(Exiting) Baolin Wang July 26, 2018, 7:57 a.m. UTC | #2
Hi Olof,

On 26 July 2018 at 14:52, Olof Johansson <olof@lixom.net> wrote:
> On Mon, Jul 23, 2018 at 02:10:16PM +0800, Baolin Wang wrote:
>> 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>
>
> Applied 1-5, thanks. If you send a series like this, feel free to send a cover
> letter as well, to let us know what you want done to them. I'm presuming you
> wanted them applied in this case.

Sure, I will add one cover letter next time. Thanks.
diff mbox series

Patch

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>;