File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
Documentation/devicetree/bindings/display/mediatek Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ output bus.
7
7
8
8
Required properties:
9
9
- compatible: "mediatek,<chip>-dpi"
10
+ the supported chips are mt2701 , mt8173 and mt8183.
10
11
- reg: Physical base address and length of the controller's registers
11
12
- interrupts: The interrupt signal from the function block.
12
13
- clocks: device clocks
Original file line number Diff line number Diff line change @@ -5629,7 +5629,7 @@ F: include/uapi/drm/lima_drm.h
5629
5629
T: git git://anongit.freedesktop.org/drm/drm-misc
5630
5630
5631
5631
DRM DRIVERS FOR MEDIATEK
5632
- M: CK Hu <ck .hu@mediatek.com >
5632
+ M: Chun-Kuang Hu <chunkuang .hu@kernel.org >
5633
5633
M: Philipp Zabel <
[email protected] >
5634
5634
5635
5635
S: Supported
Original file line number Diff line number Diff line change @@ -664,6 +664,16 @@ static unsigned int mt2701_calculate_factor(int clock)
664
664
return 1 ;
665
665
}
666
666
667
+ static unsigned int mt8183_calculate_factor (int clock )
668
+ {
669
+ if (clock <= 27000 )
670
+ return 8 ;
671
+ else if (clock <= 167000 )
672
+ return 4 ;
673
+ else
674
+ return 2 ;
675
+ }
676
+
667
677
static const struct mtk_dpi_conf mt8173_conf = {
668
678
.cal_factor = mt8173_calculate_factor ,
669
679
.reg_h_fre_con = 0xe0 ,
@@ -675,6 +685,11 @@ static const struct mtk_dpi_conf mt2701_conf = {
675
685
.edge_sel_en = true,
676
686
};
677
687
688
+ static const struct mtk_dpi_conf mt8183_conf = {
689
+ .cal_factor = mt8183_calculate_factor ,
690
+ .reg_h_fre_con = 0xe0 ,
691
+ };
692
+
678
693
static int mtk_dpi_probe (struct platform_device * pdev )
679
694
{
680
695
struct device * dev = & pdev -> dev ;
@@ -770,6 +785,9 @@ static const struct of_device_id mtk_dpi_of_ids[] = {
770
785
{ .compatible = "mediatek,mt8173-dpi" ,
771
786
.data = & mt8173_conf ,
772
787
},
788
+ { .compatible = "mediatek,mt8183-dpi" ,
789
+ .data = & mt8183_conf ,
790
+ },
773
791
{ },
774
792
};
775
793
You can’t perform that action at this time.
0 commit comments