Commit 8b936253 authored by Dylan Van Assche's avatar Dylan Van Assche Committed by Bjorn Andersson
Browse files

arm64: dts: qcom: sdm845-shift-axolotl: Enable pmi9889 LPG LED

Enables the RGB notification LED on the SHIFT 6mq (sdm845-shift-axolotl)
with the Qualcomm Light Pulse Generator bindings by Bjorn Andersson [1].
Patches are merged in for-next branch of linux-leds.
Tested these changes on the SHIFT 6mq.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/commit/?h=for-next&id=a8e53db46f19f67be6a26488aafb7d10c78e33bd



Signed-off-by: default avatarDylan Van Assche <me@dylanvanassche.be>
Reviewed-by: default avatarAlexander Martinz <amartinz@shiftphones.com>
Tested-by: default avatarAlexander Martinz <amartinz@shiftphones.com>
Tested-by: default avatarCaleb Connolly <caleb@connolly.tech>
Reviewed-by: default avatarCaleb Connolly <caleb@connolly.tech>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220512054439.13971-1-me@dylanvanassche.be
parent e5de51e2
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -2,11 +2,13 @@
/*
 * Copyright (c) 2022, Alexander Martinz <amartinz@shiftphones.com>
 * Copyright (c) 2022, Caleb Connolly <caleb@connolly.tech>
 * Copyright (c) 2022, Dylan Van Assche <me@dylanvanassche.be>
 */

/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "sdm845.dtsi"
#include "pm8998.dtsi"
@@ -529,6 +531,33 @@ volume_down_resin: resin {
	};
};

&pmi8998_lpg {
	status = "okay";

	multi-led {
		color = <LED_COLOR_ID_RGB>;
		function = LED_FUNCTION_STATUS;

		#address-cells = <1>;
		#size-cells = <0>;

		led@3 {
			reg = <3>;
			color = <LED_COLOR_ID_BLUE>;
		};

		led@4 {
			reg = <4>;
			color = <LED_COLOR_ID_GREEN>;
		};

		led@5 {
			reg = <5>;
			color = <LED_COLOR_ID_RED>;
		};
	};
};

&qup_uart9_default {
	pinconf-rx {
		pins = "gpio5";