Migrate MT8188 VPPSYS 0/1 to mtk-mmsys driver
Subsystems (3)
cover Migrate MT8188 VPPSYS 0/1 to mtk-mmsys driver
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.
Refer to the suggestion in the following patch
https://patchwork.kernel.org/project/linux-mediatek/list/?series=796808
https://patchwork.kernel.org/project/linux-mediatek/list/?series=798392
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 RESEND 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 RESEND 2/3 dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
In reply to yu-chang.leeRemove VPPSYS0, VPPSYS1 compatible on Mediatek MT8188.
--- .../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: [RESEND 2/3] dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
Il 09/11/23 12:11, yu-chang.lee ha scritto:
Quoted 3 lines
Remove VPPSYS0, VPPSYS1 compatible on Mediatek MT8188.
Signed-off-by yu-chang.lee <[email protected]>
Re: [RESEND 2/3] dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
In reply to yu-chang.leeQuoted 4 lines · yu-chang.lee
Remove VPPSYS0, VPPSYS1 compatible on Mediatek MT8188.
Signed-off-by yu-chang.lee <[email protected]>---
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Best regards,
Krzysztof
Re: [RESEND 2/3] dt-bindings: clock: mediatek: Remove compatible for MT8188 VPPSYS
In reply to yu-chang.leeQuoted 1 line · yu-chang.lee
Remove VPPSYS0, VPPSYS1 compatible on Mediatek MT8188.
Why? Your commit must answer this, not describe obvious stuff.
Best regards,
Krzysztof
PATCH RESEND 3/3 dt-bindings: arm:mediatek: mmsys: Add VPPSYS compatible for MT8188
In reply to yu-chang.leeAdd VPPSYS0, VPPSYS1 compatible on Mediatek MT8188.
--- .../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: [RESEND 3/3] dt-bindings: arm:mediatek: mmsys: Add VPPSYS compatible for MT8188
Il 09/11/23 12:11, yu-chang.lee ha scritto:
Quoted 3 lines
Add VPPSYS0, VPPSYS1 compatible on Mediatek MT8188.
Signed-off-by yu-chang.lee <[email protected]>
AngeloGioacchino Del Regno
maintainerRe: [RESEND 3/3] dt-bindings: arm:mediatek: mmsys: Add VPPSYS compatible for MT8188
In reply to yu-chang.leeIl 09/11/23 12:11, yu-chang.lee ha scritto:
Quoted 3 lines
Add VPPSYS0, VPPSYS1 compatible on Mediatek MT8188.
Signed-off-by yu-chang.lee <[email protected]>
P.S.: there's a missing space in the commit title that can be eventually be fixed while applying.
dt-bindings: arm: mediatek: mmsys: Add VPPSYS compatible for MT8188