[PATCH v3 0/6] Commonize Redmi 5A for 4A and GO

Barnabás Czémán posted 6 patches 3 weeks, 5 days ago
Documentation/devicetree/bindings/arm/qcom.yaml    |   2 +
arch/arm64/boot/dts/qcom/Makefile                  |   2 +
arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts   | 310 +--------------------
arch/arm64/boot/dts/qcom/msm8917-xiaomi-rolex.dts  |  15 +
arch/arm64/boot/dts/qcom/msm8917-xiaomi-tiare.dts  |  20 ++
...iaomi-riva.dts => msm8917-xiaomi-wingtech.dtsi} |  61 ++--
6 files changed, 60 insertions(+), 350 deletions(-)
[PATCH v3 0/6] Commonize Redmi 5A for 4A and GO
Posted by Barnabás Czémán 3 weeks, 5 days ago
Redmi 5A is similar device like Redmi GO and Redmi 4A.

This patch series commonize it to avoid code duplications.

Differences between 4A and 5A:
- Different charger and fg
- Different displays panel but same resolution
- Different speaker codec configuration (awinic-mode)

Differences between GO and 5A:
- Different charger and fg
- Different speaker codec (aw87319)

Additional changes:
- Update Redmi 5A board-id for support nougat and oreo bootloader.
- Add Goodix touch controller support for all variants.
  The necessary touch controller can be enabled by devicetree overlay or lk2nd.

Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
Changes in v3:
- xiaomi-tiare: Remove l23 regulator override, add min-volateg for l22.
- xiaomi-riva: use generic names for fg and charger.
- xiaomi-wingtech: Use memory-region for framebuffer.
- squash riva addition commit to comminization commit.
- Link to v2: https://lore.kernel.org/r/20260310-riva-common-v2-0-3bfc23996857@mainlining.org

Changes in v2:
- Rename msm8917-xiaomi-riva-common to msm8917-xiaomi-wingtech.
- Split goodix touch controller addition to a different commit.
- Disable touch controllers by default.
- Split new Redmi 5A devicetree to a different commit.
- Fix Redmi 4A board-id.
- Update riva board-id to make it able to run all bootloader version.
- Squash the devicetree bindings.
- Link to v1: https://lore.kernel.org/r/20260305-riva-common-v1-0-436f1f4b7399@mainlining.org

---
Barnabás Czémán (6):
      arm64: dts: qcom: msm8917-xiaomi-riva: Fix board-id for all bootloader
      arm64: dts: qcom: Make a common base from Redmi 5A
      arm64: dts: qcom: msm8917-xiaomi-wingtech: Add goodix touch
      dt-bindings: arm: qcom: Add Redmi 4A and Go
      arm64: dts: qcom: Add Redmi 4A
      arm64: dts: qcom: Add Redmi Go

 Documentation/devicetree/bindings/arm/qcom.yaml    |   2 +
 arch/arm64/boot/dts/qcom/Makefile                  |   2 +
 arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts   | 310 +--------------------
 arch/arm64/boot/dts/qcom/msm8917-xiaomi-rolex.dts  |  15 +
 arch/arm64/boot/dts/qcom/msm8917-xiaomi-tiare.dts  |  20 ++
 ...iaomi-riva.dts => msm8917-xiaomi-wingtech.dtsi} |  61 ++--
 6 files changed, 60 insertions(+), 350 deletions(-)
---
base-commit: fc7b1a72c6cd5cbbd989c6c32a6486e3e4e3594d
change-id: 20260304-riva-common-66e9c94819a4

Best regards,
-- 
Barnabás Czémán <barnabas.czeman@mainlining.org>

Re: [PATCH v3 0/6] Commonize Redmi 5A for 4A and GO
Posted by Bjorn Andersson 2 weeks, 4 days ago
On Sun, 15 Mar 2026 17:26:18 +0100, Barnabás Czémán wrote:
> Redmi 5A is similar device like Redmi GO and Redmi 4A.
> 
> This patch series commonize it to avoid code duplications.
> 
> Differences between 4A and 5A:
> - Different charger and fg
> - Different displays panel but same resolution
> - Different speaker codec configuration (awinic-mode)
> 
> [...]

Applied, thanks!

[1/6] arm64: dts: qcom: msm8917-xiaomi-riva: Fix board-id for all bootloader
      commit: 5be60b59614f642344f5f0da6af0724e89a7029f
[2/6] arm64: dts: qcom: Make a common base from Redmi 5A
      commit: d22b57071d610f1d0067539a29e64fc79020f7d3
[3/6] arm64: dts: qcom: msm8917-xiaomi-wingtech: Add goodix touch
      commit: 701441d899b1a8659fd0e0e572ba8249e6e00e2c
[4/6] dt-bindings: arm: qcom: Add Redmi 4A and Go
      commit: ec60610c82c4b1fa9114feb4d0d139eebe850307
[5/6] arm64: dts: qcom: Add Redmi 4A
      commit: 0762524b1d61a7b348ca074045ee7065f3a573af
[6/6] arm64: dts: qcom: Add Redmi Go
      commit: 4b718581d10e1b947e73e98fb0c7f7a0b6bc0e5f

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>