Skip to contentSkip to conversation

arm64: dts: qcom: Distinguish Xiaomi elish display panel variants

PATCH In review Jianfeng Liu 2 participants 5 messages Nov 27

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: qcom: Distinguish Xiaomi elish display panel variants

The Xiaomi Mi Pad 5 Pro (elish) ships with either a BOE or a CSOT display panel. The two variants already have separate device trees, but their root compatible lists are identical. Loaders such as Stubble cannot use those lists to select the device tree for the detected panel.

Document a board compatible for each panel variant, then prepend it to the corresponding device tree's root compatible list. Keep xiaomi,elish and qcom,sm8250 as fallbacks. The binding now describes the panel-specific compatible lists in place of the generic-only entry.

This series is based on next-20261125. The binding update precedes the DTS changes.

Validation:
- Strict checkpatch: no errors or warnings.
- dt_binding_check with DT_SCHEMA_FILES=arm/qcom.yaml.
- Both Elish DTBs built and validated against arm/qcom.yaml.

On-device Stubble boot has been tested using U-Boot firmware.

AI assistance: OpenAI Codex helped adapt the existing downstream patch, prepare the binding, commit messages and cover letter, and run the local checks described above.

Changes in v2:
- Remove xiaomi,elish from the generic SM8250 enum, as suggested by Jianhua Lu.
- Add a Xiaomi Mi Pad 5 Pro description to the Elish entry, as suggested by Jianhua Lu.
- Use sm8250-xiaomi-elish in the commit subject, as requested by Jianhua Lu.

Jianfeng Liu (2):
dt-bindings: arm: qcom: Document Xiaomi elish panel variants
arm64: dts: qcom: sm8250-xiaomi-elish: Distinguish display panel
variants

 Documentation/devicetree/bindings/arm/qcom.yaml       | 9 ++++++++-
 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts  | 2 +-
 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts | 2 +-
 3 files changed, 10 insertions(+), 3 deletions(-)

---
base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7
branch: xiaomi-elish-panel-upstream

Signature · 1 line
2.47.3
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: qcom: Document Xiaomi elish panel variants

The Xiaomi Mi Pad 5 Pro (elish) is available with either a BOE or a CSOT display panel. Document a board compatible for each variant so firmware can distinguish the corresponding device trees.

Keep xiaomi,elish as a fallback in the panel-specific compatible lists and replace the generic-only entry with the two panel variants.

---

Changes in v2:
- Remove xiaomi,elish from the generic SM8250 enum, as suggested by Jianhua Lu.
- Add a Xiaomi Mi Pad 5 Pro description to the Elish entry, as suggested by Jianhua Lu.

 Documentation/devicetree/bindings/arm/qcom.yaml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/qcom.yaml +8 -1
index a7157795870cd..badf99e92d321 100644
@@ -1188,10 +1188,17 @@ properties:
               - samsung,x1q
               - sony,pdx203-generic
               - sony,pdx206-generic
-              - xiaomi,elish
               - xiaomi,pipa
           - const: qcom,sm8250
 
+      - description: Xiaomi Mi Pad 5 Pro
+        items:
+          - enum:
+              - xiaomi,elish-boe
+              - xiaomi,elish-csot
+          - const: xiaomi,elish
+          - const: qcom,sm8250
+
       - items:
           - enum:
               - microsoft,surface-duo2
Signature · 1 line
2.47.3
Acked-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm: qcom: Document Xiaomi elish panel variants

Quoted 11 lines · Jianfeng Liu

The Xiaomi Mi Pad 5 Pro (elish) is available with either a BOE or a CSOT display panel. Document a board compatible for each variant so firmware can distinguish the corresponding device trees.

Keep xiaomi,elish as a fallback in the panel-specific compatible lists and replace the generic-only entry with the two panel variants.

---

Quoted 9 lines

Changes in v2:
- Remove xiaomi,elish from the generic SM8250 enum, as suggested by Jianhua Lu.
- Add a Xiaomi Mi Pad 5 Pro description to the Elish entry, as suggested by Jianhua Lu.

 Documentation/devicetree/bindings/arm/qcom.yaml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
#3 lore raw

PATCH v2 2/2 arm64: dts: qcom: sm8250-xiaomi-elish: Distinguish display panel variants

In reply to Jianfeng Liu

The BOE and CSOT variants of the Xiaomi Mi Pad 5 Pro have separate device trees, but both advertise the same root compatible list. Firmware using that list to select a DTB, such as Stubble, cannot distinguish them and may select the device tree for the wrong panel.

Prepend a panel-specific board compatible to each variant's root node. Retain xiaomi,elish and qcom,sm8250 as fallbacks for existing users of the generic board and SoC compatibles.

---

Changes in v2:
- Use sm8250-xiaomi-elish in the commit subject, as requested by Jianhua Lu.

 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts  | 2 +-
 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts +1 -1
index de6101ddebe7d..4838f3950124c 100644
@@ -9,7 +9,7 @@
 
 / {
 	model = "Xiaomi Mi Pad 5 Pro (BOE)";
-	compatible = "xiaomi,elish", "qcom,sm8250";
+	compatible = "xiaomi,elish-boe", "xiaomi,elish", "qcom,sm8250";
 };
 
 &display_panel {
arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts +1 -1
index 4cffe9c703df8..0ad0a76ee9d04 100644
@@ -9,7 +9,7 @@
 
 / {
 	model = "Xiaomi Mi Pad 5 Pro (CSOT)";
-	compatible = "xiaomi,elish", "qcom,sm8250";
+	compatible = "xiaomi,elish-csot", "xiaomi,elish", "qcom,sm8250";
 };
 
 &display_panel {
Signature · 1 line
2.47.3
Reviewed-by on v2 2/2
#4 lore raw

Re: [PATCH v2 2/2] arm64: dts: qcom: sm8250-xiaomi-elish: Distinguish display panel variants

Quoted 13 lines · Jianfeng Liu

The BOE and CSOT variants of the Xiaomi Mi Pad 5 Pro have separate device trees, but both advertise the same root compatible list. Firmware using that list to select a DTB, such as Stubble, cannot distinguish them and may select the device tree for the wrong panel.

Prepend a panel-specific board compatible to each variant's root node. Retain xiaomi,elish and qcom,sm8250 as fallbacks for existing users of the generic board and SoC compatibles.

---

Quoted 8 lines

Changes in v2:
- Use sm8250-xiaomi-elish in the commit subject, as requested by Jianhua Lu.

 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-boe.dts  | 2 +-
 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-csot.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)