[PATCH v13 0/6] mt8183 dpi supports dual edge and pin mode swap

2020-03-11 Thread Jitao Shi
ntrol and dual edge control to deveice tree. - update dt-bindings document for pin mode swap and dual edge control. Changes since v3: - add dpi pin mode control when dpi on or off. - update dpi dual edge comment. Changes since v2: - update dt-bindings document for mt8183 dpi. - separate dual ed

[PATCH v13 3/6] dt-bindings: display: mediatek: dpi sample data in dual edge support

2020-03-11 Thread Jitao Shi
Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Acked-by: Rob Herring Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc

[PATCH v13 5/6] drm/mediatek: dpi sample mode support

2020-03-11 Thread Jitao Shi
DPI can sample on falling, rising or both edge. When DPI sample the data both rising and falling edge. It can reduce half data io pins. Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 27 +-- 1 file changed, 25 insertions(+), 2

[PATCH v13 6/6] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-03-11 Thread Jitao Shi
Config dpi pins mode to output and pull low when dpi is disabled. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 31 ++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v13 2/6] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-03-11 Thread Jitao Shi
Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set the dpi pins to gpio mode and output-low to avoid leakage current when dpi disabled. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++ 1 file changed, 7

[PATCH v13 1/6] dt-bindings: media: add pclk-sample dual edge property

2020-03-11 Thread Jitao Shi
Some chips's sample mode are rising, falling and dual edge (both falling and rising edge). Extern the pclk-sample property to support dual edge. Acked-by: Rob Herring Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++-- 1 file

[PATCH v13 4/6] dt-bindings: display: mediatek: convert the document format from txt to yaml

2020-03-11 Thread Jitao Shi
Signed-off-by: Jitao Shi --- .../display/mediatek/mediatek,dpi.txt | 45 .../display/mediatek/mediatek,dpi.yaml| 103 ++ 2 files changed, 103 insertions(+), 45 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek

[PATCH v12 0/6] mt8183 dpi supports dual edge and pin mode swap

2020-03-02 Thread Jitao Shi
ent for pin mode swap and dual edge control. Changes since v3: - add dpi pin mode control when dpi on or off. - update dpi dual edge comment. Changes since v2: - update dt-bindings document for mt8183 dpi. - separate dual edge modfication as independent patch. Jitao Shi (6): dt-bindings: med

[PATCH v12 3/6] dt-bindings: display: mediatek: dpi sample data in dual edge support

2020-03-02 Thread Jitao Shi
Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Acked-by: Rob Herring Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH v12 2/6] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-03-02 Thread Jitao Shi
Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set the dpi pins to gpio mode and output-low to avoid leakage current when dpi disabled. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++ 1 file changed, 7

[PATCH v12 5/6] drm/mediatek: dpi sample mode support

2020-03-02 Thread Jitao Shi
DPI can sample on falling, rising or both edge. When DPI sample the data both rising and falling edge. It can reduce half data io pins. Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions

[PATCH v12 4/6] dt-bindings: display: mediatek: convert the document format from txt to yaml

2020-03-02 Thread Jitao Shi
Signed-off-by: Jitao Shi --- .../display/mediatek/mediatek,dpi.txt | 45 - .../display/mediatek/mediatek,dpi.yaml| 92 +++ 2 files changed, 92 insertions(+), 45 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek

[PATCH v12 1/6] dt-bindings: media: add pclk-sample dual edge property

2020-03-02 Thread Jitao Shi
Some chips's sample mode are rising, falling and dual edge (both falling and rising edge). Extern the pclk-sample property to support dual edge. Acked-by: Rob Herring Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++-- 1 file

[PATCH v12 6/6] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-03-02 Thread Jitao Shi
Config dpi pins mode to output and pull low when dpi is disabled. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 44 -- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git

[PATCH v11 2/6] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-02-28 Thread Jitao Shi
Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set the dpi pins to gpio mode and output-low to avoid leakage current when dpi disabled. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++ 1 file changed, 7

[PATCH v11 4/6] dt-bindings: display: mediatek: convert the document format from txt to yaml

2020-02-28 Thread Jitao Shi
Signed-off-by: Jitao Shi --- .../display/mediatek/mediatek,dpi.txt | 45 .../display/mediatek/mediatek,dpi.yaml| 100 ++ 2 files changed, 100 insertions(+), 45 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek

[PATCH v11 5/6] drm/mediatek: dpi sample mode support

2020-02-28 Thread Jitao Shi
DPI can sample on falling, rising or both edge. When DPI sample the data both rising and falling edge. It can reduce half data io pins. Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions

[PATCH v11 6/6] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-02-28 Thread Jitao Shi
Config dpi pins mode to output and pull low when dpi is disabled. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 44 -- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git

[PATCH v11 1/6] dt-bindings: media: add pclk-sample dual edge property

2020-02-28 Thread Jitao Shi
Some chips's sample mode are rising, falling and dual edge (both falling and rising edge). Extern the pclk-sample property to support dual edge. Acked-by: Rob Herring Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++-- 1 file

[PATCH v11 3/6] dt-bindings: display: mediatek: dpi sample data in dual edge support

2020-02-28 Thread Jitao Shi
Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc

[PATCH v11 0/6] mt8183 dpi supports dual edge and pin mode swap

2020-02-28 Thread Jitao Shi
trol when dpi on or off. - update dpi dual edge comment. Changes since v2: - update dt-bindings document for mt8183 dpi. - separate dual edge modfication as independent patch. Jitao Shi (6): dt-bindings: media: add pclk-sample dual edge property dt-bindings: display: mediatek: control d

[PATCH v10 0/5] mt8183 dpi supports dual edge and pin mode swap

2020-02-27 Thread Jitao Shi
edge control to deveice tree. - update dt-bindings document for pin mode swap and dual edge control. Changes since v3: - add dpi pin mode control when dpi on or off. - update dpi dual edge comment. Changes since v2: - update dt-bindings document for mt8183 dpi. - separate dual edge modfication

[PATCH v10 3/5] dt-bindings: display: mediatek: dpi sample data in dual edge support

2020-02-27 Thread Jitao Shi
Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc

[PATCH v10 4/5] drm/mediatek: dpi sample mode support

2020-02-27 Thread Jitao Shi
DPI can sample on falling, rising or both edge. When DPI sample the data both rising and falling edge. It can reduce half data io pins. Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions

[PATCH v10 2/5] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-02-27 Thread Jitao Shi
Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set the dpi pins to gpio mode and output-low to avoid leakage current when dpi disabled. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++ 1 file changed, 7

[PATCH v10 1/5] dt-bindings: media: add pclk-sample dual edge property

2020-02-27 Thread Jitao Shi
Some chips's sample mode are rising, falling and dual edge (both falling and rising edge). Extern the pclk-sample property to support dual edge. Acked-by: Rob Herring Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++-- 1 file

[PATCH v10 5/5] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-02-27 Thread Jitao Shi
Config dpi pins mode to output and pull low when dpi is disabled. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 31 ++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v9 0/5] mt8183 dpi supports dual edge and pin mode swap

2020-02-25 Thread Jitao Shi
hen dpi on or off. - update dpi dual edge comment. Changes since v2: - update dt-bindings document for mt8183 dpi. - separate dual edge modfication as independent patch. Jitao Shi (5): dt-bindings: media: add pclk-sample dual edge property dt-bindings: display: mediatek: control dpi pins m

[PATCH v9 4/5] drm/mediatek: dpi sample mode support

2020-02-25 Thread Jitao Shi
DPI can sample on falling, rising or both edge. When DPI sample the data both rising and falling edge. It can reduce half data io pins. Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions

[PATCH v9 3/5] dt-bindings: display: mediatek: dpi sample data in dual edge support

2020-02-25 Thread Jitao Shi
Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetre

[PATCH v9 2/5] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-02-25 Thread Jitao Shi
Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set pin mode to gpio oupput-low to avoid leakage current when dpi disable. Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++ 1 file

[PATCH v9 5/5] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-02-25 Thread Jitao Shi
Config dpi pins mode to output and pull low when dpi is disabled. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 31 ++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v9 1/5] dt-bindings: media: add pclk-sample dual edge property

2020-02-25 Thread Jitao Shi
Some chips's sample mode are rising, falling and dual edge (both falling and rising edge). Extern the pclk-sample property to support dual edge. Reviewed-by: CK Hu Signed-off-by: Jitao Shi --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 4/4] drm/mediatek: config mipitx impedance with calibration data

2020-02-25 Thread Jitao Shi
Read calibration data from nvmem, and config mipitx impedance with calibration data to make sure their impedance are 100ohm. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_mt8183_mipi_tx.c | 57 +++ 1 file changed, 57 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v2 2/4] dt-binds: display: mediatek: get mipitx calibration data from nvmem

2020-02-25 Thread Jitao Shi
Add properties to get get mipitx calibration data. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt| 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt b/Documentation/devicetree

Re: [PATCH 1/4] dt-binds: display: mediatek: add property to control mipi tx drive current

2020-02-25 Thread Jitao Shi
On Wed, 2019-12-18 at 13:41 +0800, CK Hu wrote: > Hi, Jitao: > > On Mon, 2019-12-16 at 16:29 +0800, Jitao Shi wrote: > > Add a property to control mipi tx drive current: > > "mipitx-current-drive" > > > > Signed-off-by: Jitao Shi > > --- >

[PATCH v2 0/4] Config mipi tx drive current and impedance

2020-02-25 Thread Jitao Shi
Changes since v1: - fix coding style. - change mtk_mipi_tx_config_calibration_data() to void Jitao Shi (4): dt-binds: display: mediatek: add property to control mipi tx drive current dt-binds: display: mediatek: get mipitx calibration data from nvmem drm/mediatek: add the mipitx

[PATCH v2 1/4] dt-binds: display: mediatek: add property to control mipi tx drive current

2020-02-25 Thread Jitao Shi
Add a property to control mipi tx drive current: "mipitx-current-drive" Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,

[PATCH v2 3/4] drm/mediatek: add the mipitx driving control

2020-02-25 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 v8 1/7] dt-bindings: media: add pclk-sample dual edge property

2020-02-25 Thread Jitao Shi
Some chips's sample mode are rising, falling and dual edge (both falling and rising edge). Extern the pclk-sample property to support dual edge. Signed-off-by: Jitao Shi --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v8 6/7] drm/mediatek: add mt8183 dpi clock factor

2020-02-25 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 Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/mediatek

[PATCH v8 5/7] drm/mediatek: dpi sample mode support

2020-02-25 Thread Jitao Shi
DPI can sample on falling, rising or both edge. When 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 | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v8 0/7] mt8183 dpi supports dual edge and pin mode swap

2020-02-25 Thread Jitao Shi
modfication as independent patch. Jitao Shi (7): dt-bindings: media: add pclk-sample dual edge property dt-bindings: display: mediatek: update dpi supported chips dt-bindings: display: mediatek: control dpi pins mode to avoid leakage dt-bindings: display: mediatek: dpi sample data in dual edge

[PATCH v8 4/7] dt-bindings: display: mediatek: dpi sample data in dual edge support

2020-02-25 Thread Jitao Shi
Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetre

[PATCH v8 3/7] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage

2020-02-25 Thread Jitao Shi
Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set pin mode to gpio oupput-low to avoid leakage current when dpi disable. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++ 1 file changed, 7 insertions(+)

[PATCH v8 2/7] dt-bindings: display: mediatek: update dpi supported chips

2020-02-25 Thread Jitao Shi
Add descriptions about supported chips, including MT2701 & MT8173 & mt8183 Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt| 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dp

[PATCH v8 7/7] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-02-25 Thread Jitao Shi
Config dpi pins mode to output and pull low when dpi is disabled. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/gpu/drm

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

2020-02-24 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 Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/mediatek

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

2020-02-24 Thread Jitao Shi
t when dpi disable. 3. Add property "pclk-sample" to config the dpi sample on falling (0), rising (1), both falling and rising (2). Signed-off-by: Jitao Shi --- .../bindings/display/mediatek/mediatek,dpi.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Docum

[PATCH v7 4/4] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-02-24 Thread Jitao Shi
Config dpi pins mode to output and pull low when dpi is disabled. Aovid leakage current from some dpi pins (Hsync Vsync DE ... ). Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 33 -- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git

[PATCH v7 0/4] add mt8183 dpi driver

2020-02-24 Thread Jitao Shi
control. Changes since v3: - add dpi pin mode control when dpi on or off. - update dpi dual edge comment. Changes since v2: - update dt-bindings document for mt8183 dpi. - separate dual edge modfication as independent patch. Jitao Shi (4): dt-bindings: display: mediatek: update dpi supported

[PATCH v7 2/4] drm/mediatek: dpi sample mode support

2020-02-24 Thread Jitao Shi
DPI can sample on falling, rising or both edge. When 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 | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers

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

2020-02-24 Thread Jitao Shi
On Tue, 2020-02-25 at 10:13 +0800, CK Hu wrote: > Hi, Jitao: > > On Tue, 2020-02-25 at 10:05 +0800, Jitao Shi wrote: > > On Mon, 2020-02-24 at 16:46 +0800, CK Hu wrote: > > > Hi, Jitao: > > > > > > On Fri, 2020-02-21 at 19:28 +0800, Jitao Shi wrote: >

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

2020-02-24 Thread Jitao Shi
On Mon, 2020-02-24 at 16:46 +0800, CK Hu wrote: > Hi, Jitao: > > On Fri, 2020-02-21 at 19:28 +0800, Jitao Shi wrote: > > Add decriptions about supported chips, including MT2701 & MT8173 & > > mt8183 > > > > 1. Add more chips support. ex. MT2

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

2020-02-24 Thread Jitao Shi
On Mon, 2020-02-24 at 15:50 +0800, CK Hu wrote: > Hi, Jitao: > > On Fri, 2020-02-21 at 19:28 +0800, Jitao Shi wrote: > > Add decriptions about supported chips, including MT2701 & MT8173 & > > mt8183 > > > > 1. Add more chips support. ex. MT2

[PATCH v6 0/4] add mt8183 dpi driver

2020-02-21 Thread Jitao Shi
dual edge comment. Changes since v2: - update dt-bindings 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

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

2020-02-21 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 v6 1/4] dt-bindings: display: mediatek: update dpi supported chips

2020-02-21 Thread Jitao Shi
d property "dpi_dual_edge" to config the dpi pin output mode dual edge or single edge sample data. Signed-off-by: Jitao Shi --- .../bindings/display/mediatek/mediatek,dpi.txt| 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/disp

[PATCH v6 4/4] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current

2020-02-21 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

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

2020-02-21 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 Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/mediatek

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

2020-01-18 Thread Jitao Shi
-> 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 Shi (5): dt-bindings: display: panel: Add boe tv101wum-n16 panel bindings drm/panel: supp

[PATCH v10 1/5] dt-bindings: display: panel: Add boe tv101wum-n16 panel bindings

2020-01-18 Thread Jitao Shi
Add documentation for "boe,tv101wum-n16", "auo,kd101n80-45na", "boe,tv101wum-n53" and "auo,b101uan08.3" panels. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg Reviewed-by: Sam Ravnborg --- .../display/panel/boe,tv101wum-nl6.yaml | 80

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

2020-01-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 Reviewed-by: Sam Ravnborg --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c

[PATCH v10 2/5] drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel

2020-01-18 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| 693 ++ 3 files ch

[PATCH v10 3/5] drm/panel: support for auo, kd101n80-45na wuxga dsi video mode panel

2020-01-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 v10 4/5] drm/panel: support for boe, tv101wum-n53 wuxga dsi video mode panel

2020-01-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 Reviewed-by: Sam Ravnborg --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 31

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

2020-01-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 Reviewed-by: Sam Ravnborg --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c

[PATCH v9 3/5] drm/panel: support for auo, kd101n80-45na wuxga dsi video mode panel

2020-01-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 v9 2/5] drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel

2020-01-15 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| 693 ++ 3 files ch

[PATCH v9 1/5] dt-bindings: display: panel: Add boe tv101wum-n16 panel bindings

2020-01-15 Thread Jitao Shi
Add documentation for "boe,tv101wum-n16", "auo,kd101n80-45na", "boe,tv101wum-n53" and "auo,b101uan08.3" panels. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/boe,tv101wum-nl6.yaml | 81 +++ 1 file chang

[PATCH v9 4/5] drm/panel: support for boe, tv101wum-n53 wuxga dsi video mode panel

2020-01-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 Reviewed-by: Sam Ravnborg --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 31

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

2020-01-15 Thread Jitao Shi
lly order. - add the panel mode and panel info in driver data. - merge auo,kd101n80-45a and boe,tv101wum-nl6 in one driver Jitao Shi (5): dt-bindings: display: panel: Add boe tv101wum-n16 panel bindings drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel drm/panel: supp

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

2020-01-15 Thread Jitao Shi
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 panel bindings drm/panel: support for auo,kd101n80-45na wuxga dsi video mode panel

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

2020-01-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.yaml| 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display

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

2020-01-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.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display

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

2020-01-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 v8 8/8] drm/panel: support for auo, b101uan08.3 wuxga dsi video mode panel

2020-01-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 Reviewed-by: Sam Ravnborg --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c

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

2020-01-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 Reviewed-by: Sam Ravnborg --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 31

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

2020-01-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.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80

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

2020-01-15 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| 693 ++ 3 files ch

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

2020-01-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.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6

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

2019-12-16 Thread Jitao Shi
Read calibration data from nvmem, and 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

[PATCH 3/4] drm/mediatek: add the mipitx driving control

2019-12-16 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 1/4] dt-binds: display: mediatek: add property to control mipi tx drive current

2019-12-16 Thread Jitao Shi
Add a property to control mipi tx drive current: "mipitx-current-drive" Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,

[PATCH 0/4] Config mipi tx drive current and impedance

2019-12-16 Thread Jitao Shi
Changes in this patch: - add the mipitx driving current control. - config the mipitx impedance with calibration data in nvmem. Jitao Shi (4): dt-binds: display: mediatek: add property to control mipi tx drive current dt-binds: display: mediatek: get mipitx calibration data from nvmem

[PATCH 2/4] dt-binds: display: mediatek: get mipitx calibration data from nvmem

2019-12-16 Thread Jitao Shi
Add properties to get get mipitx calibration data. Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt| 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt b/Documentation/devicetree

[PATCH] drm/mediatek: reduce the hbp and hfp for phy timing

2019-12-13 Thread Jitao Shi
-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 67 +- 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index e9931bbbe846..f247fad47709 100644 --- a/drivers/gpu/drm/mediatek

[PATCH 0/1] boe-tv101wum-n16 seperate the panel power control

2019-11-06 Thread Jitao Shi
://patchwork.kernel.org/patch/11186577/ https://patchwork.kernel.org/patch/11186581/ https://patchwork.kernel.org/patch/11186585/ https://patchwork.kernel.org/patch/11186589/ https://patchwork.kernel.org/patch/11186595/ Jitao Shi (1): drm/panel: boe-tv101wum-n16 seperate the panel power control .../gpu/drm

[PATCH 1/1] drm/panel: boe-tv101wum-n16 seperate the panel power control

2019-11-06 Thread Jitao Shi
Seperate the panel power control from prepare/unprepare. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 69 +-- 1 file changed, 49 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel

[PATCH 1/1] drm/mediatek: fine tune the dsi panel's power sequence

2019-11-06 Thread Jitao Shi
Add the drm_panel_prepare_power and drm_panel_unprepare_power control. Turn on panel power(drm_panel_prepare_power) and control before dsi enable. And then dsi enable, send dcs cmd in drm_panel_prepare, last turn on backlight. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 19

[PATCH 0/1] fine tune the dsi panel's power sequence

2019-11-06 Thread Jitao Shi
This patch is based on v5.4-rc6 and these patches: https://patchwork.kernel.org/patch/11229375/ Jitao Shi (1): drm/mediatek: fine tune the dsi panel's power sequence drivers/gpu/drm/mediatek/mtk_dsi.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) -- 2.21.0

[PATCH] drm/panel: seperate panel power control from panel prepare/unprepare

2019-11-05 Thread Jitao Shi
and drm_panel_unprepare. Signed-off-by: Jitao Shi --- drivers/gpu/drm/drm_panel.c | 38 + include/drm/drm_panel.h | 17 + 2 files changed, 55 insertions(+) diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c index 6b0bf42039cf

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

2019-10-11 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 v7 8/8] drm/panel: support for auo,b101uan08.3 wuxga dsi video mode panel

2019-10-11 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 v7 5/8] dt-bindings: display: panel: add boe tv101wum-n53 panel documentation

2019-10-11 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 v7 6/8] drm/panel: support for boe,tv101wum-n53 wuxga dsi video mode panel

2019-10-11 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 v7 4/8] drm/panel: support for auo, kd101n80-45na wuxga dsi video mode panel

2019-10-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 v7 3/8] dt-bindings: display: panel: add auo kd101n80-45na panel bindings

2019-10-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.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80

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

2019-10-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.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6

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

2019-10-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 (8): dt-bindings: display: panel: Add BOE tv101wum-n16 panel bindings drm/panel: support for BOE tv101

<    1   2   3   4   5   >