Add mipi dsi support for rk3288
Subsystems (8)
v3 cover Add mipi dsi support for rk3288
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 [email protected].
<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
Signature · 1 line
2.6.3
PATCH v3 1/12 clk: rockchip: add id for mipidsi sclk on rk3288
Adds a new id for the sclk supplying the mipidsi on rk3288 socs.
---
Changes in v3: None
Changes in v2:
add the mipi clk id in a single patch
include/dt-bindings/clock/rk3288-cru.h | 1 + 1 file changed, 1 insertion(+)
include/dt-bindings/clock/rk3288-cru.h +1 -0
@@ -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
Signature · 6 lines
2.6.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v3 2/12 clk: rockchip: add mipidsi clocks on rk3288
In reply to Chris Zhongsclk_mipidsi_24m is the gating of mipi dsi phy.
---
Changes in v3: None
Changes in v2: None
drivers/clk/rockchip/clk-rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/rockchip/clk-rk3288.c +1 -1
@@ -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),
Signature · 1 line
2.6.3
PATCH v3 3/12 drm/rockchip: return a true clock rate to adjusted_mode
In reply to Chris ZhongSometimes the clock driver can not set a accurate clock_rate for vop, get the true rate of vop_dclk and set it back to adjusted_mode, since the mipi dsi driver need to use the clock to make the calculation of Blanking.
---
Changes in v3: None
Changes in v2: None
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +6 -0
@@ -1232,6 +1232,12 @@ static int vop_crtc_mode_set(struct drm_crtc *crtc,reset_control_deassert (vop->dclk_rst);clk_set_rate (vop->dclk, adjusted_mode->clock *1000 ); + +/* +* Sometimes the clock driver can not set a accurate clock_rate for vop, +* get the true rate of vop_dclk and set it back to adjusted_mode. +*/ + adjusted_mode->clock =clk_get_rate (vop->dclk) /1000 ; out: ret_clk =clk_enable (vop->dclk);if (ret_clk <0 ) {
Signature · 1 line
2.6.3
Re: [PATCH v3 03/12] drm/rockchip: return a true clock rate to adjusted_mode
drivers/gpu/drm/rockchip/rockchip_drm_vop.c static int vop_crtc_mode_set(struct drm_crtc *crtc, · line 1243
Quoted 9 lines · Chris Zhong
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +6
-0+ +/* +* Sometimes the clock driver can not set a accurate clock_rate for vop, +* get the true rate of vop_dclk and set it back to adjusted_mode. +*/ + adjusted_mode->clock =clk_get_rate (vop->dclk) /1000 ; out: ret_clk =clk_enable (vop->dclk);if (ret_clk <0 ) {
Hi Chris
How about use clk_round_rate to check the clock rate first? I think we can check it on vop_crtc_mode_fixup.
Thanks.
- ?ark Yao
Re: [PATCH v3 03/12] drm/rockchip: return a true clock rate to adjusted_mode
Quoted 11 lines · Mark yao
drivers/gpu/drm/rockchip/rockchip_drm_vop.c static int vop_crtc_mode_set(struct drm_crtc *crtc, · line 1243
Quoted 10 lines · Chris Zhong
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +3
-0+ +/* +* Sometimes the clock driver can not set a accurate clock_rate for vop,
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +3
-0+* get the true rate of vop_dclk and set it back to adjusted_mode. +*/ + adjusted_mode->clock =clk_get_rate (vop->dclk) /1000 ; out: ret_clk =clk_enable (vop->dclk);if (ret_clk <0 ) {
Quoted 3 lines
Hi Chris
How about useclk_round_rateto check the clock rate first? I think we can check it onvop_crtc_mode_fixup.
Hi Mark
Nice advice, I'll modify it in next version. Thanks.
Quoted 6 lines
Thanks.
- Mark Yao
PATCH v3 4/12 drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format
In reply to Chris ZhongFrom: Liu Ying <[email protected]>
---
Changes in v3: None
Changes in v2: None
include/drm/drm_mipi_dsi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
include/drm/drm_mipi_dsi.h +14 -0
@@ -163,6 +163,20 @@ static inline struct mipi_dsi_device *to_mipi_dsi_device(struct device *dev) return container_of(dev, struct mipi_dsi_device, dev); } +static inline int mipi_dsi_pixel_format_to_bpp (enum mipi_dsi_pixel_format fmt) +{ +switch (fmt) { +case MIPI_DSI_FMT_RGB888 : +case MIPI_DSI_FMT_RGB666 : +return 24 ; +case MIPI_DSI_FMT_RGB666_PACKED : +return 18 ; +case MIPI_DSI_FMT_RGB565 : +return 16 ; + } +return -EINVAL ; +} +struct mipi_dsi_device *of_find_mipi_dsi_device_by_node (struct device_node *np);int mipi_dsi_attach (struct mipi_dsi_device *dsi);int mipi_dsi_detach (struct mipi_dsi_device *dsi);
Signature · 1 line
2.6.3
PATCH v3 5/12 Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM bridge driver
In reply to Chris ZhongFrom: Liu Ying <[email protected]>
This patch adds device tree bindings for Synopsys DesignWare MIPI DSI host controller DRM bridge driver.
---
Changes in v3:
move the dw_mipi_dsi.txt to Documentation/devicetree/bindings/display/bridge
Changes in v2: None
.../bindings/display/bridge/dw_mipi_dsi.txt | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt
Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt new file +76 -0
@@ -0,0 +1,76 @@ +Device-Tree bindings for Synopsys DesignWare MIPI DSI host controller + +The controller is a digital core that implements all protocol functions +defined in the MIPI DSI specification, providing an interface between +the system and the MIPI DPHY, and allowing communication with a MIPI DSI +compliant display. + +Required properties: + - #address-cells: Should be <1>. + - #size-cells: Should be <0>. + - compatible: The first compatible string should be "fsl,imx6q-mipi-dsi" + for i.MX6q/sdl SoCs. For other SoCs, please refer to their specific + device tree binding documentations. A common compatible string + "snps,dw-mipi-dsi" should be appended for all SoCs. + - reg: Represent the physical address range of the controller. + - interrupts: Represent the controller's interrupt to the CPU(s). + - clocks, clock-names: Phandles to the controller's pll reference + clock(ref), configuration clock(cfg) and APB clock(pclk), as + described in [1]. + +For more required properties, please refer to relevant device tree binding +documentations which describe the controller embedded in specific SoCs. + +Required sub-nodes: + - A node to represent a DSI peripheral as described in [2]. + +For more required sub-nodes, please refer to relevant device tree binding +documentations which describe the controller embedded in specific SoCs. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt +[2] Documentation/devicetree/bindings/display/mipi-dsi-bus.txt + +example: + gpr: iomuxc-gpr@020e0000 { + /* ... */ + }; + + mipi_dsi: mipi@021e0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx6q-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x021e0000 0x4000>; + interrupts = <0 102 IRQ_TYPE_LEVEL_HIGH>; + gpr = <&gpr>; + clocks = <&clks IMX6QDL_CLK_MIPI_CORE_CFG>, + <&clks IMX6QDL_CLK_MIPI_CORE_CFG>, + <&clks IMX6QDL_CLK_MIPI_IPG>; + clock-names = "ref", "cfg", "pclk"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mipi_mux_0: endpoint { + remote-endpoint = <&ipu1_di0_mipi>; + }; + }; + + port@1 { + reg = <1>; + + mipi_mux_1: endpoint { + remote-endpoint = <&ipu1_di1_mipi>; + }; + }; + }; + + panel { + compatible = "truly,tft480800-16-e-dsi"; + reg = <0>; + /* ... */ + }; + };
Signature · 1 line
2.6.3
Rob Herring
maintainerRe: [PATCH v3 05/12] Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM bridge driver
Quoted 34 lines · Chris Zhong
From: Liu Ying <[email protected]>
This patch adds device tree bindings for Synopsys DesignWare MIPI DSI host controller DRM bridge driver.
Signed-off-by Liu Ying <[email protected]>Signed-off-by Chris Zhong <[email protected]>---
Changes in v3:
move the dw_mipi_dsi.txt toDocumentation/devicetree/bindings/display/bridgeChanges in v2: None
.../bindings/display/bridge/dw_mipi_dsi.txt | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txtDocumentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt new file +9
-0@@ -0,0 +1,76 @@ +Device-Tree bindings for Synopsys DesignWare MIPI DSI host controller + +The controller is a digital core that implements all protocol functions +defined in the MIPI DSI specification, providing an interface between +the system and the MIPI DPHY, and allowing communication with a MIPI DSI +compliant display. + +Required properties: + - #address-cells: Should be <1>.
Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt line 19
Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt new file +10
-0+ - #size-cells: Should be <0>. + - compatible: The first compatible string should be "fsl,imx6q-mipi-dsi" + for i.MX6q/sdl SoCs. For other SoCs, please refer to their specific + device tree binding documentations. A common compatible string + "snps,dw-mipi-dsi" should be appended for all SoCs. + - reg: Represent the physical address range of the controller. + - interrupts: Represent the controller's interrupt to the CPU(s). + - clocks, clock-names: Phandles to the controller's pll reference + clock(ref), configuration clock(cfg) and APB clock(pclk), as + described in [1].
You are missing the gpr property.
Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt line 25
Quoted 6 lines
Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt new file +6
-0+ +For more required properties, please refer to relevant device tree binding +documentations which describe the controller embedded in specific SoCs. + +Required sub-nodes: + - A node to represent a DSI peripheral as described in [2].
Please describe the ports.
Quoted 54 lines
Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt new file +51
-0+ +For more required sub-nodes, please refer to relevant device tree binding +documentations which describe the controller embedded in specific SoCs. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt +[2] Documentation/devicetree/bindings/display/mipi-dsi-bus.txt + +example: + gpr: iomuxc-gpr@020e0000 { + /* ... */ + }; + + mipi_dsi: mipi@021e0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx6q-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0x021e0000 0x4000>; + interrupts = <0 102 IRQ_TYPE_LEVEL_HIGH>; + gpr = <&gpr>; + clocks = <&clks IMX6QDL_CLK_MIPI_CORE_CFG>, + <&clks IMX6QDL_CLK_MIPI_CORE_CFG>, + <&clks IMX6QDL_CLK_MIPI_IPG>; + clock-names = "ref", "cfg", "pclk"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + mipi_mux_0: endpoint { + remote-endpoint = <&ipu1_di0_mipi>; + }; + }; + + port@1 { + reg = <1>; + + mipi_mux_1: endpoint { + remote-endpoint = <&ipu1_di1_mipi>; + }; + }; + }; + + panel { + compatible = "truly,tft480800-16-e-dsi"; + reg = <0>; + /* ... */ + }; + };Signature · 1 line
2.6.3
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v3 6/12 drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
In reply to Chris Zhongadd Synopsys DesignWare MIPI DSI host controller driver support.
---
Changes in v3: None
Changes in v2: None
drivers/gpu/drm/bridge/Kconfig | 11 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/dw_mipi_dsi.c | 1055 ++++++++++++++++++++++++++++++++++ include/drm/bridge/dw_mipi_dsi.h | 27 + 4 files changed, 1094 insertions(+) create mode 100644 drivers/gpu/drm/bridge/dw_mipi_dsi.c create mode 100644 include/drm/bridge/dw_mipi_dsi.h
drivers/gpu/drm/bridge/Kconfig +11 -0
@@ -22,6 +22,17 @@ config DRM_DW_HDMI_AHB_AUDIO Designware HDMI block. This is used in conjunction with the i.MX6 HDMI driver. +config DRM_DW_MIPI_DSI + tristate "Synopsys DesignWare MIPI DSI host controller bridge" + depends on DRM + select DRM_KMS_HELPER + select DRM_MIPI_DSI + select DRM_PANEL + help + Choose this if you want to use the Synopsys DesignWare MIPI DSI host + controller bridge. If M is selected, the module will be + called dw_mipi_dsi. DRM_MIPI_DSI support is required for this driver + to work. config DRM_NXP_PTN3460 tristate "NXP PTN3460 DP/LVDS bridge"
drivers/gpu/drm/bridge/Makefile +1 -0
@@ -2,5 +2,6 @@ ccflags-y := -Iinclude/drm obj-$(CONFIG_DRM_DW_HDMI) += dw_hdmi.o obj-$(CONFIG_DRM_DW_HDMI_AHB_AUDIO) += dw_hdmi-ahb-audio.o +obj-$(CONFIG_DRM_DW_MIPI_DSI) += dw_mipi_dsi.o obj-$(CONFIG_DRM_NXP_PTN3460) += nxp-ptn3460.o obj-$(CONFIG_DRM_PARADE_PS8622) += parade-ps8622.o
drivers/gpu/drm/bridge/dw_mipi_dsi.c new file +1055 -0
1,055 lines not on this page · raw message
include/drm/bridge/dw_mipi_dsi.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014-2015 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +*/ + +#ifndef __DW_MIPI_DSI__ +#define __DW_MIPI_DSI__ + +#include <drm/drmP.h> + +struct dw_mipi_dsi_plat_data { +unsigned int max_data_lanes; +enum drm_mode_status (*mode_valid)(struct drm_connector *connector, +struct drm_display_mode *mode); +}; + +int dw_mipi_dsi_get_encoder_pixel_format (struct drm_encoder *encoder); + +int dw_mipi_dsi_bind (struct device *dev,struct device *master, +void *data,struct drm_encoder *encoder, +const struct dw_mipi_dsi_plat_data *pdata); +void dw_mipi_dsi_unbind (struct device *dev,struct device *master,void *data); +#endif /* __DW_MIPI_DSI__ */
Signature · 1 line
2.6.3
kbuild test robot
build botRe: [PATCH v3 06/12] drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…
Hi Chris,
[auto build test WARNING on drm/drm-next] [also build test WARNING on v4.4-rc1 next-20151118] [cannot apply to rockchip/for-next]
url: https://github.com/0day-ci/linux/commits/Chris-Zhong/Add-mipi-dsi-support-for-rk3288/20151119-114228 base: git://people.freedesktop.org/~airlied/linux.git drm-next config: openrisc-allmodconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc
All warnings (new ones prefixed by >>):
drivers/gpu/drm/bridge/dw_mipi_dsi.c: In function 'dw_mipi_dsi_get_hcomponent_lbcc':
>> drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:9: warning: comparison of distinct pointer types lacks a cast >> drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:2: warning: right shift count >= width of type >> drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:2: warning: passing argument 1 of '__div64_32' from incompatible pointer type
include/asm-generic/div64.h:35:17: note: expected 'uint64_t *' but argument is of type 'u32 *'
vim +819 drivers/gpu/drm/bridge/dw_mipi_dsi.c
803 static void dw_mipi_dsi_command_mode_config(struct dw_mipi_dsi *dsi)
804 {
805 dsi_write(dsi, DSI_TO_CNT_CFG, HSTX_TO_CNT(1000) | LPRX_TO_CNT(1000));
806 dsi_write(dsi, DSI_BTA_TO_CNT, 0xd00);
807 dsi_write(dsi, DSI_CMD_MODE_CFG, CMD_MODE_ALL_LP);
808 dsi_write(dsi, DSI_MODE_CFG, ENABLE_CMD_MODE);
809 }
810
811 /* Get lane byte clock cycles. */
812 static u32 dw_mipi_dsi_get_hcomponent_lbcc(struct dw_mipi_dsi *dsi,
813 u32 hcomponent)
814 {
815 u32 frac, lbcc;
816
817 lbcc = hcomponent * dsi->lane_mbps * MSEC_PER_SEC / 8;
818
> 819 frac = do_div(lbcc, dsi->mode->clock);
820 if (frac)
821 lbcc++;
822
823 return lbcc;
824 }
825
826 static void dw_mipi_dsi_line_timer_config(struct dw_mipi_dsi *dsi)
827 {
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
kbuild test robot
build botRe: [PATCH v3 06/12] drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
In reply to Chris Zhongreproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…
Hi Chris,
[auto build test WARNING on: drm/drm-next] [also build test WARNING on: v4.4-rc1 next-20151118] [cannot apply to: rockchip/for-next]
url: https://github.com/0day-ci/linux/commits/Chris-Zhong/Add-mipi-dsi-support-for-rk3288/20151119-114228 base: git://people.freedesktop.org/~airlied/linux.git drm-next config: sparc-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc
All warnings (new ones prefixed by >>):
drivers/gpu/drm/bridge/dw_mipi_dsi.c: In function 'dw_mipi_dsi_dcs_short_write':
>> drivers/gpu/drm/bridge/dw_mipi_dsi.c:525:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
msg->tx_len);
^
drivers/gpu/drm/bridge/dw_mipi_dsi.c: In function 'dw_mipi_dsi_dcs_long_write':
drivers/gpu/drm/bridge/dw_mipi_dsi.c:542:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
msg->tx_len);
^vim +525 drivers/gpu/drm/bridge/dw_mipi_dsi.c
509 if (ret < 0) {
510 dev_err(dsi->dev, "failed to write command FIFO\n");
511 return ret;
512 }
513
514 return 0;
515 }
516
517 static int dw_mipi_dsi_dcs_short_write(struct dw_mipi_dsi *dsi,
518 const struct mipi_dsi_msg *msg)
519 {
520 const u16 *tx_buf = msg->tx_buf;
521 u32 val = GEN_HDATA(*tx_buf) | GEN_HTYPE(msg->type);
522
523 if (msg->tx_len > 2) {
524 dev_err(dsi->dev, "too long tx buf length %d for short write\n",
> 525 msg->tx_len);
526 return -EINVAL;
527 }
528
529 return dw_mipi_dsi_gen_pkt_hdr_write(dsi, val);
530 }
531
532 static int dw_mipi_dsi_dcs_long_write(struct dw_mipi_dsi *dsi,
533 const struct mipi_dsi_msg *msg)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
kbuild test robot
build botRe: [PATCH v3 06/12] drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
In reply to Chris Zhongreproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…
Hi Chris,
[auto build test WARNING on drm/drm-next] [also build test WARNING on v4.4-rc1 next-20151118] [cannot apply to rockchip/for-next]
url: https://github.com/0day-ci/linux/commits/Chris-Zhong/Add-mipi-dsi-support-for-rk3288/20151119-114228 base: git://people.freedesktop.org/~airlied/linux.git drm-next config: xtensa-allmodconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
In file included from arch/xtensa/include/generated/asm/div64.h:1:0,
from include/linux/kernel.h:136,
from include/linux/clk.h:16,
from drivers/gpu/drm/bridge/dw_mipi_dsi.c:10:
drivers/gpu/drm/bridge/dw_mipi_dsi.c: In function 'dw_mipi_dsi_get_hcomponent_lbcc':
include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
(void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
^
>> drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:9: note: in expansion of macro 'do_div'
frac = do_div(lbcc, dsi->mode->clock);
^
drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:2: warning: right shift count >= width of type
frac = do_div(lbcc, dsi->mode->clock);
^
In file included from arch/xtensa/include/generated/asm/div64.h:1:0,
from include/linux/kernel.h:136,
from include/linux/clk.h:16,
from drivers/gpu/drm/bridge/dw_mipi_dsi.c:10:
include/asm-generic/div64.h:48:11: warning: passing argument 1 of '__div64_32' from incompatible pointer type
__rem = __div64_32(&(n), __base); \
^
>> drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:9: note: in expansion of macro 'do_div'
frac = do_div(lbcc, dsi->mode->clock);
^
include/asm-generic/div64.h:35:17: note: expected 'uint64_t *' but argument is of type 'u32 *'
extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
^vim +/do_div +819 drivers/gpu/drm/bridge/dw_mipi_dsi.c
803 static void dw_mipi_dsi_command_mode_config(struct dw_mipi_dsi *dsi)
804 {
805 dsi_write(dsi, DSI_TO_CNT_CFG, HSTX_TO_CNT(1000) | LPRX_TO_CNT(1000));
806 dsi_write(dsi, DSI_BTA_TO_CNT, 0xd00);
807 dsi_write(dsi, DSI_CMD_MODE_CFG, CMD_MODE_ALL_LP);
808 dsi_write(dsi, DSI_MODE_CFG, ENABLE_CMD_MODE);
809 }
810
811 /* Get lane byte clock cycles. */
812 static u32 dw_mipi_dsi_get_hcomponent_lbcc(struct dw_mipi_dsi *dsi,
813 u32 hcomponent)
814 {
815 u32 frac, lbcc;
816
817 lbcc = hcomponent * dsi->lane_mbps * MSEC_PER_SEC / 8;
818
> 819 frac = do_div(lbcc, dsi->mode->clock);
820 if (frac)
821 lbcc++;
822
823 return lbcc;
824 }
825
826 static void dw_mipi_dsi_line_timer_config(struct dw_mipi_dsi *dsi)
827 {
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 7/12 drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
In reply to Chris ZhongAdd support for Synopsys DesignWare MIPI DSI host controller which is embedded in the rk3288 SoCs.
---
Changes in v3: None
Changes in v2: None
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 | 3 + 4 files changed, 263 insertions(+) create mode 100644 drivers/gpu/drm/rockchip/dw_mipi_dsi_rockchip.c
drivers/gpu/drm/rockchip/Kconfig +10 -0
@@ -25,3 +25,13 @@ config ROCKCHIP_DW_HDMI for the Synopsys DesignWare HDMI driver. If you want to enable HDMI on RK3288 based SoC, you should selet this option. + +config ROCKCHIP_DW_MIPI_DSI + bool "Rockchip specific extensions for Synopsys DW MIPI DSI" + depends on DRM_ROCKCHIP + select DRM_DW_MIPI_DSI + help + This selects support for Rockchip SoC specific extensions + for the Synopsys DesignWare HDMI driver. If you want to + enable MIPI DSI on RK3288 based SoC, you should selet this + option.
drivers/gpu/drm/rockchip/Makefile +1 -0
@@ -6,5 +6,6 @@ rockchipdrm-y := rockchip_drm_drv.o rockchip_drm_fb.o rockchip_drm_fbdev.o \ rockchip_drm_gem.o obj-$(CONFIG_ROCKCHIP_DW_HDMI) += dw_hdmi-rockchip.o +obj-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw_mipi_dsi_rockchip.o obj-$(CONFIG_DRM_ROCKCHIP) += rockchipdrm.o rockchip_drm_vop.o
drivers/gpu/drm/rockchip/dw_mipi_dsi_rockchip.c new file +249 -0
249 lines not on this page · raw message
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +3 -0
@@ -1194,6 +1194,9 @@ static int vop_crtc_mode_set(struct drm_crtc *crtc,case DRM_MODE_CONNECTOR_HDMIA :VOP_CTRL_SET (vop, hdmi_en,1 );break ; +case DRM_MODE_CONNECTOR_DSI : +VOP_CTRL_SET (vop, mipi_en,1 ); +break ;default :DRM_ERROR ("unsupport connector_type[%d]\n" , vop->connector_type);
Signature · 1 line
2.6.3
PATCH v3 8/12 Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
In reply to Chris Zhongadd device tree bindings for rk3288 specific Synopsys DW MIPI DSI driver
---
Changes in v3:
move dw_mipi_dsi_rockchip.txt to bindings/display/rockchip/
Changes in v2: None
.../display/rockchip/dw_mipi_dsi_rockchip.txt | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt
Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt new file +56 -0
@@ -0,0 +1,56 @@ +Rockchip specific extensions to the Synopsys Designware MIPI DSI +================================ + +Required properties: +- compatible: "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi". +- rockchip,grf: this soc should set GRF regs to mux vopl/vopb. +- ports: contain a port node with endpoint definitions as defined in [1]. + For vopb,set the reg = <0> and set the reg = <1> for vopl. + +For more required properties, please refer to [2]. + +[1] Documentation/devicetree/bindings/media/video-interfaces.txt +[2] Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt + +Example: + mipi_dsi: mipi at ff960000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0xff960000 0x4000>; + interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPI_DSI0>; + clock-names = "ref", "pclk"; + rockchip,grf = <&grf>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + mipi_in: port { + #address-cells = <1>; + #size-cells = <0>; + mipi_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi>; + }; + mipi_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi>; + }; + }; + }; + + panel { + compatible ="boe,tv080wum-nl0"; + reg = <0>; + + enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_en>; + backlight = <&backlight>; + status = "okay"; + }; + };
Signature · 1 line
2.6.3
Re: [PATCH v3 08/12] Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
Quoted 3 lines · Chris Zhong
add device tree bindings for rk3288 specific Synopsys DW MIPI DSI driver
Signed-off-by Chris Zhong <[email protected]>
Quoted 81 lines
---
Changes in v3:
move dw_mipi_dsi_rockchip.txt to bindings/display/rockchip/Changes in v2: None
.../display/rockchip/dw_mipi_dsi_rockchip.txt | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txtDocumentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt new file +56
-0@@ -0,0 +1,56 @@ +Rockchip specific extensions to the Synopsys Designware MIPI DSI +================================ + +Required properties: +- compatible: "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi". +- rockchip,grf: this soc should set GRF regs to mux vopl/vopb. +- ports: contain a port node with endpoint definitions as defined in [1]. + For vopb,set the reg = <0> and set the reg = <1> for vopl. + +For more required properties, please refer to [2]. + +[1] Documentation/devicetree/bindings/media/video-interfaces.txt +[2] Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt + +Example: + mipi_dsi: mipi at ff960000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0xff960000 0x4000>; + interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPI_DSI0>; + clock-names = "ref", "pclk"; + rockchip,grf = <&grf>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + mipi_in: port { + #address-cells = <1>; + #size-cells = <0>; + mipi_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi>; + }; + mipi_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi>; + }; + }; + }; + + panel { + compatible ="boe,tv080wum-nl0"; + reg = <0>; + + enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_en>; + backlight = <&backlight>; + status = "okay"; + }; + };Signature · 6 lines
2.6.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v3 9/12 ARM: dts: rockchip: add rk3288 mipi_dsi nodes
In reply to Chris ZhongAdd a mipi_dsi node, and also add mipi_dsi endpoints to vopb and vopl output port nodes.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/rk3288.dtsi | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
arch/arm/boot/dts/rk3288.dtsi +39 -0
@@ -798,6 +798,10 @@ reg = <0>; remote-endpoint = <&hdmi_in_vopb>; }; + vopb_out_mipi: endpoint at 1 { + reg = <1>; + remote-endpoint = <&mipi_in_vopb>; + }; }; };
@@ -831,6 +835,10 @@ reg = <0>; remote-endpoint = <&hdmi_in_vopl>; }; + vopl_out_mipi: endpoint at 1 { + reg = <1>; + remote-endpoint = <&mipi_in_vopl>; + }; }; };
@@ -871,6 +879,37 @@ }; }; + mipi_dsi: mipi at ff960000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0xff960000 0x4000>; + interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPI_DSI0>; + clock-names = "ref", "pclk"; + rockchip,grf = <&grf>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + mipi_in: port { + #address-cells = <1>; + #size-cells = <0>; + mipi_in_vopb: endpoint at 0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi>; + }; + mipi_in_vopl: endpoint at 1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi>; + }; + }; + }; + }; + gic: interrupt-controller at ffc01000 { compatible = "arm,gic-400"; interrupt-controller;
Signature · 1 line
2.6.3
PATCH v3 10/12 drm/panel: simple: Add support for BOE TV080WUM-NL0
In reply to Chris ZhongThis adds support for the BOE TV080WUM-NL0 1200x1920 mipi panel to the DRM simple panel driver.
---
Changes in v3: None
Changes in v2: None
drivers/gpu/drm/panel/panel-simple.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +33 -0
@@ -1348,6 +1348,36 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = { .lanes = 4, }; +static const struct drm_display_mode boe_tv080wum_nl0_mode = { + .clock =160000 , + .hdisplay =1200 , + .hsync_start =1200 +120 , + .hsync_end =1200 +120 +20 , + .htotal =1200 +120 +20 +21 , + .vdisplay =1920 , + .vsync_start =1920 +21 , + .vsync_end =1920 +21 +3 , + .vtotal =1920 +21 +3 +18 , + .vrefresh =60 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , +}; + +static const struct panel_desc_dsi boe_tv080wum_nl0 = { + .desc = { + .modes = &boe_tv080wum_nl0_mode, + .num_modes =1 , + .size = { + .width =107 , + .height =172 , + }, + }, + .flags =MIPI_DSI_MODE_VIDEO | +MIPI_DSI_MODE_VIDEO_BURST | +MIPI_DSI_MODE_VIDEO_SYNC_PULSE , + .format =MIPI_DSI_FMT_RGB888 , + .lanes =4 , +}; +static const struct of_device_id dsi_of_match[] = { { .compatible ="auo,b080uan01" ,
@@ -1362,6 +1392,9 @@ static const struct of_device_id dsi_of_match[] = { .compatible = "panasonic,vvx10f004b00", .data = &panasonic_vvx10f004b00 }, { + .compatible = "boe,tv080wum-nl0", + .data = &boe_tv080wum_nl0 + }, {/* sentinel */ } };
Signature · 1 line
2.6.3
Re: [PATCH v3 10/12] drm/panel: simple: Add support for BOE TV080WUM-NL0
Hi Chris,
Missing Thierry from the To/Cc list ? His name/email should have popped up when using the get_mainteiners.pl script.
Quoted 54 lines · Chris Zhong
This adds support for the BOE TV080WUM-NL0 1200x1920 mipi panel to the DRM simple panel driver.
Signed-off-by Chris Zhong <[email protected]>---
Changes in v3: None
Changes in v2: Nonedrivers/gpu/drm/panel/panel-simple.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)drivers/gpu/drm/panel/panel-simple.c +30
-0@@ -1348,6 +1348,36 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = { .lanes = 4, }; +static const struct drm_display_mode boe_tv080wum_nl0_mode = { + .clock =160000 , + .hdisplay =1200 , + .hsync_start =1200 +120 , + .hsync_end =1200 +120 +20 , + .htotal =1200 +120 +20 +21 , + .vdisplay =1920 , + .vsync_start =1920 +21 , + .vsync_end =1920 +21 +3 , + .vtotal =1920 +21 +3 +18 , + .vrefresh =60 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , +}; + +static const struct panel_desc_dsi boe_tv080wum_nl0 = { + .desc = { + .modes = &boe_tv080wum_nl0_mode, + .num_modes =1 , + .size = { + .width =107 , + .height =172 , + }, + }, + .flags =MIPI_DSI_MODE_VIDEO | +MIPI_DSI_MODE_VIDEO_BURST | +MIPI_DSI_MODE_VIDEO_SYNC_PULSE , + .format =MIPI_DSI_FMT_RGB888 , + .lanes =4 , +}; +static const struct of_device_id dsi_of_match[] = { { .compatible ="auo,b080uan01" ,
drivers/gpu/drm/panel/panel-simple.c static const struct of_device_id dsi_of_match[] = { · line 1397
Quoted 6 lines
drivers/gpu/drm/panel/panel-simple.c +3
-0@@ -1362,6 +1392,9 @@ static const struct of_device_id dsi_of_match[] = { .compatible = "panasonic,vvx10f004b00", .data = &panasonic_vvx10f004b00 }, { + .compatible = "boe,tv080wum-nl0", + .data = &boe_tv080wum_nl0 + }, {
All the new additional should be sorted alphabetically - first by vendor and then product name.
Regards,
Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 11/12 drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree binding
In reply to Chris ZhongThis binding specifies a set of common properties for display panels. It can be used as a basis by bindings for specific panels. Bindings for three specific panels are provided to show how the simple panel binding can be used.
---
Changes in v3:
move boe,tv080wum-nl0.txt to bindings/display/panel/
Changes in v2:
As Thierry.Reding comment, add a documentation for this panel.
.../devicetree/bindings/display/panel/boe,tv080wum-nl0.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv080wum-nl0.txt
Documentation/devicetree/bindings/display/panel/boe,tv080wum-nl0.txt new file +7 -0
@@ -0,0 +1,7 @@ +Boe Corporation 8.0" WUXGA TFT LCD panel + +Required properties: +- compatible: should be "boe,tv080wum-nl0" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory.
Signature · 1 line
2.6.3
Re: [PATCH v3 11/12] drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree binding
Quoted 6 lines · Chris Zhong
This binding specifies a set of common properties for display panels. It can be used as a basis by bindings for specific panels. Bindings for three specific panels are provided to show how the simple panel binding can be used.
Signed-off-by Chris Zhong <[email protected]>
Quoted 29 lines
---
Changes in v3:
move boe,tv080wum-nl0.txt to bindings/display/panel/Changes in v2:
As Thierry.Reding comment, add a documentation for this panel..../devicetree/bindings/display/panel/boe,tv080wum-nl0.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv080wum-nl0.txtDocumentation/devicetree/bindings/display/panel/boe,tv080wum-nl0.txt new file +7
-0@@ -0,0 +1,7 @@ +Boe Corporation 8.0" WUXGA TFT LCD panel + +Required properties: +- compatible: should be "boe,tv080wum-nl0" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory.Signature · 1 line
2.6.3
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 12/12 ARM: dts: rockchip: add support mipi panel tv080wum-nl0 for rk3288-evb
In reply to Chris ZhongThis tv080wum-nl0 panel is a mipi panel, it can use in MIPI_TX socket of rk3288 evb board.
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/rk3288-evb.dtsi | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-)
arch/arm/boot/dts/rk3288-evb.dtsi +19 -1
@@ -47,7 +47,7 @@ reg = <0x0 0x80000000>; }; - backlight { + backlight: backlight { compatible = "pwm-backlight"; brightness-levels = < 0 1 2 3 4 5 6 7
@@ -177,6 +177,21 @@ status = "okay"; }; +&mipi_dsi { + status = "okay"; + + panel { + compatible ="boe,tv080wum-nl0"; + reg = <0>; + + enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_en>; + backlight = <&backlight>; + status = "okay"; + }; +}; + &sdmmc { bus-width = <4>; cap-mmc-highspeed;
@@ -247,6 +262,9 @@ bl_en: bl-en { rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>; }; + lcd_en: lcd-en { + rockchip,pins = <7 3 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; buttons {
Signature · 1 line
2.6.3
Quoted 24 lines · Chris Zhong
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 [email protected].
<http://www.spinics.net/lists/dri-devel/msg77181.html>Changes in v3:
move the dw_mipi_dsi.txt toDocumentation/devicetree/bindings/display/bridgemove 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.
Quoted 5 lines
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 toadjusted_modedrm/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 ?
Quoted 6 lines
drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
ARM: dts: rockchip: add rk3288mipi_dsinodes
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.
Quoted 8 lines
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 driverFrom 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
Chris Zhong
Acked-by Rob HerringHi Emil
Quoted 25 lines · Emil Velikov
Quoted 24 lines · Chris Zhong
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 [email protected].
<http://www.spinics.net/lists/dri-devel/msg77181.html>Changes in v3:
move the dw_mipi_dsi.txt toDocumentation/devicetree/bindings/display/bridgemove 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.
Quoted 6 lines
Quoted 5 lines
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 toadjusted_modedrm/bridge: Add Synopsys DesignWare MIPI DSI host controller driverDid you actually rewrite the patch from Liu Ying ?
I modify the dw_mipi_dsi.c based on the patch from Liu Ying.
Quoted 1 line
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.
Quoted 9 lines
Quoted 7 lines
drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
ARM: dts: rockchip: add rk3288mipi_dsinodes
drm/panel: simple: Add support for BOE TV080WUM-NL0 drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree
bindingAs 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
Quoted 11 lines
Quoted 9 lines
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 driverFrom 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.
Quoted 6 lines
Regards,
Emil
Quoted 37 lines · Chris Zhong
Hi Emil
Quoted 34 lines · Emil Velikov
Quoted 31 lines · Chris Zhong
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 [email protected].
<http://www.spinics.net/lists/dri-devel/msg77181.html>Changes in v3:
move the dw_mipi_dsi.txt toDocumentation/devicetree/bindings/display/bridgemove 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 toadjusted_modedrm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
Quoted 3 lines
Quoted 1 line
Did you actually rewrite the patch from Liu Ying ?
I modify the
dw_mipi_dsi.cbased 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.
Quoted 5 lines
Quoted 2 lines
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/
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller
Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver
ARM: dts: rockchip: add rk3288mipi_dsinodes
drm/panel: simple: Add support for BOE TV080WUM-NL0 drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree
binding
Quoted 9 lines
Quoted 2 lines
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 withAcked-by Rob Herring<[email protected]>
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.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
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
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
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