diff mbox series

[v1,01/17] dt-bindings: mediatek: add definition for mt8195 display

Message ID 20210707041249.29816-2-jason-jh.lin@mediatek.com (mailing list archive)
State New, archived
Headers show
Series Add MediaTek SoC DRM (vdosys0) support for mt8195 | expand

Commit Message

Jason-JH Lin (林睿祥) July 7, 2021, 4:12 a.m. UTC
Add definition for mt8195 display and add DSC module description.

Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
---
 .../bindings/display/mediatek/mediatek,disp.txt     | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Comments

CK Hu (胡俊光) July 7, 2021, 4:33 a.m. UTC | #1
Hi, Jason:


On Wed, 2021-07-07 at 12:12 +0800, jason-jh.lin wrote:
> Add definition for mt8195 display and add DSC module description.

Break this patch to two patch. One is mt8195 display, another one is DSC
and describe more about what is DSC.

Regards,
CK

> 
> Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
> ---
>  .../bindings/display/mediatek/mediatek,disp.txt     | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt
> index fbb59c9ddda6..a5859e7883d5 100644
> --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt
> +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt
> @@ -37,6 +37,7 @@ Required properties (all function blocks):
>  	"mediatek,<chip>-disp-aal"   		- adaptive ambient light controller
>  	"mediatek,<chip>-disp-gamma" 		- gamma correction
>  	"mediatek,<chip>-disp-merge" 		- merge streams from two RDMA sources
> +	"mediatek,<chip>-disp-dsc"		- compressing / decompressing image display streams
>  	"mediatek,<chip>-disp-postmask" 	- control round corner for display frame
>  	"mediatek,<chip>-disp-split" 		- split stream to two encoders
>  	"mediatek,<chip>-disp-ufoe"  		- data compression engine
> @@ -44,7 +45,7 @@ Required properties (all function blocks):
>  	"mediatek,<chip>-dpi"        		- DPI controller, see mediatek,dpi.txt
>  	"mediatek,<chip>-disp-mutex" 		- display mutex
>  	"mediatek,<chip>-disp-od"    		- overdrive
> -  the supported chips are mt2701, mt7623, mt2712, mt8167, mt8173, mt8183 and mt8192.
> +  the supported chips are mt2701, mt7623, mt2712, mt8167, mt8173, mt8183, mt8192 and mt8195.
>  - reg: Physical base address and length of the function block register space
>  - interrupts: The interrupt signal from the function block (required, except for
>    merge and split function blocks).
> @@ -60,7 +61,7 @@ Required properties (DMA function blocks):
>  	"mediatek,<chip>-disp-ovl"
>  	"mediatek,<chip>-disp-rdma"
>  	"mediatek,<chip>-disp-wdma"
> -  the supported chips are mt2701, mt8167 and mt8173.
> +  the supported chips are mt2701, mt8167, mt8173 and mt8195.
>  - larb: Should contain a phandle pointing to the local arbiter device as defined
>    in Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
>  - iommus: Should point to the respective IOMMU block with master port as
> @@ -195,6 +196,14 @@ ufoe@1401a000 {
>  	clocks = <&mmsys CLK_MM_DISP_UFOE>;
>  };
>  
> +dsc0@1c009000 {
> +	compatible = "mediatek,mt8195-disp-dsc";
> +	reg = <0 0x1c009000 0 0x1000>;
> +	interrupts = <GIC_SPI 645 IRQ_TYPE_LEVEL_HIGH>;
> +	power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>;
> +	clocks = <&mmsys CLK_VDO0_DSC_WRAP0>;
> +};
> +
>  dsi0: dsi@1401b000 {
>  	/* See mediatek,dsi.txt for details */
>  };
Jason-JH Lin (林睿祥) July 10, 2021, 6:57 a.m. UTC | #2
Hi CK,

OK, I'll resend this at the next version.

Regard,
Jason-JH.Lin


On Wed, 2021-07-07 at 12:33 +0800, CK Hu wrote:
> Hi, Jason:
> 
> 
> On Wed, 2021-07-07 at 12:12 +0800, jason-jh.lin wrote:
> > Add definition for mt8195 display and add DSC module description.
> 
> Break this patch to two patch. One is mt8195 display, another one is
> DSC
> and describe more about what is DSC.
> 
> Regards,
> CK
> 
> > 
> > Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
> > ---
> >  .../bindings/display/mediatek/mediatek,disp.txt     | 13
> > +++++++++++--
> >  1 file changed, 11 insertions(+), 2 deletions(-)
> > 
> > diff --git
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.
> > txt
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.
> > txt
> > index fbb59c9ddda6..a5859e7883d5 100644
> > ---
> > a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.
> > txt
> > +++
> > b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.
> > txt
> > @@ -37,6 +37,7 @@ Required properties (all function blocks):
> >  	"mediatek,<chip>-disp-aal"   		- adaptive ambient
> > light controller
> >  	"mediatek,<chip>-disp-gamma" 		- gamma correction
> >  	"mediatek,<chip>-disp-merge" 		- merge streams
> > from two RDMA sources
> > +	"mediatek,<chip>-disp-dsc"		- compressing /
> > decompressing image display streams
> >  	"mediatek,<chip>-disp-postmask" 	- control round corner for
> > display frame
> >  	"mediatek,<chip>-disp-split" 		- split stream to
> > two encoders
> >  	"mediatek,<chip>-disp-ufoe"  		- data compression
> > engine
> > @@ -44,7 +45,7 @@ Required properties (all function blocks):
> >  	"mediatek,<chip>-dpi"        		- DPI controller,
> > see mediatek,dpi.txt
> >  	"mediatek,<chip>-disp-mutex" 		- display mutex
> >  	"mediatek,<chip>-disp-od"    		- overdrive
> > -  the supported chips are mt2701, mt7623, mt2712, mt8167, mt8173,
> > mt8183 and mt8192.
> > +  the supported chips are mt2701, mt7623, mt2712, mt8167, mt8173,
> > mt8183, mt8192 and mt8195.
> >  - reg: Physical base address and length of the function block
> > register space
> >  - interrupts: The interrupt signal from the function block
> > (required, except for
> >    merge and split function blocks).
> > @@ -60,7 +61,7 @@ Required properties (DMA function blocks):
> >  	"mediatek,<chip>-disp-ovl"
> >  	"mediatek,<chip>-disp-rdma"
> >  	"mediatek,<chip>-disp-wdma"
> > -  the supported chips are mt2701, mt8167 and mt8173.
> > +  the supported chips are mt2701, mt8167, mt8173 and mt8195.
> >  - larb: Should contain a phandle pointing to the local arbiter
> > device as defined
> >    in Documentation/devicetree/bindings/memory-
> > controllers/mediatek,smi-larb.yaml
> >  - iommus: Should point to the respective IOMMU block with master
> > port as
> > @@ -195,6 +196,14 @@ ufoe@1401a000 {
> >  	clocks = <&mmsys CLK_MM_DISP_UFOE>;
> >  };
> >  
> > +dsc0@1c009000 {
> > +	compatible = "mediatek,mt8195-disp-dsc";
> > +	reg = <0 0x1c009000 0 0x1000>;
> > +	interrupts = <GIC_SPI 645 IRQ_TYPE_LEVEL_HIGH>;
> > +	power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>;
> > +	clocks = <&mmsys CLK_VDO0_DSC_WRAP0>;
> > +};
> > +
> >  dsi0: dsi@1401b000 {
> >  	/* See mediatek,dsi.txt for details */
> >  };
> 
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt
index fbb59c9ddda6..a5859e7883d5 100644
--- a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt
+++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt
@@ -37,6 +37,7 @@  Required properties (all function blocks):
 	"mediatek,<chip>-disp-aal"   		- adaptive ambient light controller
 	"mediatek,<chip>-disp-gamma" 		- gamma correction
 	"mediatek,<chip>-disp-merge" 		- merge streams from two RDMA sources
+	"mediatek,<chip>-disp-dsc"		- compressing / decompressing image display streams
 	"mediatek,<chip>-disp-postmask" 	- control round corner for display frame
 	"mediatek,<chip>-disp-split" 		- split stream to two encoders
 	"mediatek,<chip>-disp-ufoe"  		- data compression engine
@@ -44,7 +45,7 @@  Required properties (all function blocks):
 	"mediatek,<chip>-dpi"        		- DPI controller, see mediatek,dpi.txt
 	"mediatek,<chip>-disp-mutex" 		- display mutex
 	"mediatek,<chip>-disp-od"    		- overdrive
-  the supported chips are mt2701, mt7623, mt2712, mt8167, mt8173, mt8183 and mt8192.
+  the supported chips are mt2701, mt7623, mt2712, mt8167, mt8173, mt8183, mt8192 and mt8195.
 - reg: Physical base address and length of the function block register space
 - interrupts: The interrupt signal from the function block (required, except for
   merge and split function blocks).
@@ -60,7 +61,7 @@  Required properties (DMA function blocks):
 	"mediatek,<chip>-disp-ovl"
 	"mediatek,<chip>-disp-rdma"
 	"mediatek,<chip>-disp-wdma"
-  the supported chips are mt2701, mt8167 and mt8173.
+  the supported chips are mt2701, mt8167, mt8173 and mt8195.
 - larb: Should contain a phandle pointing to the local arbiter device as defined
   in Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
 - iommus: Should point to the respective IOMMU block with master port as
@@ -195,6 +196,14 @@  ufoe@1401a000 {
 	clocks = <&mmsys CLK_MM_DISP_UFOE>;
 };
 
+dsc0@1c009000 {
+	compatible = "mediatek,mt8195-disp-dsc";
+	reg = <0 0x1c009000 0 0x1000>;
+	interrupts = <GIC_SPI 645 IRQ_TYPE_LEVEL_HIGH>;
+	power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>;
+	clocks = <&mmsys CLK_VDO0_DSC_WRAP0>;
+};
+
 dsi0: dsi@1401b000 {
 	/* See mediatek,dsi.txt for details */
 };