* [PATCH 00/10] Add mipi dsi support for rk3288
@ 2015-10-10 9:55 Chris Zhong
2015-10-10 9:55 ` [PATCH 01/10] clk: rockchip: Add sclk_mipidsi_24m for mipi dsi Chris Zhong
0 siblings, 1 reply; 4+ messages in thread
From: Chris Zhong @ 2015-10-10 9:55 UTC (permalink / raw)
To: heiko, linux-rockchip
Cc: Chris Zhong, Thierry Reding, Kumar Gala, dri-devel, Ian Campbell,
Rob Herring, David Airlie, Jeff Chen, Thierry Reding, linux-clk,
Alexandru M Stan, Sonny Rao, 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,
Mark Yao, David S. Miller, Andy Yan, Mark Rutland, Sean Paul,
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>
Chris Zhong (8):
clk: rockchip: Add sclk_mipidsi_24m for mipi dsi
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
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
.../devicetree/bindings/drm/bridge/dw_mipi_dsi.txt | 76 ++
.../bindings/video/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 | 10 +
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 +
16 files changed, 1601 insertions(+), 2 deletions(-)
create mode 100644 Documentation/devicetree/bindings/drm/bridge/dw_mipi_dsi.txt
create mode 100644 Documentation/devicetree/bindings/video/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.1
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 01/10] clk: rockchip: Add sclk_mipidsi_24m for mipi dsi 2015-10-10 9:55 [PATCH 00/10] Add mipi dsi support for rk3288 Chris Zhong @ 2015-10-10 9:55 ` Chris Zhong 2015-10-16 21:39 ` Stephen Boyd 0 siblings, 1 reply; 4+ messages in thread From: Chris Zhong @ 2015-10-10 9:55 UTC (permalink / raw) To: heiko, linux-rockchip Cc: Chris Zhong, devicetree, linux-clk, Michael Turquette, Jeff Chen, Stephen Boyd, linux-kernel, Doug Anderson, Kumar Gala, David S. Miller, Ian Campbell, Sonny Rao, Rob Herring, linux-arm-kernel, Pawel Moll, Mark Rutland, Huang Lin, Roger Chen, Alexandru M Stan sclk_mipidsi_24m is the gating of mipi dsi phy. Signed-off-by: Chris Zhong <zyw@rock-chips.com> --- drivers/clk/rockchip/clk-rk3288.c | 2 +- include/dt-bindings/clock/rk3288-cru.h | 1 + 2 files changed, 2 insertions(+), 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), diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h index c719aac..b07cdd3 100644 --- a/include/dt-bindings/clock/rk3288-cru.h +++ b/include/dt-bindings/clock/rk3288-cru.h @@ -86,6 +86,7 @@ #define SCLK_USBPHY480M_SRC 122 #define SCLK_PVTM_CORE 123 #define SCLK_PVTM_GPU 124 +#define SCLK_MIPI_24M 125 #define SCLK_MAC 151 #define SCLK_MACREF_OUT 152 -- 2.6.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 01/10] clk: rockchip: Add sclk_mipidsi_24m for mipi dsi 2015-10-10 9:55 ` [PATCH 01/10] clk: rockchip: Add sclk_mipidsi_24m for mipi dsi Chris Zhong @ 2015-10-16 21:39 ` Stephen Boyd 2015-10-17 0:49 ` Chris Zhong 0 siblings, 1 reply; 4+ messages in thread From: Stephen Boyd @ 2015-10-16 21:39 UTC (permalink / raw) To: Chris Zhong Cc: heiko, linux-rockchip, devicetree, linux-clk, Michael Turquette, Jeff Chen, linux-kernel, Doug Anderson, Kumar Gala, David S. Miller, Ian Campbell, Sonny Rao, Rob Herring, linux-arm-kernel, Pawel Moll, Mark Rutland, Huang Lin, Roger Chen, Alexandru M Stan On 10/10, Chris Zhong wrote: > sclk_mipidsi_24m is the gating of mipi dsi phy. > > Signed-off-by: Chris Zhong <zyw@rock-chips.com> > --- Acked-by: Stephen Boyd <sboyd@codeaurora.org> > > drivers/clk/rockchip/clk-rk3288.c | 2 +- > include/dt-bindings/clock/rk3288-cru.h | 1 + > 2 files changed, 2 insertions(+), 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), > It would have been better to make #defines for all these clocks even if they weren't going to be used here. Then we could have applied this patch directly to clk tree without having a clk tree to arm-soc dependency. </grumble> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 01/10] clk: rockchip: Add sclk_mipidsi_24m for mipi dsi 2015-10-16 21:39 ` Stephen Boyd @ 2015-10-17 0:49 ` Chris Zhong 0 siblings, 0 replies; 4+ messages in thread From: Chris Zhong @ 2015-10-17 0:49 UTC (permalink / raw) To: Stephen Boyd Cc: heiko, linux-rockchip, devicetree, linux-clk, Michael Turquette, Jeff Chen, linux-kernel, Doug Anderson, Kumar Gala, David S. Miller, Ian Campbell, Sonny Rao, Rob Herring, linux-arm-kernel, Pawel Moll, Mark Rutland, Huang Lin, Roger Chen, Alexandru M Stan On 10/17/2015 05:39 AM, Stephen Boyd wrote: > On 10/10, Chris Zhong wrote: >> sclk_mipidsi_24m is the gating of mipi dsi phy. >> >> Signed-off-by: Chris Zhong <zyw@rock-chips.com> >> --- > Acked-by: Stephen Boyd <sboyd@codeaurora.org> > >> drivers/clk/rockchip/clk-rk3288.c | 2 +- >> include/dt-bindings/clock/rk3288-cru.h | 1 + >> 2 files changed, 2 insertions(+), 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), >> > It would have been better to make #defines for all these clocks > even if they weren't going to be used here. Then we could have > applied this patch directly to clk tree without having a clk tree > to arm-soc dependency. </grumble> > Thanks for your great suggestion, I'll defines all clocks at next version patch serial ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-17 0:50 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-10-10 9:55 [PATCH 00/10] Add mipi dsi support for rk3288 Chris Zhong 2015-10-10 9:55 ` [PATCH 01/10] clk: rockchip: Add sclk_mipidsi_24m for mipi dsi Chris Zhong 2015-10-16 21:39 ` Stephen Boyd 2015-10-17 0:49 ` Chris Zhong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).