Skip to contentSkip to conversation

dt-bindings: display: mediatek: split: add subschema property constraints

PATCH Superseded Moudy Ho 2 participants 3 messages Oct 4, 2024

Subsystems (5)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Moudy Ho

author
#0 lore raw

PATCH v4 1/1 dt-bindings: display: mediatek: split: add subschema property constraints

The display node in mt8195.dtsi was triggering a CHECK_DTBS error due to an excessively long 'clocks' property:
display@14f06000: clocks: [[31, 14], [31, 43], [31, 44]] is too long

To resolve this issue, the constraints for 'clocks' and other properties within the subschema will be reinforced.

Fixes 739058a9c5c3 ("dt-bindings: display: mediatek: split: add compatible for MT8195")

--
This is based on [v2] dt-bindings: display: mediatek: split: add clocks count constraint for MT8195

Changes since v3:
- Correct the compatible name for the mt8173 split in the subschema.

Changes since v2:
- Revise the commit message.
- Enhance the descriptions of 'clocks'.
- Strengthen the conditions within the subschema.

Changes since v1:
- Adding functional descriptions and quantity restrictions.

---
 .../display/mediatek/mediatek,split.yaml      | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +24 -0
index e4affc854f3d..87f8477a7be8 100644
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: Used for interfacing with the HDMI RX signal source.
+      - description: Paired with receiving HDMI RX metadata.
+    minItems: 1
 
 required:
   - compatible
@@ -72,9 +75,30 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
     then:
+      properties:
+        clocks:
+          maxItems: 3
+
+        power-domains:
+          maxItems: 1
+
       required:
         - mediatek,gce-client-reg
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: mediatek,mt8173-disp-split
+
+    then:
+      properties:
+        clocks:
+          maxItems: 1
+
+        power-domains:
+          maxItems: 1
+
 additionalProperties: false
 
 examples:
Signature · 1 line
2.34.1
#1 lore raw
Quoted 43 lines · Moudy Ho

The display node in mt8195.dtsi was triggering a CHECK_DTBS error due to an excessively long 'clocks' property:
display@14f06000: clocks: [[31, 14], [31, 43], [31, 44]] is too long

To resolve this issue, the constraints for 'clocks' and other properties within the subschema will be reinforced.

Fixes 739058a9c5c3 ("dt-bindings: display: mediatek: split: add compatible for MT8195")

--
This is based on [v2] dt-bindings: display: mediatek: split: add clocks count constraint for MT8195

Changes since v3:
- Correct the compatible name for the mt8173 split in the subschema.

Changes since v2:
- Revise the commit message.
- Enhance the descriptions of 'clocks'.
- Strengthen the conditions within the subschema.

Changes since v1:
- Adding functional descriptions and quantity restrictions.

---
 .../display/mediatek/mediatek,split.yaml      | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +3 -0
index e4affc854f3d..87f8477a7be8 100644
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: Used for interfacing with the HDMI RX signal source.
+      - description: Paired with receiving HDMI RX metadata.
+    minItems: 1
 
 required:
   - compatible

Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml allOf: · line 79

Quoted 5 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +2 -0
@@ -72,9 +75,30 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
     then:
+      properties:
+        clocks:

minItems, nothing in your commit msg says that clocks are optional

Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml allOf: · line 83

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +4 -0
+          maxItems: 3
+
+        power-domains:
+          maxItems: 1

This should be in top-level, not here.

Best regards,
Krzysztof

#2 lore raw

Hi Krzysztof,

Quoted 64 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 1 line · Moudy Ho

The display node in mt8195.dtsi was triggering a CHECK_DTBS error

due

Quoted 2 lines

to an excessively long 'clocks' property:
display@14f06000: clocks: [[31, 14], [31, 43], [31, 44]] is too

long

Quoted 5 lines

To resolve this issue, the constraints for 'clocks' and other properties within the subschema will be reinforced.

Fixes 739058a9c5c3 ("dt-bindings: display: mediatek: split: add

compatible for MT8195")

Quoted 5 lines

--
This is based on [v2] dt-bindings: display: mediatek: split: add

clocks count constraint for MT8195

Quoted 3 lines

Changes since v3:
- Correct the compatible name for the mt8173 split in the

subschema.

Quoted 10 lines

Changes since v2:
- Revise the commit message.
- Enhance the descriptions of 'clocks'.
- Strengthen the conditions within the subschema.

Changes since v1:
- Adding functional descriptions and quantity restrictions.

---
 .../display/mediatek/mediatek,split.yaml      | 24

+++++++++++++++++++

Quoted 3 lines
 1 file changed, 24 insertions(+)

diff --git

a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml

Quoted 2 lines

index e4affc854f3d..87f8477a7be8 100644
---

a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml

Quoted 1 line

+++

b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.y aml

Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml properties: · line 60

Quoted 5 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +1 -0
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: Used for interfacing with the HDMI RX signal

source.

Quoted 8 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +2 -0
+      - description: Paired with receiving HDMI RX metadata.
+    minItems: 1
 
 required:
   - compatible
@@ -72,9 +75,30 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
Quoted 6 lines

Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml allOf: · line 79

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +2 -0
     then:
+      properties:
+        clocks:

minItems, nothing in your commit msg says that clocks are optional

Thanks for the reminder. I misunderstood the implications of using min/max.

Quoted 10 lines

Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml allOf: · line 83

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +4 -0
+          maxItems: 3
+
+        power-domains:
+          maxItems: 1

This should be in top-level, not here.

Best regards,
Krzysztof

The above two will be corrected in the next version.

Sincerely,
Moudy Ho