* Re: [PATCH v1 1/4] dt-bindings: mediatek: modify VDOSYS0 device tree Documentations for MT8188
[not found] ` <20220822033213.15769-2-nathan.lu@mediatek.com>
@ 2022-08-23 12:51 ` Krzysztof Kozlowski
2022-09-06 2:32 ` Nathan Lu
[not found] ` <b0866ca8d749cd06f7b10b2f6eb44bf79d52dafb.camel@mediatek.com>
1 sibling, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-23 12:51 UTC (permalink / raw)
To: nathan.lu, Rob Herring, Krzysztof Kozlowski, Chun-Kuang Hu,
Philipp Zabel, David Airlie, Daniel Vetter, Maxime Coquelin,
Alexandre Torgue, Matthias Brugger
Cc: jason-jh . lin, CK Hu, AngeloGioacchino Del Regno, Rex-BC Chen,
Enric Balletbo i Serra, Moudy Ho, devicetree, linux-kernel,
dri-devel, linux-mediatek, linux-stm32, linux-arm-kernel,
srv_heupstream, wsd_upstream, lancelot.wu
On 22/08/2022 06:32, nathan.lu wrote:
> From: Nathan Lu <nathan.lu@mediatek.com>
>
> modify VDOSYS0 device tree Documentations for MT8188.
(...)
> diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml
> index 0882ae86e6c4..d0e6c0dd4dfb 100644
> --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml
> +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml
> @@ -30,6 +30,8 @@ properties:
> - items:
> - const: mediatek,mt8183-disp-rdma
> - items:
> + - enum:
> + - mediatek,mt8188-disp-rdma
> - const: mediatek,mt8195-disp-rdma
Why do you change existing bindings?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/4] dt-bindings: mediatek: modify VDOSYS0 device tree Documentations for MT8188
[not found] ` <b0866ca8d749cd06f7b10b2f6eb44bf79d52dafb.camel@mediatek.com>
@ 2022-09-06 2:28 ` Nathan Lu
0 siblings, 0 replies; 4+ messages in thread
From: Nathan Lu @ 2022-09-06 2:28 UTC (permalink / raw)
To: CK Hu, Rob Herring, Krzysztof Kozlowski, Chun-Kuang Hu,
Philipp Zabel, David Airlie, Daniel Vetter, Maxime Coquelin,
Alexandre Torgue, Matthias Brugger
Cc: jason-jh . lin, AngeloGioacchino Del Regno, Rex-BC Chen,
Enric Balletbo i Serra, Moudy Ho, devicetree, linux-kernel,
dri-devel, linux-mediatek, linux-stm32, linux-arm-kernel,
srv_heupstream, wsd_upstream, lancelot.wu
Hi CK,
Thanks for your review, and appreciate for all comments and sugestions.
I'll seperate mmsys/mutex/display to different patch and remove all
unnecessary modify at next version
On Mon, 2022-08-22 at 13:36 +0800, CK Hu wrote:
> Hi, Nathan:
>
> On Mon, 2022-08-22 at 11:32 +0800, nathan.lu wrote:
> > From: Nathan Lu <nathan.lu@mediatek.com>
> >
> > modify VDOSYS0 device tree Documentations for MT8188.
> >
> > Signed-off-by: Nathan Lu <nathan.lu@mediatek.com>
> > ---
> > .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml | 1
> > +
> > .../devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1
> > +
> > .../devicetree/bindings/display/mediatek/mediatek,ccorr.yaml | 1
> > +
> > .../devicetree/bindings/display/mediatek/mediatek,color.yaml | 1
> > +
> > .../devicetree/bindings/display/mediatek/mediatek,dither.yaml | 1
> > +
> > .../devicetree/bindings/display/mediatek/mediatek,gamma.yaml | 3
> > ++-
> > .../devicetree/bindings/display/mediatek/mediatek,ovl.yaml | 1
> > +
> > .../bindings/display/mediatek/mediatek,postmask.yaml | 1
> > +
> > .../devicetree/bindings/display/mediatek/mediatek,rdma.yaml |
> > 2
>
> Separate the display part to another patch for the maintainer it
> belong
> to.
>
> > ++
> > .../devicetree/bindings/soc/mediatek/mediatek,mutex.yaml | 1
> > +
> > 10 files changed, 12 insertions(+), 1 deletion(-)
> >
> > diff --git
> > a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yam
> > l
> > b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yam
> > l
> > index 6ad023eec193..f26f61069181 100644
> > ---
> > a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yam
> > l
> > +++
> > b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yam
> > l
> > @@ -30,6 +30,7 @@ properties:
> > - mediatek,mt8173-mmsys
> > - mediatek,mt8183-mmsys
> > - mediatek,mt8186-mmsys
> > + - mediatek,mt8188-mmsys
> > - mediatek,mt8192-mmsys
> > - mediatek,mt8195-mmsys
> > - mediatek,mt8365-mmsys
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.y
> > am
> > l
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.y
> > am
> > l
> > index d4d585485e7b..92741486c24d 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.y
> > am
> > l
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.y
> > am
> > l
> > @@ -31,6 +31,7 @@ properties:
> > - items:
> > - enum:
> > - mediatek,mt8186-disp-aal
> > + - mediatek,mt8188-disp-aal
> > - mediatek,mt8192-disp-aal
> > - mediatek,mt8195-disp-aal
> > - const: mediatek,mt8183-disp-aal
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr
> > .y
> > aml
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr
> > .y
> > aml
> > index 63fb02014a56..fe444beff558 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr
> > .y
> > aml
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr
> > .y
> > aml
> > @@ -27,6 +27,7 @@ properties:
> > - const: mediatek,mt8192-disp-ccorr
> > - items:
> > - enum:
> > + - mediatek,mt8188-disp-ccorr
> > - mediatek,mt8195-disp-ccorr
> > - const: mediatek,mt8192-disp-ccorr
> > - items:
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,color
> > .y
> > aml
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,color
> > .y
> > aml
> > index d2f89ee7996f..62306c88f485 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,color
> > .y
> > aml
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,color
> > .y
> > aml
> > @@ -37,6 +37,7 @@ properties:
> > - enum:
> > - mediatek,mt8183-disp-color
> > - mediatek,mt8186-disp-color
> > + - mediatek,mt8188-disp-color
> > - mediatek,mt8192-disp-color
> > - mediatek,mt8195-disp-color
> > - const: mediatek,mt8173-disp-color
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,dithe
> > r.
> > yaml
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,dithe
> > r.
> > yaml
> > index 8ad8187c02d1..5c7445c174e5 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,dithe
> > r.
> > yaml
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,dithe
> > r.
> > yaml
> > @@ -27,6 +27,7 @@ properties:
> > - items:
> > - enum:
> > - mediatek,mt8186-disp-dither
> > + - mediatek,mt8188-disp-dither
> > - mediatek,mt8192-disp-dither
> > - mediatek,mt8195-disp-dither
> > - const: mediatek,mt8183-disp-dither
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma
> > .y
> > aml
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma
> > .y
> > aml
> > index a89ea0ea7542..3d6e20f6eb05 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma
> > .y
> > aml
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma
> > .y
> > aml
> > @@ -12,7 +12,7 @@ maintainers:
> >
> > description: |
> > Mediatek display gamma correction, namely GAMMA, provides a
> > nonlinear
> > - operation used to adjust luminance in display system.
> > + operation used to adjust luminance in?display system.
>
> It's not necessary to modify this.
>
> Regards,
> CK
>
> > GAMMA device node must be siblings to the central MMSYS_CONFIG
> > node.
> > For a description of the MMSYS_CONFIG binding, see
> > Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.ya
> > ml
> > @@ -28,6 +28,7 @@ properties:
> > - items:
> > - enum:
> > - mediatek,mt8186-disp-gamma
> > + - mediatek,mt8188-disp-gamma
> > - mediatek,mt8192-disp-gamma
> > - mediatek,mt8195-disp-gamma
> > - const: mediatek,mt8183-disp-gamma
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y
> > am
> > l
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y
> > am
> > l
> > index a2a27d0ca038..065e526f950e 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y
> > am
> > l
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.y
> > am
> > l
> > @@ -36,6 +36,7 @@ properties:
> > - const: mediatek,mt2701-disp-ovl
> > - items:
> > - enum:
> > + - mediatek,mt8188-disp-ovl
> > - mediatek,mt8195-disp-ovl
> > - const: mediatek,mt8183-disp-ovl
> > - items:
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,postm
> > as
> > k.yaml
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,postm
> > as
> > k.yaml
> > index 654080bfbdfb..27de64495401 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,postm
> > as
> > k.yaml
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,postm
> > as
> > k.yaml
> > @@ -26,6 +26,7 @@ properties:
> > - items:
> > - enum:
> > - mediatek,mt8186-disp-postmask
> > + - mediatek,mt8188-disp-postmask
> > - const: mediatek,mt8192-disp-postmask
> >
> > reg:
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > ya
> > ml
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > ya
> > ml
> > index 0882ae86e6c4..d0e6c0dd4dfb 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > ya
> > ml
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > ya
> > ml
> > @@ -30,6 +30,8 @@ properties:
> > - items:
> > - const: mediatek,mt8183-disp-rdma
> > - items:
> > + - enum:
> > + - mediatek,mt8188-disp-rdma
> > - const: mediatek,mt8195-disp-rdma
> > - items:
> > - enum:
> > diff --git
> > a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yam
> > l
> > b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yam
> > l
> > index 627dcc3e8b32..a5212a2a4dcc 100644
> > ---
> > a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yam
> > l
> > +++
> > b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yam
> > l
> > @@ -30,6 +30,7 @@ properties:
> > - mediatek,mt8173-disp-mutex
> > - mediatek,mt8183-disp-mutex
> > - mediatek,mt8186-disp-mutex
> > + - mediatek,mt8188-disp-mutex
> > - mediatek,mt8192-disp-mutex
> > - mediatek,mt8195-disp-mutex
> >
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/4] dt-bindings: mediatek: modify VDOSYS0 device tree Documentations for MT8188
2022-08-23 12:51 ` [PATCH v1 1/4] dt-bindings: mediatek: modify VDOSYS0 device tree Documentations for MT8188 Krzysztof Kozlowski
@ 2022-09-06 2:32 ` Nathan Lu
0 siblings, 0 replies; 4+ messages in thread
From: Nathan Lu @ 2022-09-06 2:32 UTC (permalink / raw)
To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski,
Chun-Kuang Hu, Philipp Zabel, David Airlie, Daniel Vetter,
Maxime Coquelin, Alexandre Torgue, Matthias Brugger
Cc: jason-jh . lin, CK Hu, AngeloGioacchino Del Regno, Rex-BC Chen,
Enric Balletbo i Serra, Moudy Ho, devicetree, linux-kernel,
dri-devel, linux-mediatek, linux-stm32, linux-arm-kernel,
srv_heupstream, wsd_upstream, lancelot.wu
Hi Krzysztof,
Thanks for your review, and appreciate for all comments and sugestions.
I misunderstanding enum and const usage.
I'll add another item for mt8188 at next version.
On Tue, 2022-08-23 at 15:51 +0300, Krzysztof Kozlowski wrote:
> On 22/08/2022 06:32, nathan.lu wrote:
> > From: Nathan Lu <nathan.lu@mediatek.com>
> >
> > modify VDOSYS0 device tree Documentations for MT8188.
>
> (...)
>
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > yaml
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > yaml
> > index 0882ae86e6c4..d0e6c0dd4dfb 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > yaml
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.
> > yaml
> > @@ -30,6 +30,8 @@ properties:
> > - items:
> > - const: mediatek,mt8183-disp-rdma
> > - items:
> > + - enum:
> > + - mediatek,mt8188-disp-rdma
> > - const: mediatek,mt8195-disp-rdma
>
> Why do you change existing bindings?
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 4/4] drm/mediatek: add mediatek-drm of vdosys0 support for mt8188
[not found] ` <805b7dd82e86e6c2297a5ffbd23be2c568ca29b3.camel@mediatek.com>
@ 2022-09-06 2:39 ` Nathan Lu
0 siblings, 0 replies; 4+ messages in thread
From: Nathan Lu @ 2022-09-06 2:39 UTC (permalink / raw)
To: CK Hu, Rob Herring, Krzysztof Kozlowski, Chun-Kuang Hu,
Philipp Zabel, David Airlie, Daniel Vetter, Maxime Coquelin,
Alexandre Torgue, Matthias Brugger
Cc: jason-jh . lin, AngeloGioacchino Del Regno, Rex-BC Chen,
Enric Balletbo i Serra, Moudy Ho, devicetree, linux-kernel,
dri-devel, linux-mediatek, linux-stm32, linux-arm-kernel,
srv_heupstream, wsd_upstream, lancelot.wu, amy zhang
Hi CK,
Thanks for your review, and appreciate for all comments and sugestions.
I'll remove io_start variable at next version.
It will be upstream with vdosys1 patch later.
On Mon, 2022-08-22 at 13:50 +0800, CK Hu wrote:
> Hi, Nathan:
>
> On Mon, 2022-08-22 at 11:32 +0800, nathan.lu wrote:
> > From: Nathan Lu <nathan.lu@mediatek.com>
> >
> > add driver data of mt8188 vdosys0 to mediatek-drm and the sub
> > driver.
> >
> > Signed-off-by: amy zhang <Amy.Zhang@mediatek.com>
> > Signed-off-by: Nathan Lu <nathan.lu@mediatek.com>
> > ---
> > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30
> > ++++++++++++++++++++++++++
> > 1 file changed, 30 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > index d72263c8a621..260514006093 100644
> > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > @@ -178,6 +178,18 @@ static const unsigned int mt8186_mtk_ddp_ext[]
> > =
> > {
> > DDP_COMPONENT_DPI0,
> > };
> >
> > +static const unsigned int mt8188_mtk_ddp_main[] = {
> > + DDP_COMPONENT_OVL0,
> > + DDP_COMPONENT_RDMA0,
> > + DDP_COMPONENT_COLOR0,
> > + DDP_COMPONENT_CCORR,
> > + DDP_COMPONENT_AAL0,
> > + DDP_COMPONENT_GAMMA,
> > + DDP_COMPONENT_POSTMASK0,
> > + DDP_COMPONENT_DITHER0,
> > + DDP_COMPONENT_DP_INTF0,
> > +};
> > +
> > static const unsigned int mt8192_mtk_ddp_main[] = {
> > DDP_COMPONENT_OVL0,
> > DDP_COMPONENT_OVL_2L0,
> > @@ -323,6 +335,20 @@ static const struct mtk_mmsys_match_data
> > mt8186_mmsys_match_data = {
> > },
> > };
> >
> > +static const struct mtk_mmsys_driver_data
> > mt8188_vdosys0_driver_data
> > = {
> > + .io_start = 0x1c01d000,
>
> For only one mmsys, it's not necessary to set io_start.
>
> Regards,
> CK
>
> > + .main_path = mt8188_mtk_ddp_main,
> > + .main_len = ARRAY_SIZE(mt8188_mtk_ddp_main),
> > + .mmsys_dev_num = 1,
> > +};
> > +
> > +static const struct mtk_mmsys_match_data mt8188_mmsys_match_data =
> > {
> > + .num_drv_data = 1,
> > + .drv_data = {
> > + &mt8188_vdosys0_driver_data,
> > + },
> > +};
> > +
> > static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data
> > =
> > {
> > .main_path = mt8192_mtk_ddp_main,
> > .main_len = ARRAY_SIZE(mt8192_mtk_ddp_main),
> > @@ -376,6 +402,8 @@ static const struct of_device_id
> > mtk_drm_of_ids[]
> > = {
> > .data = &mt8183_mmsys_match_data},
> > { .compatible = "mediatek,mt8186-mmsys",
> > .data = &mt8186_mmsys_match_data},
> > + { .compatible = "mediatek,mt8188-mmsys",
> > + .data = &mt8188_mmsys_match_data},
> > { .compatible = "mediatek,mt8192-mmsys",
> > .data = &mt8192_mmsys_match_data},
> > { .compatible = "mediatek,mt8195-mmsys",
> > @@ -734,6 +762,8 @@ static const struct of_device_id
> > mtk_ddp_comp_dt_ids[] = {
> > .data = (void *)MTK_DISP_MUTEX },
> > { .compatible = "mediatek,mt8186-disp-mutex",
> > .data = (void *)MTK_DISP_MUTEX },
> > + { .compatible = "mediatek,mt8188-disp-mutex",
> > + .data = (void *)MTK_DISP_MUTEX },
> > { .compatible = "mediatek,mt8192-disp-mutex",
> > .data = (void *)MTK_DISP_MUTEX },
> > { .compatible = "mediatek,mt8195-disp-mutex",
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-06 2:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20220822033213.15769-1-nathan.lu@mediatek.com>
[not found] ` <20220822033213.15769-2-nathan.lu@mediatek.com>
2022-08-23 12:51 ` [PATCH v1 1/4] dt-bindings: mediatek: modify VDOSYS0 device tree Documentations for MT8188 Krzysztof Kozlowski
2022-09-06 2:32 ` Nathan Lu
[not found] ` <b0866ca8d749cd06f7b10b2f6eb44bf79d52dafb.camel@mediatek.com>
2022-09-06 2:28 ` Nathan Lu
[not found] ` <20220822033213.15769-5-nathan.lu@mediatek.com>
[not found] ` <805b7dd82e86e6c2297a5ffbd23be2c568ca29b3.camel@mediatek.com>
2022-09-06 2:39 ` [PATCH v1 4/4] drm/mediatek: add mediatek-drm of vdosys0 support for mt8188 Nathan Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).