/Linux-v5.10/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_connector.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include "hdmi.h" 16 struct hdmi *hdmi; member 21 static void msm_hdmi_phy_reset(struct hdmi *hdmi) in msm_hdmi_phy_reset() argument 25 val = hdmi_read(hdmi, REG_HDMI_PHY_CTRL); in msm_hdmi_phy_reset() 29 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 33 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 39 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 43 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 51 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() [all …]
|
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 …]
|
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 68 struct drm_connector *connector; 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 …]
|
/Linux-v5.10/drivers/gpu/drm/rockchip/ |
D | rk3066_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Zheng Yang <zhengyang@rock-chips.com> 49 struct drm_connector connector; member 63 static inline u8 hdmi_readb(struct rk3066_hdmi *hdmi, u16 offset) in hdmi_readb() argument 65 return readl_relaxed(hdmi->regs + offset); in hdmi_readb() 68 static inline void hdmi_writeb(struct rk3066_hdmi *hdmi, u16 offset, u32 val) in hdmi_writeb() argument 70 writel_relaxed(val, hdmi->regs + offset); in hdmi_writeb() 73 static inline void hdmi_modb(struct rk3066_hdmi *hdmi, u16 offset, in hdmi_modb() argument 76 u8 temp = hdmi_readb(hdmi, offset) & ~msk; in hdmi_modb() 79 hdmi_writeb(hdmi, offset, temp); in hdmi_modb() [all …]
|
D | inno_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Zheng Yang <zhengyang@rock-chips.com> 5 * Yakir Yang <ykk@rock-chips.com> 12 #include <linux/hdmi.h> 58 struct drm_connector connector; member 82 * R = 1.164*Y + 1.596*V - 204 83 * G = 1.164*Y - 0.391*U - 0.813*V + 154 84 * B = 1.164*Y + 2.018*U - 258 93 * R = Y + 1.402*V - 248 94 * G = Y - 0.344*U - 0.714*V + 135 [all …]
|
/Linux-v5.10/drivers/media/cec/platform/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 14 The CEC bus is present in the HDMI connector and enables communication 25 CEC bus is present in the HDMI connector and enables communication 37 This driver if for the new AO-CEC module found in G12A SoCs, 40 CEC bus is present in the HDMI connector and enables communication 44 tristate "Generic GPIO-based CEC driver" 51 This is a generic GPIO-based CEC driver. 52 The CEC bus is present in the HDMI connector and enables communication 61 This is a driver for Samsung S5P HDMI CEC interface. It uses the 63 CEC bus is present in the HDMI connector and enables communication [all …]
|
/Linux-v5.10/drivers/gpu/drm/zte/ |
D | zx_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/hdmi.h> 25 #include <sound/hdmi-codec.h> 39 struct drm_connector connector; member 55 static inline u8 hdmi_readb(struct zx_hdmi *hdmi, u16 offset) in hdmi_readb() argument 57 return readl_relaxed(hdmi->mmio + offset * 4); in hdmi_readb() 60 static inline void hdmi_writeb(struct zx_hdmi *hdmi, u16 offset, u8 val) in hdmi_writeb() argument 62 writel_relaxed(val, hdmi->mmio + offset * 4); in hdmi_writeb() 65 static inline void hdmi_writeb_mask(struct zx_hdmi *hdmi, u16 offset, in hdmi_writeb_mask() argument 70 tmp = hdmi_readb(hdmi, offset); in hdmi_writeb_mask() [all …]
|
/Linux-v5.10/drivers/gpu/drm/sti/ |
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 …]
|
/Linux-v5.10/drivers/gpu/drm/sun4i/ |
D | sun4i_hdmi_enc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Maxime Ripard <maxime.ripard@free-electrons.com> 40 drm_connector_to_sun4i_hdmi(struct drm_connector *connector) in drm_connector_to_sun4i_hdmi() argument 42 return container_of(connector, struct sun4i_hdmi, in drm_connector_to_sun4i_hdmi() 43 connector); in drm_connector_to_sun4i_hdmi() 46 static int sun4i_hdmi_setup_avi_infoframes(struct sun4i_hdmi *hdmi, in sun4i_hdmi_setup_avi_infoframes() argument 54 &hdmi->connector, mode); in sun4i_hdmi_setup_avi_infoframes() 67 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_setup_avi_infoframes() 76 struct drm_display_mode *mode = &crtc_state->mode; in sun4i_hdmi_atomic_check() 78 if (mode->flags & DRM_MODE_FLAG_DBLCLK) in sun4i_hdmi_atomic_check() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/display/connector/ |
D | hdmi-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/connector/hdmi-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: HDMI Connector 10 - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 14 const: hdmi-connector 17 description: The HDMI connector type 19 - a # Standard full size 20 - b # Never deployed? [all …]
|
/Linux-v5.10/drivers/gpu/drm/bridge/synopsys/ |
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. 12 #include <linux/hdmi.h> 19 #include <linux/dma-mapping.h> 22 #include <media/cec-notifier.h> 24 #include <uapi/linux/media-bus-format.h> 37 #include "dw-hdmi-audio.h" 38 #include "dw-hdmi-cec.h" [all …]
|
/Linux-v5.10/drivers/gpu/drm/i915/display/ |
D | intel_hdmi.c | 3 * Copyright © 2006-2009 Intel Corporation 30 #include <linux/hdmi.h> 62 return hdmi_to_dig_port(intel_hdmi)->base.base.dev; in intel_hdmi_to_dev() 75 intel_de_read(dev_priv, intel_hdmi->hdmi_reg) & enabled_bits, in assert_hdmi_port_disabled() 76 "HDMI port enabled, expecting disabled\n"); in assert_hdmi_port_disabled() 83 drm_WARN(&dev_priv->drm, in assert_hdmi_transcoder_func_disabled() 86 "HDMI transcoder function enabled, expecting disabled\n"); in assert_hdmi_transcoder_func_disabled() 92 container_of(&encoder->base, struct intel_digital_port, in enc_to_intel_hdmi() 94 return &dig_port->hdmi; in enc_to_intel_hdmi() 97 static struct intel_hdmi *intel_attached_hdmi(struct intel_connector *connector) in intel_attached_hdmi() argument [all …]
|
/Linux-v5.10/include/media/ |
D | cec-notifier.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * cec-notifier.h - notify CEC drivers of physical address changes 6 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved. 23 * cec_notifier_conn_register - find or create a new cec_notifier for the given 24 * HDMI device and connector tuple. 25 * @hdmi_dev: HDMI device that sends the events. 26 * @port_name: the connector name from which the event occurs. May be NULL 27 * if there is always only one HDMI connector created by the HDMI device. 28 * @conn_info: the connector info from which the event occurs (may be NULL) 30 * If a notifier for device @dev and connector @port_name already exists, then [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/display/ti/ |
D | ti,omap-dss.txt | 5 ------------------- 22 HDMI, MIPI DPI, etc. 25 ----------- 36 ------- 39 name for each display. If no aliases are defined, a semi-random number is used 43 ------- 45 A shortened example of the DSS description for OMAP4, with non-relevant parts 49 compatible = "ti,omap4-dss"; 54 clock-names = "fck"; 55 #address-cells = <1>; [all …]
|
/Linux-v5.10/drivers/gpu/drm/tegra/ |
D | hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/hdmi.h> 27 #include "hdmi.h" 60 struct regulator *hdmi; member 103 static inline u32 tegra_hdmi_readl(struct tegra_hdmi *hdmi, in tegra_hdmi_readl() argument 106 u32 value = readl(hdmi->regs + (offset << 2)); in tegra_hdmi_readl() 108 trace_hdmi_readl(hdmi->dev, offset, value); in tegra_hdmi_readl() 113 static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value, in tegra_hdmi_writel() argument 116 trace_hdmi_writel(hdmi->dev, offset, value); in tegra_hdmi_writel() 117 writel(value, hdmi->regs + (offset << 2)); in tegra_hdmi_writel() [all …]
|
/Linux-v5.10/drivers/gpu/drm/omapdrm/dss/ |
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 …]
|
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 …]
|
/Linux-v5.10/drivers/video/fbdev/omap2/omapfb/displays/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 17 tristate "TPD12S015 HDMI ESD protection and level shifter" 19 Driver for TPD12S015, which offers HDMI ESD protection and level 23 tristate "DVI Connector" 26 Driver for a generic DVI connector. 29 tristate "HDMI Connector" 31 Driver for a generic HDMI connector. 34 tristate "Analog TV Connector" 36 Driver for a generic analog TV connector.
|
/Linux-v5.10/drivers/gpu/drm/ |
D | drm_edid.c | 3 * Copyright (c) 2007-2008 Intel Corporation 24 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 31 #include <linux/hdmi.h> 48 (((edid)->version > (maj)) || \ 49 ((edid)->version == (maj) && (edid)->revision > (min))) 76 /* Force reduced-blanking timings for detailed modes */ 90 struct drm_connector *connector; member 115 /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */ 121 /* SDC panel of Lenovo B50-80 reports 8 bpc, but is a 6 bpc panel */ 131 /* Envision Peripherals, Inc. EN-7100e */ [all …]
|
/Linux-v5.10/arch/arm64/boot/dts/amlogic/ |
D | meson-gxl-s905x-p212.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include "meson-gxl-s905x-p212.dtsi" 12 compatible = "amlogic,p212", "amlogic,s905x", "amlogic,meson-gxl"; 15 cvbs-connector { 16 compatible = "composite-video-connector"; 20 remote-endpoint = <&cvbs_vdac_out>; 25 hdmi-connector { 26 compatible = "hdmi-connector"; 31 remote-endpoint = <&hdmi_tx_tmds_out>; [all …]
|
/Linux-v5.10/include/drm/ |
D | drm_connector.h | 29 #include <linux/hdmi.h> 50 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ 54 * enum drm_connector_status - status for a &drm_connector 56 * This enum is used to track the connector status. There are no separate 61 * @connector_status_connected: The connector is definitely connected to 66 * @connector_status_disconnected: The connector isn't connected to a 68 * HDMI (which can be realiable probed) this means there's really 69 * nothing there. It is driver-dependent whether a connector with this 74 * @connector_status_unknown: The connector's status could not be 76 * flicker (like load-detection when the connector is in use), or when a [all …]
|
/Linux-v5.10/drivers/gpu/drm/bridge/ |
D | display-connector.c | 1 // SPDX-License-Identifier: GPL-2.0 34 return flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR ? 0 : -EINVAL; in display_connector_attach() 42 if (conn->hpd_gpio) { in display_connector_detect() 43 if (gpiod_get_value_cansleep(conn->hpd_gpio)) in display_connector_detect() 49 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect() 52 switch (conn->bridge.type) { in display_connector_detect() 59 * For DVI and HDMI connectors a DDC probe failure indicates in display_connector_detect() 69 * Composite and S-Video connectors have no other detection in display_connector_detect() 80 struct drm_connector *connector) in display_connector_get_edid() argument 84 return drm_get_edid(connector, conn->bridge.ddc); in display_connector_get_edid() [all …]
|
/Linux-v5.10/drivers/gpu/drm/vc4/ |
D | vc4_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * DOC: VC4 Falcon HDMI module 12 * The HDMI core has a state machine and a PHY. On BCM2835, most of 16 * HDMI infoframes are kept within a small packet ram, where each 19 * HDMI audio is implemented entirely within the HDMI IP block. A 20 * register in the HDMI encoder takes SPDIF frames from the DMA engine 21 * and transfers them over an internal MAI (multi-channel audio 25 * The driver's HDMI encoder does not yet support power management. 26 * The HDMI encoder's power domain and the HSM/pixel clocks are kept 27 * continuously running, and only the HDMI logic and packet ram are [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_connectors.c | 2 * Copyright 2007-8 Advanced Micro Devices, Inc. 42 void amdgpu_connector_hotplug(struct drm_connector *connector) in amdgpu_connector_hotplug() argument 44 struct drm_device *dev = connector->dev; in amdgpu_connector_hotplug() 46 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_hotplug() 48 /* bail if the connector does not have hpd pin, e.g., in amdgpu_connector_hotplug() 51 if (amdgpu_connector->hpd.hpd == AMDGPU_HPD_NONE) in amdgpu_connector_hotplug() 54 amdgpu_display_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in amdgpu_connector_hotplug() 56 /* if the connector is already off, don't turn it back on */ in amdgpu_connector_hotplug() 57 if (connector->dpms != DRM_MODE_DPMS_ON) in amdgpu_connector_hotplug() 61 if (connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort) { in amdgpu_connector_hotplug() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/display/mediatek/ |
D | mediatek,hdmi.txt | 1 Mediatek HDMI Encoder 4 The Mediatek HDMI encoder can generate HDMI 1.4a or MHL 2.0 signals from 8 - compatible: Should be "mediatek,<chip>-hdmi". 9 - the supported chips are mt2701, mt7623 and mt8173 10 - reg: Physical base address and length of the controller's registers 11 - interrupts: The interrupt signal from the function block. 12 - clocks: device clocks 13 See Documentation/devicetree/bindings/clock/clock-bindings.txt for details. 14 - clock-names: must contain "pixel", "pll", "bclk", and "spdif". 15 - phys: phandle link to the HDMI PHY node. [all …]
|