[2/2] ARM: dts: motorola-cpcap-mapphone: add LEDs
diff mbox series

Message ID 20170305172234.24120-2-sre@kernel.org
State New, archived
Headers show
Series
  • [1/2] leds: cpcap: new driver
Related show

Commit Message

Sebastian Reichel March 5, 2017, 5:22 p.m. UTC
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 30 ++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Comments

Tony Lindgren March 6, 2017, 4:11 p.m. UTC | #1
* Sebastian Reichel <sre@kernel.org> [170305 09:24]:
> Signed-off-by: Sebastian Reichel <sre@kernel.org>
> ---
>  arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 30 ++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> index 9970985e685b..e02982d69854 100644
> --- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> +++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
> @@ -38,6 +38,36 @@
>  
>  			interrupts = <23 IRQ_TYPE_NONE>;
>  		};
> +
> +		led_red: led-red {
> +			compatible = "motorola,cpcap-led-red";
> +			vdd-supply = <&sw5>;
> +			label = "status-led:red";
> +		};
> +
> +		led_green: led-green {
> +			compatible = "motorola,cpcap-led-green";
> +			vdd-supply = <&sw5>;
> +			label = "status-led:green";
> +		};
> +
> +		led_blue: led-blue {
> +			compatible = "motorola,cpcap-led-blue";
> +			vdd-supply = <&sw5>;
> +			label = "status-led:blue";
> +		};
> +
> +		led_adl: led-adl {
> +			compatible = "motorola,cpcap-led-adl";
> +			vdd-supply = <&sw5>;
> +			label = "button-backlight";
> +		};
> +
> +		led_cp: led-cp {
> +			compatible = "motorola,cpcap-led-cp";
> +			vdd-supply = <&sw5>;
> +			label = "shift-key-light";
> +		};
>  	};
>  };

Applying into omap-for-v4.12/dt-droid4 thanks. I added minimal
description to the patch saying "Add LEDs".

Regards,

Tony

Patch
diff mbox series

diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
index 9970985e685b..e02982d69854 100644
--- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
+++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi
@@ -38,6 +38,36 @@ 
 
 			interrupts = <23 IRQ_TYPE_NONE>;
 		};
+
+		led_red: led-red {
+			compatible = "motorola,cpcap-led-red";
+			vdd-supply = <&sw5>;
+			label = "status-led:red";
+		};
+
+		led_green: led-green {
+			compatible = "motorola,cpcap-led-green";
+			vdd-supply = <&sw5>;
+			label = "status-led:green";
+		};
+
+		led_blue: led-blue {
+			compatible = "motorola,cpcap-led-blue";
+			vdd-supply = <&sw5>;
+			label = "status-led:blue";
+		};
+
+		led_adl: led-adl {
+			compatible = "motorola,cpcap-led-adl";
+			vdd-supply = <&sw5>;
+			label = "button-backlight";
+		};
+
+		led_cp: led-cp {
+			compatible = "motorola,cpcap-led-cp";
+			vdd-supply = <&sw5>;
+			label = "shift-key-light";
+		};
 	};
 };