| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_bridge.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include "hdmi.h" 13 struct hdmi *hdmi; member 17 void msm_hdmi_bridge_destroy(struct drm_bridge *bridge) in msm_hdmi_bridge_destroy() argument 21 static void msm_hdmi_power_on(struct drm_bridge *bridge) in msm_hdmi_power_on() argument 23 struct drm_device *dev = bridge->dev; in msm_hdmi_power_on() 24 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); in msm_hdmi_power_on() 25 struct hdmi *hdmi = hdmi_bridge->hdmi; in msm_hdmi_power_on() local 26 const struct hdmi_platform_config *config = hdmi->config; in msm_hdmi_power_on() 29 pm_runtime_get_sync(&hdmi->pdev->dev); in msm_hdmi_power_on() [all …]
|
| H A D | hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <sound/hdmi-codec.h> 12 #include "hdmi.h" 14 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) in msm_hdmi_set_mode() argument 19 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 22 if (!hdmi->hdmi_mode) { in msm_hdmi_set_mode() 24 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 33 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 34 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 35 DBG("HDMI Core: %s, HDMI_CTRL=0x%08x", in msm_hdmi_set_mode() [all …]
|
| H A D | hdmi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 #include <linux/hdmi.h> 20 #include "hdmi.xml.h" 41 struct hdmi { struct 69 struct drm_bridge *bridge; member 71 /* the encoder we are hooked to (outside of hdmi block) */ argument 74 bool hdmi_mode; /* are we in hdmi mode? */ argument 117 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on); 119 static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data) in hdmi_write() argument 121 msm_writel(data, hdmi->mmio + reg); in hdmi_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 Bridge registration and lookup framework. 14 DRM bridge wrapper of DRM panels 20 tristate "Cadence DPI/DSI bridge" 27 Support Cadence DPI to DSI bridge. This is an internal 28 bridge and is meant to be directly embedded in a SoC. 35 Enable support for the Chrontel CH7033 VGA/DVI/HDMI Encoder, as 44 Driver for display connectors with support for DDC and hot-plug 48 on ARM-based platforms. Saying Y here when this driver is not needed 52 tristate "ITE IT6161 DSI/HDMI bridge" [all …]
|
| H A D | display-connector.c | 1 // SPDX-License-Identifier: GPL-2.0 21 struct drm_bridge bridge; member 30 to_display_connector(struct drm_bridge *bridge) in to_display_connector() argument 32 return container_of(bridge, struct display_connector, bridge); in to_display_connector() 35 static int display_connector_attach(struct drm_bridge *bridge, in display_connector_attach() argument 38 return flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR ? 0 : -EINVAL; in display_connector_attach() 42 display_connector_detect(struct drm_bridge *bridge) in display_connector_detect() argument 44 struct display_connector *conn = to_display_connector(bridge); in display_connector_detect() 46 if (conn->hpd_gpio) { in display_connector_detect() 47 if (gpiod_get_value_cansleep(conn->hpd_gpio)) in display_connector_detect() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/dss/ |
| H A D | hdmi4.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HDMI interface DSS driver for TI's OMAP4 family of SoCs. 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ 10 #define DSS_SUBSYS_NAME "HDMI" 27 #include <sound/omap-hdmi-audio.h> 37 #include "hdmi.h" 39 static int hdmi_runtime_get(struct omap_hdmi *hdmi) in hdmi_runtime_get() argument 45 r = pm_runtime_get_sync(&hdmi->pdev->dev); in hdmi_runtime_get() 53 static void hdmi_runtime_put(struct omap_hdmi *hdmi) in hdmi_runtime_put() argument 59 r = pm_runtime_put_sync(&hdmi->pdev->dev); in hdmi_runtime_put() [all …]
|
| H A D | hdmi5.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HDMI driver for OMAP5 5 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ 14 #define DSS_SUBSYS_NAME "HDMI" 31 #include <sound/omap-hdmi-audio.h> 40 static int hdmi_runtime_get(struct omap_hdmi *hdmi) in hdmi_runtime_get() argument 46 r = pm_runtime_get_sync(&hdmi->pdev->dev); in hdmi_runtime_get() 54 static void hdmi_runtime_put(struct omap_hdmi *hdmi) in hdmi_runtime_put() argument 60 r = pm_runtime_put_sync(&hdmi->pdev->dev); in hdmi_runtime_put() 61 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/mediatek/ |
| H A D | mtk_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/arm-smccc.h> 10 #include <linux/hdmi.h> 25 #include <sound/hdmi-codec.h> 154 struct drm_bridge bridge; member 186 return container_of(b, struct mtk_hdmi, bridge); in hdmi_ctx_from_bridge() 194 static u32 mtk_hdmi_read(struct mtk_hdmi *hdmi, u32 offset) in mtk_hdmi_read() argument 196 return readl(hdmi->regs + offset); in mtk_hdmi_read() 199 static void mtk_hdmi_write(struct mtk_hdmi *hdmi, u32 offset, u32 val) in mtk_hdmi_write() argument 201 writel(val, hdmi->regs + offset); in mtk_hdmi_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/rk628/ |
| H A D | rk628_hdmitx.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: Chen Shunqing <csq@rock-chips.com> 14 #include <linux/extcon-provider.h> 15 #include <linux/hdmi.h> 28 #include <sound/hdmi-codec.h> 36 #include <linux/extcon-provider.h> 64 u8 pre_emphasis; /* pre-emphasis value */ 73 struct drm_bridge bridge; member 108 * R = 1.164*Y + 1.596*V - 204 109 * G = 1.164*Y - 0.391*U - 0.813*V + 154 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/rk628/ |
| H A D | rk628_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: Chen Shunqing <csq@rock-chips.com> 13 #include <linux/extcon-provider.h> 14 #include <linux/hdmi.h> 26 #include <sound/hdmi-codec.h> 390 u8 pre_emphasis; /* pre-emphasis value */ 403 struct drm_bridge bridge; member 438 * R = 1.164*Y + 1.596*V - 204 439 * G = 1.164*Y - 0.391*U - 0.813*V + 154 440 * B = 1.164*Y + 2.018*U - 258 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/rk618/ |
| H A D | rk618_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: Chen Shunqing <csq@rock-chips.com> 12 #include <linux/hdmi.h> 30 #include <sound/hdmi-codec.h> 414 u8 pre_emphasis; /* pre-emphasis value */ 427 struct drm_bridge *bridge; member 457 * R = 1.164*Y + 1.596*V - 204 458 * G = 1.164*Y - 0.391*U - 0.813*V + 154 459 * B = 1.164*Y + 2.018*U - 258 468 * R = Y + 1.402*V - 248 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/meson/ |
| H A D | meson_dw_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <drm/bridge/dw_hdmi.h> 25 #include <linux/media-bus-format.h> 34 #define DRIVER_NAME "meson-dw-hdmi" 35 #define DRIVER_DESC "Amlogic Meson HDMI-TX DRM driver" 38 * DOC: HDMI Output 40 * HDMI Output is composed of : 42 * - A Synopsys DesignWare HDMI Controller IP 43 * - A TOP control block controlling the Clocks and PHY 44 * - A custom HDMI PHY in order convert video to TMDS signal [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/synopsys/ |
| H A D | dw-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DesignWare High-Definition Multimedia Interface (HDMI) driver 5 * Copyright (C) 2013-2015 Mentor Graphics Inc. 6 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. 13 #include <linux/extcon-provider.h> 14 #include <linux/hdmi.h> 21 #include <linux/dma-mapping.h> 25 #include <media/cec-notifier.h> 27 #include <uapi/linux/media-bus-format.h> 30 #include <drm/bridge/dw_hdmi.h> [all …]
|
| H A D | dw-hdmi-qp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Algea Cao <algea.cao@rock-chips.com> 9 #include <linux/dma-mapping.h> 11 #include <linux/extcon-provider.h> 13 #include <linux/hdmi.h> 33 #include <drm/bridge/dw_hdmi.h> 35 #include <uapi/linux/media-bus-format.h> 38 #include "dw-hdmi-qp-audio.h" 39 #include "dw-hdmi-qp.h" 40 #include "dw-hdmi-qp-cec.h" [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/sti/ |
| H A D | sti_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/hdmi.h> 25 #include <sound/hdmi-codec.h> 95 #define HDMI_IFRAME_CFG_DI_N(x, n) ((x) << ((n-1)*4)) /* n from 1 to 6 */ 163 struct sti_hdmi *hdmi; member 170 u32 hdmi_read(struct sti_hdmi *hdmi, int offset) in hdmi_read() argument 172 return readl(hdmi->regs + offset); in hdmi_read() 175 void hdmi_write(struct sti_hdmi *hdmi, u32 val, int offset) in hdmi_write() argument 177 writel(val, hdmi->regs + offset); in hdmi_write() 181 * HDMI interrupt handler threaded [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/drm/ |
| H A D | Kconfig | 7 Rockchip SoCs provide video output capabilities for High-Definition 8 Multimedia Interface (HDMI), Low-voltage Differential Signalling 11 This driver supports the on-chip video output device, and targets the 37 Driver for Maxim MAX96755F GMSL2 Serializer with MIPI-DSI Input. 40 bool "Rohm BU18RL82-based panels" 47 bool "Maxim MAX96752F-based panels" 65 bool "Rockchip specific extensions for Synopsys DW HDMI" 69 for the Synopsys DesignWare HDMI driver. If you want to 70 enable HDMI on, you should selet this option. 73 bool "Rockchip specific extensions for Synopsys DW HDMI QP" [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/bridge/ |
| H A D | sii902x.txt | 1 sii902x HDMI bridge bindings 4 - compatible: "sil,sii9022" 5 - reg: i2c address of the bridge 8 - interrupts: describe the interrupt line used to inform the host 10 - reset-gpios: OF device-tree gpio specification for RST_N pin. 11 - iovcc-supply: I/O Supply Voltage (1.8V or 3.3V) 12 - cvcc12-supply: Digital Core Supply Voltage (1.2V) 14 HDMI audio properties: 15 - #sound-dai-cells: <0> or <1>. <0> if only i2s or spdif pin 16 is wired, <1> if the both are wired. HDMI audio is [all …]
|
| H A D | lontium,lt9611.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/bridge/lontium,lt9611.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Lontium LT9611 2 Port MIPI to HDMI Bridge 10 - Vinod Koul <vkoul@kernel.org> 13 The LT9611 is a bridge device which converts DSI to HDMI 18 - lontium,lt9611 23 "#sound-dai-cells": 29 reset-gpios: [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/rk628/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 Support for the Rockchip RK628 HDMI to MIPI CSI-2/BT1120 bridge. 8 module will be called video-rk628. 13 select HDMI 17 Support for the Rockchip RK628 HDMI to MIPI CSI-2 bridge. 20 module will be called rk628-csi. 25 select HDMI 29 Support for the Rockchip RK628 HDMI to BT1120 bridge. 32 module will be called rk628-bt1120.
|
| /OK3568_Linux_fs/kernel/Documentation/gpu/bridge/ |
| H A D | dw-hdmi.rst | 2 drm/bridge/dw-hdmi Synopsys DesignWare HDMI Controller 5 Synopsys DesignWare HDMI Controller 8 This section covers everything related to the Synopsys DesignWare HDMI 9 Controller implemented as a DRM bridge. 12 ------------------------------------- 14 .. kernel-doc:: include/drm/bridge/dw_hdmi.h
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_lpe_audio.c | 24 * Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> 31 * DOC: LPE Audio integration for HDMI or DP playback 34 * Atom platforms (e.g. valleyview and cherryTrail) integrates a DMA-based 41 * subsystems, a bridge is setup between the hdmi-lpe-audio and i915: 45 * the hdmi-lpe-audio driver probes the lpe audio device and creates a new 50 * uninstall the hdmi-lpe-audio driver before uninstalling i915 module, 51 * otherwise we might run into use-after-free issues after i915 removes the 52 * platform device: even though hdmi-lpe-audio driver is released, the modules 77 #define HAS_LPE_AUDIO(dev_priv) ((dev_priv)->lpe_audio.platdev != NULL) 82 struct drm_device *dev = &dev_priv->drm; in lpe_audio_platdev_create() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i2c/ |
| H A D | tda998x_drv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/hdmi.h> 14 #include <sound/hdmi-codec.h> 25 #include <media/cec-notifier.h> 53 struct i2c_client *hdmi; member 81 struct drm_bridge bridge; member 95 container_of(x, struct tda998x_priv, bridge) 409 .addr = priv->cec_addr, in cec_write() 415 ret = i2c_transfer(priv->hdmi->adapter, &msg, 1); in cec_write() 417 dev_err(&priv->hdmi->dev, "Error %d writing to cec:0x%x\n", in cec_write() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/ |
| H A D | rk628.txt | 1 * RK628 HDMI-RX to MIPI CSI2-TX Bridge 3 The RK628 HDMI-RX to MIPI CSI2-TX (H2C) is a bridge that converts 4 a HDMI stream to MIPI CSI-2 TX. It is programmable through I2C. 7 - compatible: value should be "rockchip,rk628-csi-v4l2" 8 - reg: I2C device address 11 - reset-gpios: gpio phandle GPIO connected to the reset pin 12 - enable-gpios: a GPIO spec for the enable pin 13 - plugin-det-gpios: HDMI 5V detect pin 14 - interrupts: GPIO connected to the interrupt pin 15 - data-lanes: should be <1 2 3 4> for four-lane operation, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 8 comment "IR I2C driver auto-selected by 'Autoselect ancillary drivers'" 28 comment "audio, video and radio I2C drivers auto-selected by 'Autoselect ancillary drivers'" 68 tristate "NXP TDA1997x HDMI receiver" 71 select HDMI 77 V4L2 subdevice driver for the NXP TDA1997x HDMI receivers. 113 Support for the Cirrus Logic CS3308 High Performance 8-Channel 123 Support for the Cirrus Logic CS5345 24-bit, 192 kHz 190 Support for the internal MPX of the Sony BTF-PG472Z tuner. 193 module will be called sony-btf-mpx. [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/imx/ |
| H A D | dw_hdmi-imx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2011-2013 Freescale Semiconductor, Inc. 4 * derived from imx-hdmi.c(renamed to bridge/dw_hdmi.c now) 9 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> 14 #include <video/imx-ipu-v3.h> 16 #include <drm/bridge/dw_hdmi.h> 23 #include "imx-drm.h" 28 struct dw_hdmi *hdmi; member 101 static int dw_hdmi_imx_parse_dt(struct imx_hdmi *hdmi) in dw_hdmi_imx_parse_dt() argument 103 struct device_node *np = hdmi->dev->of_node; in dw_hdmi_imx_parse_dt() [all …]
|