Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: msm8974-hammerhead: Add notification LED

Nexus 5 has a RGB LED connected to the TRILED and hence channels 7, 6 and
5 of the LPG. Add a node describing this.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: André Almeida <andrealmeid@collabora.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220505164336.13210-1-luca@z3ntu.xyz

authored by

André Almeida and committed by
Bjorn Andersson
1ea9098a a037fcab

+30
+30
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
··· 3 3 #include "qcom-pm8841.dtsi" 4 4 #include "qcom-pm8941.dtsi" 5 5 #include <dt-bindings/input/input.h> 6 + #include <dt-bindings/leds/common.h> 6 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 7 8 8 9 / { ··· 311 310 gpios = <35 GPIO_ACTIVE_HIGH>; 312 311 output-high; 313 312 line-name = "otg-gpio"; 313 + }; 314 + }; 315 + 316 + &pm8941_lpg { 317 + status = "okay"; 318 + 319 + qcom,power-source = <1>; 320 + 321 + multi-led { 322 + color = <LED_COLOR_ID_RGB>; 323 + function = LED_FUNCTION_STATUS; 324 + 325 + #address-cells = <1>; 326 + #size-cells = <0>; 327 + 328 + led@7 { 329 + reg = <7>; 330 + color = <LED_COLOR_ID_RED>; 331 + }; 332 + 333 + led@6 { 334 + reg = <6>; 335 + color = <LED_COLOR_ID_GREEN>; 336 + }; 337 + 338 + led@5 { 339 + reg = <5>; 340 + color = <LED_COLOR_ID_BLUE>; 341 + }; 314 342 }; 315 343 }; 316 344