IT6505 cover letter
Subsystems (5)
cover IT6505 cover letter
The IT6505 is a high-performance DisplayPort 1.1a transmitter, fully compliant with DisplayPort 1.1a, HDCP 1.3 specifications. The IT6505 supports color depth of up to 36 bits (12 bits/color) and ensures robust transmission of high-quality uncompressed video content, along with uncompressed and compressed digital audio content.
This series refactors previous it6505 driver and contains document bindings, Kconfig to control the function enable or not.
allen (2):
ite-it6505 change trigger condition
drm/bridge: add it6505 driver
.../bindings/display/bridge/ite,it6505.yaml | 2 +- drivers/gpu/drm/bridge/Kconfig | 7 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/ite-it6505.c | 3278 ++++++++++++++++++++ 4 files changed, 3287 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/bridge/ite-it6505.c
Signature · 1 line
1.9.1
PATCH 1/2 ite-it6505 change trigger conditions
it6505 changes trigger conditions.
--- Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml +1 -1
@@ -73,7 +73,7 @@ examples: dp-bridge@5c { compatible = "ite,it6505"; - interrupts = <152 IRQ_TYPE_EDGE_FALLING 152 0>; + interrupts = <152 IRQ_TYPE_LEVEL_LOW 152 0>; reg = <0x5c>; pinctrl-names = "default"; pinctrl-0 = <&it6505_pins>;
Signature · 1 line
1.9.1
Rob Herring
maintainerRe: [PATCH v1 1/2] ite-it6505 change trigger conditions
Quoted 1 line · allen
it6505 changes trigger conditions.
Patches must have a Signed-off-by with a full name.
Quoted 9 lines
--- Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml +0
-0
Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml examples: · line 76
Quoted 5 lines
Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml +1
-1@@ -73,7 +73,7 @@ examples: dp-bridge@5c { compatible = "ite,it6505"; - interrupts = <152 IRQ_TYPE_EDGE_FALLING 152 0>; + interrupts = <152 IRQ_TYPE_LEVEL_LOW 152 0>;
How does this have 2 interrupts which are the same irq number, but different flags?
Quoted 6 lines
Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml +0
-0reg = <0x5c>; pinctrl-names = "default"; pinctrl-0 = <&it6505_pins>;Signature · 1 line
1.9.1
PATCH 2/2 drm/bridge: add refactored it6505 driver
In reply to allenThis adds support for the iTE IT6505.
This device can convert DPI signal to DP output.
--- drivers/gpu/drm/bridge/Kconfig | 7 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/ite-it6505.c | 3278 +++++++++++++++++++++++++++++++++++ 3 files changed, 3286 insertions(+) create mode 100644 drivers/gpu/drm/bridge/ite-it6505.c
drivers/gpu/drm/bridge/Kconfig +7 -0
@@ -48,6 +48,13 @@ config DRM_DISPLAY_CONNECTOR on ARM-based platforms. Saying Y here when this driver is not needed will not cause any issue. +config DRM_ITE_IT6505 + tristate "ITE IT6505 DP bridge" + depends on OF + select DRM_KMS_HELPER + help + ITE IT6505 DP bridge chip driver. + config DRM_LVDS_CODEC tristate "Transparent LVDS encoders and decoders support" depends on OF
drivers/gpu/drm/bridge/Makefile +1 -0
@@ -3,6 +3,7 @@ obj-$(CONFIG_DRM_CDNS_DSI) += cdns-dsi.o obj-$(CONFIG_DRM_CHRONTEL_CH7033) += chrontel-ch7033.o obj-$(CONFIG_DRM_DISPLAY_CONNECTOR) += display-connector.o obj-$(CONFIG_DRM_LVDS_CODEC) += lvds-codec.o +obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o obj-$(CONFIG_DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW) += megachips-stdpxxxx-ge-b850v3-fw.o obj-$(CONFIG_DRM_NXP_PTN3460) += nxp-ptn3460.o obj-$(CONFIG_DRM_PARADE_PS8622) += parade-ps8622.o
drivers/gpu/drm/bridge/ite-it6505.c new file +3278 -0
2,980 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.
kernel test robot
build botRe: [PATCH v1 2/2] drm/bridge: add refactored it6505 driver
I love your patch! Yet something to improve:
Hi allen,
I love your patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on drm-intel/for-linux-next linus/master v5.8 next-20200810] [cannot apply to drm-tip/drm-tip drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/allen/IT6505-cover-letter/20200810-181446 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: powerpc-allyesconfig (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
All error/warnings (new ones prefixed by >>):
drivers/gpu/drm/bridge/ite-it6505.c: In function 'it6505_calc_video_info':
drivers/gpu/drm/bridge/ite-it6505.c:662:14: warning: variable 'vdes' set but not used [-Wunused-but-set-variable]
662 | int vtotal, vdes, vdew, vfph, vsyncw;
| ^~~~
drivers/gpu/drm/bridge/ite-it6505.c:661:14: warning: variable 'hdes' set but not used [-Wunused-but-set-variable]
661 | int htotal, hdes, hdew, hfph, hsyncw;
| ^~~~
drivers/gpu/drm/bridge/ite-it6505.c:660:28: warning: variable 'interlaced' set but not used [-Wunused-but-set-variable]
660 | int hsync_pol, vsync_pol, interlaced;
| ^~~~~~~~~~
drivers/gpu/drm/bridge/ite-it6505.c:660:17: warning: variable 'vsync_pol' set but not used [-Wunused-but-set-variable]
660 | int hsync_pol, vsync_pol, interlaced;
| ^~~~~~~~~
drivers/gpu/drm/bridge/ite-it6505.c:660:6: warning: variable 'hsync_pol' set but not used [-Wunused-but-set-variable]
660 | int hsync_pol, vsync_pol, interlaced;
| ^~~~~~~~~
In file included from drivers/gpu/drm/bridge/ite-it6505.c:32:
drivers/gpu/drm/bridge/ite-it6505.c: In function 'it6505_setup_sha1_input':
>> drivers/gpu/drm/bridge/ite-it6505.c:1935:28: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
1935 | DRM_DEV_DEBUG_DRIVER(dev, "binfo:0x%*ph", ARRAY_SIZE(binfo), binfo);
| ^~~~~~~~~~~~~~
include/drm/drm_print.h:386:34: note: in definition of macro 'DRM_DEV_DEBUG_DRIVER'
386 | drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/bridge/ite-it6505.c:1935:38: note: format string is defined here
1935 | DRM_DEV_DEBUG_DRIVER(dev, "binfo:0x%*ph", ARRAY_SIZE(binfo), binfo);
| ~^~
| |
| int
In file included from drivers/gpu/drm/bridge/ite-it6505.c:32:
drivers/gpu/drm/bridge/ite-it6505.c: In function 'it6505_hdcp_work':
drivers/gpu/drm/bridge/ite-it6505.c:2070:28: warning: field width specifier '*' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
2070 | DRM_DEV_DEBUG_DRIVER(dev, "ret: %d link_status: %*ph", ret,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2071 | sizeof(link_status), link_status);
| ~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
include/drm/drm_print.h:386:34: note: in definition of macro 'DRM_DEV_DEBUG_DRIVER'
386 | drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/bridge/ite-it6505.c:2070:51: note: format string is defined here
2070 | DRM_DEV_DEBUG_DRIVER(dev, "ret: %d link_status: %*ph", ret,
| ~^~
| |
| int
In file included from drivers/gpu/drm/bridge/ite-it6505.c:32:
drivers/gpu/drm/bridge/ite-it6505.c:2087:28: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
2087 | DRM_DEV_DEBUG_DRIVER(dev, "bksv = 0x%*ph",
| ^~~~~~~~~~~~~~~
include/drm/drm_print.h:386:34: note: in definition of macro 'DRM_DEV_DEBUG_DRIVER'
386 | drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/bridge/ite-it6505.c:2087:39: note: format string is defined here
2087 | DRM_DEV_DEBUG_DRIVER(dev, "bksv = 0x%*ph",
| ~^~
| |
| int
drivers/gpu/drm/bridge/ite-it6505.c: At top level:
>> drivers/gpu/drm/bridge/ite-it6505.c:2099:6: warning: no previous prototype for 'it6505_show_hdcp_info' [-Wmissing-prototypes]
2099 | void it6505_show_hdcp_info(struct it6505 *it6505)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/bridge/ite-it6505.c:32:
drivers/gpu/drm/bridge/ite-it6505.c: In function 'it6505_show_hdcp_info':
drivers/gpu/drm/bridge/ite-it6505.c:2107:28: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
2107 | DRM_DEV_DEBUG_DRIVER(dev, "bksv = 0x%*ph", ARRAY_SIZE(it6505->bksvs),
| ^~~~~~~~~~~~~~~
include/drm/drm_print.h:386:34: note: in definition of macro 'DRM_DEV_DEBUG_DRIVER'
386 | drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/bridge/ite-it6505.c:2107:39: note: format string is defined here
2107 | DRM_DEV_DEBUG_DRIVER(dev, "bksv = 0x%*ph", ARRAY_SIZE(it6505->bksvs),
| ~^~
| |
| int
In file included from drivers/gpu/drm/bridge/ite-it6505.c:32:
drivers/gpu/drm/bridge/ite-it6505.c:2113:29: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
2113 | DRM_DEV_DEBUG_DRIVER(dev, "sha1_input: 0x%*ph",
| ^~~~~~~~~~~~~~~~~~~~
include/drm/drm_print.h:386:34: note: in definition of macro 'DRM_DEV_DEBUG_DRIVER'
386 | drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/bridge/ite-it6505.c:2113:45: note: format string is defined here
2113 | DRM_DEV_DEBUG_DRIVER(dev, "sha1_input: 0x%*ph",
| ~^~
| |
| int
drivers/gpu/drm/bridge/ite-it6505.c: At top level:
>> drivers/gpu/drm/bridge/ite-it6505.c:2965:16: error: initialization of 'enum drm_mode_status (*)(struct drm_bridge *, const struct drm_display_mode *)' from incompatible pointer type 'enum drm_mode_status (*)(struct drm_bridge *, const struct drm_display_info *, const struct drm_display_mode *)' [-Werror=incompatible-pointer-types]
2965 | .mode_valid = it6505_bridge_mode_valid,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/ite-it6505.c:2965:16: note: (near initialization for 'it6505_bridge_funcs.mode_valid')
drivers/gpu/drm/bridge/ite-it6505.c: In function 'it6505_i2c_probe':
drivers/gpu/drm/bridge/ite-it6505.c:3140:31: warning: variable 'pdata' set but not used [-Wunused-but-set-variable]
3140 | struct it6505_platform_data *pdata;
| ^~~~~cc1: some warnings being treated as errors
vim +2965 drivers/gpu/drm/bridge/ite-it6505.c
2961
2962 static const struct drm_bridge_funcs it6505_bridge_funcs = {
2963 .attach = it6505_bridge_attach,
2964 .detach = it6505_bridge_detach,
> 2965 .mode_valid = it6505_bridge_mode_valid,
2966 .mode_set = it6505_bridge_mode_set,
2967 .enable = it6505_bridge_enable,
2968 .disable = it6505_bridge_disable,
2969 };
2970
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
Re: [PATCH v1 2/2] drm/bridge: add refactored it6505 driver
In reply to allenQuoted 5 lines · allen
drivers/gpu/drm/bridge/Kconfig +0
-0
drivers/gpu/drm/bridge/Kconfig config DRM_DISPLAY_CONNECTOR · line 56
Quoted 9 lines
drivers/gpu/drm/bridge/Kconfig +6
-0@@ -48,6 +48,13 @@ config DRM_DISPLAY_CONNECTOR on ARM-based platforms. Saying Y here when this driver is not needed will not cause any issue. +config DRM_ITE_IT6505 + tristate "ITE IT6505 DP bridge" + depends on OF + select DRM_KMS_HELPER + help + ITE IT6505 DP bridge chip driver.
Maybe it's just me, but I would appreciate it if somewhere in the Kconfig entry here, it said DisplayPort instead of just DP.
drivers/gpu/drm/bridge/Kconfig config DRM_DISPLAY_CONNECTOR · line 60
Quoted 4 lines
drivers/gpu/drm/bridge/Kconfig +1
-0+ config DRM_LVDS_CODEC tristate "Transparent LVDS encoders and decoders support" depends on OF
thanks.
Signature · 1 line
~Randy