Skip to contentSkip to conversation

arm64: dts: mt8195: Fix dtbs_check error for infracfg_ao node

PATCH Superseded Macpaul Lin 4 participants 20 messages Sep 24, 2024 – Sep 28, 2024

Subsystems (7)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#1 lore raw

PATCH 2/6 dt-bindings: iommu: mediatek: Fix interrupt count constraint for new SoCs

In reply to Macpaul Lin

The infra-iommu node in mt8195.dtsi was triggering a CHECK_DTBS error due to an excessively long 'interrupts' property. The error message was:

infra-iommu@10315000: interrupts: [[0, 795, 4, 0], [0, 796, 4, 0],
[0, 797, 4, 0], [0, 798, 4, 0], [0, 799, 4, 0]] is too long

To address this issue, add "minItems: 1" and "maxItems: 5" constraints to the 'interrupts' property in the DT binding schema. This change allows for flexibility in the number of interrupts for new SoCs

Fixes bca28426805d ("dt-bindings: iommu: mediatek: Convert IOMMU to DT schema")
---
 Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +2 -1
index ea6b0f5f24de..a00f1f0045b1 100644
@@ -96,7 +96,8 @@ properties:
     maxItems: 1
 
   interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 5
 
   clocks:
     items:
Signature · 1 line
2.45.2
#4 lore raw

PATCH 3/6 dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

In reply to Macpaul Lin

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, add "maxItems: 3" to the 'clocks' property in the DT schema.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
---
 .../devicetree/bindings/display/mediatek/mediatek,split.yaml     | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +1 -0
index e4affc854f3d..42d2d483cc29 100644
@@ -57,6 +57,7 @@ properties:
   clocks:
     items:
       - description: SPLIT Clock
+    maxItems: 3
 
 required:
   - compatible
Signature · 1 line
2.45.2
#16 lore raw

PATCH 6/6 dt-bindings: display: mediatek: dpi: Add mt8195 support in power domains

In reply to Macpaul Lin

Add power domain binding to the mediatek DPI controller for MT8185.

The dpi node in mt8195.dtsi was triggering a dtbs_check error:
dp-intf@1c113000: power-domains: False schema does not allow [[44, 18]]

Fixes 5474d49b2f79 ("dt-bindings: display: mediatek: dpi: Add power domains")
---
 .../devicetree/bindings/display/mediatek/mediatek,dpi.yaml       | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +1 -0
index 3a82aec9021c..07acc8a76bfc 100644
@@ -89,6 +89,7 @@ allOf:
                 - mediatek,mt6795-dpi
                 - mediatek,mt8173-dpi
                 - mediatek,mt8186-dpi
+                - mediatek,mt8195-dp-intf
     then:
       properties:
         power-domains: false
Signature · 1 line
2.45.2
#0 lore raw

PATCH 1/6 arm64: dts: mt8195: Fix dtbs_check error for infracfg_ao node

The infracfg_ao node in mt8195.dtsi was causing a dtbs_check error. The error message was:

syscon@10001000: compatible: ['mediatek,mt8195-infracfg_ao', 'syscon',
'simple-mfd'] is too long

To resolve this, remove 'simple-mfd' from the 'compatible' property of the infracfg_ao node.

Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")
---
 arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +1 -1
index e89ba384c4aa..2e1b41359b43 100644
@@ -487,7 +487,7 @@ topckgen: syscon@10000000 {
 		};
 
 		infracfg_ao: syscon@10001000 {
-			compatible = "mediatek,mt8195-infracfg_ao", "syscon", "simple-mfd";
+			compatible = "mediatek,mt8195-infracfg_ao", "syscon";
 			reg = <0 0x10001000 0 0x1000>;
 			#clock-cells = <1>;
 			#reset-cells = <1>;
Signature · 1 line
2.45.2
#12 lore raw

PATCH 4/6 arm64: dts: mediatek: mt8395-genio-1200-evk: Fix dtbs_check error for phy

The ethernet-phy node in mt8395-genio-1200-evk.dts was triggering a dtbs_check error. The error message was:
eth-phy0@1: $nodename:0: 'eth-phy0@1' does not match

              '^ethernet-phy(@[a-f0-9]+)?$'

Fix this issue by replacing 'eth-phy' node to generic 'ethernet-phy'.

Fixes f2b543a191b6 ("arm64: dts: mediatek: add device-tree for Genio 1200 EVK board")
---
 arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts +1 -1
index 1ef6262b65c9..b4b48eb93f3c 100644
@@ -187,7 +187,7 @@ mdio {
 		compatible = "snps,dwmac-mdio";
 		#address-cells = <1>;
 		#size-cells = <0>;
-		eth_phy0: eth-phy0@1 {
+		eth_phy0: ethernet-phy@1 {
 			compatible = "ethernet-phy-id001c.c916";
 			reg = <0x1>;
 		};
Signature · 1 line
2.45.2
#14 lore raw

PATCH 5/6 arm64: dts: mt8195: Fix dtbs_check error for mutex node

In reply to Macpaul Lin

The mutex node in mt8195.dtsi was triggering a dtbs_check error:
mutex@1c101000: 'clock-names', 'reg-names' do not match any of the

                  regexes: 'pinctrl-[0-9]+'

This seems no need by inspecting the DT schemas and other reference boards, so drop 'clock-names' and 'reg-names' in mt8195.dtsi.

Fixes 92d2c23dc269 ("arm64: dts: mt8195: add display node for vdosys1")
---
 arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +0 -2
index 2e1b41359b43..ade685ed2190 100644
@@ -3331,11 +3331,9 @@ &larb19 &larb21 &larb24 &larb25
 		mutex1: mutex@1c101000 {
 			compatible = "mediatek,mt8195-disp-mutex";
 			reg = <0 0x1c101000 0 0x1000>;
-			reg-names = "vdo1_mutex";
 			interrupts = <GIC_SPI 494 IRQ_TYPE_LEVEL_HIGH 0>;
 			power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS1>;
 			clocks = <&vdosys1 CLK_VDO1_DISP_MUTEX>;
-			clock-names = "vdo1_mutex";
 			mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x1000 0x1000>;
 			mediatek,gce-events = <CMDQ_EVENT_VDO1_STREAM_DONE_ENG_0>;
 		};
Signature · 1 line
2.45.2
maintainer Reviewed-by on v1 1/6
#19 lore raw
In reply to Macpaul Lin

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 11 lines

The infracfg_ao node in mt8195.dtsi was causing a dtbs_check error. The error message was:

syscon@10001000: compatible: ['mediatek,mt8195-infracfg_ao', 'syscon',
'simple-mfd'] is too long

To resolve this, remove 'simple-mfd' from the 'compatible' property of the infracfg_ao node.

Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")
#5 lore raw

Re: [PATCH 3/6] dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

In reply to Macpaul Lin

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 18 lines

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, add "maxItems: 3" to the 'clocks' property in the DT schema.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
---
  .../devicetree/bindings/display/mediatek/mediatek,split.yaml     | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
index e4affc854f3d..42d2d483cc29 100644

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

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
@@ -57,6 +57,7 @@ properties:
    clocks:
      items:
        - description: SPLIT Clock

That's at least confusing (granted that it works) - either add a description for each clock and then set minItems: 1 (preferred), or remove this "SPLIT Clock" description and allow a maximum of 3 clocks.

Removing the description can be done - IMO - because "SPLIT Clock" is, well, saying that the SPLIT block gets a SPLIT clock ... stating the obvious, anyway.

Cheers,
Angelo

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +1 -0
+    maxItems: 3
 
  required:
    - compatible
maintainer Reviewed-by on v1 4/6
#13 lore raw

Re: [PATCH 4/6] arm64: dts: mediatek: mt8395-genio-1200-evk: Fix dtbs_check error for phy

In reply to Macpaul Lin

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 8 lines

The ethernet-phy node in mt8395-genio-1200-evk.dts was triggering a dtbs_check error. The error message was:

   eth-phy0@1: $nodename:0: 'eth-phy0@1' does not match
               '^ethernet-phy(@[a-f0-9]+)?$'

Fix this issue by replacing 'eth-phy' node to generic 'ethernet-phy'.

Fixes f2b543a191b6 ("arm64: dts: mediatek: add device-tree for Genio 1200 EVK board")
maintainer Reviewed-by on v1 5/6
#15 lore raw

Re: [PATCH 5/6] arm64: dts: mt8195: Fix dtbs_check error for mutex node

In reply to Macpaul Lin

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 9 lines

The mutex node in mt8195.dtsi was triggering a dtbs_check error:
mutex@1c101000: 'clock-names', 'reg-names' do not match any of the

                   regexes: 'pinctrl-[0-9]+'

This seems no need by inspecting the DT schemas and other reference boards, so drop 'clock-names' and 'reg-names' in mt8195.dtsi.

Fixes 92d2c23dc269 ("arm64: dts: mt8195: add display node for vdosys1")
#17 lore raw

Re: [PATCH 6/6] dt-bindings: display: mediatek: dpi: Add mt8195 support in power domains

In reply to Macpaul Lin

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 16 lines

Add power domain binding to the mediatek DPI controller for MT8185.

The dpi node in mt8195.dtsi was triggering a dtbs_check error:

   dp-intf@1c113000: power-domains: False schema does not allow [[44, 18]]
Fixes 5474d49b2f79 ("dt-bindings: display: mediatek: dpi: Add power domains")
---
  .../devicetree/bindings/display/mediatek/mediatek,dpi.yaml       | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +0 -0
index 3a82aec9021c..07acc8a76bfc 100644

Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml allOf: · line 92

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +1 -0
@@ -89,6 +89,7 @@ allOf:
                  - mediatek,mt6795-dpi
                  - mediatek,mt8173-dpi
                  - mediatek,mt8186-dpi
+                - mediatek,mt8195-dp-intf

The dp_intf1 block has a power domain (VDOSYS1)... so that will break the check for the other one.

Besides, I'm fairly sure that the right fix is to actually add the missing VDOSYS0 power domain to dp_intf0 instead, as that block is indeed in VDO0.

So.. for this patch: nak.

Cheers,
Angelo

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +0 -0
      then:
        properties:
          power-domains: false
#6 lore raw

Re: [PATCH 3/6] dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

In reply to AngeloGioacchino Del Regno
Quoted 27 lines · AngeloGioacchino Del Regno

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 18 lines

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, add "maxItems: 3" to the 'clocks' property in the DT schema.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
---
  .../devicetree/bindings/display/mediatek/mediatek,split.yaml     | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
index e4affc854f3d..42d2d483cc29 100644

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

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
@@ -57,6 +57,7 @@ properties:
    clocks:
      items:
        - description: SPLIT Clock

That's at least confusing (granted that it works) - either add a description for each clock and then set minItems: 1 (preferred), or remove this "SPLIT Clock" description and allow a maximum of 3 clocks.

Quoted 2 lines

Removing the description can be done - IMO - because "SPLIT Clock" is, well, saying that the SPLIT block gets a SPLIT clock ... stating the obvious, anyway.

Right, but what are the other two new clocks? Are they as obvious? There's no clock-names here to give any more information as to what the other clocks are supposed to be.

Kinda unrelated, but I think that "SPLIT Clock" probably isn't what the name of the clock in the IP block is anyway, sounds more like the name for it on the provider end..

#2 lore raw

Re: [PATCH 2/6] dt-bindings: iommu: mediatek: Fix interrupt count constraint for new SoCs

In reply to Macpaul Lin
Quoted 7 lines · Macpaul Lin

The infra-iommu node in mt8195.dtsi was triggering a CHECK_DTBS error due to an excessively long 'interrupts' property. The error message was:

infra-iommu@10315000: interrupts: [[0, 795, 4, 0], [0, 796, 4, 0],
[0, 797, 4, 0], [0, 798, 4, 0], [0, 799, 4, 0]] is too long

Quoted 6 lines

To address this issue, add "minItems: 1" and "maxItems: 5" constraints to the 'interrupts' property in the DT binding schema. This change allows for flexibility in the number of interrupts for new SoCs

Fixes bca28426805d ("dt-bindings: iommu: mediatek: Convert IOMMU to DT schema")

This space should be removed.

Quoted 10 lines
---
 Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +0 -0
index ea6b0f5f24de..a00f1f0045b1 100644

Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml properties: · line 100

Quoted 6 lines
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +2 -1
@@ -96,7 +96,8 @@ properties:
     maxItems: 1
 
   interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 5

You need to add an items list here, and probably some per compatible constraints. What are each of the itnerrupts for?

Quoted 6 lines
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +0 -0
   clocks:
     items:
Signature · 1 line
2.45.2
#18 lore raw

Re: [PATCH 6/6] dt-bindings: display: mediatek: dpi: Add mt8195 support in power domains

In reply to AngeloGioacchino Del Regno
Quoted 25 lines · AngeloGioacchino Del Regno

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 16 lines

Add power domain binding to the mediatek DPI controller for MT8185.

The dpi node in mt8195.dtsi was triggering a dtbs_check error:

   dp-intf@1c113000: power-domains: False schema does not allow [[44, 18]]
Fixes 5474d49b2f79 ("dt-bindings: display: mediatek: dpi: Add power domains")
---
  .../devicetree/bindings/display/mediatek/mediatek,dpi.yaml       | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +0 -0
index 3a82aec9021c..07acc8a76bfc 100644

Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml allOf: · line 92

Quoted 4 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +1 -0
@@ -89,6 +89,7 @@ allOf:
                  - mediatek,mt6795-dpi
                  - mediatek,mt8173-dpi
                  - mediatek,mt8186-dpi
+                - mediatek,mt8195-dp-intf

The dp_intf1 block has a power domain (VDOSYS1)... so that will break the check for the other one.

Quoted 7 lines

Besides, I'm fairly sure that the right fix is to actually add the missing VDOSYS0 power domain to dp_intf0 instead, as that block is indeed in VDO0.

So.. for this patch: nak.

Cheers,
Angelo

Tommy and I was wondering why DP-INTF0 will work without power domain.
After lookup others node in the mt8195.dtsi, I guess this is because the power domain VDOSYS0 has been enabled by other modules.

However this patch is still required after adding power domain to DP-INTF0. Otherwise the dpi errors will become two. :~
dp-intf@1c015000: power-domains: False schema does not allow [[44, 16]] dp-intf@1c113000: power-domains: False schema does not allow [[44, 18]]

I'll send a separate patch to add VDOSYS0 for DP-INTF0.

Thanks
Macpaul Lin

#3 lore raw

Re: [PATCH 2/6] dt-bindings: iommu: mediatek: Fix interrupt count constraint for new SoCs

In reply to Conor Dooley
Quoted 8 lines · Conor Dooley
Quoted 7 lines · Macpaul Lin

The infra-iommu node in mt8195.dtsi was triggering a CHECK_DTBS error due to an excessively long 'interrupts' property. The error message was:

   infra-iommu@10315000: interrupts: [[0, 795, 4, 0], [0, 796, 4, 0],
                      [0, 797, 4, 0], [0, 798, 4, 0], [0, 799, 4, 0]]
                      is too long
Quoted 8 lines
Quoted 6 lines

To address this issue, add "minItems: 1" and "maxItems: 5" constraints to the 'interrupts' property in the DT binding schema. This change allows for flexibility in the number of interrupts for new SoCs

Fixes bca28426805d ("dt-bindings: iommu: mediatek: Convert IOMMU to DT schema")

This space should be removed.

Thanks! Will fix it in the next version.

Quoted 12 lines
Quoted 12 lines
---
  Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +0 -0
index ea6b0f5f24de..a00f1f0045b1 100644
@@ -96,7 +96,8 @@ properties:
      maxItems: 1
 
Quoted 8 lines

Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml properties: · line 100

Quoted 4 lines
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +2 -1
    interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 5

You need to add an items list here, and probably some per compatible constraints. What are each of the itnerrupts for?

According to Friday Yang's comment,
The IOMMU of MT8195 has 5 banks: 0/1/2/3/4. Each bank has a set of APB registers corresponding to the normal world, protected world 1/2/3,
and secure world, respectively.
Therefore, 5 interrupt numbers are needed.

Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +0 -0
    clocks:
      items:
Signature · 1 line
2.45.2

Will try to fix it and add some description for MT8195.
I think this patch could be split as a separated patch from the origin patch set. It'll take some time to refine the patch.

Thanks
Macpaul Lin

#7 lore raw

Re: [PATCH 3/6] dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

In reply to Conor Dooley
Quoted 31 lines · Conor Dooley
Quoted 27 lines · AngeloGioacchino Del Regno

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 18 lines

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, add "maxItems: 3" to the 'clocks' property in the DT schema.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
---
   .../devicetree/bindings/display/mediatek/mediatek,split.yaml     | 1 +
   1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
index e4affc854f3d..42d2d483cc29 100644

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

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
@@ -57,6 +57,7 @@ properties:
     clocks:
       items:
         - description: SPLIT Clock

That's at least confusing (granted that it works) - either add a description for each clock and then set minItems: 1 (preferred), or remove this "SPLIT Clock" description and allow a maximum of 3 clocks.

Quoted 2 lines

Removing the description can be done - IMO - because "SPLIT Clock" is, well, saying that the SPLIT block gets a SPLIT clock ... stating the obvious, anyway.

Quoted 7 lines

Right, but what are the other two new clocks? Are they as obvious? There's no clock-names here to give any more information as to what the other clocks are supposed to be.

Kinda unrelated, but I think that "SPLIT Clock" probably isn't what the name of the clock in the IP block is anyway, sounds more like the name for it on the provider end..

Thanks for the suggestions. I think Moudy could help on the new fixes for both DT schem and mt8195.dtsi. This patch could be separated from origin patch set.

Thanks
Macpaul Lin

#8 lore raw

Re: [PATCH 3/6] dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

Quoted 37 lines · Macpaul Lin
Quoted 35 lines · Conor Dooley
Quoted 27 lines · AngeloGioacchino Del Regno

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 18 lines

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, add "maxItems: 3" to the 'clocks' property in the DT schema.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
---
   .../devicetree/bindings/display/mediatek/mediatek,split.yaml     | 1 +
   1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
index e4affc854f3d..42d2d483cc29 100644

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

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
@@ -57,6 +57,7 @@ properties:
     clocks:
       items:
         - description: SPLIT Clock

That's at least confusing (granted that it works) - either add a description for each clock and then set minItems: 1 (preferred), or remove this "SPLIT Clock" description and allow a maximum of 3 clocks.

Quoted 2 lines

Removing the description can be done - IMO - because "SPLIT Clock" is, well, saying that the SPLIT block gets a SPLIT clock ... stating the obvious, anyway.

Right, but what are the other two new clocks? Are they as obvious? There's no clock-names here to give any more information as to what the other clocks are supposed to be.

Quoted 7 lines
Quoted 3 lines

Kinda unrelated, but I think that "SPLIT Clock" probably isn't what the name of the clock in the IP block is anyway, sounds more like the name for it on the provider end..

Thanks for the suggestions. I think Moudy could help on the new fixes for both DT schem and mt8195.dtsi. This patch could be separated from origin patch set.

Not sure what you mean about separating it, if you mean correcting the description for the split clock sure. The other stuff I mentioned needs to be resolved before I'm willing to ack this.

#9 lore raw

Re: [PATCH 3/6] dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

Il 25/09/24 16:34, Conor Dooley ha scritto:

Quoted 42 lines · Macpaul Lin
Quoted 41 lines · Conor Dooley
Quoted 38 lines · AngeloGioacchino Del Regno
Quoted 27 lines

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 18 lines

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, add "maxItems: 3" to the 'clocks' property in the DT schema.

Fixes 4ed545e7d100 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
---
    .../devicetree/bindings/display/mediatek/mediatek,split.yaml     | 1 +
    1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
index e4affc854f3d..42d2d483cc29 100644

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

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
@@ -57,6 +57,7 @@ properties:
      clocks:
        items:
          - description: SPLIT Clock

That's at least confusing (granted that it works) - either add a description for each clock and then set minItems: 1 (preferred), or remove this "SPLIT Clock" description and allow a maximum of 3 clocks.

Quoted 2 lines

Removing the description can be done - IMO - because "SPLIT Clock" is, well, saying that the SPLIT block gets a SPLIT clock ... stating the obvious, anyway.

Right, but what are the other two new clocks? Are they as obvious? There's no clock-names here to give any more information as to what the other clocks are supposed to be.

Kinda unrelated, but I think that "SPLIT Clock" probably isn't what the name of the clock in the IP block is anyway, sounds more like the name for it on the provider end..

Quoted 7 lines
Quoted 3 lines

Thanks for the suggestions. I think Moudy could help on the new fixes for both DT schem and mt8195.dtsi. This patch could be separated from origin patch set.

Not sure what you mean about separating it, if you mean correcting the description for the split clock sure. The other stuff I mentioned needs to be resolved before I'm willing to ack this.

He means separating this patch from the rest of the series that he pushed - which is okay, as it's a bit mixed anyway :-)

Besides ... Moudy, can you please help to clarify the description of those clocks?

Cheers,
Angelo

#10 lore raw

Re: [PATCH 3/6] dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

Quoted 66 lines · AngeloGioacchino Del Regno

Il 25/09/24 16:34, Conor Dooley ha scritto:

Quoted 65 lines · Macpaul Lin
Quoted 64 lines · Conor Dooley
Quoted 60 lines
Quoted 42 lines · AngeloGioacchino Del Regno

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 31 lines

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, add "maxItems: 3" to the 'clocks' property in
the DT schema.

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

split each block to individual yaml")

---
.../devicetree/bindings/display/mediatek/mediatek,split
.yaml | 1 +

    1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml b/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml
index e4affc854f3d..42d2d483cc29 100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml

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

Quoted 3 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +0 -0
@@ -57,6 +57,7 @@ properties:
      clocks:
        items:
          - description: SPLIT Clock

That's at least confusing (granted that it works) - either add a description for
each clock and then set minItems: 1 (preferred), or remove this "SPLIT Clock"
description and allow a maximum of 3 clocks.

Quoted 4 lines

Removing the description can be done - IMO - because "SPLIT Clock" is, well,
saying that the SPLIT block gets a SPLIT clock ... stating the obvious, anyway.

Right, but what are the other two new clocks? Are they as obvious?
There's no clock-names here to give any more information as to what the
other clocks are supposed to be.

Kinda unrelated, but I think that "SPLIT Clock" probably isn't what the
name of the clock in the IP block is anyway, sounds more like the name
for it on the provider end..

* Thanks for the suggestions. I think Moudy could help on the new fixes

Quoted 14 lines
Quoted 9 lines
Quoted 3 lines

for both DT schem and mt8195.dtsi. This patch could be separated from
origin patch set.

Not sure what you mean about separating it, if you mean correcting the
description for the split clock sure. The other stuff I mentioned needs
to be resolved before I'm willing to ack this.

He means separating this patch from the rest of the series that he pushed - which
is okay, as it's a bit mixed anyway :-)

Quoted 5 lines

Besides ... Moudy, can you please help to clarify the description of those clocks?

Cheers,
Angelo

Greetings,

May I address the check error by adding 2 functional descriptions and specifying 'minIeims: 1' for this property, and apply the limit by setting 'maxItems: 3' in MT8195 additional condition?

Sincerely,
Moudy Ho

#11 lore raw

Re: [PATCH 3/6] dt-bindings: display: mediatek: Fix clocks count constraint for new SoCs

Quoted 83 lines · Moudy Ho (何宗原)
Quoted 66 lines · AngeloGioacchino Del Regno

Il 25/09/24 16:34, Conor Dooley ha scritto:

Quoted 65 lines · Macpaul Lin
Quoted 64 lines · Conor Dooley
Quoted 60 lines
Quoted 42 lines · AngeloGioacchino Del Regno

Il 24/09/24 12:31, Macpaul Lin ha scritto:

Quoted 31 lines

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, add "maxItems: 3" to the 'clocks' property in
the DT schema.

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

split each block to individual yaml")

---
.../devicetree/bindings/display/mediatek/mediatek,split
.yaml | 1 +

    1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml b/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml
index e4affc854f3d..42d2d483cc29 100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediat ek,split.yaml

Review properties: · line 59

Quoted 3 lines
(quoted diff) +0 -0
@@ -57,6 +57,7 @@ properties:
      clocks:
        items:
          - description: SPLIT Clock

That's at least confusing (granted that it works) - either add a description for
each clock and then set minItems: 1 (preferred), or remove this "SPLIT Clock"
description and allow a maximum of 3 clocks.

Quoted 4 lines

Removing the description can be done - IMO - because "SPLIT Clock" is, well,
saying that the SPLIT block gets a SPLIT clock ... stating the obvious, anyway.

Right, but what are the other two new clocks? Are they as obvious?
There's no clock-names here to give any more information as to what the
other clocks are supposed to be.

Kinda unrelated, but I think that "SPLIT Clock" probably isn't what the
name of the clock in the IP block is anyway, sounds more like the name
for it on the provider end..

* Thanks for the suggestions. I think Moudy could help on the new fixes

Quoted 14 lines
Quoted 9 lines
Quoted 3 lines

for both DT schem and mt8195.dtsi. This patch could be separated from
origin patch set.

Not sure what you mean about separating it, if you mean correcting the
description for the split clock sure. The other stuff I mentioned needs
to be resolved before I'm willing to ack this.

He means separating this patch from the rest of the series that he pushed - which
is okay, as it's a bit mixed anyway :-)

Quoted 6 lines
Quoted 2 lines

Besides ... Moudy, can you please help to clarify the description of those clocks?

May I address the check error by adding 2 functional descriptions and specifying 'minIeims: 1' for this property, and apply the limit by setting 'maxItems: 3' in MT8195 additional condition?

That sounds reasonable