Skip to contentSkip to conversation

dt-bindings: arm: mediatek: mmsys: change compatible for MT8195

PATCH Superseded Bo-Chen Chen 3 participants 8 messages Aug 25, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: arm: mediatek: mmsys: change compatible for MT8195

From: "Jason-JH.Lin" <[email protected]>

For previous MediaTek SoCs, such as MT8173, there are 2 display HW pipelines binding to 1 mmsys with the same power domain, the same clock driver and the same mediatek-drm driver.

For MT8195, VDOSYS0 and VDOSYS1 are 2 display HW pipelines binding to 2 different power domains, different clock drivers and different mediatek-drm drivers.

Therefore, we need to separate these two different mmsys hardwares to 2 different compatibles for MT8195.

Fixes 81c5a41d10b9 ("dt-bindings: arm: mediatek: mmsys: add mt8195 SoC binding")
---
 .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +2 -1
index 6ad023eec193..bfbdd30d2092 100644
@@ -31,7 +31,8 @@ properties:
               - mediatek,mt8183-mmsys
               - mediatek,mt8186-mmsys
               - mediatek,mt8192-mmsys
-              - mediatek,mt8195-mmsys
+              - mediatek,mt8195-vdosys0
+              - mediatek,mt8195-vdosys1
               - mediatek,mt8365-mmsys
           - const: syscon
       - items:
Signature · 1 line
2.18.0
#1 lore raw
Quoted 9 lines · Bo-Chen Chen

From: "Jason-JH.Lin" <[email protected]>

For previous MediaTek SoCs, such as MT8173, there are 2 display HW pipelines binding to 1 mmsys with the same power domain, the same clock driver and the same mediatek-drm driver.

For MT8195, VDOSYS0 and VDOSYS1 are 2 display HW pipelines binding to 2 different power domains, different clock drivers and different mediatek-drm drivers.

I don't see binding to different clock drivers and anyway that's not really an argument here. Please focus in description on hardware properties, IOW, are devices compatible or different. What is the incompatible difference between VDOSYS0 and 1?

Best regards,
Krzysztof

#2 lore raw
Quoted 12 lines · Krzysztof Kozlowski
Quoted 10 lines · Bo-Chen Chen

From: "Jason-JH.Lin" <[email protected]>

For previous MediaTek SoCs, such as MT8173, there are 2 display HW pipelines binding to 1 mmsys with the same power domain, the same clock driver and the same mediatek-drm driver.

For MT8195, VDOSYS0 and VDOSYS1 are 2 display HW pipelines binding to
2 different power domains, different clock drivers and different mediatek-drm drivers.

Quoted 7 lines

I don't see binding to different clock drivers and anyway that's not really an argument here. Please focus in description on hardware properties, IOW, are devices compatible or different. What is the incompatible difference between VDOSYS0 and 1?

Best regards,
Krzysztof

Hello Krzysztof,

Thanks for yor review.

From the functions perspective:

Hardware pipeline of VDOSYS0 has these components: COLOR, CCORR, AAL, GAMMA, DITHER.
They are related to PQ (Picture Quality) functions and they makes VDOSYS0 supports PQ function while they are not including in VDOSYS1.

Hardware pipeline of VDOSYS1 has the component ETHDR (HDR related component).
It makes VDOSYS1 supports the HDR function while it's not including in VDOSYS0.

About mediatek ETHDR, you can refer to this series:

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

To summary:
Only VDOSYS0 can support PQ adjustment.
Only VDOSYS1 can support HDR adjustment.

Is this description ok for you?
If it is ok, I will put them into commit message in next version.

BRs,
Bo-Chen

#3 lore raw
Quoted 19 lines · Bo-Chen Chen

Hello Krzysztof,

Thanks for yor review.

From the functions perspective:

Hardware pipeline of VDOSYS0 has these components: COLOR, CCORR, AAL, GAMMA, DITHER.
They are related to PQ (Picture Quality) functions and they makes VDOSYS0 supports PQ function while they are not including in VDOSYS1.

Hardware pipeline of VDOSYS1 has the component ETHDR (HDR related component).
It makes VDOSYS1 supports the HDR function while it's not including in VDOSYS0.

About mediatek ETHDR, you can refer to this series:

Quoted 9 lines

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

To summary:
Only VDOSYS0 can support PQ adjustment.
Only VDOSYS1 can support HDR adjustment.

Is this description ok for you?
If it is ok, I will put them into commit message in next version.

Yes.

Best regards,
Krzysztof

maintainer
#4 lore raw
In reply to Bo-Chen Chen
Quoted 4 lines · Bo-Chen Chen
Quoted 3 lines · Krzysztof Kozlowski
Quoted 2 lines · Bo-Chen Chen

From: "Jason-JH.Lin" <[email protected]>

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

For previous MediaTek SoCs, such as MT8173, there are 2 display HW pipelines binding to 1 mmsys with the same power domain, the same clock driver and the same mediatek-drm driver.

For MT8195, VDOSYS0 and VDOSYS1 are 2 display HW pipelines binding to
2 different power domains, different clock drivers and different mediatek-drm drivers.

drop clock driver example here.

Quoted 20 lines
Quoted 8 lines

I don't see binding to different clock drivers and anyway that's not really an argument here. Please focus in description on hardware properties, IOW, are devices compatible or different. What is the incompatible difference between VDOSYS0 and 1?

Best regards,
Krzysztof

Hello Krzysztof,

Thanks for yor review.

From the functions perspective:

Hardware pipeline of VDOSYS0 has these components: COLOR, CCORR, AAL, GAMMA, DITHER.
They are related to PQ (Picture Quality) functions and they makes VDOSYS0 supports PQ function while they are not including in VDOSYS1.

Quoted 5 lines

Hardware pipeline of VDOSYS1 has the component ETHDR (HDR related component).
It makes VDOSYS1 supports the HDR function while it's not including in VDOSYS0.

Please include a description of this in the commit message.

Quoted 14 lines

About mediatek ETHDR, you can refer to this series:

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

To summary:
Only VDOSYS0 can support PQ adjustment.
Only VDOSYS1 can support HDR adjustment.

Is this description ok for you?
If it is ok, I will put them into commit message in next version.

BRs,
Bo-Chen

maintainer
#7 lore raw
In reply to Bo-Chen Chen
Quoted 25 lines · Bo-Chen Chen

From: "Jason-JH.Lin" <[email protected]>

For previous MediaTek SoCs, such as MT8173, there are 2 display HW pipelines binding to 1 mmsys with the same power domain, the same clock driver and the same mediatek-drm driver.

For MT8195, VDOSYS0 and VDOSYS1 are 2 display HW pipelines binding to 2 different power domains, different clock drivers and different mediatek-drm drivers.

Therefore, we need to separate these two different mmsys hardwares to 2 different compatibles for MT8195.

Fixes 81c5a41d10b9 ("dt-bindings: arm: mediatek: mmsys: add mt8195 SoC binding")
---
  .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml       | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +0 -0
index 6ad023eec193..bfbdd30d2092 100644

Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml properties: · line 35

Quoted 6 lines
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +2 -1
@@ -31,7 +31,8 @@ properties:
                - mediatek,mt8183-mmsys
                - mediatek,mt8186-mmsys
                - mediatek,mt8192-mmsys
-              - mediatek,mt8195-mmsys
+              - mediatek,mt8195-vdosys0
+              - mediatek,mt8195-vdosys1

If I understand correctly support for vdosys0 is merged with the old compatible. We should therefore keep mediatek,mt8195-mmsys as a fallback for mediatek,mt8195-vdosys0.

Regards,
Matthias

Quoted 3 lines
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +0 -0
                - mediatek,mt8365-mmsys
            - const: syscon
        - items:
#5 lore raw
In reply to Matthias Brugger
Quoted 12 lines · Matthias Brugger
Quoted 10 lines · Bo-Chen Chen
Quoted 9 lines · Krzysztof Kozlowski
Quoted 8 lines · Bo-Chen Chen

From: "Jason-JH.Lin" <[email protected]>

For previous MediaTek SoCs, such as MT8173, there are 2 display HW
pipelines binding to 1 mmsys with the same power domain, the same
clock driver and the same mediatek-drm driver.

Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

For MT8195, VDOSYS0 and VDOSYS1 are 2 display HW pipelines binding
to
2 different power domains, different clock drivers and different
mediatek-drm drivers.

drop clock driver example here.

Hello Matthias,

Thanks for your review.
I am not sure what do you mean.
Could you explain more detailedly?

Quoted 23 lines
Quoted 23 lines
Quoted 9 lines

I don't see binding to different clock drivers and anyway that's not
really an argument here. Please focus in description on hardware properties, IOW, are devices compatible or different. What is the incompatible difference between VDOSYS0 and 1?

Best regards,
Krzysztof

Hello Krzysztof,

Thanks for yor review.

From the functions perspective:

Hardware pipeline of VDOSYS0 has these components: COLOR, CCORR, AAL,
GAMMA, DITHER.
They are related to PQ (Picture Quality) functions and they makes VDOSYS0 supports PQ function while they are not including in VDOSYS1.

Quoted 9 lines
Quoted 6 lines

Hardware pipeline of VDOSYS1 has the component ETHDR (HDR related component).
It makes VDOSYS1 supports the HDR function while it's not including in
VDOSYS0.

Please include a description of this in the commit message.

Yes, I have sent v2 and add these to commit meesage.

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

BRs,
Bo-chen

Quoted 3 lines
Quoted 3 lines

About mediatek ETHDR, you can refer to this series:

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

Quoted 11 lines
Quoted 11 lines

To summary:
Only VDOSYS0 can support PQ adjustment.
Only VDOSYS1 can support HDR adjustment.

Is this description ok for you?
If it is ok, I will put them into commit message in next version.

BRs,
Bo-Chen

maintainer
#6 lore raw
Quoted 20 lines · Bo-Chen Chen
Quoted 19 lines · Matthias Brugger
Quoted 16 lines · Bo-Chen Chen
Quoted 15 lines · Krzysztof Kozlowski
Quoted 14 lines · Bo-Chen Chen

From: "Jason-JH.Lin" <[email protected]>

For previous MediaTek SoCs, such as MT8173, there are 2 display HW
pipelines binding to 1 mmsys with the same power domain, the same
clock driver and the same mediatek-drm driver.

For MT8195, VDOSYS0 and VDOSYS1 are 2 display HW pipelines binding
to
2 different power domains, different clock drivers and different
mediatek-drm drivers.

Quoted 9 lines
Quoted 2 lines

drop clock driver example here.

Hello Matthias,

Thanks for your review.
I am not sure what do you mean.
Could you explain more detailedly?

Never mind, it's not that important.

Regards,
Matthias

Quoted 56 lines
Quoted 23 lines
Quoted 23 lines
Quoted 9 lines

I don't see binding to different clock drivers and anyway that's not
really an argument here. Please focus in description on hardware properties, IOW, are devices compatible or different. What is the incompatible difference between VDOSYS0 and 1?

Best regards,
Krzysztof

Hello Krzysztof,

Thanks for yor review.

From the functions perspective:

Hardware pipeline of VDOSYS0 has these components: COLOR, CCORR, AAL,
GAMMA, DITHER.
They are related to PQ (Picture Quality) functions and they makes VDOSYS0 supports PQ function while they are not including in VDOSYS1.

Quoted 9 lines
Quoted 6 lines

Hardware pipeline of VDOSYS1 has the component ETHDR (HDR related component).
It makes VDOSYS1 supports the HDR function while it's not including in
VDOSYS0.

Please include a description of this in the commit message.

Yes, I have sent v2 and add these to commit meesage.

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

BRs,
Bo-chen

Quoted 3 lines
Quoted 3 lines

About mediatek ETHDR, you can refer to this series:

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

Quoted 11 lines
Quoted 11 lines

To summary:
Only VDOSYS0 can support PQ adjustment.
Only VDOSYS1 can support HDR adjustment.

Is this description ok for you?
If it is ok, I will put them into commit message in next version.

BRs,
Bo-Chen