Migrate MT8188 VPPSYS 0/1 to mtk-mmsys driver
Subsystems (3)
v2 cover Migrate MT8188 VPPSYS 0/1 to mtk-mmsys driver
Changes in v2:
- Refine commit message
- Refine commit title
Hi,
This series is to reflect VPPSYS' dependency on mtk-mmsys driver for mediatek MT8188 platform. The MT8188 VPPSYS 0/1 should be probed from the "mtk-mmsys" driver, which then starts its own clock driver as the platform driver.
yu-chang.lee (3):
soc: mediatek: mmsys: Add support for MT8188 VPPSYS
dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
dt-bindings: arm: mediatek: mmsys: Add VPPSYS compatible for MT8188
.../bindings/arm/mediatek/mediatek,mmsys.yaml | 2 ++ .../bindings/clock/mediatek,mt8188-clock.yaml | 2 -- drivers/soc/mediatek/mtk-mmsys.c | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-)
Signature · 1 line
2.18.0
PATCH v2 1/3 soc: mediatek: mmsys: Add support for MT8188 VPPSYS
Add MT8188 VPPSYS0 and VPPSYS1 driver data.
--- drivers/soc/mediatek/mtk-mmsys.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/soc/mediatek/mtk-mmsys.c +12 -0
@@ -89,6 +89,16 @@ static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = { .num_routes = ARRAY_SIZE(mmsys_mt8188_routing_table), }; +static const struct mtk_mmsys_driver_data mt8188_vppsys0_driver_data = { + .clk_driver ="clk-mt8188-vpp0" , + .is_vppsys = true, +}; + +static const struct mtk_mmsys_driver_data mt8188_vppsys1_driver_data = { + .clk_driver ="clk-mt8188-vpp1" , + .is_vppsys = true, +}; +static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = { .clk_driver ="clk-mt8192-mm" , .routes = mmsys_mt8192_routing_table,
@@ -429,6 +439,8 @@ static const struct of_device_id of_match_mtk_mmsys[] = { { .compatible = "mediatek,mt8183-mmsys", .data = &mt8183_mmsys_driver_data }, { .compatible = "mediatek,mt8186-mmsys", .data = &mt8186_mmsys_driver_data }, { .compatible = "mediatek,mt8188-vdosys0", .data = &mt8188_vdosys0_driver_data }, + { .compatible = "mediatek,mt8188-vppsys0", .data = &mt8188_vppsys0_driver_data }, + { .compatible = "mediatek,mt8188-vppsys1", .data = &mt8188_vppsys1_driver_data }, { .compatible = "mediatek,mt8192-mmsys", .data = &mt8192_mmsys_driver_data }, /* "mediatek,mt8195-mmsys" compatible is deprecated */ { .compatible = "mediatek,mt8195-mmsys", .data = &mt8195_vdosys0_driver_data },
Signature · 1 line
2.18.0
PATCH v2 2/3 dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
In reply to yu-chang.leeMT8188 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
@@ -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
Re: [PATCH v2 2/3] dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
Il 16/11/23 09:01, yu-chang.lee ha scritto:
Quoted 5 lines
MT8188 VPPSYS 0/1 should be probed from mtk-mmsys driver to populate device by
platform_device_register_datathen start its own clock driver.Signed-off-by yu-chang.lee <[email protected]>
Re: [PATCH v2 2/3] dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
In reply to yu-chang.leeQuoted 8 lines · yu-chang.lee
MT8188 VPPSYS 0/1 should be probed from mtk-mmsys driver to populate device by
platform_device_register_datathen start its own clock driver.Signed-off-by yu-chang.lee <[email protected]>--- .../devicetree/bindings/clock/mediatek,mt8188-clock.yaml | 2 -- 1 file changed, 2 deletions(-)
This is not bisectable. Binding patches must be squashed.
Best regards,
Krzysztof
PATCH v2 3/3 dt-bindings: arm: mediatek: mmsys: Add VPPSYS compatible for MT8188
In reply to yu-chang.leeFor 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
@@ -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
Re: [PATCH v2 3/3] dt-bindings: arm: mediatek: mmsys: Add VPPSYS compatible for MT8188
Il 16/11/23 09:01, yu-chang.lee ha scritto:
Quoted 5 lines
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.
Signed-off-by yu-chang.lee <[email protected]>