Update MT8188 OVL compatible from MT8183 to MT8195
Subsystems (5)
v2 cover Update MT8188 OVL compatible from MT8183 to MT8195
This patch series updates the compatible strings for the MediaTek OVL in the MT8188 dts and the corresponding dt-binding.
The changes ensure that the MT8188 OVL device is correctly identified and managed by the appropriate drivers.
The 1st patch is resending the reviewed and acked patch from:
- https://lore.kernel.org/all/[email protected]/
and rebase it to the latest linux-next-20241212.
The 2nd and the 3rd patches are updating the mt8188.dtsi and mt8195.dtsi according to the 1st patch.
---
Change in v2:
1. Add missing mt8195 compatible in the beginning of compatible property.
2. Add fix patch to mt8195.
---
Hsiao Chien Sung (1):
dt-bindings: display: mediatek: ovl: Modify rules for MT8195/MT8188
Jason-JH.Lin (2):
dts: arm64: mediatek: mt8188: Update OVL compatible from MT8183 to
MT8195
dts: arm64: mediatek: mt8195: Remove MT8183 compatible for OVL
.../bindings/display/mediatek/mediatek,ovl.yaml | 9 ++++----- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 2 +- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0
PATCH v2 1/3 dt-bindings: display: mediatek: ovl: Modify rules for MT8195/MT8188
From: Hsiao Chien Sung <[email protected]>
Modify rules for both MT8195 and MT8188. Hardware capabilities include color formats and AFBC are changed since MT8195, stop using the settings of MT8183.
--- .../bindings/display/mediatek/mediatek,ovl.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +4 -5
@@ -26,6 +26,7 @@ properties: - mediatek,mt8173-disp-ovl - mediatek,mt8183-disp-ovl - mediatek,mt8192-disp-ovl + - mediatek,mt8195-disp-ovl - mediatek,mt8195-mdp3-ovl - items: - enum:
@@ -36,16 +37,14 @@ properties: - enum: - mediatek,mt6795-disp-ovl - const: mediatek,mt8173-disp-ovl - - items: - - enum: - - mediatek,mt8188-disp-ovl - - mediatek,mt8195-disp-ovl - - const: mediatek,mt8183-disp-ovl - items: - enum: - mediatek,mt8186-disp-ovl - mediatek,mt8365-disp-ovl - const: mediatek,mt8192-disp-ovl + - items: + - const: mediatek,mt8188-disp-ovl + - const: mediatek,mt8195-disp-ovl reg: maxItems: 1
Signature · 1 line
2.43.0
AngeloGioacchino Del Regno
maintainerRe: [PATCH v2 1/3] dt-bindings: display: mediatek: ovl: Modify rules for MT8195/MT8188
Il 13/12/24 10:50, Jason-JH.Lin ha scritto:
Quoted 37 lines
From: Hsiao Chien Sung <[email protected]>
Modify rules for both MT8195 and MT8188. Hardware capabilities include color formats and AFBC are changed since MT8195, stop using the settings of MT8183.
Acked-by Rob Herring <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>Reviewed-by CK Hu <[email protected]>Signed-off-by Hsiao Chien Sung <[email protected]>Signed-off-by Jason-JH.Lin <[email protected]>--- .../bindings/display/mediatek/mediatek,ovl.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +1
-5@@ -26,6 +26,7 @@ properties: - mediatek,mt8173-disp-ovl - mediatek,mt8183-disp-ovl - mediatek,mt8192-disp-ovl + - mediatek,mt8195-disp-ovl - mediatek,mt8195-mdp3-ovl - items: - enum:@@ -36,16 +37,14 @@ properties: - enum: - mediatek,mt6795-disp-ovl - const: mediatek,mt8173-disp-ovl - - items: - - enum: - - mediatek,mt8188-disp-ovl - - mediatek,mt8195-disp-ovl - - const: mediatek,mt8183-disp-ovl - items:
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml properties: · line 50
Quoted 10 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +3
-0- enum: - mediatek,mt8186-disp-ovl - mediatek,mt8365-disp-ovl - const: mediatek,mt8192-disp-ovl + - items: + - const: mediatek,mt8188-disp-ovl + - const: mediatek,mt8195-disp-ovl reg: maxItems: 1
Jason, while doing MDP3 bindings for MT8188, I noticed that the binding for OVL is missing; can you please add a commit on top of this series adding the following snippet?
- items:
- const: mediatek,mt8188-mdp3-ovl
- const: mediatek,mt8195-mdp3-ovl
...with a suggested-by tag it's going to be fine :-)
P.S.: Please refer to https://lore.kernel.org/r/[email protected]
Thanks,
Angelo
Re: [PATCH v2 1/3] dt-bindings: display: mediatek: ovl: Modify rules for MT8195/MT8188
Quoted 70 lines · AngeloGioacchino Del Regno
External email : Please do not click links or open attachments until you have verified the sender or the content.
Il 13/12/24 10:50, Jason-JH.Lin ha scritto:
Quoted 47 lines
From: Hsiao Chien Sung <[email protected]>
Modify rules for both MT8195 and MT8188. Hardware capabilities include color formats and AFBC are changed since MT8195, stop using the settings of MT8183.
Acked-by Rob Herring <[email protected]>Reviewed-by AngeloGioacchino Del Regno <Reviewed-by CK Hu <[email protected]>Signed-off-by Hsiao Chien Sung <[email protected]>Signed-off-by Jason-JH.Lin <[email protected]>--- .../bindings/display/mediatek/mediatek,ovl.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y aml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y aml
index9ea796a033b2..8ca8e5966b9a100644
---
a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y aml
+++
b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y amlDocumentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +1
-5@@ -26,6 +26,7 @@ properties: - mediatek,mt8173-disp-ovl - mediatek,mt8183-disp-ovl - mediatek,mt8192-disp-ovl + - mediatek,mt8195-disp-ovl - mediatek,mt8195-mdp3-ovl - items: - enum:@@ -36,16 +37,14 @@ properties: - enum: - mediatek,mt6795-disp-ovl - const: mediatek,mt8173-disp-ovl - - items: - - enum: - - mediatek,mt8188-disp-ovl - - mediatek,mt8195-disp-ovl - - const: mediatek,mt8183-disp-ovl - items:Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml properties: · line 50
Quoted 10 lines
Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +3
-0- enum: - mediatek,mt8186-disp-ovl - mediatek,mt8365-disp-ovl - const: mediatek,mt8192-disp-ovl + - items: + - const: mediatek,mt8188-disp-ovl + - const: mediatek,mt8195-disp-ovl reg: maxItems: 1Jason, while doing MDP3 bindings for MT8188, I noticed that the binding for OVL is
missing; can you please add a commit on top of this series adding the following
snippet?
Quoted 6 lines
- items:
- const: mediatek,mt8188-mdp3-ovl
- const: mediatek,mt8195-mdp3-ovl...with a suggested-by tag it's going to be fine :-)
Sure, I'll add one more patch for this in the top of v3.
Regards,
Jason-JH.Lin
Quoted 2 lines
P.S.: Please refer to
https://lore.kernel.org/r/[email protected]
Quoted 3 lines
Thanks,
Angelo
AngeloGioacchino Del Regno
maintainerRe: [PATCH v2 1/3] dt-bindings: display: mediatek: ovl: Modify rules for MT8195/MT8188
In reply to Jason-JH.LinIl 13/12/24 10:50, Jason-JH.Lin ha scritto:
Quoted 11 lines
From: Hsiao Chien Sung <[email protected]>
Modify rules for both MT8195 and MT8188. Hardware capabilities include color formats and AFBC are changed since MT8195, stop using the settings of MT8183.
Acked-by Rob Herring <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>Reviewed-by CK Hu <[email protected]>Signed-off-by Hsiao Chien Sung <[email protected]>Signed-off-by Jason-JH.Lin <[email protected]>
CK, can you please Ack this so that I can make it go through the mediatek tree along with the devicetree changes?
Thanks,
Angelo
Quoted 36 lines
--- .../bindings/display/mediatek/mediatek,ovl.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +4
-5@@ -26,6 +26,7 @@ properties: - mediatek,mt8173-disp-ovl - mediatek,mt8183-disp-ovl - mediatek,mt8192-disp-ovl + - mediatek,mt8195-disp-ovl - mediatek,mt8195-mdp3-ovl - items: - enum:@@ -36,16 +37,14 @@ properties: - enum: - mediatek,mt6795-disp-ovl - const: mediatek,mt8173-disp-ovl - - items: - - enum: - - mediatek,mt8188-disp-ovl - - mediatek,mt8195-disp-ovl - - const: mediatek,mt8183-disp-ovl - items: - enum: - mediatek,mt8186-disp-ovl - mediatek,mt8365-disp-ovl - const: mediatek,mt8192-disp-ovl + - items: + - const: mediatek,mt8188-disp-ovl + - const: mediatek,mt8195-disp-ovl reg: maxItems: 1
PATCH v2 2/3 dts: arm64: mediatek: mt8188: Update OVL compatible from MT8183 to MT8195
In reply to Jason-JH.LinThe OVL hardware capabilities have changed starting from MT8195, making the MT8183 compatible no longer applicable. Therefore, it is necessary to update the OVL compatible from MT8183 to MT8195.
--- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8188.dtsi +1 -1
@@ -2488,7 +2488,7 @@ jpeg_decoder: jpeg-decoder@1a040000 { }; ovl0: ovl@1c000000 { - compatible = "mediatek,mt8188-disp-ovl", "mediatek,mt8183-disp-ovl"; + compatible = "mediatek,mt8188-disp-ovl", "mediatek,mt8195-disp-ovl"; reg = <0 0x1c000000 0 0x1000>; clocks = <&vdosys0 CLK_VDO0_DISP_OVL0>; interrupts = <GIC_SPI 636 IRQ_TYPE_LEVEL_HIGH 0>;
Signature · 1 line
2.43.0
Re: [PATCH v2 2/3] dts: arm64: mediatek: mt8188: Update OVL compatible from MT8183 to MT8195
Hi Jason,
Quoted 5 lines · Jason-JH.Lin
The OVL hardware capabilities have changed starting from MT8195, making the MT8183 compatible no longer applicable. Therefore, it is necessary to update the OVL compatible from MT8183 to MT8195.
This probably doesn't need an (immediate) respin, but this patch needs:
for vdosys0")
Quoted 20 lines
Signed-off-by Jason-JH.Lin <[email protected]>--- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/mediatek/mt8188.dtsi +1
-2@@ -2488,7 +2488,7 @@ jpeg_decoder: jpeg-decoder@1a040000 { }; ovl0: ovl@1c000000 { - compatible = "mediatek,mt8188-disp-ovl", "mediatek,mt8183-disp-ovl"; + compatible = "mediatek,mt8188-disp-ovl", "mediatek,mt8195-disp-ovl"; reg = <0 0x1c000000 0 0x1000>; clocks = <&vdosys0 CLK_VDO0_DISP_OVL0>; interrupts = <GIC_SPI 636 IRQ_TYPE_LEVEL_HIGH 0>; --
Quoted 2 lines
2.43.0
Regards,
Pin-yen
Re: [PATCH v2 2/3] dts: arm64: mediatek: mt8188: Update OVL compatible from MT8183 to MT8195
Il 13/12/24 11:26, Pin-yen Lin ha scritto:
Quoted 9 lines
Hi Jason,
Quoted 5 lines · Jason-JH.Lin
The OVL hardware capabilities have changed starting from MT8195, making the MT8183 compatible no longer applicable. Therefore, it is necessary to update the OVL compatible from MT8183 to MT8195.
Quoted 4 lines
This probably doesn't need an (immediate) respin, but this patch needs:
Fixes 7075b21d1a8e ("arm64: dts: mediatek: mt8188: Add display nodesfor vdosys0")
No, because the binding must otherwise get a Fixes tag.
This is not a fix anyway, and is technically adding new features to the MT8188 OVL; without the additional features, the MT8188 is still compatible with the MT8183 OVL, as much as MT8195.
Quoted 25 lines
Quoted 20 lines
Signed-off-by Jason-JH.Lin <[email protected]>--- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/mediatek/mt8188.dtsi +1
-2@@ -2488,7 +2488,7 @@ jpeg_decoder: jpeg-decoder@1a040000 { }; ovl0: ovl@1c000000 { - compatible = "mediatek,mt8188-disp-ovl", "mediatek,mt8183-disp-ovl"; + compatible = "mediatek,mt8188-disp-ovl", "mediatek,mt8195-disp-ovl"; reg = <0 0x1c000000 0 0x1000>; clocks = <&vdosys0 CLK_VDO0_DISP_OVL0>; interrupts = <GIC_SPI 636 IRQ_TYPE_LEVEL_HIGH 0>; --Quoted 2 lines
2.43.0
Regards,
Pin-yen
PATCH v2 3/3 dts: arm64: mediatek: mt8195: Remove MT8183 compatible for OVL
In reply to Jason-JH.LinThe OVL hardware capabilities have changed starting from MT8195, making the MT8183 compatible no longer applicable. Therefore, it is necessary to remove the MT8183 compatible for OVL.
--- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +1 -1
@@ -3138,7 +3138,7 @@ larb20: larb@1b010000 { }; ovl0: ovl@1c000000 { - compatible = "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl"; + compatible = "mediatek,mt8195-disp-ovl"; reg = <0 0x1c000000 0 0x1000>; interrupts = <GIC_SPI 636 IRQ_TYPE_LEVEL_HIGH 0>; power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>;
Signature · 1 line
2.43.0
Re: [PATCH v2 3/3] dts: arm64: mediatek: mt8195: Remove MT8183 compatible for OVL
Hi Jason,
Quoted 4 lines · Jason-JH.Lin
The OVL hardware capabilities have changed starting from MT8195, making the MT8183 compatible no longer applicable. Therefore, it is necessary to remove the MT8183 compatible for OVL.
Similar to patch 2/3, we need a:
Quoted 20 lines
Signed-off-by Jason-JH.Lin <[email protected]>--- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/mediatek/mt8195.dtsi +1
-2@@ -3138,7 +3138,7 @@ larb20: larb@1b010000 { }; ovl0: ovl@1c000000 { - compatible = "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl"; + compatible = "mediatek,mt8195-disp-ovl"; reg = <0 0x1c000000 0 0x1000>; interrupts = <GIC_SPI 636 IRQ_TYPE_LEVEL_HIGH 0>; power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>; --
Quoted 2 lines
2.43.0
Regards,
Pin-yen
Re: [PATCH v2 3/3] dts: arm64: mediatek: mt8195: Remove MT8183 compatible for OVL
Il 13/12/24 11:27, Pin-yen Lin ha scritto:
Quoted 4 lines
Hi Jason,
Quoted 1 line · Jason-JH.Lin
Quoted 8 lines
Quoted 3 lines
The OVL hardware capabilities have changed starting from MT8195, making the MT8183 compatible no longer applicable. Therefore, it is necessary to remove the MT8183 compatible for OVL.
Similar to patch 2/3, we need a:
Fixes b852ee68fd72 ("arm64: dts: mt8195: Add display node for vdosys0")
No, we don't, for reasons that are similar to the ones that I explained in the MT8188 commit.
Besides, this one was already featureful before this commit, so really this is not worth backporting at all.
Quoted 25 lines
Quoted 20 lines
Signed-off-by Jason-JH.Lin <[email protected]>--- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/mediatek/mt8195.dtsi +1
-2@@ -3138,7 +3138,7 @@ larb20: larb@1b010000 { }; ovl0: ovl@1c000000 { - compatible = "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl"; + compatible = "mediatek,mt8195-disp-ovl"; reg = <0 0x1c000000 0 0x1000>; interrupts = <GIC_SPI 636 IRQ_TYPE_LEVEL_HIGH 0>; power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>; --Quoted 2 lines
2.43.0
Regards,
Pin-yen