[PATCH 1/4] arm64: dts: qcom: msm8917-xiaomi-wingtech: add notification led
From: Barnabás Czémán
Date: Mon Sep 21 2026 - 14:48:16 EST
Add the aw2013 led-controller node for controlling the notification LED.
The same led controller is in use for Redmi 4A and Redmi 5A the
only difference is Redmi 4A have RGB leds attached to the controller.
Signed-off-by: Barnabás Czémán <barnabas.czeman@xxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts | 26 +++++++++-------------
.../boot/dts/qcom/msm8917-xiaomi-wingtech.dtsi | 15 +++++++++++++
2 files changed, 25 insertions(+), 16 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
index 7c323214abf1..8ea8ef80fb38 100644
--- a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
+++ b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
@@ -5,7 +5,6 @@
/dts-v1/;
-#include <dt-bindings/leds/common.h>
#include "msm8917-xiaomi-wingtech.dtsi"
/ {
@@ -36,26 +35,21 @@ vibrator {
};
};
-&blsp1_i2c2 {
+&aw2013 {
status = "okay";
- led-controller@45 {
- compatible = "awinic,aw2013";
- reg = <0x45>;
- vcc-supply = <&pm8937_l10>;
- vio-supply = <&pm8937_l5>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- led@0 {
- reg = <0>;
- led-max-microamp = <5000>;
- function = LED_FUNCTION_INDICATOR;
- color = <LED_COLOR_ID_WHITE>;
- };
+ led@0 {
+ reg = <0>;
+ led-max-microamp = <5000>;
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_WHITE>;
};
};
+&blsp1_i2c2 {
+ status = "okay";
+};
+
&blsp1_uart2 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-wingtech.dtsi b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-wingtech.dtsi
index 69eda5f42c06..cdbf2d4fa92c 100644
--- a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-wingtech.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-wingtech.dtsi
@@ -7,6 +7,8 @@
#include <dt-bindings/arm/qcom,ids.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
#include "msm8917.dtsi"
#include "pm8937.dtsi"
@@ -85,6 +87,19 @@ framebuffer_mem: memory@90001000 {
};
};
+&blsp1_i2c2 {
+ aw2013: led-controller@45 {
+ compatible = "awinic,aw2013";
+ reg = <0x45>;
+ vcc-supply = <&pm8937_l10>;
+ vio-supply = <&pm8937_l5>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+ };
+};
+
&blsp1_i2c3 {
status = "okay";
--
2.55.0