[PATCH v3 00/15] Add ITE IT6263 LVDS to HDMI converter support
Liu Ying
victor.liu at nxp.com
Mon Oct 21 06:44:31 UTC 2024
Hi,
This patch series aims to add ITE IT6263 LVDS to HDMI converter on
i.MX8MP EVK. Combined with LVDS receiver and HDMI 1.4a transmitter,
the IT6263 supports LVDS input and HDMI 1.4 output by conversion
function. IT6263 product link can be found at [1].
Patch 1 is a preparation patch to allow display mode of an existing
panel to pass the added mode validation logic in patch 3.
Patch 2 allows i.MX8MP LVDS Display Bridge(LDB) bridge driver to find
the next non-panel bridge, that is the IT6263 in this case.
Patch 3 adds mode validation logic to i.MX8MP LDB bridge driver against
"ldb" clock so that it can filter out unsupported display modes read
from EDID.
Patch 4 adds MEDIA_BUS_FMT_RGB101010_1X7X5_{SPWG,JEIDA} support, as they
are supported by IT6263(with LVDS data bit reversed order).
Patch 5 makes drm_of.c use MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA,SPWG}.
Patch 6 supports getting dual-link LVDS pixel order for the sink side as
needed by IT6263 driver.
Patch 7 documents jeida-30 and vesa-30 data mappings in lvds-data-mapping.yaml,
as needed by IT6263 DT binding.
Patch 8-10 extract common dual-link LVDS display properties into new
lvds-dual-ports.yaml so that IT6263 DT binding can reference it.
Patch 11 adds DT binding for IT6263.
Patch 12 adds IT6263 bridge driver. Only video output is supported.
Patch 13 adds DT overlays to support NXP adapter cards[2][3] with IT6263
populated.
Patch 14 enables the IT6263 bridge driver in defconfig.
Patch 15 updates MAINTAINERS to add maintainer for IT6263 driver.
Note that patch 3 depends on an in-flight patch[4].
[1] https://www.ite.com.tw/en/product/cate1/IT6263
[2] https://www.nxp.com/part/IMX-LVDS-HDMI
[3] https://www.nxp.com/part/IMX-DLVDS-HDMI
[4] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20241017031146.157996-1-marex@denx.de/
v3:
* Use assigned-clock-rates DT property to set pixel clock rate for
"multi-inno,mi1010ait-1cp" LVDS panel in patch 1 instead of using
panel-timing node. (Marek)
* Drop the patch for fixing pixel clock rate for "edt,etml1010g3dra"
LVDS panel because there is already another better patch[4].
* Collect Dmitry's R-b tag for patch 2.
* Define MEDIA_BUS_FMT_RGB101010_1X7X5_{SPWG,JEIDA} in patch 4.
* Use MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA,SPWG} in drm_of.c in patch 5.
* Add drm_of_lvds_get_dual_link_pixel_order_sink() in patch 6. (Dmitry)
* Document jeida-30 and vesa-30 in lvds-data-mapping.yaml in patch 7.
* Extract dual-link LVDS display common properties(patch 8-10). (Dmitry)
* Reference lvds-dual-ports.yaml in ite,it6263.yaml in patch 11. (Dmitry)
* Add data-mapping DT property in ite,it6263.yaml in patch 11. (Dmitry, Biju)
* Allow data-mirror in ite,it6263.yaml in patch 11.
* Drop ite,lvds-link-num-data-lanes DT property from ite,it6263.yaml
in patch 11. (Dmitry, Biju)
* Use HDMI connector framework in IT6263 driver in patch 12. (Maxime)
* Control the missing HDMI_REG_AVI_INFOFRM_CTRL register in IT6263 driver
in patch 12.
* Validate the maximal HDMI TMDS character rate in IT6263 driver in patch 12.
(Dmitry)
* Get LVDS data mapping from data-mapping DT property in IT6263 driver
in patch 12. (Dmitry, Biju)
* Validate 30bit LVDS data bit order by checking data-mirror DT property
in IT6263 driver in patch 12.
* Use drm_of_lvds_get_dual_link_pixel_order_sink() in IT6263 driver
in patch 12. (Dmitry)
* Initialize a bridge connector instead of open coding in IT6263 driver
in patch 12. (Dmitry)
* Add a comment that IT6263 chip has no HPD IRQ support in IT6263 driver
in patch 12. (Dmitry)
* Use devm_drm_bridge_add() instead of drm_bridge_add() in IT6263 driver
in patch 12. (Dmitry)
* Fix a minor build warning reported by kernel test robot in IT6263 driver
in patch 12.
* Use data-mapping DT property instead of ite,lvds-link-num-data-lanes
in i.MX8MP evk DT files in patch 13. (Dmitry, Biju)
v2:
* Add more comments in fsl-ldb.c and commit message about pixel clock
rate validation for patch 4. (Maxime)
* Document number of LVDS link data lanes in patch 5. (Biju)
* Simplify ports property by dropping "oneOf" in patch 5. (Rob)
* Add AVI inforframe support in patch 6. (Maxime)
* Add DRM_MODE_CONNECTOR_HDMIA in patch 6. (Biju)
* Rename it6263_reset() to it6263_hw_reset() in patch 6. (Biju)
* Check number of LVDS link data lanes in patch 6. (Biju)
* Add ite,lvds-link-num-data-lanes properties in patch 7.
* Update MAINTAINERS. (Maxime)
Liu Ying (15):
arm64: dts: imx8mp-skov-revb-mi1010ait-1cp1: Set "media_disp2_pix"
clock rate to 70MHz
drm/bridge: fsl-ldb: Get the next non-panel bridge
drm/bridge: fsl-ldb: Use clk_round_rate() to validate "ldb" clock rate
media: uapi: Add MEDIA_BUS_FMT_RGB101010_1X7X5_{SPWG,JEIDA}
drm: of: Get MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA,SPWG} LVDS data
mappings
drm: of: Add drm_of_lvds_get_dual_link_pixel_order_sink()
dt-bindings: display: lvds-data-mapping: Add 30-bit RGB pixel data
mappings
dt-bindings: display: Document dual-link LVDS display common
properties
dt-bindings: display: panel-simple-lvds-dual-ports: Reference
lvds-dual-ports.yaml
dt-bindings: display: advantech,idk-2121wr: Reference
lvds-dual-ports.yaml
dt-bindings: display: bridge: Add ITE IT6263 LVDS to HDMI converter
drm/bridge: Add ITE IT6263 LVDS to HDMI converter
arm64: dts: imx8mp-evk: Add NXP LVDS to HDMI adapter cards
arm64: defconfig: Enable ITE IT6263 driver
MAINTAINERS: Add maintainer for ITE IT6263 driver
.../bindings/display/bridge/ite,it6263.yaml | 249 +++++
.../bindings/display/lvds-data-mapping.yaml | 31 +
.../bindings/display/lvds-dual-ports.yaml | 76 ++
.../display/panel/advantech,idk-2121wr.yaml | 14 +-
.../panel/panel-simple-lvds-dual-ports.yaml | 20 +-
.../media/v4l/subdev-formats.rst | 156 ++-
MAINTAINERS | 8 +
arch/arm64/boot/dts/freescale/Makefile | 8 +
.../imx8mp-evk-imx-lvds-hdmi-common.dtsi | 29 +
...8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso | 44 +
...imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi | 43 +
.../imx8mp-evk-lvds0-imx-lvds-hdmi.dtso | 28 +
...8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso | 44 +
...imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi | 43 +
.../imx8mp-evk-lvds1-imx-lvds-hdmi.dtso | 28 +
arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 6 +
.../imx8mp-skov-revb-mi1010ait-1cp1.dts | 8 +-
arch/arm64/configs/defconfig | 1 +
drivers/gpu/drm/bridge/Kconfig | 11 +
drivers/gpu/drm/bridge/Makefile | 1 +
drivers/gpu/drm/bridge/fsl-ldb.c | 55 +-
drivers/gpu/drm/bridge/ite-it6263.c | 906 ++++++++++++++++++
drivers/gpu/drm/drm_of.c | 82 +-
include/drm/drm_of.h | 9 +
include/uapi/linux/media-bus-format.h | 4 +-
25 files changed, 1834 insertions(+), 70 deletions(-)
create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml
create mode 100644 Documentation/devicetree/bindings/display/lvds-dual-ports.yaml
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-imx-lvds-hdmi-common.dtsi
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi.dtso
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi
create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi.dtso
create mode 100644 drivers/gpu/drm/bridge/ite-it6263.c
--
2.34.1
More information about the dri-devel
mailing list