Skip to contentSkip to conversation

Migrate MT8188 VPPSYS 0/1 to mtk-mmsys driver

PATCH Superseded yu-chang.lee 2 participants 5 messages Nov 17, 2023 – Nov 19, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v3 cover Migrate MT8188 VPPSYS 0/1 to mtk-mmsys driver

Changes in v3:
- Separate binding patch from driver patch

Changes in v2:
- Refine commit message
- Refine commit title

Hi,

The purpose of series is to separate MT8188 VPPSYS-related binding patch from the original mailing list mentioned below:
https://lore.kernel.org/all/[email protected]/

These binding files reflect VPPSYS' dependency on mtk-mmsys for mediatek MT8188 platform.

yu-chang.lee (2):
dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
dt-bindings: arm: mediatek: mmsys: Add VPPSYS compatible for MT8188

 .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml        | 2 ++
 .../devicetree/bindings/clock/mediatek,mt8188-clock.yaml        | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.18.0
#1 lore raw

PATCH v3 1/2 dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS

MT8188 VPPSYS 0/1 should be probed from mtk-mmsys driver to populate device by platform_device_register_data then start its own clock driver.

---
 .../devicetree/bindings/clock/mediatek,mt8188-clock.yaml        | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml +0 -2
index d7214d97b2ba..860570320545 100644
@@ -43,8 +43,6 @@ properties:
       - mediatek,mt8188-vdecsys
       - mediatek,mt8188-vdecsys-soc
       - mediatek,mt8188-vencsys
-      - mediatek,mt8188-vppsys0
-      - mediatek,mt8188-vppsys1
       - mediatek,mt8188-wpesys
       - mediatek,mt8188-wpesys-vpp0
 
Signature · 1 line
2.18.0
#2 lore raw

Re: [PATCH v3 1/2] dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS

Quoted 3 lines · yu-chang.lee

MT8188 VPPSYS 0/1 should be probed from mtk-mmsys driver to populate device by platform_device_register_data then start its own clock driver.

How does one operating system's driver probing model render these compatibles invalid?

Cheers,
Conor.

Quoted 23 lines
---
 .../devicetree/bindings/clock/mediatek,mt8188-clock.yaml        | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml +0 -2
index d7214d97b2ba..860570320545 100644
@@ -43,8 +43,6 @@ properties:
       - mediatek,mt8188-vdecsys
       - mediatek,mt8188-vdecsys-soc
       - mediatek,mt8188-vencsys
-      - mediatek,mt8188-vppsys0
-      - mediatek,mt8188-vppsys1
       - mediatek,mt8188-wpesys
       - mediatek,mt8188-wpesys-vpp0
 
Signature · 1 line
2.18.0
#3 lore raw

Re: [PATCH v3 1/2] dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS

Quoted 7 lines · Conor Dooley
Quoted 3 lines · yu-chang.lee

MT8188 VPPSYS 0/1 should be probed from mtk-mmsys driver to populate device by platform_device_register_data then start its own clock driver.

How does one operating system's driver probing model render these compatibles invalid?

I see there are 2 patches in the series. Merging them into one would likely make it easier to explain the hardware-related reason for this change.

#4 lore raw

PATCH v3 2/2 dt-bindings: arm: mediatek: mmsys: Add VPPSYS compatible for MT8188

In reply to yu-chang.lee

For MT8188, VPPSYS0 and VPPSYS1 are 2 display pipes with hardware differences in power domains, clocks and subsystem counts, which should be determined by compatible names.

---
 .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml        | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +2 -0
index 536f5a5ebd24..50324248b965 100644
@@ -32,6 +32,8 @@ properties:
               - mediatek,mt8183-mmsys
               - mediatek,mt8186-mmsys
               - mediatek,mt8188-vdosys0
+              - mediatek,mt8188-vppsys0
+              - mediatek,mt8188-vppsys1
               - mediatek,mt8192-mmsys
               - mediatek,mt8195-vdosys1
               - mediatek,mt8195-vppsys0
Signature · 1 line
2.18.0