Correct disp_aal dt-binding
Subsystems (5)
cover Correct disp_aal dt-binding
There are several dt-binding error for MT8183 and MT8192. Therefore, we send this series to correct them.
1. Correct dt-binding and dts for MT8183.
2. Correct dt-binding for MT8192.
This series is based on this series:
"add display support for MediaTek SoC MT8186":
Message id: [email protected]
Rex-BC Chen (3):
dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
arm64: dts: mt8183: Correct disp_aal node compatible
dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
.../bindings/display/mediatek/mediatek,aal.yaml | 8 ++++---- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-)
Signature · 1 line
2.18.0
PATCH 1/3 dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
The driver data of MT8183 and MT8173 are different.
The value of has_gamma for MT8173 is true while the value of MT8183 is false. Therefore, the compatible of disp_aal for MT8183 is not suitable for the compatible for MT8173.
--- .../devicetree/bindings/display/mediatek/mediatek,aal.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +3 -3
@@ -21,12 +21,12 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt8173-disp-aal + - enum: + - mediatek,mt8173-disp-aal + - mediatek,mt8183-disp-aal - items: - enum: - mediatek,mt2712-disp-aal - - mediatek,mt8183-disp-aal - mediatek,mt8192-disp-aal - mediatek,mt8195-disp-aal - const: mediatek,mt8173-disp-aal
Signature · 1 line
2.18.0
Re: [PATCH 1/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
Il 06/04/22 11:46, Rex-BC Chen ha scritto:
Quoted 6 lines
The driver data of MT8183 and MT8173 are different.
The value ofhas_gammafor MT8173 is true while the value of MT8183 is false. Therefore, the compatible ofdisp_aalfor MT8183 is not suitable for the compatible for MT8173.Signed-off-by Rex-BC Chen <[email protected]>
Hello!
Yes, I definitely agree with this change, it makes no sense to have both 8173 and 8183 compatibles for 8183 (and similar).
Though, please, add a note in this commit message advertising that the mistake was only in the yaml binding, as the driver doesn't require any functional changes, so that things are clear for people with less expertise on MediaTek platforms.
After that:
Re: [PATCH 1/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
Quoted 23 lines · AngeloGioacchino Del Regno
Il 06/04/22 11:46, Rex-BC Chen ha scritto:
Quoted 8 lines
The driver data of MT8183 and MT8173 are different.
The value ofhas_gammafor MT8173 is true while the value of MT8183 is
false. Therefore, the compatible ofdisp_aalfor MT8183 is not suitable
for the compatible for MT8173.Signed-off-by Rex-BC Chen <[email protected]>Hello!
Yes, I definitely agree with this change, it makes no sense to have both
8173 and 8183 compatibles for 8183 (and similar).Though, please, add a note in this commit message advertising that the
mistake was only in the yaml binding, as the driver doesn't require any
functional changes, so that things are clear for people with less expertise
on MediaTek platforms.
Quoted 3 lines
After that:
Reviewed-by: AngeloGioacchino Del Regno <
[email protected]>
Hello Angelo,
Thanks for your review.
I will add them to the commit message in next version.
BRs,
Rex
Re: [PATCH 1/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
In reply to Rex-BC ChenQuoted 4 lines · Rex-BC Chen
The driver data of MT8183 and MT8173 are different.
The value ofhas_gammafor MT8173 is true while the value of MT8183 is false. Therefore, the compatible ofdisp_aalfor MT8183 is not suitable for the compatible for MT8173.
Just because one feature is not supported, it does not mean they are incompatible, which you claim in the patch below. Are you sure they are really incompatible and MT8173 fallback cannot be used?
Best regards,
Krzysztof
Re: [PATCH 1/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
Quoted 8 lines · Krzysztof Kozlowski
Quoted 6 lines · Rex-BC Chen
The driver data of MT8183 and MT8173 are different.
The value ofhas_gammafor MT8173 is true while the value of MT8183 is
false. Therefore, the compatible ofdisp_aalfor MT8183 is not suitable
for the compatible for MT8173.
Quoted 8 lines
Just because one feature is not supported, it does not mean they are incompatible, which you claim in the patch below. Are you sure they are
really incompatible and MT8173 fallback cannot be used?Best regards,
Krzysztof
Hello Krzysztof,
Thanks for your review.
The difference of disp_aal for each MediaTek SoCs is "has_gamma". And we only control this variable for different MediaTek SoCs.
The value of has_gamma for MT8173 is true.
The value of has_gamma for MT8183 is false. (Moreover, the driver data is null for MT8183)
From this situation, I think it's not compatible between MT8173 and MT8183.
BRs,
Rex
Re: [PATCH 1/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
Quoted 25 lines · Rex-BC Chen
Quoted 8 lines · Krzysztof Kozlowski
Quoted 6 lines · Rex-BC Chen
The driver data of MT8183 and MT8173 are different.
The value ofhas_gammafor MT8173 is true while the value of MT8183 is
false. Therefore, the compatible ofdisp_aalfor MT8183 is not suitable
for the compatible for MT8173.Quoted 8 lines
Just because one feature is not supported, it does not mean they are incompatible, which you claim in the patch below. Are you sure they are
really incompatible and MT8173 fallback cannot be used?Best regards,
KrzysztofHello Krzysztof,
Thanks for your review.
The difference of
disp_aalfor each MediaTek SoCs is "has_gamma". And we only control this variable for different MediaTek SoCs.
Quoted 6 lines
The value of
has_gammafor MT8173 is true.
The value ofhas_gammafor MT8183 is false. (Moreover, the driver data is null for MT8183)From this situation, I think it's not compatible between MT8173 and MT8183.
You repeated the commit msg without bringing any new information... but let it be, I assume setting gamma on MTT8183 is incorrect or produces wrong results.
Best regards,
Krzysztof
Re: [PATCH 1/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8183
Quoted 37 lines · Krzysztof Kozlowski
Quoted 28 lines · Rex-BC Chen
Quoted 17 lines · Krzysztof Kozlowski
Quoted 7 lines · Rex-BC Chen
The driver data of MT8183 and MT8173 are different. The value of
has_gammafor MT8173 is true while the value of MT8183
is
false. Therefore, the compatible ofdisp_aalfor MT8183 is not suitable
for the compatible for MT8173.Just because one feature is not supported, it does not mean they are
incompatible, which you claim in the patch below. Are you sure they
are
really incompatible and MT8173 fallback cannot be used?Quoted 2 lines
Best regards,
KrzysztofHello Krzysztof,
Thanks for your review.
The difference of
disp_aalfor each MediaTek SoCs is "has_gamma". And we only control this variable for different MediaTek SoCs.Quoted 7 lines
The value of
has_gammafor MT8173 is true.
The value ofhas_gammafor MT8183 is false. (Moreover, the driver data
is null for MT8183)From this situation, I think it's not compatible between MT8173 and MT8183.
Quoted 8 lines
You repeated the commit msg without bringing any new information... but
let it be, I assume setting gamma on MTT8183 is incorrect or produces wrong results.Best regards,
Krzysztof
Hello Krzysztof,
Sorry for this.
I can explain more detailed.
For MT8173, the gamma module is inside disp_aal. When we need to adjust gamma value, we need to use "has_gamma" to control gamma function inside disp_aal to adjust gamma value.
Since MT8183 (MT8192/MT8195/MT8186), display gamma is seperated from disp_aal. We just need to control disp_gamma directly and we don't need to control gamma function inside disp_aal.
I will add these comments to commit message in next version to explain it.
BRs,
Rex
PATCH 2/3 arm64: dts: mt8183: Correct disp_aal node compatible
In reply to Rex-BC ChenThe driver data of MT8183 and MT8173 are different.
The value of has_gamma for MT8173 is true while the value of MT8183 is false. Therefore, the compatible of disp_aal for MT8183 is not suitable for the compatible for MT8173.
--- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183.dtsi +1 -2
@@ -1466,8 +1466,7 @@ }; aal0: aal@14010000 { - compatible = "mediatek,mt8183-disp-aal", - "mediatek,mt8173-disp-aal"; + compatible = "mediatek,mt8183-disp-aal"; reg = <0 0x14010000 0 0x1000>; interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_LOW>; power-domains = <&spm MT8183_POWER_DOMAIN_DISP>;
Signature · 1 line
2.18.0
Re: [PATCH 2/3] arm64: dts: mt8183: Correct disp_aal node compatible
Il 06/04/22 11:46, Rex-BC Chen ha scritto:
Quoted 6 lines
The driver data of MT8183 and MT8173 are different.
The value ofhas_gammafor MT8173 is true while the value of MT8183 is false. Therefore, the compatible ofdisp_aalfor MT8183 is not suitable for the compatible for MT8173.Signed-off-by Rex-BC Chen <[email protected]>
PATCH 3/3 dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
In reply to Rex-BC ChenThe driver data for MT8192 is the same with MT8183. Therefore, we correct it.
--- .../devicetree/bindings/display/mediatek/mediatek,aal.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +1 -1
@@ -27,12 +27,12 @@ properties: - items: - enum: - mediatek,mt2712-disp-aal - - mediatek,mt8192-disp-aal - mediatek,mt8195-disp-aal - const: mediatek,mt8173-disp-aal - items: - enum: - mediatek,mt8186-disp-aal + - mediatek,mt8192-disp-aal - const: mediatek,mt8183-disp-aal reg:
Signature · 1 line
2.18.0
Re: [PATCH 3/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
Il 06/04/22 11:46, Rex-BC Chen ha scritto:
Quoted 4 lines
The driver data for MT8192 is the same with MT8183. Therefore, we correct it.
Signed-off-by Rex-BC Chen <[email protected]>
...though, from what I know, you should also move MT8195 down there!
Re: [PATCH 3/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
Quoted 10 lines · AngeloGioacchino Del Regno
Il 06/04/22 11:46, Rex-BC Chen ha scritto:
Quoted 4 lines
The driver data for MT8192 is the same with MT8183. Therefore, we correct it.
Signed-off-by Rex-BC Chen <[email protected]>Reviewed-by: AngeloGioacchino Del Regno <
[email protected]>...though, from what I know, you should also move MT8195 down there!
Hello Angelo,
Thanks for your review.
But for MT8195, disp_aal is using the same compatible with MT8173.
From the MT8195 project DTS is using:
aal0: disp_aal@1c005000 {
compatible = "mediatek,mt8195-disp-aal",
"mediatek,mt8173-disp-aal";
reg = <0 0x1c005000 0 0x1000>;
interrupts = <GIC_SPI 641 IRQ_TYPE_LEVEL_HIGH 0>;
power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>;
clocks = <&vdosys0 CLK_VDO0_DISP_AAL0>;
mediatek,gce-client-reg =
<&gce0 SUBSYS_1c00XXXX 0x5000 0x1000>;
};BRs,
Rex
AngeloGioacchino Del Regno
maintainerRe: [PATCH 3/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
Il 06/04/22 12:48, Rex-BC Chen ha scritto:
Quoted 30 lines · AngeloGioacchino Del Regno
Quoted 10 lines
Il 06/04/22 11:46, Rex-BC Chen ha scritto:
Quoted 4 lines
The driver data for MT8192 is the same with MT8183. Therefore, we correct it.
Signed-off-by Rex-BC Chen <[email protected]>Reviewed-by: AngeloGioacchino Del Regno <
[email protected]>...though, from what I know, you should also move MT8195 down there!
Hello Angelo,
Thanks for your review.
But for MT8195,disp_aalis using the same compatible with MT8173.From the MT8195 project DTS is using:
aal0: disp_aal@1c005000 { compatible = "mediatek,mt8195-disp-aal", "mediatek,mt8173-disp-aal"; reg = <0 0x1c005000 0 0x1000>; interrupts = <GIC_SPI 641 IRQ_TYPE_LEVEL_HIGH 0>; power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>; clocks = <&vdosys0 CLK_VDO0_DISP_AAL0>; mediatek,gce-client-reg = <&gce0 SUBSYS_1c00XXXX 0x5000 0x1000>; };
Quoted 3 lines
BRs,
Rex
I'm sorry Rex, I've just realized - I was confusing this one with the 8195 gamma binding instead!
Cheers,
Angelo
Re: [PATCH 3/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
In reply to AngeloGioacchino Del RegnoQuoted 10 lines · AngeloGioacchino Del Regno
Il 06/04/22 11:46, Rex-BC Chen ha scritto:
Quoted 4 lines
The driver data for MT8192 is the same with MT8183. Therefore, we correct it.
Signed-off-by Rex-BC Chen <[email protected]>Reviewed-by: AngeloGioacchino Del Regno <
[email protected]>...though, from what I know, you should also move MT8195 down there!
Hello Angelo,
We have some misunderstanding for disp_aal of MT8195.
The MT8195 has independent disp_gamma which is seperated from disp_aal since MT8173.
Therefore, for MT8195, the disp_aal should be the same with MT8183. I have checked this with Jason-JH Lin who is drm owner of MT8195.
I will update disp_aal binding in next version.
BRs,
Rex
Re: [PATCH 3/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
In reply to Rex-BC ChenQuoted 2 lines · Rex-BC Chen
The driver data for MT8192 is the same with MT8183. Therefore, we correct it.
Driver data is Linux implementation specific so does not really matter for bindings. Probably you want to say here that devices are fully compatible? If so, please rephrase it. Also remove the wording "correct it" in subject and here because there is no mistake here (at least you did not describe it) and otherwise AUTOSEL might pick it up...
Best regards,
Krzysztof
Re: [PATCH 3/3] dt-bindings: display: mediatek: Correct disp_aal binding for MT8192
Quoted 13 lines · Krzysztof Kozlowski
Quoted 2 lines · Rex-BC Chen
The driver data for MT8192 is the same with MT8183. Therefore, we correct it.
Driver data is Linux implementation specific so does not really matter
for bindings. Probably you want to say here that devices are fully compatible? If so, please rephrase it. Also remove the wording "correct
it" in subject and here because there is no mistake here (at least you
did not describe it) and otherwise AUTOSEL might pick it up...
Quoted 2 lines
Best regards,
Krzysztof
Hello Krzysztof,
Thanks for your review.
Yes, it's not a error for dt-binding.
I will update the description in next version.
BRs,
Rex