Skip to content

Commit 399af57

Browse files
krzklumag
authored andcommitted
dt-bindings: display/msm/gpu: fix the schema being not applied
dtschema v2024.4, v2024.5 and maybe earlier do not select device nodes for given binding validation if the schema contains compatible list with pattern and a const fallback. This leads to binding being a no-op - not being applied at all. Issue should be fixed in the dtschema but for now add a work-around do the binding can be used against DTS validation. Signed-off-by: Krzysztof Kozlowski <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/600507/ Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/20240623-qcom-adreno-dts-bindings-driver-v2-4-9496410de992@linaro.org Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 6d69f8d commit 399af57

File tree

1 file changed

+12
-0
lines changed
  • Documentation/devicetree/bindings/display/msm

1 file changed

+12
-0
lines changed

Documentation/devicetree/bindings/display/msm/gpu.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ title: Adreno or Snapdragon GPUs
1010
maintainers:
1111
- Rob Clark <[email protected]>
1212

13+
# dtschema does not select nodes based on pattern+const, so add custom select
14+
# as a work-around:
15+
select:
16+
properties:
17+
compatible:
18+
contains:
19+
enum:
20+
- qcom,adreno
21+
- amd,imageon
22+
required:
23+
- compatible
24+
1325
properties:
1426
compatible:
1527
oneOf:

0 commit comments

Comments
 (0)