* [PATCH v3 00/12] Add mipi dsi support for rk3288
@ 2015-11-19 3:35 Chris Zhong
2015-11-19 3:35 ` [PATCH v3 02/12] clk: rockchip: add mipidsi clocks on rk3288 Chris Zhong
2015-11-19 14:41 ` [PATCH v3 00/12] Add mipi dsi support for rk3288 Emil Velikov
0 siblings, 2 replies; 5+ messages in thread
From: Chris Zhong @ 2015-11-19 3:35 UTC (permalink / raw)
To: heiko, linux-rockchip, Mark Yao
Cc: Chris Zhong, Thierry Reding, Philipp Zabel, Kumar Gala, dri-devel,
Ian Campbell, Rob Herring, David Airlie, Jeff Chen,
Thierry Reding, linux-clk, Alexandru M Stan, Sonny Rao,
Kever Yang, Huang Lin, Inki Dae, Pawel Moll, devicetree,
Michael Turquette, Stephen Boyd, Vincent Palatin, Russell King,
Ajay Kumar, linux-arm-kernel, Russell King, Liu Ying,
Andrew Bresticker, Doug Anderson, linux-kernel, David S. Miller,
Andy Yan, Mark Rutland, Roger Chen
The rk3288 MIPI DSI is a Synopsys DesignWare MIPI DSI host controller
IP. This series adds support for a Synopsys DesignWare MIPI DSI host
controller DRM bridge driver and a rockchip MIPI DSI specific DRM
driver.
This series also includes a DRM panel driver for BOE TV080WUM-NL0 panel.
This panel only use the MIPI DSI video mode.
The MIPI DSI feature is tested on rk3288 evb board, backport them to
chrome os kernel v3.14, and it can display normally.
This patchset is base on the patchset from Ying.liu@freescale.com.
<http://www.spinics.net/lists/dri-devel/msg77181.html>
Changes in v3:
move the dw_mipi_dsi.txt to Documentation/devicetree/bindings/display/bridge
move dw_mipi_dsi_rockchip.txt to bindings/display/rockchip/
move boe,tv080wum-nl0.txt to bindings/display/panel/
Changes in v2:
add the mipi clk id in a single patch
As Thierry.Reding comment, add a documentation for this panel.
Chris Zhong (10):
clk: rockchip: add id for mipidsi sclk on rk3288
clk: rockchip: add mipidsi clocks on rk3288
drm/rockchip: return a true clock rate to adjusted_mode
drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
ARM: dts: rockchip: add rk3288 mipi_dsi nodes
drm/panel: simple: Add support for BOE TV080WUM-NL0
drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree
binding
ARM: dts: rockchip: add support mipi panel tv080wum-nl0 for rk3288-evb
Liu Ying (2):
drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format
Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM
bridge driver
.../bindings/display/bridge/dw_mipi_dsi.txt | 76 ++
.../bindings/display/panel/boe,tv080wum-nl0.txt | 7 +
.../display/rockchip/dw_mipi_dsi_rockchip.txt | 56 ++
arch/arm/boot/dts/rk3288-evb.dtsi | 20 +-
arch/arm/boot/dts/rk3288.dtsi | 39 +
drivers/clk/rockchip/clk-rk3288.c | 2 +-
drivers/gpu/drm/bridge/Kconfig | 11 +
drivers/gpu/drm/bridge/Makefile | 1 +
drivers/gpu/drm/bridge/dw_mipi_dsi.c | 1055 ++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 33 +
drivers/gpu/drm/rockchip/Kconfig | 10 +
drivers/gpu/drm/rockchip/Makefile | 1 +
drivers/gpu/drm/rockchip/dw_mipi_dsi_rockchip.c | 249 +++++
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 9 +
include/drm/bridge/dw_mipi_dsi.h | 27 +
include/drm/drm_mipi_dsi.h | 14 +
include/dt-bindings/clock/rk3288-cru.h | 1 +
17 files changed, 1609 insertions(+), 2 deletions(-)
create mode 100644 Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt
create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv080wum-nl0.txt
create mode 100644 Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt
create mode 100644 drivers/gpu/drm/bridge/dw_mipi_dsi.c
create mode 100644 drivers/gpu/drm/rockchip/dw_mipi_dsi_rockchip.c
create mode 100644 include/drm/bridge/dw_mipi_dsi.h
--
2.6.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 02/12] clk: rockchip: add mipidsi clocks on rk3288
2015-11-19 3:35 [PATCH v3 00/12] Add mipi dsi support for rk3288 Chris Zhong
@ 2015-11-19 3:35 ` Chris Zhong
2015-11-19 14:41 ` [PATCH v3 00/12] Add mipi dsi support for rk3288 Emil Velikov
1 sibling, 0 replies; 5+ messages in thread
From: Chris Zhong @ 2015-11-19 3:35 UTC (permalink / raw)
To: heiko, linux-rockchip, Mark Yao
Cc: Chris Zhong, Michael Turquette, Stephen Boyd, linux-kernel,
linux-clk, linux-arm-kernel
sclk_mipidsi_24m is the gating of mipi dsi phy.
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
---
Changes in v3: None
Changes in v2: None
drivers/clk/rockchip/clk-rk3288.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c
index 9040878..c7d7ebf 100644
--- a/drivers/clk/rockchip/clk-rk3288.c
+++ b/drivers/clk/rockchip/clk-rk3288.c
@@ -709,7 +709,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
GATE(SCLK_LCDC_PWM1, "sclk_lcdc_pwm1", "xin24m", 0, RK3288_CLKGATE_CON(13), 11, GFLAGS),
GATE(SCLK_PVTM_CORE, "sclk_pvtm_core", "xin24m", 0, RK3288_CLKGATE_CON(5), 9, GFLAGS),
GATE(SCLK_PVTM_GPU, "sclk_pvtm_gpu", "xin24m", 0, RK3288_CLKGATE_CON(5), 10, GFLAGS),
- GATE(0, "sclk_mipidsi_24m", "xin24m", 0, RK3288_CLKGATE_CON(5), 15, GFLAGS),
+ GATE(SCLK_MIPI_24M, "sclk_mipidsi_24m", "xin24m", 0, RK3288_CLKGATE_CON(5), 15, GFLAGS),
/* sclk_gpu gates */
GATE(ACLK_GPU, "aclk_gpu", "sclk_gpu", 0, RK3288_CLKGATE_CON(18), 0, GFLAGS),
--
2.6.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 00/12] Add mipi dsi support for rk3288
2015-11-19 3:35 [PATCH v3 00/12] Add mipi dsi support for rk3288 Chris Zhong
2015-11-19 3:35 ` [PATCH v3 02/12] clk: rockchip: add mipidsi clocks on rk3288 Chris Zhong
@ 2015-11-19 14:41 ` Emil Velikov
2015-11-20 7:02 ` Chris Zhong
1 sibling, 1 reply; 5+ messages in thread
From: Emil Velikov @ 2015-11-19 14:41 UTC (permalink / raw)
To: Chris Zhong
Cc: Heiko Stübner, linux-rockchip, Mark Yao, Mark Rutland,
Michael Turquette, Kever Yang, ML dri-devel,
Linux-Kernel@Vger. Kernel. Org, linux-clk, Vincent Palatin,
Jeff Chen, Ajay Kumar, Andrew Bresticker, Russell King,
Thierry Reding, devicetree, Alexandru M Stan, Pawel Moll,
Ian Campbell, Rob Herring, Roger Chen, Russell King, Sonny Rao,
LAKML, Huang Lin, Stephen Boyd, Doug Anderson, Kumar Gala,
Andy Yan, David S. Miller
On 19 November 2015 at 03:35, Chris Zhong <zyw@rock-chips.com> wrote:
> The rk3288 MIPI DSI is a Synopsys DesignWare MIPI DSI host controller
> IP. This series adds support for a Synopsys DesignWare MIPI DSI host
> controller DRM bridge driver and a rockchip MIPI DSI specific DRM
> driver.
>
> This series also includes a DRM panel driver for BOE TV080WUM-NL0 panel.
> This panel only use the MIPI DSI video mode.
>
> The MIPI DSI feature is tested on rk3288 evb board, backport them to
> chrome os kernel v3.14, and it can display normally.
>
> This patchset is base on the patchset from Ying.liu@freescale.com.
> <http://www.spinics.net/lists/dri-devel/msg77181.html>
>
>
> Changes in v3:
> move the dw_mipi_dsi.txt to Documentation/devicetree/bindings/display/bridge
> move dw_mipi_dsi_rockchip.txt to bindings/display/rockchip/
> move boe,tv080wum-nl0.txt to bindings/display/panel/
>
> Changes in v2:
> add the mipi clk id in a single patch
> As Thierry.Reding comment, add a documentation for this panel.
>
> Chris Zhong (10):
> clk: rockchip: add id for mipidsi sclk on rk3288
> clk: rockchip: add mipidsi clocks on rk3288
> drm/rockchip: return a true clock rate to adjusted_mode
> drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
Did you actually rewrite the patch from Liu Ying ?
Out of curiosity what was the obstacle of this work getting merged ?
> drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
> Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
> ARM: dts: rockchip: add rk3288 mipi_dsi nodes
> drm/panel: simple: Add support for BOE TV080WUM-NL0
> drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree
> binding
As the DT people will tell you - there is no BOE vendor in
bindings/vendor-prefixes.txt.
> ARM: dts: rockchip: add support mipi panel tv080wum-nl0 for rk3288-evb
>
> Liu Ying (2):
> drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format
> Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM
> bridge driver
>
>From the above 12 patches only ~6 reached this mailing list is that
intentional ? Previously I've seen people CC dri-devel for their
panel/bridge DT patches.
Regards,
Emil
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 00/12] Add mipi dsi support for rk3288
2015-11-19 14:41 ` [PATCH v3 00/12] Add mipi dsi support for rk3288 Emil Velikov
@ 2015-11-20 7:02 ` Chris Zhong
2015-11-20 12:19 ` Emil Velikov
0 siblings, 1 reply; 5+ messages in thread
From: Chris Zhong @ 2015-11-20 7:02 UTC (permalink / raw)
To: Emil Velikov
Cc: Heiko Stübner, linux-rockchip, Mark Yao, Mark Rutland,
Michael Turquette, Kever Yang, ML dri-devel,
Linux-Kernel@Vger. Kernel. Org, linux-clk, Vincent Palatin,
Jeff Chen, Ajay Kumar, Andrew Bresticker, Russell King,
Thierry Reding, devicetree, Alexandru M Stan, Pawel Moll,
Ian Campbell, Rob Herring, Roger Chen, Russell King, Sonny Rao,
LAKML, Huang Lin, Stephen Boyd, Doug Anderson, Kumar Gala,
Andy Yan, David S. Miller
Hi Emil
On 11/19/2015 10:41 PM, Emil Velikov wrote:
> On 19 November 2015 at 03:35, Chris Zhong <zyw@rock-chips.com> wrote:
>> The rk3288 MIPI DSI is a Synopsys DesignWare MIPI DSI host controller
>> IP. This series adds support for a Synopsys DesignWare MIPI DSI host
>> controller DRM bridge driver and a rockchip MIPI DSI specific DRM
>> driver.
>>
>> This series also includes a DRM panel driver for BOE TV080WUM-NL0 panel.
>> This panel only use the MIPI DSI video mode.
>>
>> The MIPI DSI feature is tested on rk3288 evb board, backport them to
>> chrome os kernel v3.14, and it can display normally.
>>
>> This patchset is base on the patchset from Ying.liu@freescale.com.
>> <http://www.spinics.net/lists/dri-devel/msg77181.html>
>>
>>
>> Changes in v3:
>> move the dw_mipi_dsi.txt to Documentation/devicetree/bindings/display/bridge
>> move dw_mipi_dsi_rockchip.txt to bindings/display/rockchip/
>> move boe,tv080wum-nl0.txt to bindings/display/panel/
>>
>> Changes in v2:
>> add the mipi clk id in a single patch
>> As Thierry.Reding comment, add a documentation for this panel.
>>
>> Chris Zhong (10):
>> clk: rockchip: add id for mipidsi sclk on rk3288
>> clk: rockchip: add mipidsi clocks on rk3288
>> drm/rockchip: return a true clock rate to adjusted_mode
>> drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
> Did you actually rewrite the patch from Liu Ying ?
I modify the dw_mipi_dsi.c based on the patch from Liu Ying.
> Out of curiosity what was the obstacle of this work getting merged ?
There are different version dw controller, and it is too hard to merge them,
since most registers are different.
>
>> drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
>> Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
>> ARM: dts: rockchip: add rk3288 mipi_dsi nodes
>> drm/panel: simple: Add support for BOE TV080WUM-NL0
>> drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree
>> binding
> As the DT people will tell you - there is no BOE vendor in
> bindings/vendor-prefixes.txt.
Yes, I have post a verdor patch in v2 series,
<https://patchwork.kernel.org/patch/7530791/>
Maybe I should add it back to series with
Acked-by: Rob Herring<robh@kernel.org>
>
>> ARM: dts: rockchip: add support mipi panel tv080wum-nl0 for rk3288-evb
>>
>> Liu Ying (2):
>> drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format
>> Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM
>> bridge driver
>>
> >From the above 12 patches only ~6 reached this mailing list is that
> intentional ? Previously I've seen people CC dri-devel for their
> panel/bridge DT patches.
I use the patman to post the series, forgot to add you and Thierry to
the to-list.
I will fix in next version series. Thanks for your reply.
>
> Regards,
> Emil
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 00/12] Add mipi dsi support for rk3288
2015-11-20 7:02 ` Chris Zhong
@ 2015-11-20 12:19 ` Emil Velikov
0 siblings, 0 replies; 5+ messages in thread
From: Emil Velikov @ 2015-11-20 12:19 UTC (permalink / raw)
To: Chris Zhong
Cc: Heiko Stübner, linux-rockchip, Mark Yao, Mark Rutland,
Michael Turquette, Kever Yang, ML dri-devel,
Linux-Kernel@Vger. Kernel. Org, linux-clk, Vincent Palatin,
Jeff Chen, Ajay Kumar, Andrew Bresticker, Russell King,
Thierry Reding, devicetree, Alexandru M Stan, Pawel Moll,
Ian Campbell, Rob Herring, Roger Chen, Russell King, Sonny Rao,
LAKML, Huang Lin, Stephen Boyd, Doug Anderson, Kumar Gala,
Andy Yan, David S. Miller
On 20 November 2015 at 07:02, Chris Zhong <zyw@rock-chips.com> wrote:
> Hi Emil
>
> On 11/19/2015 10:41 PM, Emil Velikov wrote:
>>
>> On 19 November 2015 at 03:35, Chris Zhong <zyw@rock-chips.com> wrote:
>>>
>>> The rk3288 MIPI DSI is a Synopsys DesignWare MIPI DSI host controller
>>> IP. This series adds support for a Synopsys DesignWare MIPI DSI host
>>> controller DRM bridge driver and a rockchip MIPI DSI specific DRM
>>> driver.
>>>
>>> This series also includes a DRM panel driver for BOE TV080WUM-NL0 panel.
>>> This panel only use the MIPI DSI video mode.
>>>
>>> The MIPI DSI feature is tested on rk3288 evb board, backport them to
>>> chrome os kernel v3.14, and it can display normally.
>>>
>>> This patchset is base on the patchset from Ying.liu@freescale.com.
>>> <http://www.spinics.net/lists/dri-devel/msg77181.html>
>>>
>>>
>>> Changes in v3:
>>> move the dw_mipi_dsi.txt to
>>> Documentation/devicetree/bindings/display/bridge
>>> move dw_mipi_dsi_rockchip.txt to bindings/display/rockchip/
>>> move boe,tv080wum-nl0.txt to bindings/display/panel/
>>>
>>> Changes in v2:
>>> add the mipi clk id in a single patch
>>> As Thierry.Reding comment, add a documentation for this panel.
>>>
>>> Chris Zhong (10):
>>> clk: rockchip: add id for mipidsi sclk on rk3288
>>> clk: rockchip: add mipidsi clocks on rk3288
>>> drm/rockchip: return a true clock rate to adjusted_mode
>>> drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
>>
>> Did you actually rewrite the patch from Liu Ying ?
>
> I modify the dw_mipi_dsi.c based on the patch from Liu Ying.
If you base your work on top of (i.e. you rework) someone else's patch
you should retain this authorship and signed-off-by line. This of
course is not limited to the above patch but a general rule, afaik.
>>
>> Out of curiosity what was the obstacle of this work getting merged ?
>
> There are different version dw controller, and it is too hard to merge them,
> since most registers are different.
Have you discussed this limitation with Liu ? Does your work handle
both versions of the controller ? If so your commit message should say
something about that. Here are some good sources on the whats and whys
wrt writing good commit messages [1] [2]
[1] http://who-t.blogspot.co.uk/2009/12/on-commit-messages.html
[2] http://chris.beams.io/posts/git-commit/
>>
>>
>>> drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
>>> Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
>>> ARM: dts: rockchip: add rk3288 mipi_dsi nodes
>>> drm/panel: simple: Add support for BOE TV080WUM-NL0
>>> drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree
>>> binding
>>
>> As the DT people will tell you - there is no BOE vendor in
>> bindings/vendor-prefixes.txt.
>
> Yes, I have post a verdor patch in v2 series,
> <https://patchwork.kernel.org/patch/7530791/>
> Maybe I should add it back to series with
>
> Acked-by: Rob Herring<robh@kernel.org>
>
If a patch has been reviewed/acked that's great. Add the tag, but
please do not drop patches until they are merged. In the latter case
you can mention that your series depends on branch X from repo Y.
>>
>>> ARM: dts: rockchip: add support mipi panel tv080wum-nl0 for rk3288-evb
>>>
>>> Liu Ying (2):
>>> drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format
>>> Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM
>>> bridge driver
>>>
>> >From the above 12 patches only ~6 reached this mailing list is that
>> intentional ? Previously I've seen people CC dri-devel for their
>> panel/bridge DT patches.
>
> I use the patman to post the series, forgot to add you and Thierry to the
> to-list.
> I will fix in next version series. Thanks for your reply.
>
No need to add me bth. Thierry on the other hand should be Cc'd on the
patches where he's the maintainer.
As the To/Cc list is already quite excessive - I'd suggest following
the approach used by veterans in kernel development.
I'm not a veteran kernel dev, but this is what I've noticed over the years:
- Subsystem foo - mailing-list, maintainer(s), and optionally the top
1-2 developers
- Other subsystems - mailing-list and optionally the maintainer(s).
Thus in the case of the panel driver you'll get - dri-devel, Thierry
and optionally(?) devicetree
For the DT binding for the panel driver - devicetree, Rob, dri-devel, Thierry.
...I think you get the idea :-)
Regards,
Emil
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-20 12:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-19 3:35 [PATCH v3 00/12] Add mipi dsi support for rk3288 Chris Zhong
2015-11-19 3:35 ` [PATCH v3 02/12] clk: rockchip: add mipidsi clocks on rk3288 Chris Zhong
2015-11-19 14:41 ` [PATCH v3 00/12] Add mipi dsi support for rk3288 Emil Velikov
2015-11-20 7:02 ` Chris Zhong
2015-11-20 12:19 ` Emil Velikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox