* [PATCH v4 1/3] arm64: dts: qcom: msm8917-xiaomi-riva: Enable debug UART console
2026-08-20 11:03 [PATCH v4 0/3] arm64: dts: qcom: Refine device support for Xiaomi Redmi 5A Reza Kurniawan
@ 2026-08-20 11:03 ` Reza Kurniawan
2026-08-20 11:03 ` [PATCH v4 2/3] arm64: dts: qcom: msm8917-xiaomi-riva: Add GPIO haptic vibrator Reza Kurniawan
2026-08-20 11:03 ` [PATCH v4 3/3] arm64: dts: qcom: msm8917-xiaomi-riva: Add notification LED support Reza Kurniawan
2 siblings, 0 replies; 4+ messages in thread
From: Reza Kurniawan @ 2026-08-20 11:03 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Reza Kurniawan
Xiaomi Redmi 5A has accessible UART test points on its PCB, they are
routed to the BLSP1 UART2 port.
Enable the blsp1_uart2 node and configure stdout-path under the chosen
node to allow outputting kernel logs and facilitate early debugging.
Signed-off-by: Reza Kurniawan <imkyufie@gmail.com>
---
v4:
- Simplify commit title
- Add commit description
arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
index 4ea4fbdb5..abfaae502 100644
--- a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
+++ b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
@@ -13,6 +13,10 @@ / {
qcom,board-id = <0x1000b 1>, <0x1000b 2>;
+ chosen {
+ stdout-path = &blsp1_uart2;
+ };
+
battery: battery {
compatible = "simple-battery";
charge-full-design-microamp-hours = <3000000>;
@@ -25,6 +29,10 @@ battery: battery {
};
};
+&blsp1_uart2 {
+ status = "okay";
+};
+
&blsp2_i2c1 {
status = "okay";
--
2.55.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v4 2/3] arm64: dts: qcom: msm8917-xiaomi-riva: Add GPIO haptic vibrator
2026-08-20 11:03 [PATCH v4 0/3] arm64: dts: qcom: Refine device support for Xiaomi Redmi 5A Reza Kurniawan
2026-08-20 11:03 ` [PATCH v4 1/3] arm64: dts: qcom: msm8917-xiaomi-riva: Enable debug UART console Reza Kurniawan
@ 2026-08-20 11:03 ` Reza Kurniawan
2026-08-20 11:03 ` [PATCH v4 3/3] arm64: dts: qcom: msm8917-xiaomi-riva: Add notification LED support Reza Kurniawan
2 siblings, 0 replies; 4+ messages in thread
From: Reza Kurniawan @ 2026-08-20 11:03 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Reza Kurniawan
The haptic vibrator in Xiaomi Redmi 5A is controlled through TLMM GPIO
97 and is directly powered vph_pwr.
Define the vibrator node using the "gpio-vibrator" driver.
Signed-off-by: Reza Kurniawan <imkyufie@gmail.com>
---
v4:
- Simplify commit title
- Add commit description
v3:
- Add vcc-supply for vibrator
arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
index abfaae502..a066d9d7a 100644
--- a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
+++ b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
@@ -27,6 +27,12 @@ battery: battery {
charge-term-current-microamp = <60000>;
voltage-min-design-microvolt = <3400000>;
};
+
+ vibrator {
+ compatible = "gpio-vibrator";
+ enable-gpios = <&tlmm 97 GPIO_ACTIVE_HIGH>;
+ vcc-supply = <&vph_pwr>;
+ };
};
&blsp1_uart2 {
--
2.55.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v4 3/3] arm64: dts: qcom: msm8917-xiaomi-riva: Add notification LED support
2026-08-20 11:03 [PATCH v4 0/3] arm64: dts: qcom: Refine device support for Xiaomi Redmi 5A Reza Kurniawan
2026-08-20 11:03 ` [PATCH v4 1/3] arm64: dts: qcom: msm8917-xiaomi-riva: Enable debug UART console Reza Kurniawan
2026-08-20 11:03 ` [PATCH v4 2/3] arm64: dts: qcom: msm8917-xiaomi-riva: Add GPIO haptic vibrator Reza Kurniawan
@ 2026-08-20 11:03 ` Reza Kurniawan
2 siblings, 0 replies; 4+ messages in thread
From: Reza Kurniawan @ 2026-08-20 11:03 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Reza Kurniawan
Add the aw2013 led-controller node for controlling the notification LED.
Since it communicates through I2C, also enable the blsp1_i2c2 node.
Signed-off-by: Reza Kurniawan <imkyufie@gmail.com>
---
v4:
- Simplify commit title
- Add commit description
- Drop redundant status propery in LED node
.../boot/dts/qcom/msm8917-xiaomi-riva.dts | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
index a066d9d7a..7c323214a 100644
--- a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
+++ b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
@@ -5,6 +5,7 @@
/dts-v1/;
+#include <dt-bindings/leds/common.h>
#include "msm8917-xiaomi-wingtech.dtsi"
/ {
@@ -35,6 +36,26 @@ vibrator {
};
};
+&blsp1_i2c2 {
+ 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>;
+ };
+ };
+};
+
&blsp1_uart2 {
status = "okay";
};
--
2.55.0
^ permalink raw reply related [flat|nested] 4+ messages in thread