Skip to contentSkip to conversation

dt-bindings: display: mediatek: split: add clocks count constraint for MT8195

PATCH In review Moudy Ho 3 participants 6 messages Sep 27, 2024 – Oct 3, 2024

Subsystems (5)
lore
Share & tools
lore

Moudy Ho

author
#0 lore raw

PATCH v2 1/1 dt-bindings: display: mediatek: split: add clocks count constraint for MT8195

From: Moudy Ho <[email protected]>

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, apply the limit by setting 'maxItems: 3' in MT8195 additional condition.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")

--
The purpose of this patch is to separate the corrections for MediaTek SPLIT CHECK_DTBS error from the original mailing list mentioned below:
https://lore.kernel.org/all/[email protected]/

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

---
 .../bindings/display/mediatek/mediatek,split.yaml           | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +6 -0
index e4affc854f3d..bce1b8b866ce 100644
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: HDMI RX Clock
+      - description: HDMI Metadata Clock
+    minItems: 1
 
 required:
   - compatible
@@ -72,6 +75,9 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
     then:
+      properties:
+        clocks:
+          maxItems: 3
       required:
         - mediatek,gce-client-reg
 
Signature · 1 line
2.34.1
#1 lore raw

Hi, Moudy:

Quoted 8 lines · Moudy Ho

From: Moudy Ho <[email protected]>

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, apply the limit by setting 'maxItems: 3' in MT8195 additional condition.

I think the main purpose of this patch is not to add limitation.
The main purpose is that you add HDMI RX Clock and HDMI Metadata Clock.
Could you describe more about these two clock?
mt8173-disp-split could work without these two clocks. Why mt8195-mdp3-split need these two clocks?

Quoted 2 lines
Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")

The fixes patch should be 739058a9c5c3 ("dt-bindings: display: mediatek: split: add compatible for MT8195")

Regards,
CK

Quoted 38 lines

--
The purpose of this patch is to separate the corrections for MediaTek SPLIT CHECK_DTBS error from the original mailing list mentioned below:
https://lore.kernel.org/all/[email protected]/

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

---
 .../bindings/display/mediatek/mediatek,split.yaml           | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +6 -0
index e4affc854f3d..bce1b8b866ce 100644
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: HDMI RX Clock
+      - description: HDMI Metadata Clock
+    minItems: 1
 
 required:
   - compatible
@@ -72,6 +75,9 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
     then:
+      properties:
+        clocks:
+          maxItems: 3
       required:
         - mediatek,gce-client-reg
 
#2 lore raw

Hi CK,

Quoted 15 lines · CK Hu (胡俊光)

Hi, Moudy:

Quoted 11 lines · Moudy Ho

From: Moudy Ho <[email protected]>

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, apply the limit by setting 'maxItems: 3' in MT8195
additional condition.

Quoted 7 lines

I think the main purpose of this patch is not to add limitation. The main purpose is that you add HDMI RX Clock and HDMI Metadata Clock.
Could you describe more about these two clock? mt8173-disp-split could work without these two clocks. Why mt8195- mdp3-split need these two clocks?

Thanks for the reminder.
In hardware design, SPLIT must enable additional clocks based on its front-end signal source, and this also implies its position in the display pipeline.
I will elaborate further on this part of the description.

Quoted 10 lines
Quoted 3 lines
Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split

each block to individual yaml")

The fixes patch should be 739058a9c5c3 ("dt-bindings: display:
mediatek: split: add compatible for MT8195")

Regards,
CK

It will be corrected in the next version.

Sincerely,
Moudy Ho

Quoted 7 lines
Quoted 7 lines

--
The purpose of this patch is to separate the corrections for MediaTek SPLIT CHECK_DTBS error from the original mailing list mentioned below:

https://lore.kernel.org/all/[email protected]/

Quoted 40 lines
Quoted 40 lines

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

---
 .../bindings/display/mediatek/mediatek,split.yaml           | 6
++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,split .yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,split .yaml
index e4affc854f3d..bce1b8b866ce 100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek,split .yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek,split .yaml

Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +6 -0
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: HDMI RX Clock
+      - description: HDMI Metadata Clock
+    minItems: 1
 
 required:
   - compatible
@@ -72,6 +75,9 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
     then:
+      properties:
+        clocks:
+          maxItems: 3
       required:
         - mediatek,gce-client-reg
 
#3 lore raw
In reply to Moudy Ho
Quoted 6 lines · Moudy Ho

From: Moudy Ho <[email protected]>

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

Quoted 6 lines

To resolve this issue, apply the limit by setting 'maxItems: 3' in MT8195 additional condition.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")

Your SoB does not match.

Please run scripts/checkpatch.pl and fix reported warnings. Then please run and (probably) fix more warnings.
Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.

Quoted 27 lines

--
The purpose of this patch is to separate the corrections for MediaTek SPLIT CHECK_DTBS error from the original mailing list mentioned below:
https://lore.kernel.org/all/[email protected]/

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

---
 .../bindings/display/mediatek/mediatek,split.yaml           | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +3 -0
index e4affc854f3d..bce1b8b866ce 100644
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: HDMI RX Clock
+      - description: HDMI Metadata Clock
+    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,6 +75,9 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
     then:
+      properties:
+        clocks:

missing minItems

Missing constraints for all the variants.

Best regards,
Krzysztof

#4 lore raw

Hi Krzysztof,

Quoted 23 lines · Krzysztof Kozlowski

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

Quoted 3 lines · Moudy Ho

From: Moudy Ho <[email protected]>

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 2 lines

To resolve this issue, apply the limit by setting 'maxItems: 3' in

MT8195

Quoted 3 lines

additional condition.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split

each block to individual yaml")

Quoted 2 lines

Your SoB does not match.

Quoted 9 lines

Please run scripts/checkpatch.pl and fix reported warnings. Then please
run and (probably) fix more warnings.
Some warnings can be ignored, especially from --strict run, but the code
here looks like it needs a fix. Feel free to get in touch if the warning
is not clear.

I apololgize for the mismatch and warning. I will make the corrections in the next version.

Quoted 39 lines
Quoted 5 lines

--
The purpose of this patch is to separate the corrections for MediaTek SPLIT CHECK_DTBS error from the original mailing list mentioned below:

https://lore.kernel.org/all/[email protected]/

Quoted 5 lines

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

---
 .../bindings/display/mediatek/mediatek,split.yaml           | 6

++++++

Quoted 3 lines
 1 file changed, 6 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..bce1b8b866ce 100644
---

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

Quoted 1 line

+++

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

Quoted 13 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +3 -0
@@ -57,6 +57,9 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+      - description: HDMI RX Clock
+      - description: HDMI Metadata Clock
+    minItems: 1
 
 required:
   - compatible
@@ -72,6 +75,9 @@ allOf:
             const: mediatek,mt8195-mdp3-split
 
Quoted 8 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:

missing minItems

Missing constraints for all the variants.

Does this mean that a 'maxItems:1' condition needs to be added for mt8173 clock property under the 'allOf' seciton?

Quoted 3 lines

Best regards,
Krzysztof

Sincerely,
Moudy Ho

#5 lore raw
Quoted 11 lines · Moudy Ho (何宗原)
Quoted 11 lines

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

Quoted 8 lines

required:
- compatible

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

missing minItems

Quoted 5 lines
Quoted 2 lines

Missing constraints for all the variants.

Does this mean that a 'maxItems:1' condition needs to be added for mt8173 clock property under the 'allOf' seciton?

This means that each variant must have clearly defined, fixed list of clocks (other properties as well)

Best regards,
Krzysztof