]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sdm845-xiaomi-beryllium: Append compatible strings
authorJens Reidel <adrian@travitia.xyz>
Sun, 5 Apr 2026 10:54:56 +0000 (12:54 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 Apr 2026 19:43:31 +0000 (14:43 -0500)
Add the generic "xiaomi,beryllium" compatible string after the
panel-specific one, so the compatible list follows the required
ordering from most specific to most generic.

This allows userspace to fall back to the generic Poco F1 compatible
when no panel-specific match is present. In particular, hexagonrpcd
relies on trying all compatible entries to derive the HexagonFS path,
and currently fails when the generic device string is missing.

This change modifies the DT ABI: systems describing the EBBG variant
will now also match on "xiaomi,beryllium", whereas previously only
the panel-specific compatible was exposed.

In practice, no upstream userspace distinguishes between Tianma and
EBBG panel variants. All known consumers rely only on the generic
device identification, and no panel-specific handling exists.
Therefore, enabling the generic fallback does not change effective
runtime behavior, but fixes userspace that depends on generic matching.

The previous state was incomplete, as it omitted the generic
device-compatible string required for proper fallback matching.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://lore.kernel.org/r/20260405-beryllium-compat-string-v2-2-91149be07835@ixit.cz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts

index 2d6f0e382a6cbf18b325127cfaf4859d7d9fd4fc..d157622f84d133cd5a5db6ba04e8dafe5a9d3167 100644 (file)
@@ -6,7 +6,7 @@
 
 / {
        model = "Xiaomi Pocophone F1 (EBBG)";
-       compatible = "xiaomi,beryllium-ebbg", "qcom,sdm845";
+       compatible = "xiaomi,beryllium-ebbg", "xiaomi,beryllium", "qcom,sdm845";
 };
 
 &display_panel {
index b58964cde834221baf1a7e52c002c8394668dd99..71816a9f33b484705cc7a60efdb503f346684190 100644 (file)
@@ -6,7 +6,7 @@
 
 / {
        model = "Xiaomi Pocophone F1 (Tianma)";
-       compatible = "xiaomi,beryllium", "qcom,sdm845";
+       compatible = "xiaomi,beryllium-tianma", "xiaomi,beryllium", "qcom,sdm845";
 };
 
 &display_panel {