Message ID | 20230411120810.368437-1-biju.das.jz@bp.renesas.com |
---|---|
Headers | show |
Series | Add RZ/{G2L,G2LC} and RZ/V2L DU support | expand |
On Tue, 11 Apr 2023 13:08:04 +0100, Biju Das wrote: > Document DU found in RZ/V2L SoC. The DU block is identical to RZ/G2L > SoC and therefore use RZ/G2L fallback to avoid any driver changes. > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > --- > v7: > * New patch. > --- > .../devicetree/bindings/display/renesas,rzg2l-du.yaml | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > Reviewed-by: Rob Herring <robh@kernel.org>
Hi Biju, On Tue, Apr 11, 2023 at 2:08 PM Biju Das <biju.das.jz@bp.renesas.com> wrote: > Add support for RZ/V2L DU. The RZ/V2L DU block is identical to > RZ/G2L SoC. > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > --- > v7: > * New patch. Thanks for your patch! > --- a/drivers/gpu/drm/rcar-du/rzg2l_du_drv.c > +++ b/drivers/gpu/drm/rcar-du/rzg2l_du_drv.c > @@ -53,6 +53,7 @@ static const struct rcar_du_device_info rzg2l_du_r9a07g044_info = { > > static const struct of_device_id rzg2l_du_of_table[] = { > { .compatible = "renesas,r9a07g044-du", .data = &rzg2l_du_r9a07g044_info }, > + { .compatible = "renesas,r9a07g054-du", .data = &rzg2l_du_r9a07g044_info }, > { /* sentinel */ } So this change implies no fallback compatible value, OK. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert
Hi Biju, On Tue, Apr 11, 2023 at 2:12 PM Biju Das <biju.das.jz@bp.renesas.com> wrote: > Add DU node to RZ/V2L SoC DTSI. > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > --- > v7: > * New patch. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> > --- a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi > +++ b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi > @@ -677,6 +677,20 @@ fcpvd: fcp@10880000 { > resets = <&cpg R9A07G054_LCDC_RESET_N>; > }; > > + du: display@10890000 { > + compatible = "renesas,r9a07g054-du"; I think you have to make your mind up about using a fallback compatible value or not. As the VSP has one, I think the DU should have one, too. > + reg = <0 0x10890000 0 0x10000>; > + interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&cpg CPG_MOD R9A07G054_LCDC_CLK_A>, > + <&cpg CPG_MOD R9A07G054_LCDC_CLK_P>, > + <&cpg CPG_MOD R9A07G054_LCDC_CLK_D>; > + clock-names = "aclk", "pclk", "vclk"; > + power-domains = <&cpg>; > + resets = <&cpg R9A07G054_LCDC_RESET_N>; > + renesas,vsps = <&vspd 0>; > + status = "disabled"; > + }; > + > cpg: clock-controller@11010000 { > compatible = "renesas,r9a07g054-cpg"; > reg = <0 0x11010000 0 0x10000>; Gr{oetje,eeting}s, Geert
Hi Geert, Thanks for the feedback. > Subject: Re: [PATCH v7 2/8] dt-bindings: display: renesas,rzg2l-du: Document > RZ/V2L DU bindings > > Hi Biju, > > On Tue, Apr 11, 2023 at 2:11 PM Biju Das <biju.das.jz@bp.renesas.com> wrote: > > Document DU found in RZ/V2L SoC. The DU block is identical to RZ/G2L > > SoC and therefore use RZ/G2L fallback to avoid any driver changes. > > > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> > > --- > > v7: > > * New patch. > > Thanks for your patch! > > > --- a/Documentation/devicetree/bindings/display/renesas,rzg2l-du.yaml > > +++ b/Documentation/devicetree/bindings/display/renesas,rzg2l-du.yaml > > @@ -16,8 +16,13 @@ description: | > > > > properties: > > compatible: > > - enum: > > - - renesas,r9a07g044-du # RZ/G2{L,LC} > > + oneOf: > > + - enum: > > + - renesas,r9a07g044-du # RZ/G2{L,LC} > > + - items: > > + - enum: > > + - renesas,r9a07g054-vsp2 # RZ/V2L > > + - const: renesas,r9a07g044-vsp2 # RZ/G2L fallback > > "*-vsp2", really? ;-) > > And with s/vsp2/du/, it doesn't match patch 6/8, where you use > "renesas,r9a07g054-du" without the fallback. Oops, Typo. Copy paste error from vsp2. OK, will use compatible r9a07g044-du as fallback in 6/8 and in driver. as both G2L and V2L supports either DSI or DPI. Cheers, Biju