dt-bindings: drm/bridge: Add IT6151 bridge chip driver bindings.
Subsystems (4)
PATCH 1/2 dt-bindings: drm/bridge: Add IT6151 bridge chip driver bindings.
Add devicetree bindings for IT6151 MIPI to eDP bridge chip driver.
--- Documentation/devicetree/bindings/drm/bridge/it6151.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/bridge/it6151.txt
Documentation/devicetree/bindings/drm/bridge/it6151.txt new file +15 -0
@@ -0,0 +1,15 @@ +it6151 bridge bindings + +Required properties: + - compatible: "ite,it6151" + - reg: i2c address of the bridge's dp tx. + - rxreg: i2c address of the bridge's mipi rx. + - reset-gpio: OF device-tree gpio specification + +Example: + ite6151: edp-bridge@5c { + compatible = "ite,it6151"; + reg = <0x5c>; + rxreg = <0x6c>; + reset-gpio = <&pio 94 GPIO_ACTIVE_HIGH>; + };
Signature · 18 lines
1.8.1.1.dirty ************* Email Confidentiality Notice ******************** The information contained in this e-mail message (including any attachments) may be confidential, proprietary, privileged, or otherwise exempt from disclosure under applicable laws. It is intended to be conveyed only to the designated recipient(s). Any use, dissemination, distribution, printing, retaining or copying of this e-mail (including its attachments) by unintended recipient(s) is strictly prohibited and may be unlawful. If you are not an intended recipient of this e-mail, or believe that you have received this e-mail in error, please notify the sender immediately (by replying to this e-mail), delete any and all copies of this e-mail (including any attachments) from your system, and do not disclose the content of this e-mail to any other person. Thank you! -- 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 2/2 drm/bridge: Add IT6151 bridge driver
This patch adds a drm_bridge driver for the IT6151 MIPI to eDP bridge chip.
Signed-off-by CK Hu <ck.hu-NuS5LvNUpcJWk0Htik3J/[email protected]>
--- drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/it6151.c | 601 ++++++++++++++++++++++++++++++++++++++++ include/drm/bridge/it6151.h | 34 +++ 4 files changed, 646 insertions(+) create mode 100644 drivers/gpu/drm/bridge/it6151.c create mode 100644 include/drm/bridge/it6151.h
drivers/gpu/drm/bridge/Kconfig +10 -0
@@ -11,3 +11,13 @@ config DRM_PTN3460 select DRM_PANEL ---help--- ptn3460 eDP-LVDS bridge chip driver. + +config DRM_IT6151 + bool "Enable IT6151FN : MIPI to eDP Converter" + depends on DRM + select DRM_KMS_HELPER + help + Choose this option if you have IT6151 for display + The IT6151 is a high-performance and low-power + MIPI to eDP converter +
drivers/gpu/drm/bridge/Makefile +1 -0
@@ -2,3 +2,4 @@ ccflags-y := -Iinclude/drm obj-$(CONFIG_DRM_PTN3460) += ptn3460.o obj-$(CONFIG_DRM_DW_HDMI) += dw_hdmi.o +obj-$(CONFIG_DRM_IT6151) += it6151.o
drivers/gpu/drm/bridge/it6151.c new file +601 -0
601 lines not on this page · raw message
include/drm/bridge/it6151.h new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (c) 2014 MediaTek Inc. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +*/ + +#ifndef _DRM_BRIDGE_IT6151_H_ +#define _DRM_BRIDGE_IT6151_H_ + +struct drm_device ; +struct drm_encoder ; +struct i2c_client ; +struct device_node ; + +#if defined(CONFIG_DRM_IT6151 ) +int it6151_init (struct drm_device *dev,struct drm_encoder *encoder, +struct i2c_client *client,struct device_node *node); +#else +inline int it6151_init (struct drm_device *dev,struct drm_encoder *encoder, +struct i2c_client *client,struct device_node *node) +{ +return 0 ; +} +#endif + +#endif +
Signature · 18 lines
1.8.1.1.dirty ************* Email Confidentiality Notice ******************** The information contained in this e-mail message (including any attachments) may be confidential, proprietary, privileged, or otherwise exempt from disclosure under applicable laws. It is intended to be conveyed only to the designated recipient(s). Any use, dissemination, distribution, printing, retaining or copying of this e-mail (including its attachments) by unintended recipient(s) is strictly prohibited and may be unlawful. If you are not an intended recipient of this e-mail, or believe that you have received this e-mail in error, please notify the sender immediately (by replying to this e-mail), delete any and all copies of this e-mail (including any attachments) from your system, and do not disclose the content of this e-mail to any other person. Thank you! -- 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