[Xenial snapdragon][PATCH] UBUNTU: SAUCE: dtb: update LEDs

Wen-chien Jesse Sung jesse.sung at canonical.com
Fri Jun 29 16:40:08 UTC 2018


From: Vinay Simha BN <vinaysimha at inforcecomputing.com>

BugLink: https://launchpad.net/bugs/1776725

Use rfkill LEDs for BT and WLAN, LED1 as heartbeat, and set LED4 as
default-on.

DS3 - BT LED   - PMIC - MPP_03 (rfkill0)
DS2 - WLAN LED - PMIC - MPP_02 (rfkill1)

DS6 - LED1 - APQ  - GPIO_95  - (heartbeat)
DS5 - LED2 - APQ  - GPIO_120 - (mmc1)
DS1 - LED3 - PMIC - GPIO_01  - (mmc0)
DS4 - LED4 - PMIC - GPIO_02  - (default-on)

Signed-off-by: Vinay Simha BN <vinaysimha at inforcecomputing.com>

(Modify commit log for SRU)
Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
---
 arch/arm64/boot/dts/qcom/apq8016-sbc-snappy.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-snappy.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-snappy.dtsi
index 68b3c757c17a..56c63ce3dc48 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc-snappy.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-snappy.dtsi
@@ -218,7 +218,7 @@
 
 			led at 1 {
 				label = "apq8016-sbc:green:user1";
-				gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
+				gpios = <&msmgpio 95 GPIO_ACTIVE_HIGH>;
 				linux,default-trigger = "heartbeat";
 				default-state = "off";
 			};
@@ -240,21 +240,21 @@
 			led at 4 {
 				label = "apq8016-sbc:green:user4";
 				gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
-				linux,default-trigger = "none";
+				linux,default-trigger = "default-on";
 				default-state = "off";
 			};
 
 			led at 5 {
 				label = "apq8016-sbc:yellow:wlan";
 				gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
-				linux,default-trigger = "wlan";
+				linux,default-trigger = "rfkill1";
 				default-state = "off";
 			};
 
 			led at 6 {
 				label = "apq8016-sbc:blue:bt";
 				gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
-				linux,default-trigger = "bt";
+				linux,default-trigger = "rfkill0";
 				default-state = "off";
 			};
 		};
-- 
2.17.1





More information about the kernel-team mailing list