add support MDP3 on MT8195 platform
Subsystems (2)
v4 cover add support MDP3 on MT8195 platform
From: mtk18742 <[email protected]>
Changes since v3:
- Rebase on linux-next
Changes since v2:
- Depend on :
[1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097
- Split dts settings into two patches based on belonging to MMSYS or MUTEX.
Changes since v1:
- Depend on :
[1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097
- Add compatible names to VPPSYS0 and VPPSYS1 in MMSYS binding file.
- Fix VPPSYS's MMSYS and MUTEX dts to pass the dtsb_check.
- Rename mtk_mmsys_merge_config() and mtk_mmsys_rsz_dcm_config() to mtk_mmsys_vpp_rsz_merge_config() and mtk_mmsys_vpp_rsz_dcm_config().
- Clean up mtk_mmsys_vpp_rsz_dcm_config().
- Add a comment to mtk_mutex_write_mod() and clean it up for use in more than 32 mods.
Hi,
This series add support for MT8195's two VPPSYS(Video Processor Pipe Subsystem), under which there will be corresponding MMSYS and MUTEX settings that need to be configured.
Moudy Ho (2):
dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYS
Roy-CW.Yeh (6):
dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MMSYS configuration for VPPSYS
soc: mediatek: mmsys: add support for MT8195 VPPSYS
soc: mediatek: mmsys: add config api for RSZ switching and DCM
soc: mediatek: mutex: Add mtk_mutex_set_mod support to set MOD1
soc: mediatek: mutex: support MT8195 VPPSYS
.../bindings/arm/mediatek/mediatek,mmsys.yaml | 5 +- .../bindings/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 28 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 64 +++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 9 files changed, 274 insertions(+), 12 deletions(-)
Signature · 1 line
2.18.0
PATCH v4 1/8 dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
For MT8195, 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml +4 -1
@@ -48,7 +48,10 @@ properties: - const: syscon - items: - - const: mediatek,mt8195-vdosys0 + - enum: + - mediatek,mt8195-vdosys0 + - mediatek,mt8195-vppsys0 + - mediatek,mt8195-vppsys1 - const: mediatek,mt8195-mmsys - const: syscon
Signature · 1 line
2.18.0
Re: [PATCH v4 1/8] dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
Il 07/12/22 10:49, Moudy Ho ha scritto:
Quoted 6 lines
For MT8195, 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 Moudy Ho <[email protected]>
Re: [PATCH v4 1/8] dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
In reply to Moudy HoQuoted 10 lines · Moudy Ho
For MT8195, 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 Moudy Ho <[email protected]>--- .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
This landed in today's linux-next causing the following binding warnings. Is this a fix? Only fixes for 6.2 should be added during the merge window.
/builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8195-clock.example.dtb:
clock-controller@14000000: $nodename:0: 'clock-controller@14000000'
does not match '^syscon@[0-9a-f]+$'
From schema:
/builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml /builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8195-clock.example.dtb:
clock-controller@14000000: compatible: 'oneOf' conditional failed, one
must be fixed:
['mediatek,mt8195-vppsys0'] is too short
'mediatek,mt8195-vppsys0' is not one of
['mediatek,mt2701-mmsys', 'mediatek,mt2712-mmsys',
'mediatek,mt6765-mmsys', 'mediatek,mt6779-mmsys',
'mediatek,mt6795-mmsys', 'mediatek,mt6797-mmsys',
'mediatek,mt8167-mmsys', 'mediatek,mt8173-mmsys',
'mediatek,mt8183-mmsys', 'mediatek,mt8186-mmsys',
'mediatek,mt8188-vdosys0', 'mediatek,mt8192-mmsys',
'mediatek,mt8365-mmsys']
'mediatek,mt8195-mmsys' was expected
'mediatek,mt7623-mmsys' was expected
From schema:
/builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
Matthias Brugger
maintainerRe: [PATCH v4 1/8] dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
Quoted 12 lines · Rob Herring
Quoted 10 lines · Moudy Ho
For MT8195, 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 Moudy Ho <[email protected]>--- .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Quoted 4 lines
This landed in today's linux-next causing the following binding warnings. Is this a fix? Only fixes for 6.2 should be added during the merge window.
No it's not a fix, it's queued for the next -rc phase. I didn't know of the limitation of linux-next only allowing fixes in the merge window.
Actually the patch is wrong. It shouldn't include "mediatek,mt8195-mmsys" as fallback for mediatek,mt8195-vppsys[0,1].
I'll revert the whole series from v6.2-tmp/dts64 and v6.2-tmp/soc
Regards,
Matthias
Quoted 21 lines
/builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8195-clock.example.dtb:
clock-controller@14000000: $nodename:0: 'clock-controller@14000000'
does not match '^syscon@[0-9a-f]+$'
From schema:
/builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml /builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8195-clock.example.dtb:
clock-controller@14000000: compatible: 'oneOf' conditional failed, one
must be fixed:
['mediatek,mt8195-vppsys0'] is too short
'mediatek,mt8195-vppsys0' is not one of
['mediatek,mt2701-mmsys', 'mediatek,mt2712-mmsys',
'mediatek,mt6765-mmsys', 'mediatek,mt6779-mmsys',
'mediatek,mt6795-mmsys', 'mediatek,mt6797-mmsys',
'mediatek,mt8167-mmsys', 'mediatek,mt8173-mmsys',
'mediatek,mt8183-mmsys', 'mediatek,mt8186-mmsys',
'mediatek,mt8188-vdosys0', 'mediatek,mt8192-mmsys',
'mediatek,mt8365-mmsys']
'mediatek,mt8195-mmsys' was expected
'mediatek,mt7623-mmsys' was expected
From schema:
/builds/robherring/linux-dt/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
Re: [PATCH v4 1/8] dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
Quoted 15 lines · Matthias Brugger
Quoted 12 lines · Rob Herring
Quoted 10 lines · Moudy Ho
For MT8195, 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 Moudy Ho <[email protected]>--- .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Quoted 7 lines
Quoted 4 lines
This landed in today's linux-next causing the following binding warnings. Is this a fix? Only fixes for 6.2 should be added during the merge window.
No it's not a fix, it's queued for the next -rc phase. I didn't know of the limitation of linux-next only allowing fixes in the merge window.
Stephen asks for it every time. Now it is in separate email:
https://lore.kernel.org/linux-next/[email protected]/
Previously it was in each linux-next announcement:
https://lore.kernel.org/linux-next/[email protected]/
Quoted 5 lines
Actually the patch is wrong. It shouldn't include "mediatek,mt8195-mmsys" as fallback for mediatek,mt8195-vppsys[0,1].
I'll revert the whole series from v6.2-tmp/dts64 and v6.2-tmp/soc
Thanks. Please, drop all material for next cycle from linux-next.
Best regards,
Krzysztof
PATCH v4 2/8 dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS
In reply to Moudy HoFrom: "Roy-CW.Yeh" <[email protected]>
Add compatible for MT8195 VPPSYS on MUTEX.
--- .../devicetree/bindings/soc/mediatek/mediatek,mutex.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml +1 -0
@@ -34,6 +34,7 @@ properties: - mediatek,mt8186-mdp3-mutex - mediatek,mt8192-disp-mutex - mediatek,mt8195-disp-mutex + - mediatek,mt8195-vpp-mutex reg: maxItems: 1
Signature · 1 line
2.18.0
PATCH v4 3/8 arm64: dts: mediatek: mt8195: add MMSYS configuration for VPPSYS
In reply to Moudy HoFrom: "Roy-CW.Yeh" <[email protected]>
With the change of the MMSYS binding file for MT8195, the compatible name of VPPSYS in dts need to be fixed to match the definition.
--- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +6 -4
@@ -1632,8 +1632,9 @@ #clock-cells = <1>; }; - vppsys0: clock-controller@14000000 { - compatible = "mediatek,mt8195-vppsys0"; + vppsys0: syscon@14000000 { + compatible = "mediatek,mt8195-vppsys0", + "mediatek,mt8195-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; };
@@ -1737,8 +1738,9 @@ power-domains = <&spm MT8195_POWER_DOMAIN_WPESYS>; }; - vppsys1: clock-controller@14f00000 { - compatible = "mediatek,mt8195-vppsys1"; + vppsys1: syscon@14f00000 { + compatible = "mediatek,mt8195-vppsys1", + "mediatek,mt8195-mmsys", "syscon"; reg = <0 0x14f00000 0 0x1000>; #clock-cells = <1>; };
Signature · 1 line
2.18.0
Re: [PATCH v4 3/8] arm64: dts: mediatek: mt8195: add MMSYS configuration for VPPSYS
Il 07/12/22 10:49, Moudy Ho ha scritto:
Quoted 7 lines
From: "Roy-CW.Yeh" <[email protected]>
With the change of the MMSYS binding file for MT8195, the compatible name of VPPSYS in dts need to be fixed to match the definition.
Signed-off-by Roy-CW.Yeh <[email protected]>Signed-off-by Moudy Ho <[email protected]>
PATCH v4 4/8 arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYS
In reply to Moudy HoIn MT8195, the MMSYS has two Video Processor Pipepline Subsystems named VPPSYS0 and VPPSYS1, each with specific MUTEX to control Start of Frame(SOF) and End of Frame (EOF) signals.
Before working with them, the addresses, interrupts, clocks and power domains need to be set up in dts.
--- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +18 -0
@@ -1639,6 +1639,15 @@ #clock-cells = <1>; }; + mutex@1400f000 { + compatible = "mediatek,mt8195-vpp-mutex"; + reg = <0 0x1400f000 0 0x1000>; + interrupts = <GIC_SPI 592 IRQ_TYPE_LEVEL_HIGH 0>; + mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0xf000 0x1000>; + clocks = <&vppsys0 CLK_VPP0_MUTEX>; + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS0>; + }; + smi_sub_common_vpp0_vpp1_2x1: smi@14010000 { compatible = "mediatek,mt8195-smi-sub-common"; reg = <0 0x14010000 0 0x1000>;
@@ -1745,6 +1754,15 @@ #clock-cells = <1>; }; + mutex@14f01000 { + compatible = "mediatek,mt8195-vpp-mutex"; + reg = <0 0x14f01000 0 0x1000>; + interrupts = <GIC_SPI 635 IRQ_TYPE_LEVEL_HIGH 0>; + mediatek,gce-client-reg = <&gce1 SUBSYS_14f0XXXX 0x1000 0x1000>; + clocks = <&vppsys1 CLK_VPP1_DISP_MUTEX>; + power-domains = <&spm MT8195_POWER_DOMAIN_VPPSYS1>; + }; + larb5: larb@14f02000 { compatible = "mediatek,mt8195-smi-larb"; reg = <0 0x14f02000 0 0x1000>;
Signature · 1 line
2.18.0
PATCH v4 5/8 soc: mediatek: mmsys: add support for MT8195 VPPSYS
In reply to Moudy HoFrom: "Roy-CW.Yeh" <[email protected]>
Add MT8195 VPPSYS0 and VPPSYS1 driver data.
--- drivers/soc/mediatek/mtk-mmsys.c | 22 ++++++++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + 2 files changed, 23 insertions(+)
drivers/soc/mediatek/mtk-mmsys.c +22 -0
@@ -80,6 +80,16 @@ static const struct mtk_mmsys_driver_data mt8195_vdosys0_driver_data = { .num_routes = ARRAY_SIZE(mmsys_mt8195_routing_table), }; +static const struct mtk_mmsys_driver_data mt8195_vppsys0_driver_data = { + .clk_driver ="clk-mt8195-vpp0" , + .is_vppsys = true, +}; + +static const struct mtk_mmsys_driver_data mt8195_vppsys1_driver_data = { + .clk_driver ="clk-mt8195-vpp1" , + .is_vppsys = true, +}; +static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = { .clk_driver ="clk-mt8365-mm" , .routes = mt8365_mmsys_routing_table,
@@ -256,6 +266,9 @@ static int mtk_mmsys_probe(struct platform_device *pdev)if (IS_ERR (clks))return PTR_ERR (clks); +if (mmsys->data->is_vppsys) + goto out_probe_done; + drm =platform_device_register_data (&pdev->dev,"mediatek-drm" ,PLATFORM_DEVID_AUTO ,NULL ,0 );if (IS_ERR (drm)) {
@@ -263,6 +276,7 @@ static int mtk_mmsys_probe(struct platform_device *pdev)return PTR_ERR (drm); } +out_probe_done:return 0 ; }
@@ -311,6 +325,14 @@ static const struct of_device_id of_match_mtk_mmsys[] = { .compatible = "mediatek,mt8195-vdosys0", .data = &mt8195_vdosys0_driver_data, }, + { + .compatible = "mediatek,mt8195-vppsys0", + .data = &mt8195_vppsys0_driver_data, + }, + { + .compatible = "mediatek,mt8195-vppsys1", + .data = &mt8195_vppsys1_driver_data, + }, { .compatible = "mediatek,mt8365-mmsys", .data = &mt8365_mmsys_driver_data,
drivers/soc/mediatek/mtk-mmsys.h +1 -0
@@ -91,6 +91,7 @@ struct mtk_mmsys_driver_data {const struct mtk_mmsys_routes *routes;const unsigned int num_routes;const u16 sw0_rst_offset; +const bool is_vppsys; };/*
Signature · 1 line
2.18.0
PATCH v4 6/8 soc: mediatek: mmsys: add config api for RSZ switching and DCM
In reply to Moudy HoFrom: "Roy-CW.Yeh" <[email protected]>
Due to MT8195 HW design, some RSZs have additional settings that need to be configured in MMSYS.
--- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++++++++ drivers/soc/mediatek/mtk-mmsys.c | 42 ++++++++++++++++++++++++++ include/linux/soc/mediatek/mtk-mmsys.h | 4 +++ 3 files changed, 59 insertions(+)
drivers/soc/mediatek/mt8195-mmsys.h +13 -0
@@ -75,6 +75,19 @@#define MT8195_SOUT_DSC_WRAP1_OUT_TO_SINA_VIRTUAL0 (2 << 16)#define MT8195_SOUT_DSC_WRAP1_OUT_TO_VPP_MERGE (3 << 16) +/* VPPSYS1 */ +#define MT8195_VPP1_HW_DCM_1ST_DIS0 0x150 +#define MT8195_VPP1_HW_DCM_1ST_DIS1 0x160 +#define MT8195_VPP1_HW_DCM_2ND_DIS0 0x1a0 +#define MT8195_VPP1_HW_DCM_2ND_DIS1 0x1b0 +#define MT8195_SVPP2_BUF_BF_RSZ_SWITCH 0xf48 +#define MT8195_SVPP3_BUF_BF_RSZ_SWITCH 0xf74 + +/* VPPSYS1 HW DCM client*/ +#define MT8195_SVPP1_MDP_RSZ BIT(25) +#define MT8195_SVPP2_MDP_RSZ BIT(4) +#define MT8195_SVPP3_MDP_RSZ BIT(5) +static const struct mtk_mmsys_routes mmsys_mt8195_routing_table[] = { {DDP_COMPONENT_OVL0 ,DDP_COMPONENT_RDMA0 ,
drivers/soc/mediatek/mtk-mmsys.c +42 -0
48 lines not on this page · raw message
include/linux/soc/mediatek/mtk-mmsys.h +4 -0
@@ -74,4 +74,8 @@ void mtk_mmsys_ddp_disconnect(struct device *dev,void mtk_mmsys_ddp_dpi_fmt_config (struct device *dev,u32 val); +void mtk_mmsys_vpp_rsz_merge_config (struct device *dev,u32 id,bool enable); + +void mtk_mmsys_vpp_rsz_dcm_config (struct device *dev,bool enable); +#endif /* __MTK_MMSYS_H */
Signature · 1 line
2.18.0
PATCH v4 7/8 soc: mediatek: mutex: Add mtk_mutex_set_mod support to set MOD1
In reply to Moudy HoFrom: "Roy-CW.Yeh" <[email protected]>
Add mtk_mutex_set_mod support to set MOD1
--- drivers/soc/mediatek/mtk-mutex.c | 33 +++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-)
drivers/soc/mediatek/mtk-mutex.c +26 -7
@@ -23,6 +23,7 @@#define DISP_REG_MUTEX (n) (0x24 + 0x20 * (n))#define DISP_REG_MUTEX_RST (n) (0x28 + 0x20 * (n))#define DISP_REG_MUTEX_MOD (mutex_mod_reg, n) (mutex_mod_reg + 0x20 * (n)) +#define DISP_REG_MUTEX_MOD1 (mutex_mod_reg, n) ((mutex_mod_reg) + 0x20 * (n) + 0x4)#define DISP_REG_MUTEX_SOF (mutex_sof_reg, n) (mutex_sof_reg + 0x20 * (n))#define DISP_REG_MUTEX_MOD2 (n) (0x34 + 0x20 * (n))
@@ -740,7 +741,7 @@ int mtk_mutex_write_mod(struct mtk_mutex *mutex, struct mtk_mutex_ctx *mtx = container_of(mutex, struct mtk_mutex_ctx, mutex[mutex->id]);unsigned int reg; -unsigned int offset; +u32 reg_offset, id_offset =0 ;WARN_ON (&mtx->mutex[mutex->id] != mutex);
@@ -750,16 +751,34 @@ int mtk_mutex_write_mod(struct mtk_mutex *mutex,return -EINVAL ; } - offset =DISP_REG_MUTEX_MOD (mtx->data->mutex_mod_reg, - mutex->id); - reg =readl_relaxed (mtx->regs + offset); +/* +* Some SoCs may have multiple MUTEX_MOD registers as more than 32 mods +* are present, hence requiring multiple 32-bits registers. +* +* The mutex_table_mod fully represents that by defining the number of +* the mod sequentially, later used as a bit number, which can be more +* than 0..31. +* +* In order to retain compatibility with older SoCs, we perform R/W on +* the single 32 bits registers, but this requires us to translate the +* mutex ID bit accordingly. +*/ +if (mtx->data->mutex_table_mod[idx] <32 ) { + reg_offset =DISP_REG_MUTEX_MOD (mtx->data->mutex_mod_reg, + mutex->id); + }else { + reg_offset =DISP_REG_MUTEX_MOD1 (mtx->data->mutex_mod_reg, + mutex->id); + id_offset =32 ; + } + reg =readl_relaxed (mtx->regs + reg_offset);if (clear) - reg &= ~BIT (mtx->data->mutex_table_mod[idx]); + reg &= ~BIT (mtx->data->mutex_table_mod[idx] - id_offset);else - reg |=BIT (mtx->data->mutex_table_mod[idx]); + reg |=BIT (mtx->data->mutex_table_mod[idx] - id_offset); -writel_relaxed (reg, mtx->regs + offset); +writel_relaxed (reg, mtx->regs + reg_offset);return 0 ; }
Signature · 1 line
2.18.0
PATCH v4 8/8 soc: mediatek: mutex: support MT8195 VPPSYS
In reply to Moudy HoFrom: "Roy-CW.Yeh" <[email protected]>
Add MT8195 VPPSYS0 and VPPSYS1 mutex info to driver data
--- drivers/soc/mediatek/mtk-mutex.c | 102 +++++++++++++++++++++++++ include/linux/soc/mediatek/mtk-mutex.h | 35 +++++++++ 2 files changed, 137 insertions(+)
drivers/soc/mediatek/mtk-mutex.c +102 -0
@@ -131,6 +131,53 @@#define MT8195_MUTEX_MOD_DISP_DP_INTF0 21#define MT8195_MUTEX_MOD_DISP_PWM0 27 +/* VPPSYS0 */ +#define MT8195_MUTEX_MOD_MDP_RDMA0 0 +#define MT8195_MUTEX_MOD_MDP_FG0 1 +#define MT8195_MUTEX_MOD_MDP_STITCH0 2 +#define MT8195_MUTEX_MOD_MDP_HDR0 3 +#define MT8195_MUTEX_MOD_MDP_AAL0 4 +#define MT8195_MUTEX_MOD_MDP_RSZ0 5 +#define MT8195_MUTEX_MOD_MDP_TDSHP0 6 +#define MT8195_MUTEX_MOD_MDP_COLOR0 7 +#define MT8195_MUTEX_MOD_MDP_OVL0 8 +#define MT8195_MUTEX_MOD_MDP_PAD0 9 +#define MT8195_MUTEX_MOD_MDP_TCC0 10 +#define MT8195_MUTEX_MOD_MDP_WROT0 11 + +/* VPPSYS1 */ +#define MT8195_MUTEX_MOD_MDP_TCC1 3 +#define MT8195_MUTEX_MOD_MDP_RDMA1 4 +#define MT8195_MUTEX_MOD_MDP_RDMA2 5 +#define MT8195_MUTEX_MOD_MDP_RDMA3 6 +#define MT8195_MUTEX_MOD_MDP_FG1 7 +#define MT8195_MUTEX_MOD_MDP_FG2 8 +#define MT8195_MUTEX_MOD_MDP_FG3 9 +#define MT8195_MUTEX_MOD_MDP_HDR1 10 +#define MT8195_MUTEX_MOD_MDP_HDR2 11 +#define MT8195_MUTEX_MOD_MDP_HDR3 12 +#define MT8195_MUTEX_MOD_MDP_AAL1 13 +#define MT8195_MUTEX_MOD_MDP_AAL2 14 +#define MT8195_MUTEX_MOD_MDP_AAL3 15 +#define MT8195_MUTEX_MOD_MDP_RSZ1 16 +#define MT8195_MUTEX_MOD_MDP_RSZ2 17 +#define MT8195_MUTEX_MOD_MDP_RSZ3 18 +#define MT8195_MUTEX_MOD_MDP_TDSHP1 19 +#define MT8195_MUTEX_MOD_MDP_TDSHP2 20 +#define MT8195_MUTEX_MOD_MDP_TDSHP3 21 +#define MT8195_MUTEX_MOD_MDP_MERGE2 22 +#define MT8195_MUTEX_MOD_MDP_MERGE3 23 +#define MT8195_MUTEX_MOD_MDP_COLOR1 24 +#define MT8195_MUTEX_MOD_MDP_COLOR2 25 +#define MT8195_MUTEX_MOD_MDP_COLOR3 26 +#define MT8195_MUTEX_MOD_MDP_OVL1 27 +#define MT8195_MUTEX_MOD_MDP_PAD1 28 +#define MT8195_MUTEX_MOD_MDP_PAD2 29 +#define MT8195_MUTEX_MOD_MDP_PAD3 30 +#define MT8195_MUTEX_MOD_MDP_WROT1 31 +#define MT8195_MUTEX_MOD_MDP_WROT2 32 +#define MT8195_MUTEX_MOD_MDP_WROT3 33 +#define MT8365_MUTEX_MOD_DISP_OVL0 7#define MT8365_MUTEX_MOD_DISP_OVL0_2L 8#define MT8365_MUTEX_MOD_DISP_RDMA0 9
@@ -375,6 +422,52 @@ static const unsigned int mt8195_mutex_mod[DDP_COMPONENT_ID_MAX] = { [DDP_COMPONENT_DP_INTF0] = MT8195_MUTEX_MOD_DISP_DP_INTF0, }; +static const unsigned int mt8195_mutex_table_mod[MUTEX_MOD_IDX_MAX ] = { + [MUTEX_MOD_IDX_MDP_RDMA0 ] =MT8195_MUTEX_MOD_MDP_RDMA0 , + [MUTEX_MOD_IDX_MDP_RDMA1 ] =MT8195_MUTEX_MOD_MDP_RDMA1 , + [MUTEX_MOD_IDX_MDP_RDMA2 ] =MT8195_MUTEX_MOD_MDP_RDMA2 , + [MUTEX_MOD_IDX_MDP_RDMA3 ] =MT8195_MUTEX_MOD_MDP_RDMA3 , + [MUTEX_MOD_IDX_MDP_STITCH0 ] =MT8195_MUTEX_MOD_MDP_STITCH0 , + [MUTEX_MOD_IDX_MDP_FG0 ] =MT8195_MUTEX_MOD_MDP_FG0 , + [MUTEX_MOD_IDX_MDP_FG1 ] =MT8195_MUTEX_MOD_MDP_FG1 , + [MUTEX_MOD_IDX_MDP_FG2 ] =MT8195_MUTEX_MOD_MDP_FG2 , + [MUTEX_MOD_IDX_MDP_FG3 ] =MT8195_MUTEX_MOD_MDP_FG3 , + [MUTEX_MOD_IDX_MDP_HDR0 ] =MT8195_MUTEX_MOD_MDP_HDR0 , + [MUTEX_MOD_IDX_MDP_HDR1 ] =MT8195_MUTEX_MOD_MDP_HDR1 , + [MUTEX_MOD_IDX_MDP_HDR2 ] =MT8195_MUTEX_MOD_MDP_HDR2 , + [MUTEX_MOD_IDX_MDP_HDR3 ] =MT8195_MUTEX_MOD_MDP_HDR3 , + [MUTEX_MOD_IDX_MDP_AAL0 ] =MT8195_MUTEX_MOD_MDP_AAL0 , + [MUTEX_MOD_IDX_MDP_AAL1 ] =MT8195_MUTEX_MOD_MDP_AAL1 , + [MUTEX_MOD_IDX_MDP_AAL2 ] =MT8195_MUTEX_MOD_MDP_AAL2 , + [MUTEX_MOD_IDX_MDP_AAL3 ] =MT8195_MUTEX_MOD_MDP_AAL3 , + [MUTEX_MOD_IDX_MDP_RSZ0 ] =MT8195_MUTEX_MOD_MDP_RSZ0 , + [MUTEX_MOD_IDX_MDP_RSZ1 ] =MT8195_MUTEX_MOD_MDP_RSZ1 , + [MUTEX_MOD_IDX_MDP_RSZ2 ] =MT8195_MUTEX_MOD_MDP_RSZ2 , + [MUTEX_MOD_IDX_MDP_RSZ3 ] =MT8195_MUTEX_MOD_MDP_RSZ3 , + [MUTEX_MOD_IDX_MDP_MERGE2 ] =MT8195_MUTEX_MOD_MDP_MERGE2 , + [MUTEX_MOD_IDX_MDP_MERGE3 ] =MT8195_MUTEX_MOD_MDP_MERGE3 , + [MUTEX_MOD_IDX_MDP_TDSHP0 ] =MT8195_MUTEX_MOD_MDP_TDSHP0 , + [MUTEX_MOD_IDX_MDP_TDSHP1 ] =MT8195_MUTEX_MOD_MDP_TDSHP1 , + [MUTEX_MOD_IDX_MDP_TDSHP2 ] =MT8195_MUTEX_MOD_MDP_TDSHP2 , + [MUTEX_MOD_IDX_MDP_TDSHP3 ] =MT8195_MUTEX_MOD_MDP_TDSHP3 , + [MUTEX_MOD_IDX_MDP_COLOR0 ] =MT8195_MUTEX_MOD_MDP_COLOR0 , + [MUTEX_MOD_IDX_MDP_COLOR1 ] =MT8195_MUTEX_MOD_MDP_COLOR1 , + [MUTEX_MOD_IDX_MDP_COLOR2 ] =MT8195_MUTEX_MOD_MDP_COLOR2 , + [MUTEX_MOD_IDX_MDP_COLOR3 ] =MT8195_MUTEX_MOD_MDP_COLOR3 , + [MUTEX_MOD_IDX_MDP_OVL0 ] =MT8195_MUTEX_MOD_MDP_OVL0 , + [MUTEX_MOD_IDX_MDP_OVL1 ] =MT8195_MUTEX_MOD_MDP_OVL1 , + [MUTEX_MOD_IDX_MDP_PAD0 ] =MT8195_MUTEX_MOD_MDP_PAD0 , + [MUTEX_MOD_IDX_MDP_PAD1 ] =MT8195_MUTEX_MOD_MDP_PAD1 , + [MUTEX_MOD_IDX_MDP_PAD2 ] =MT8195_MUTEX_MOD_MDP_PAD2 , + [MUTEX_MOD_IDX_MDP_PAD3 ] =MT8195_MUTEX_MOD_MDP_PAD3 , + [MUTEX_MOD_IDX_MDP_TCC0 ] =MT8195_MUTEX_MOD_MDP_TCC0 , + [MUTEX_MOD_IDX_MDP_TCC1 ] =MT8195_MUTEX_MOD_MDP_TCC1 , + [MUTEX_MOD_IDX_MDP_WROT0 ] =MT8195_MUTEX_MOD_MDP_WROT0 , + [MUTEX_MOD_IDX_MDP_WROT1 ] =MT8195_MUTEX_MOD_MDP_WROT1 , + [MUTEX_MOD_IDX_MDP_WROT2 ] =MT8195_MUTEX_MOD_MDP_WROT2 , + [MUTEX_MOD_IDX_MDP_WROT3 ] =MT8195_MUTEX_MOD_MDP_WROT3 , +}; +static const unsigned int mt8365_mutex_mod[DDP_COMPONENT_ID_MAX ] = { [DDP_COMPONENT_AAL0 ] =MT8365_MUTEX_MOD_DISP_AAL , [DDP_COMPONENT_CCORR ] =MT8365_MUTEX_MOD_DISP_CCORR ,
@@ -520,6 +613,13 @@ static const struct mtk_mutex_data mt8195_mutex_driver_data = { .mutex_sof_reg = MT8183_MUTEX0_SOF0, }; +static const struct mtk_mutex_data mt8195_vpp_mutex_driver_data = { + .mutex_sof = mt8195_mutex_sof, + .mutex_mod_reg =MT8183_MUTEX0_MOD0 , + .mutex_sof_reg =MT8183_MUTEX0_SOF0 , + .mutex_table_mod = mt8195_mutex_table_mod, +}; +static const struct mtk_mutex_data mt8365_mutex_driver_data = { .mutex_mod = mt8365_mutex_mod, .mutex_sof = mt8183_mutex_sof,
@@ -877,6 +977,8 @@ static const struct of_device_id mutex_driver_dt_match[] = { .data = &mt8192_mutex_driver_data}, { .compatible = "mediatek,mt8195-disp-mutex", .data = &mt8195_mutex_driver_data}, + { .compatible = "mediatek,mt8195-vpp-mutex", + .data = &mt8195_vpp_mutex_driver_data}, { .compatible = "mediatek,mt8365-disp-mutex", .data = &mt8365_mutex_driver_data}, {},
include/linux/soc/mediatek/mtk-mutex.h +35 -0
@@ -22,6 +22,41 @@ enum mtk_mutex_mod_index {MUTEX_MOD_IDX_MDP_CCORR0 ,MUTEX_MOD_IDX_MDP_HDR0 ,MUTEX_MOD_IDX_MDP_COLOR0 , +MUTEX_MOD_IDX_MDP_RDMA1 , +MUTEX_MOD_IDX_MDP_RDMA2 , +MUTEX_MOD_IDX_MDP_RDMA3 , +MUTEX_MOD_IDX_MDP_STITCH0 , +MUTEX_MOD_IDX_MDP_FG0 , +MUTEX_MOD_IDX_MDP_FG1 , +MUTEX_MOD_IDX_MDP_FG2 , +MUTEX_MOD_IDX_MDP_FG3 , +MUTEX_MOD_IDX_MDP_HDR1 , +MUTEX_MOD_IDX_MDP_HDR2 , +MUTEX_MOD_IDX_MDP_HDR3 , +MUTEX_MOD_IDX_MDP_AAL1 , +MUTEX_MOD_IDX_MDP_AAL2 , +MUTEX_MOD_IDX_MDP_AAL3 , +MUTEX_MOD_IDX_MDP_RSZ2 , +MUTEX_MOD_IDX_MDP_RSZ3 , +MUTEX_MOD_IDX_MDP_MERGE2 , +MUTEX_MOD_IDX_MDP_MERGE3 , +MUTEX_MOD_IDX_MDP_TDSHP1 , +MUTEX_MOD_IDX_MDP_TDSHP2 , +MUTEX_MOD_IDX_MDP_TDSHP3 , +MUTEX_MOD_IDX_MDP_COLOR1 , +MUTEX_MOD_IDX_MDP_COLOR2 , +MUTEX_MOD_IDX_MDP_COLOR3 , +MUTEX_MOD_IDX_MDP_OVL0 , +MUTEX_MOD_IDX_MDP_OVL1 , +MUTEX_MOD_IDX_MDP_PAD0 , +MUTEX_MOD_IDX_MDP_PAD1 , +MUTEX_MOD_IDX_MDP_PAD2 , +MUTEX_MOD_IDX_MDP_PAD3 , +MUTEX_MOD_IDX_MDP_TCC0 , +MUTEX_MOD_IDX_MDP_TCC1 , +MUTEX_MOD_IDX_MDP_WROT1 , +MUTEX_MOD_IDX_MDP_WROT2 , +MUTEX_MOD_IDX_MDP_WROT3 ,MUTEX_MOD_IDX_MAX /* ALWAYS keep at the end */ };
Signature · 1 line
2.18.0
Matthias Brugger
maintainerWhole series applied, thanks!
Quoted 50 lines · Moudy Ho
From: mtk18742 <[email protected]>
Changes since v3:
- Rebase on linux-nextChanges since v2:
- Depend on :[1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097- Split dts settings into two patches based on belonging to MMSYS or MUTEX.
Changes since v1:
- Depend on :[1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097- Add compatible names to VPPSYS0 and VPPSYS1 in MMSYS binding file.
- Fix VPPSYS's MMSYS and MUTEX dts to pass thedtsb_check.
- Renamemtk_mmsys_merge_config()andmtk_mmsys_rsz_dcm_config()tomtk_mmsys_vpp_rsz_merge_config()andmtk_mmsys_vpp_rsz_dcm_config().
- Clean upmtk_mmsys_vpp_rsz_dcm_config().
- Add a comment tomtk_mutex_write_mod()and clean it up for use in more than 32 mods.Hi,
This series add support for MT8195's two VPPSYS(Video Processor Pipe Subsystem), under which there will be corresponding MMSYS and MUTEX settings that need to be configured.
Moudy Ho (2):
dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYSRoy-CW.Yeh (6):
dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MMSYS configuration for VPPSYS
soc: mediatek: mmsys: add support for MT8195 VPPSYS
soc: mediatek: mmsys: add config api for RSZ switching and DCM
soc: mediatek: mutex: Addmtk_mutex_set_modsupport to set MOD1
soc: mediatek: mutex: support MT8195 VPPSYS.../bindings/arm/mediatek/mediatek,mmsys.yaml | 5 +- .../bindings/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 28 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 64 +++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 9 files changed, 274 insertions(+), 12 deletions(-)
Matthias Brugger
maintainerQuoted 3 lines · Matthias Brugger
Whole series applied, thanks!
And now, whole series reverted, please see comment in 1/8.
Regards,
Matthias
Quoted 51 lines · Moudy Ho
Quoted 50 lines
From: mtk18742 <[email protected]>
Changes since v3:
- Rebase on linux-nextChanges since v2:
- Depend on :
[1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097
- Split dts settings into two patches based on belonging to MMSYS or MUTEX.Changes since v1:
- Depend on :
[1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=681097
- Add compatible names to VPPSYS0 and VPPSYS1 in MMSYS binding file.
- Fix VPPSYS's MMSYS and MUTEX dts to pass thedtsb_check.
- Renamemtk_mmsys_merge_config()andmtk_mmsys_rsz_dcm_config()tomtk_mmsys_vpp_rsz_merge_config()andmtk_mmsys_vpp_rsz_dcm_config().
- Clean upmtk_mmsys_vpp_rsz_dcm_config().
- Add a comment tomtk_mutex_write_mod()and clean it up for use in more than 32 mods.Hi,
This series add support for MT8195's two VPPSYS(Video Processor Pipe Subsystem), under which there will be corresponding MMSYS and MUTEX settings that need to be configured.
Moudy Ho (2):
dt-bindings: arm: mediatek: mmsys: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MUTEX configuration for VPPSYSRoy-CW.Yeh (6):
dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MMSYS configuration for VPPSYS
soc: mediatek: mmsys: add support for MT8195 VPPSYS
soc: mediatek: mmsys: add config api for RSZ switching and DCM
soc: mediatek: mutex: Addmtk_mutex_set_modsupport to set MOD1
soc: mediatek: mutex: support MT8195 VPPSYS
.../bindings/arm/mediatek/mediatek,mmsys.yaml| 5 +-.../bindings/soc/mediatek/mediatek,mutex.yaml| 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 28 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++drivers/soc/mediatek/mtk-mmsys.c | 64 +++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 9 files changed, 274 insertions(+), 12 deletions(-)
Quoted 11 lines · Matthias Brugger
Quoted 3 lines · Matthias Brugger
Whole series applied, thanks!
And now, whole series reverted, please see comment in 1/8.
Regards,
Matthias
Hi Matthias,
May I send a new series without a fallback compatible like the mt8188 VDOSYS does?
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
Regards,
Moudy
Quoted 67 lines
Quoted 67 lines · Moudy Ho
Quoted 66 lines
From: mtk18742 <[email protected]>
Changes since v3:
- Rebase on linux-nextChanges since v2:
- Depend on :[1]- Split dts settings into two patches based on belonging to MMSYS or MUTEX.
Changes since v1:
- Depend on :[1]- Add compatible names to VPPSYS0 and VPPSYS1 in MMSYS binding file.
- Fix VPPSYS's MMSYS and MUTEX dts to pass thedtsb_check.
- Renamemtk_mmsys_merge_config()andmtk_mmsys_rsz_dcm_config()to
mtk_mmsys_vpp_rsz_merge_config()andmtk_mmsys_vpp_rsz_dcm_config().
- Clean upmtk_mmsys_vpp_rsz_dcm_config().
- Add a comment tomtk_mutex_write_mod()and clean it up for use in more
than 32 mods.Hi,
This series add support for MT8195's two VPPSYS(Video Processor Pipe Subsystem),
under which there will be corresponding MMSYS and MUTEX settings that
need to be configured.Moudy Ho (2):
dt-bindings: arm: mediatek: mmsys: Add support for MT8195
VPPSYS
arm64: dts: mediatek: mt8195: add MUTEX configuration for
VPPSYSRoy-CW.Yeh (6):
dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MMSYS configuration for
VPPSYS
soc: mediatek: mmsys: add support for MT8195 VPPSYS
soc: mediatek: mmsys: add config api for RSZ switching and DCM
soc: mediatek: mutex: Addmtk_mutex_set_modsupport to set
MOD1
soc: mediatek: mutex: support MT8195 VPPSYS.../bindings/arm/mediatek/mediatek,mmsys.yaml | 5 +- .../bindings/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 28 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 64 +++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 9 files changed, 274 insertions(+), 12 deletions(-)
Quoted 9 lines · moudy ho
Quoted 8 lines · Matthias Brugger
Quoted 3 lines · Matthias Brugger
Whole series applied, thanks!
And now, whole series reverted, please see comment in 1/8.
Quoted 10 lines
Quoted 3 lines
Regards,
MatthiasHi Matthias,
May I send a new series without a fallback compatible like the mt8188 VDOSYS does?
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
Quoted 3 lines
Regards,
Moudy
Hi Matthias,
Sorry for the inaccurate information, the warning mentioned in [1/8] is because vppsys 0/1 has already been defined in "mediatek,mt8195- clock.yaml" as follows:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
Is it possible to fix it by just removing [1/8], or should I send a new series?
Regards,
Moudy
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines · Moudy Ho
Quoted 9 lines
From: mtk18742 <[email protected]>
Changes since v3:
- Rebase on linux-nextChanges since v2:
- Depend on :[1]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
- Split dts settings into two patches based on belonging to MMSYS
or MUTEX.Changes since v1:
- Depend on :[1]
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
- Add compatible names to VPPSYS0 and VPPSYS1 in MMSYS binding file.
- Fix VPPSYS's MMSYS and MUTEX dts to pass thedtsb_check.
- Renamemtk_mmsys_merge_config()andmtk_mmsys_rsz_dcm_config()
to
mtk_mmsys_vpp_rsz_merge_config()andmtk_mmsys_vpp_rsz_dcm_config().
- Clean upmtk_mmsys_vpp_rsz_dcm_config().
- Add a comment tomtk_mutex_write_mod()and clean it up for use
in more
than 32 mods.Hi,
This series add support for MT8195's two VPPSYS(Video Processor Pipe Subsystem),
under which there will be corresponding MMSYS and MUTEX settings
that
need to be configured.Moudy Ho (2):
dt-bindings: arm: mediatek: mmsys: Add support for MT8195
VPPSYS
arm64: dts: mediatek: mt8195: add MUTEX configuration for
VPPSYSRoy-CW.Yeh (6):
dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MMSYS configuration for
VPPSYS
soc: mediatek: mmsys: add support for MT8195 VPPSYS
soc: mediatek: mmsys: add config api for RSZ switching and
DCM
soc: mediatek: mutex: Addmtk_mutex_set_modsupport to set
MOD1
soc: mediatek: mutex: support MT8195 VPPSYS.../bindings/arm/mediatek/mediatek,mmsys.yaml | 5 +- .../bindings/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 28 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 64 +++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 9 files changed, 274 insertions(+), 12 deletions(-)
Matthias Brugger
maintainerHi Moudy,
Quoted 27 lines · Moudy Ho (何宗原)
Quoted 9 lines · moudy ho
Quoted 8 lines · Matthias Brugger
Quoted 3 lines · Matthias Brugger
Whole series applied, thanks!
And now, whole series reverted, please see comment in 1/8.
Quoted 10 lines
Quoted 3 lines
Regards,
MatthiasHi Matthias,
May I send a new series without a fallback compatible like the mt8188 VDOSYS does?
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
Quoted 3 lines
Regards,
MoudyHi Matthias,
Quoted 9 lines
Sorry for the inaccurate information, the warning mentioned in [1/8] is because vppsys 0/1 has already been defined in "mediatek,mt8195-
clock.yaml" as follows:https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
Is it possible to fix it by just removing [1/8], or should I send a new series?
You will need to remove it from the clock binding and of course from the clock drivers. One example is this one:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
In the end the mmsys will probe by the compatible and will then probe the clock driver as a platform driver.
Best regards,
Matthias
Quoted 79 lines
Regards,
MoudyQuoted 10 lines
Quoted 10 lines
Quoted 10 lines · Moudy Ho
Quoted 9 lines
From: mtk18742 <[email protected]>
Changes since v3:
- Rebase on linux-nextChanges since v2:
- Depend on :[1]Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
- Split dts settings into two patches based on belonging to MMSYS
or MUTEX.Changes since v1:
- Depend on :[1]Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
- Add compatible names to VPPSYS0 and VPPSYS1 in MMSYS binding file.
- Fix VPPSYS's MMSYS and MUTEX dts to pass thedtsb_check.
- Renamemtk_mmsys_merge_config()andmtk_mmsys_rsz_dcm_config()
to
mtk_mmsys_vpp_rsz_merge_config()andmtk_mmsys_vpp_rsz_dcm_config().
- Clean upmtk_mmsys_vpp_rsz_dcm_config().
- Add a comment tomtk_mutex_write_mod()and clean it up for use
in more
than 32 mods.Hi,
This series add support for MT8195's two VPPSYS(Video Processor Pipe Subsystem),
under which there will be corresponding MMSYS and MUTEX settings
that
need to be configured.Moudy Ho (2):
dt-bindings: arm: mediatek: mmsys: Add support for MT8195
VPPSYS
arm64: dts: mediatek: mt8195: add MUTEX configuration for
VPPSYSRoy-CW.Yeh (6):
dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS
arm64: dts: mediatek: mt8195: add MMSYS configuration for
VPPSYS
soc: mediatek: mmsys: add support for MT8195 VPPSYS
soc: mediatek: mmsys: add config api for RSZ switching and
DCM
soc: mediatek: mutex: Addmtk_mutex_set_modsupport to set
MOD1
soc: mediatek: mutex: support MT8195 VPPSYS.../bindings/arm/mediatek/mediatek,mmsys.yaml | 5 +- .../bindings/soc/mediatek/mediatek,mutex.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8195.dtsi | 28 +++- drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 64 +++++++++ drivers/soc/mediatek/mtk-mmsys.h | 1 + drivers/soc/mediatek/mtk-mutex.c | 135 +++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 4 + include/linux/soc/mediatek/mtk-mutex.h | 35 +++++ 9 files changed, 274 insertions(+), 12 deletions(-)