[PATCH v7 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-10-11 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c

[PATCH v7 5/5] drm/mediatek: config mipitx impedance with calibration data

2019-09-20 Thread Jitao Shi
Config mipitx impedance with calibration data to make sure their impedance are 100ohm. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1 + drivers/gpu/drm/mediatek/mtk_mt8183_mipi_tx.c | 63 +++ 2 files changed, 64 insertions(+) diff --git

[PATCH v7 3/5] drm/mediatek: add mipi_tx driver for mt8183

2019-09-20 Thread Jitao Shi
This patch add mt8183 mipi_tx driver. And also support other chips that use the same binding and driver. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1

[PATCH v7 4/5] drm/mediatek: add the mipitx driving control in device tree

2019-09-20 Thread Jitao Shi
Add a property in device tree to control the driving by different board. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 6 ++ drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1 + drivers/gpu/drm/mediatek/mtk_mt8183_mipi_tx.c | 7 +++ 3 files changed, 14

[PATCH v7 0/5] Support mipitx for mt8183

2019-09-20 Thread Jitao Shi
- update dt-bindings document for mt8183 mipitx. - remove mtk_mipitx_clk_get_ops and assign clk_ops in probe. - fix the lincence - remove txdiv1 from mtk_mipi_tx_pll_prepare Jitao Shi (5): dt-bindings: display: mediatek: update dsi supported chips drm/mediatek: separate mipi_tx to different fil

[PATCH v7 2/5] drm/mediatek: separate mipi_tx to different file

2019-09-20 Thread Jitao Shi
Different IC has different mipi_tx setting of dsi. This patch separates the mipi_tx hardware relate part for mt8173. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 336

[PATCH v7 1/5] dt-bindings: display: mediatek: update dsi supported chips

2019-09-20 Thread Jitao Shi
Update device tree binding documentation for the dsi for Mediatek MT8183 SoCs. Signed-off-by: Jitao Shi Acked-by: Rob Herring --- .../bindings/display/mediatek/mediatek,dsi.txt| 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree

[PATCH v7 8/9] drm: mediatek: adjust dsi and mipi_tx probe sequence

2019-09-19 Thread Jitao Shi
mtk_mipi_tx is the phy of mtk_dsi. mtk_dsi get the phy(mtk_mipi_tx) in probe(). So, mtk_mipi_tx init should be ahead of mtk_dsi. Or mtk_dsi will defer to wait mtk_mipi_tx probe done. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- 1 file changed

[PATCH v7 9/9] drm/mediatek: add dphy reset after setting lanes number

2019-09-19 Thread Jitao Shi
Add dphy reset after setting lanes number to avoid dphy fifo effor. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index b02373b04848

[PATCH v7 7/9] drm/mediatek: change the dsi phytiming calculate method

2019-09-19 Thread Jitao Shi
- data_phy_cycles * lanes - 12; Note: //(2: 1 for sync, 1 for phy idle) data_phy_cycles = T_hs_exit + T_lpx + T_hs_prepare + T_hs_zero + 2; bpp: bit per pixel Signed-off-by: Jitao Shi Tested-by: Ryan Case --- drivers/gpu/drm/mediatek/mtk_dsi.c | 118 - 1 file

[PATCH v7 5/9] drm/mediatek: add frame size control

2019-09-19 Thread Jitao Shi
Our new DSI chip has frame size control. So add the driver data to control for different chips. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm

[PATCH v7 6/9] drm/mediatek: add mt8183 dsi driver support

2019-09-19 Thread Jitao Shi
Add mt8183 dsi driver data. Enable size control and reg commit control. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[PATCH v7 4/9] drm/mediatek: add dsi reg commit disable control

2019-09-19 Thread Jitao Shi
-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index ac8e80e379f7..314bfb1c827b 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b

[PATCH v7 3/9] drm/mediatek: replace writeb() with mtk_dsi_mask()

2019-09-19 Thread Jitao Shi
The writeb() is unavailable in mt8173. Because the mt8173 dsi module doesn't support 8bit mode access. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm

[PATCH v7 2/9] drm/mediatek: fixes CMDQ reg address of mt8173 is different with mt2701

2019-09-19 Thread Jitao Shi
Config the different CMDQ reg address in driver data. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[PATCH v7 1/9] drm/mediatek: move mipi_dsi_host_register to probe

2019-09-19 Thread Jitao Shi
DSI panel driver need attach function which is inculde in mipi_dsi_host_ops. If mipi_dsi_host_register is not in probe, dsi panel will probe more delay. So move the mipi_dsi_host_register to probe from bind. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c

[PATCH v7 0/9] Support dsi for mt8183

2019-09-19 Thread Jitao Shi
obe - remove DSI_CMDW0 in "CMDQ reg address of mt8173 is different with mt2701" Jitao Shi (9): drm/mediatek: move mipi_dsi_host_register to probe drm/mediatek: fixes CMDQ reg address of mt8173 is different with mt2701 drm/mediatek: replace writeb() with mtk_dsi_mask() drm/media

[PATCH v6 4/8] drm/panel: support for auo, kd101n80-45na wuxga dsi video mode panel

2019-09-18 Thread Jitao Shi
Auo,kd101n80-45na's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,kd101n80-45na and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 6 +- .../gpu/drm/panel

[PATCH v6 7/8] dt-bindings: display: panel: add AUO auo, b101uan08.3 panel documentation

2019-09-18 Thread Jitao Shi
Add dcumentation for auo,b101uan08.3, which is mipi dsi video panel and resolution is 1200x1920. Signed-off-by: Jitao Shi --- .../display/panel/auo,b101uan08.3.yaml| 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display

[PATCH v6 8/8] drm/panel: support for auo, b101uan08.3 wuxga dsi video mode panel

2019-09-18 Thread Jitao Shi
Auo,auo,b101uan08.3's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,b101uan08.3 and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 78 +++ 1

[PATCH v6 3/8] dt-bindings: display: panel: add auo kd101n80-45na panel bindings

2019-09-18 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/auo,kd101n80-45na.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80

[PATCH v6 5/8] dt-bindings: display: panel: add boe tv101wum-n53 panel documentation

2019-09-18 Thread Jitao Shi
Add dcumentation for boe,tv101wum-n53, which is mipi dsi video panel and resolution is 1200x1920. Signed-off-by: Jitao Shi --- .../display/panel/boe,tv101wum-n53.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display

[PATCH v6 6/8] drm/panel: support for boe, tv101wum-n53 wuxga dsi video mode panel

2019-09-18 Thread Jitao Shi
Boe,tv101wum-n53's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So boe,tv101wum-n53 and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 31 +++ 1

[PATCH v6 0/8] add driver for "boe, tv101wum-nl6", "boe, tv101wum-n53", "auo, kd101n80-45na" and "auo, b101uan08.3" panels

2019-09-18 Thread Jitao Shi
ode and panel info in driver data. - merge auo,kd101n80-45a and boe,tv101wum-nl6 in one driver Jitao Shi (8): dt-bindings: display: panel: Add BOE tv101wum-n16 panel bindings drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel dt-bindings: display: panel: add auo kd101n80-45na pa

[PATCH v6 1/8] dt-bindings: display: panel: Add BOE tv101wum-n16 panel bindings

2019-09-18 Thread Jitao Shi
Add documentation for boe tv101wum-n16 panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/boe,tv101wum-nl6.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6

[PATCH v6 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-09-18 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c

[PATCH v5 5/8] dt-bindings: display: panel: add boe tv101wum-n53 panel documentation

2019-09-15 Thread Jitao Shi
Add dcumentation for boe,tv101wum-n53, which is mipi dsi video panel and resolution is 1200x1920. Signed-off-by: Jitao Shi --- .../display/panel/boe,tv101wum-n53.txt| 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display

[PATCH v5 8/8] drm/panel: support for auo,b101uan08.3 wuxga dsi video mode panel

2019-09-15 Thread Jitao Shi
Auo,auo,b101uan08.3's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,b101uan08.3 and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 78 +++ 1

[PATCH v5 7/8] dt-bindings: display: panel: add AUO auo,b101uan08.3 panel documentation

2019-09-15 Thread Jitao Shi
Add dcumentation for auo,b101uan08.3, which is mipi dsi video panel and resolution is 1200x1920. Signed-off-by: Jitao Shi --- .../display/panel/auo,b101uan08.3.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display

[PATCH v5 4/8] drm/panel: support for auo, kd101n80-45na wuxga dsi video mode panel

2019-09-15 Thread Jitao Shi
Auo,kd101n80-45na's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,kd101n80-45na and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 6 +- .../gpu/drm/panel

[PATCH v5 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-09-15 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c

[PATCH v5 1/8] dt-bindings: display: panel: Add BOE tv101wum-n16 panel bindings

2019-09-15 Thread Jitao Shi
Add documentation for boe tv101wum-n16 panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/boe,tv101wum-nl6.txt| 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6

[PATCH v5 6/8] drm/panel: support for boe, tv101wum-n53 wuxga dsi video mode panel

2019-09-15 Thread Jitao Shi
Boe,tv101wum-n53's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So boe,tv101wum-n53 and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 31 +++ 1

[PATCH v5 3/8] dt-bindings: display: panel: add auo kd101n80-45na panel bindings

2019-09-15 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/auo,kd101n80-45na.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80

[PATCH v5 0/8] add driver for boe, tv101wum-nl6, boe, tv101wum-n53, auo, kd101n80-45na and auo, b101uan08.3 panels

2019-09-15 Thread Jitao Shi
- move auo,kd101n80-45na panel driver in this series. Changes since v1: - update typo nl6 -> n16. - update new panel config and makefile are added in alphabetically order. - add the panel mode and panel info in driver data. - merge auo,kd101n80-45a and boe,tv101wum-nl6 in one driver Jitao

[PATCH 3/3] drm/panel: panel-innolux: Add support for P097PFZ behind SSD2858

2019-09-12 Thread Jitao Shi
Add driver to setup P097PFZ behing SSD2858 (4 to 8 lanes bridge). Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 103 +- 1 file changed, 102 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm

[PATCH 1/3] drm/panel: panel-innolux: Allow 2 reset pins for panel

2019-09-12 Thread Jitao Shi
This is useful when there is a bridge between the SoC and the panel. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 39 --- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu

[PATCH 2/3] dt-bindings: display: Add documentation for innolux, p097pfg_ssd2858 panel

2019-09-12 Thread Jitao Shi
This adds documentation for innolux,p097pfg panel with bridge chip ssd2858. Signed-off-by: Jitao Shi --- .../display/panel/innolux,p097pfg_ssd2858.txt | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/innolux

[PATCH 0/3] add panel driver for innolux,p097pfg with ssd2825 bridge

2019-09-12 Thread Jitao Shi
Add driver to support panel innolux,p097pfg with bridge ssd2858. SSD2858 can spilt dsi 4 lanes to 8 lanes. Jitao Shi (3): drm/panel: panel-innolux: Allow 2 reset pins for panel dt-bindings: display: Add documentation for innolux,p097pfg_ssd2858 panel drm/panel: panel-innolux: Add

[PATCH v6 7/7] drm: mediatek: adjust dsi and mipi_tx probe sequence

2019-08-11 Thread Jitao Shi
mtk_mipi_tx is the phy of mtk_dsi. mtk_dsi get the phy(mtk_mipi_tx) in probe(). So, mtk_mipi_tx init should be ahead of mtk_dsi. Or mtk_dsi will defer to wait mtk_mipi_tx probe done. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- 1 file changed

[PATCH v6 1/7] drm/mediatek: move mipi_dsi_host_register to probe

2019-08-11 Thread Jitao Shi
DSI panel driver need attach function which is inculde in mipi_dsi_host_ops. If mipi_dsi_host_register is not in probe, dsi panel will probe more delay. So move the mipi_dsi_host_register to probe from bind. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c

[PATCH v6 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-08-11 Thread Jitao Shi
- data_phy_cycles * lanes - 12; Note: //(2: 1 for sync, 1 for phy idle) data_phy_cycles = T_hs_exit + T_lpx + T_hs_prepare + T_hs_zero + 2; bpp: bit per pixel Signed-off-by: Jitao Shi Tested-by: Ryan Case --- drivers/gpu/drm/mediatek/mtk_dsi.c | 118 - 1 file

[PATCH v6 4/7] drm/mediatek: add frame size control

2019-08-11 Thread Jitao Shi
Our new DSI chip has frame size control. So add the driver data to control for different chips. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm

[PATCH v6 2/7] drm/mediatek: fixes CMDQ reg address of mt8173 is different with mt2701

2019-08-11 Thread Jitao Shi
Config the different CMDQ reg address in driver data. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[PATCH v6 3/7] drm/mediatek: add dsi reg commit disable control

2019-08-11 Thread Jitao Shi
-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index ac8e80e379f7..314bfb1c827b 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b

[PATCH v6 5/7] drm/mediatek: add mt8183 dsi driver support

2019-08-11 Thread Jitao Shi
Add mt8183 dsi driver data. Enable size control and reg commit control. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[PATCH v6 0/7] Support dsi for mt8183

2019-08-11 Thread Jitao Shi
v1: - separate frame size and reg commit control independent patches. - fix some return values in probe - remove DSI_CMDW0 in "CMDQ reg address of mt8173 is different with mt2701" Jitao Shi (7): drm/mediatek: move mipi_dsi_host_register to probe drm/mediatek: fixes CMDQ reg addr

[PATCH v4 1/4] dt-bindings: display: panel: Add BOE tv101wum-n16 panel bindings

2019-08-11 Thread Jitao Shi
Add documentation for boe tv101wum-n16 panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/boe,tv101wum-nl6.txt| 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6

[PATCH v4 0/4] Add drivers for auo, kd101n80-45na and boe, tv101wum-nl6 panels

2019-08-11 Thread Jitao Shi
ate new panel config and makefile are added in alphabetically order. - add the panel mode and panel info in driver data. - merge auo,kd101n80-45a and boe,tv101wum-nl6 in one driver Jitao Shi (4): dt-bindings: display: panel: Add BOE tv101wum-n16 panel bindings drm/panel: support for BOE tv101

[PATCH wn 2/4] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-08-11 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c

[PATCH wn 3/4] dt-bindings: display: panel: add auo kd101n80-45na panel bindings

2019-08-11 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/auo,kd101n80-45na.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80

[PATCH wn 4/4] drm/panel: support for auo,kd101n80-45na wuxga dsi video mode panel

2019-08-11 Thread Jitao Shi
Auo,kd101n80-45na's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,kd101n80-45na and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 6 +- .../gpu/drm/panel

[PATCH v6 2/3] drm/mediatek: separate mipi_tx to different file

2019-08-07 Thread Jitao Shi
Different IC has different mipi_tx setting of dsi. This patch separates the mipi_tx hardware relate part for mt8173. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 336

[PATCH v6 0/3] Support mipitx for mt8183

2019-08-07 Thread Jitao Shi
ence - remove txdiv1 from mtk_mipi_tx_pll_prepare Jitao Shi (3): dt-bindings: display: mediatek: update dsi supported chips drm/mediatek: separate mipi_tx to different file drm/mediatek: add mipi_tx driver for mt8183 .../display/mediatek/mediatek,dsi.txt | 4 +- drivers/gpu/

[PATCH v6 1/3] dt-bindings: display: mediatek: update dsi supported chips

2019-08-07 Thread Jitao Shi
Update device tree binding documentation for the dsi for Mediatek MT8183 SoCs. Signed-off-by: Jitao Shi Acked-by: Rob Herring --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree

[PATCH v6 3/3] drm/mediatek: add mipi_tx driver for mt8183

2019-08-07 Thread Jitao Shi
This patch add mt8183 mipi_tx driver. And also support other chips that use the same binding and driver. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1

[PATCH v5 2/4] drm/mediatek: dpi dual edge support

2019-08-07 Thread Jitao Shi
DPI sample the data both rising and falling edge. It can reduce half data io pins. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek

[PATCH v5 3/4] drm/mediatek: add mt8183 dpi clock factor

2019-08-07 Thread Jitao Shi
The factor depends on the divider of DPI in MT8183, therefore, we should fix this factor to the right and new one. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b

[PATCH v5 1/4] dt-bindings: display: mediatek: update dpi supported chips

2019-08-07 Thread Jitao Shi
Add decriptions about supported chips, including MT2701 & MT8173 & mt8183 Signed-off-by: Jitao Shi --- .../bindings/display/mediatek/mediatek,dpi.txt| 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dp

[PATCH v5 0/4] add mt8183 dpi driver

2019-08-07 Thread Jitao Shi
document for mt8183 dpi. - separate dual edge modfication as independent patch. Jitao Shi (4): dt-bindings: display: mediatek: update dpi supported chips drm/mediatek: dpi dual edge support drm/mediatek: add mt8183 dpi clock factor drm/mediatek: control dpi pins dpi or gpio mode in on or off

[PATCH v5 4/4] drm/mediatek: control dpi pins dpi or gpio mode in on or off

2019-08-07 Thread Jitao Shi
Pull dpi pins low when dpi has nothing to display. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Some chips have dpi pins, but there are some chip don't have pins. So this function is controlled by device tree. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c

[v5 7/7] drm: mediatek: adjust dsi and mipi_tx probe sequence

2019-06-27 Thread Jitao Shi
mtk_mipi_tx is the phy of mtk_dsi. mtk_dsi get the phy(mtk_mipi_tx) in probe(). So, mtk_mipi_tx init should be ahead of mtk_dsi. Or mtk_dsi will defer to wait mtk_mipi_tx probe done. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- 1 file changed

[v5 5/7] drm/mediatek: add mt8183 dsi driver support

2019-06-27 Thread Jitao Shi
Add mt8183 dsi driver data. Enable size control and reg commit control. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[v5 2/7] drm/mediatek: fixes CMDQ reg address of mt8173 is different with mt2701

2019-06-27 Thread Jitao Shi
Config the different CMDQ reg address in driver data. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[v5 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-06-27 Thread Jitao Shi
- data_phy_cycles * lanes - 12; Note: //(2: 1 for sync, 1 for phy idle) data_phy_cycles = T_hs_exit + T_lpx + T_hs_prepare + T_hs_zero + 2; bpp: bit per pixel Signed-off-by: Jitao Shi Tested-by: Ryan Case Reviewed-by: CK Hu phy_timing; + + ui = 10 / dsi->data_r

[v5 1/7] drm/mediatek: move mipi_dsi_host_register to probe

2019-06-27 Thread Jitao Shi
DSI panel driver need attach function which is inculde in mipi_dsi_host_ops. If mipi_dsi_host_register is not in probe, dsi panel will probe more delay. So move the mipi_dsi_host_register to probe from bind. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c

[v5 3/7] drm/mediatek: add dsi reg commit disable control

2019-06-27 Thread Jitao Shi
-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index bd37d823c762..6b6550926db6 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b

[v5 4/7] drm/mediatek: add frame size control

2019-06-27 Thread Jitao Shi
Our new DSI chip has frame size control. So add the driver data to control for different chips. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm

[v5 0/7] Support dsi for mt8183

2019-06-27 Thread Jitao Shi
rol independent patches. - fix some return values in probe - remove DSI_CMDW0 in "CMDQ reg address of mt8173 is different with mt2701" Jitao Shi (7): drm/mediatek: move mipi_dsi_host_register to probe drm/mediatek: fixes CMDQ reg address of mt8173 is different with mt2701 drm/medi

[v5 2/3] drm/mediatek: separate mipi_tx to different file

2019-06-26 Thread Jitao Shi
Different IC has different mipi_tx setting of dsi. This patch separates the mipi_tx hardware relate part for mt8173. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 343

[v5 3/3] drm/mediatek: add mipi_tx driver for mt8183

2019-06-26 Thread Jitao Shi
This patch add mt8183 mipi_tx driver. And also support other chips that use the same binding and driver. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1

[v5 1/3] dt-bindings: display: mediatek: update dsi supported chips

2019-06-26 Thread Jitao Shi
Update device tree binding documentation for the dsi for Mediatek MT8183 SoCs. Signed-off-by: Jitao Shi Acked-by: Rob Herring --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree

[v5 0/3] Support mipitx for mt8183

2019-06-26 Thread Jitao Shi
2: - update Acked-by: Rob Herring - update mt8183 max bit rate support Changes since v1: - update dt-bindings document for mt8183 mipitx. - remove mtk_mipitx_clk_get_ops and assign clk_ops in probe. - fix the lincence - remove txdiv1 from mtk_mipi_tx_pll_prepare Jitao Shi (3): dt-bindings:

[v3 4/4] drm/panel: support for auo,kd101n80-45na wuxga dsi video mode panel

2019-06-25 Thread Jitao Shi
Auo,kd101n80-45na's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,kd101n80-45na and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 39 +++ 1

[v3 2/4] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-06-25 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 714 ++ 3 files ch

[v3 1/4] dt-bindngs: display: panel: Add BOE tv101wum-n16 panel bindings

2019-06-25 Thread Jitao Shi
Add documentation for boe tv101wum-n16 panel. Signed-off-by: Jitao Shi --- .../display/panel/boe,tv101wum-nl6.txt| 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6.txt diff --git

[v3 0/4] Add drivers for auo, kd101n80-45na and boe, tv101wum-nl6 panels

2019-06-25 Thread Jitao Shi
nfo in driver data. - merge auo,kd101n80-45a and boe,tv101wum-nl6 in one driver Jitao Shi (4): dt-bindngs: display: panel: Add BOE tv101wum-n16 panel bindings drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel dt-bindings: display: panel: add auo kd101n80-45na panel bindings drm/pa

[v3 3/4] dt-bindings: display: panel: add auo kd101n80-45na panel bindings

2019-06-25 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/auo,kd101n80-45na.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80

[v2 2/2] drm/panel: support for auo,kd101n80-45na wuxga dsi video mode panel

2019-06-24 Thread Jitao Shi
Auo,kd101n80-45na's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,kd101n80-45na and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 40 +++ 1

[v2 1/2] dt-bindings: display: panel: add auo kd101n80-45na panel bindings

2019-06-24 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/auo,kd101n80-45na.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80

[v2 0/2] add auo,kd101n80-45a panel driver

2019-06-24 Thread Jitao Shi
Changes since v1: - merge auo,kd101n80-45a and boe,tv101wum-nl6 in one driver This patch is based on v5.2-rc1 and these patches: https://patchwork.kernel.org/cover/11012355/ https://patchwork.kernel.org/patch/11012345/ https://patchwork.kernel.org/patch/11012349/ Jitao Shi (2): dt-bindings

[v2 1/2] dt-bindngs: display: panel: Add BOE tv101wum-n16 panel bindings

2019-06-24 Thread Jitao Shi
Add documentation for boe tv101wum-n16 panel. Signed-off-by: Jitao Shi --- .../display/panel/boe,tv101wum-nl6.txt| 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6.txt diff --git

[v2 0/2] Add BOE tv101wum-nl6 panel driver

2019-06-24 Thread Jitao Shi
Changes since v1: - update typo nl6 -> n16. - update new panel config and makefile are added in alphabetically order. - add the panel mode and panel info in driver data. Jitao Shi (2): dt-bindngs: display: panel: Add BOE tv101wum-n16 panel bindings drm/panel: support for BOE tv101wum-

[v2 2/2] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-06-24 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 715 ++ 3 files ch

[1/2] dt-bindings: display: panel: add AUO kd101n80-45na panel bindings

2019-06-08 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi --- .../display/panel/auo,kd101n80-45na.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80-45na.txt diff --git

[2/2] drm/panel: support for AUO kd101n80-45na wuxga dsi video mode panel

2019-06-08 Thread Jitao Shi
Add driver for AUO kd101n80-45na panel. This panel supports the resolution 1200x1920, dsi video mode and 4 lanes. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-auo-kd101n80

[2/2] drm/panel: support for BOE tv101wum-n16 wuxga dsi video mode panel

2019-06-08 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 700 ++ 3 files ch

[1/2] dt-bindngs: display: panel: Add BOE tv101wum-nl6 panel bindings

2019-06-08 Thread Jitao Shi
Add documentation for boe tv101wum-n16 panel. Signed-off-by: Jitao Shi --- .../display/panel/boe,tv101wum-nl6.txt| 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6.txt diff --git

[v4 3/3] drm/mediatek: add mipi_tx driver for mt8183

2019-06-01 Thread Jitao Shi
This patch add mt8183 mipi_tx driver. And also support other chips that use the same binding and driver. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1

[v4 0/3] Support mipitx for mt8183

2019-06-01 Thread Jitao Shi
the lincence - remove txdiv1 from mtk_mipi_tx_pll_prepare Jitao Shi (3): dt-bindings: display: mediatek: update dsi supported chips drm/mediatek: separate mipi_tx to different file drm/mediatek: add mipi_tx driver for mt8183 .../bindings/display/mediatek/mediatek,dsi.txt | 2 +- drivers

[v4 2/3] drm/mediatek: separate mipi_tx to different file

2019-06-01 Thread Jitao Shi
Different IC has different mipi_tx setting of dsi. This patch separates the mipi_tx hardware relate part for mt8173. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 343

[v4 1/3] dt-bindings: display: mediatek: update dsi supported chips

2019-06-01 Thread Jitao Shi
Update device tree binding documentation for the dsi for Mediatek MT8183 SoCs. Signed-off-by: Jitao Shi Acked-by: Rob Herring --- Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree

[v4 4/7] drm/mediatek: add frame size control

2019-06-01 Thread Jitao Shi
Our new DSI chip has frame size control. So add the driver data to control for different chips. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm

[v4 2/7] drm/mediatek: fixes CMDQ reg address of mt8173 is different with mt2701

2019-06-01 Thread Jitao Shi
Config the different CMDQ reg address in driver data. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[v4 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-06-01 Thread Jitao Shi
- data_phy_cycles * lanes - 12; Note: //(2: 1 for sync, 1 for phy idle) data_phy_cycles = T_hs_exit + T_lpx + T_hs_prepare + T_hs_zero + 2; bpp: bit per pixel Signed-off-by: Jitao Shi Tested-by: Ryan Case --- drivers/gpu/drm/mediatek/mtk_dsi.c | 122 - 1 file

[v4 3/7] drm/mediatek: add dsi reg commit disable control

2019-06-01 Thread Jitao Shi
-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index a48db056df6c..eea47294079e 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm

[v4 0/7] Support dsi for mt8183

2019-06-01 Thread Jitao Shi
Changes since v1: - separate frame size and reg commit control independent patches. - fix some return values in probe - remove DSI_CMDW0 in "CMDQ reg address of mt8173 is different with mt2701" Jitao Shi (7): drm/mediatek: move mipi_dsi_host_register to probe drm/mediatek: fixes CMDQ r

[v4 1/7] drm/mediatek: move mipi_dsi_host_register to probe

2019-06-01 Thread Jitao Shi
DSI panel driver need attach function which is inculde in mipi_dsi_host_ops. If mipi_dsi_host_register is not in probe, dsi panel will probe more delay. So move the mipi_dsi_host_register to probe from bind. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 50

[v4 7/7] drm: mediatek: adjust dsi and mipi_tx probe sequence

2019-06-01 Thread Jitao Shi
mtk_mipi_tx is the phy of mtk_dsi. mtk_dsi get the phy(mtk_mipi_tx) in probe(). So, mtk_mipi_tx init should be ahead of mtk_dsi. Or mtk_dsi will defer to wait mtk_mipi_tx probe done. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- 1 file changed

[v4 5/7] drm/mediatek: add mt8183 dsi driver support

2019-06-01 Thread Jitao Shi
Add mt8183 dsi driver data. Enable size control and reg commit control. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

<    1   2   3   4   5   >