/linux/Documentation/devicetree/bindings/display/connector/ |
H A D | vga-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/connector/vga-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: VGA Connector 10 - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 14 const: vga-connector 18 ddc-i2c-bus: 24 description: Connection to controller providing VGA signals 27 - compatible [all …]
|
/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_output_7a2000.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 * Display pipe 0 is attached with a built-in transparent VGA encoder and 19 * a built-in HDMI encoder. 20 * Display pipe 1 has only one built-in HDMI encoder connected. 22 * | +-----+ | | | 23 * | CRTC0 -+--> | VGA | ----> VGA Connector ---> | VGA Monitor |<---+ 24 * | | +-----+ | |_____________| | 26 * | | +------+ | | | | 27 * | +--> | HDMI | ----> HDMI Connector --> | HDMI Monitor |<--+ 28 * | +------+ | |______________| | [all …]
|
/linux/drivers/gpu/drm/ast/ |
H A D | ast_vga.c | 1 // SPDX-License-Identifier: MIT 21 * Connector 24 static int ast_vga_connector_helper_get_modes(struct drm_connector *connector) in ast_vga_connector_helper_get_modes() argument 26 struct ast_connector *ast_connector = to_ast_connector(connector); in ast_vga_connector_helper_get_modes() 29 if (ast_connector->physical_status == connector_status_connected) { in ast_vga_connector_helper_get_modes() 30 count = drm_connector_helper_get_modes(connector); in ast_vga_connector_helper_get_modes() 32 drm_edid_connector_update(connector, NULL); in ast_vga_connector_helper_get_modes() 35 * There's no EDID data without a connected monitor. Set BMC- in ast_vga_connector_helper_get_modes() 39 count = drm_add_modes_noedid(connector, 4096, 4096); in ast_vga_connector_helper_get_modes() 41 drm_set_preferred_mode(connector, 1024, 768); in ast_vga_connector_helper_get_modes() [all …]
|
H A D | ast_dp501.c | 1 // SPDX-License-Identifier: GPL-2.0 20 release_firmware(ast->dp501_fw); in ast_release_firmware() 21 ast->dp501_fw = NULL; in ast_release_firmware() 26 struct drm_device *dev = &ast->base; in ast_load_dp501_microcode() 29 ret = request_firmware(&ast->dp501_fw, "ast_dp501_fw.bin", dev->dev); in ast_load_dp501_microcode() 33 return devm_add_action_or_reset(dev->dev, ast_release_firmware, ast); in ast_load_dp501_microcode() 194 if (ast->config_mode != ast_use_p2a) in ast_backup_fw() 214 if (ast->config_mode != ast_use_p2a) in ast_launch_m68k() 220 if (ast->dp501_fw_addr) { in ast_launch_m68k() 221 fw_addr = ast->dp501_fw_addr; in ast_launch_m68k() [all …]
|
/linux/drivers/gpu/drm/mgag200/ |
H A D | mgag200_vga.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 struct drm_device *dev = &mdev->base; in mgag200_vga_output_init() 30 struct drm_crtc *crtc = &mdev->crtc; in mgag200_vga_output_init() 32 struct drm_connector *connector; in mgag200_vga_output_init() local 36 encoder = &mdev->output.vga.encoder; in mgag200_vga_output_init() 43 encoder->possible_crtcs = drm_crtc_mask(crtc); in mgag200_vga_output_init() 52 connector = &mdev->output.vga.connector; in mgag200_vga_output_init() 53 ret = drm_connector_init_with_ddc(dev, connector, in mgag200_vga_output_init() 60 drm_connector_helper_add(connector, &mgag200_vga_connector_helper_funcs); in mgag200_vga_output_init() 62 connector->polled = DRM_CONNECTOR_POLL_CONNECT | in mgag200_vga_output_init() [all …]
|
H A D | mgag200_vga_bmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 struct mga_device *mdev = to_mga_device(encoder->dev); in mgag200_vga_bmc_encoder_atomic_disable() 16 if (mdev->info->sync_bmc) in mgag200_vga_bmc_encoder_atomic_disable() 23 struct mga_device *mdev = to_mga_device(encoder->dev); in mgag200_vga_bmc_encoder_atomic_enable() 25 if (mdev->info->sync_bmc) in mgag200_vga_bmc_encoder_atomic_enable() 33 struct mga_device *mdev = to_mga_device(encoder->dev); in mgag200_vga_bmc_encoder_atomic_check() 36 new_mgag200_crtc_state->set_vidrst = mdev->info->sync_bmc; in mgag200_vga_bmc_encoder_atomic_check() 51 static int mgag200_vga_bmc_connector_helper_get_modes(struct drm_connector *connector) in mgag200_vga_bmc_connector_helper_get_modes() argument 53 struct mga_device *mdev = to_mga_device(connector->dev); in mgag200_vga_bmc_connector_helper_get_modes() 54 const struct mgag200_device_info *minfo = mdev->info; in mgag200_vga_bmc_connector_helper_get_modes() [all …]
|
/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun6i-a31-hummingbird.dts | 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun6i-a31.dtsi" 47 #include "sunxi-common-regulators.dtsi" 49 #include <dt-bindings/gpio/gpio.h> 53 compatible = "merrii,a31-hummingbird", "allwinner,sun6i-a31"; 62 stdout-path = "serial0:115200n8"; 65 hdmi-connector { 66 compatible = "hdmi-connector"; [all …]
|
H A D | sun5i-a13-olinuxino.dts | 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 6 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 46 #include "sun5i-a13.dtsi" 47 #include "sunxi-common-regulators.dtsi" 49 #include <dt-bindings/gpio/gpio.h> 50 #include <dt-bindings/input/input.h> 53 model = "Olimex A13-Olinuxino"; 54 compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13"; 61 stdout-path = "serial0:115200n8"; [all …]
|
/linux/drivers/gpu/drm/tiny/ |
H A D | bochs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 25 #include <video/vga.h> 27 /* ---------------------------------------------------------------------- */ 58 static int bochs_modeset = -1; 70 /* ---------------------------------------------------------------------- */ 100 struct drm_connector connector; member 108 /* ---------------------------------------------------------------------- */ 112 return !IS_ENABLED(CONFIG_HAS_IOPORT) || bochs->mmio; in bochs_uses_mmio() 121 int offset = ioport - 0x3c0 + 0x400; in bochs_vga_writeb() 123 writeb(val, bochs->mmio + offset); in bochs_vga_writeb() [all …]
|
/linux/drivers/gpu/drm/bridge/ |
H A D | display-connector.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/media-bus-format.h> 39 return flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR ? 0 : -EINVAL; in display_connector_attach() 47 if (conn->hpd_gpio) { in display_connector_detect() 48 if (gpiod_get_value_cansleep(conn->hpd_gpio)) in display_connector_detect() 54 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect() 57 switch (conn->bridge.type) { in display_connector_detect() 74 * Composite and S-Video connectors have no other detection in display_connector_detect() 75 * mean than the HPD GPIO. For VGA connectors, even if we have in display_connector_detect() 85 struct drm_connector *connector) in display_connector_edid_read() argument [all …]
|
H A D | chrontel-ch7033.c | 1 // SPDX-License-Identifier: GPL-2.0-only 204 struct drm_connector connector; member 208 container_of(x, struct ch7033_priv, connector) 214 struct drm_connector *connector, bool force) in ch7033_connector_detect() argument 216 struct ch7033_priv *priv = conn_to_ch7033_priv(connector); in ch7033_connector_detect() 218 return drm_bridge_detect(priv->next_bridge); in ch7033_connector_detect() 230 static int ch7033_connector_get_modes(struct drm_connector *connector) in ch7033_connector_get_modes() argument 232 struct ch7033_priv *priv = conn_to_ch7033_priv(connector); in ch7033_connector_get_modes() 236 drm_edid = drm_bridge_edid_read(priv->next_bridge, connector); in ch7033_connector_get_modes() 237 drm_edid_connector_update(connector, drm_edid); in ch7033_connector_get_modes() [all …]
|
H A D | simple-bridge.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2015-2016 Free Electrons 4 * Copyright (C) 2015-2016 NextThing Co 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 30 struct drm_connector connector; member 46 drm_connector_to_simple_bridge(struct drm_connector *connector) in drm_connector_to_simple_bridge() argument 48 return container_of(connector, struct simple_bridge, connector); in drm_connector_to_simple_bridge() 51 static int simple_bridge_get_modes(struct drm_connector *connector) in simple_bridge_get_modes() argument 53 struct simple_bridge *sbridge = drm_connector_to_simple_bridge(connector); in simple_bridge_get_modes() 57 if (sbridge->next_bridge->ops & DRM_BRIDGE_OP_EDID) { in simple_bridge_get_modes() [all …]
|
/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | imx-tve.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * i.MX drm driver - Television Encoder (TVEv2) 8 #include <linux/clk-provider.h> 18 #include <video/imx-ipu-v3.h> 26 #include "imx-drm.h" 104 struct drm_connector connector; member 126 return container_of(c, struct imx_tve_encoder, connector)->tve; in con_to_tve() 131 return container_of(e, struct imx_tve_encoder, encoder)->tve; in enc_to_tve() 136 clk_prepare_enable(tve->clk); in tve_enable() 137 regmap_update_bits(tve->regmap, TVE_COM_CONF_REG, TVE_EN, TVE_EN); in tve_enable() [all …]
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-arm-versatile.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * - The IB1 is a passive board where the display connector defines a 19 * - The IB2 is a more complex board intended for GSM phone development 66 * struct versatile_panel_type - lookup struct for the supported panels 100 * struct versatile_panel - state container for the Versatile panels 127 * Sanyo TM38QV67A02A - 3.8 inch QVGA (320x240) Color TFT 128 * found on the Versatile AB IB1 connector or the Versatile 129 * PB adaptor board connector. 150 * Sharp LQ084V1DG21 640x480 VGA Color TFT module 151 * found on the Versatile AB IB1 connector or the Versatile [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_crt.c | 2 * Copyright © 2006-2007 Intel Corporation 85 static struct intel_crt *intel_attached_crt(struct intel_connector *connector) in intel_attached_crt() argument 87 return intel_encoder_to_crt(intel_attached_encoder(connector)); in intel_attached_crt() 93 struct drm_i915_private *dev_priv = to_i915(display->drm); in intel_crt_port_enabled() 111 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_crt_get_hw_state() 117 encoder->power_domain); in intel_crt_get_hw_state() 121 ret = intel_crt_port_enabled(display, crt->adpa_reg, pipe); in intel_crt_get_hw_state() 123 intel_display_power_put(dev_priv, encoder->power_domain, wakeref); in intel_crt_get_hw_state() 134 tmp = intel_de_read(display, crt->adpa_reg); in intel_crt_get_flags() 152 crtc_state->output_types |= BIT(INTEL_OUTPUT_ANALOG); in intel_crt_get_config() [all …]
|
H A D | intel_acpi.c | 1 // SPDX-License-Identifier: GPL-2.0 36 return "Analog VGA"; in intel_dsm_port_name() 95 if (!pkg->package.count) { in intel_dsm_platform_mux_info() 100 connector_count = &pkg->package.elements[0]; in intel_dsm_platform_mux_info() 102 (unsigned long long)connector_count->integer.value); in intel_dsm_platform_mux_info() 103 for (i = 1; i < pkg->package.count; i++) { in intel_dsm_platform_mux_info() 104 union acpi_object *obj = &pkg->package.elements[i]; in intel_dsm_platform_mux_info() 108 if (obj->type != ACPI_TYPE_PACKAGE || obj->package.count < 2) { in intel_dsm_platform_mux_info() 113 connector_id = &obj->package.elements[0]; in intel_dsm_platform_mux_info() 114 info = &obj->package.elements[1]; in intel_dsm_platform_mux_info() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_connectors.c | 2 * Copyright 2007-8 Advanced Micro Devices, Inc. 43 void amdgpu_connector_hotplug(struct drm_connector *connector) in amdgpu_connector_hotplug() argument 45 struct drm_device *dev = connector->dev; in amdgpu_connector_hotplug() 47 struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); in amdgpu_connector_hotplug() 49 /* bail if the connector does not have hpd pin, e.g., in amdgpu_connector_hotplug() 50 * VGA, TV, etc. in amdgpu_connector_hotplug() 52 if (amdgpu_connector->hpd.hpd == AMDGPU_HPD_NONE) in amdgpu_connector_hotplug() 55 amdgpu_display_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); in amdgpu_connector_hotplug() 57 /* if the connector is already off, don't turn it back on */ in amdgpu_connector_hotplug() 58 if (connector->dpms != DRM_MODE_DPMS_ON) in amdgpu_connector_hotplug() [all …]
|
/linux/samples/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 14 tristate "Build trace_events examples -- loadable modules only" 20 tristate "Build custom trace event example -- loadable modules only" 26 tristate "Build trace_printk module - tests various trace_printk formats" 73 tristate "Build kprobes examples - [all...] |
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_connectors.c | 2 * Copyright 2007-8 Advanced Micro Devices, Inc. 40 void radeon_connector_hotplug(struct drm_connector *connector) in radeon_connector_hotplug() argument 42 struct drm_device *dev = connector->dev; in radeon_connector_hotplug() 43 struct radeon_device *rdev = dev->dev_private; in radeon_connector_hotplug() 44 struct radeon_connector *radeon_connector = to_radeon_connector(connector); in radeon_connector_hotplug() 46 /* bail if the connector does not have hpd pin, e.g., in radeon_connector_hotplug() 47 * VGA, TV, etc. in radeon_connector_hotplug() 49 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE) in radeon_connector_hotplug() 52 radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); in radeon_connector_hotplug() 54 /* if the connector is already off, don't turn it back on */ in radeon_connector_hotplug() [all …]
|
H A D | radeon_acpi.h | 36 * The AMD ACPI notification mechanism uses Notify (VGA, 0x81) or a custom 38 * Method GET_SYSTEM_PARAMETERS. When the driver receives Notify (VGA, 0x81) or 71 * WORD - structure size in bytes (includes size field) 72 * WORD - version 73 * DWORD - supported notifications mask 74 * DWORD - supported functions bit vector 102 * WORD - structure size in bytes (includes size field) 103 * DWORD - valid flags mask 104 * DWORD - flags 108 * WORD - structure size in bytes (includes size field) [all …]
|
H A D | radeon_combios.c | 3 * Copyright 2007-8 Advanced Micro Devices, Inc. 133 struct radeon_device *rdev = dev->dev_private; in combios_get_table_offset() 137 if (!rdev->bios) in combios_get_table_offset() 362 size = RBIOS8(rdev->bios_header_start + 0x6); in combios_get_table_offset() 365 offset = RBIOS16(rdev->bios_header_start + check_offset); in combios_get_table_offset() 379 raw = rdev->bios + edid_info; in radeon_combios_check_hardcoded_edid() 388 rdev->mode_info.bios_hardcoded_edid = edid; in radeon_combios_check_hardcoded_edid() 396 return drm_edid_duplicate(drm_edid_raw(rdev->mode_info.bios_hardcoded_edid)); in radeon_bios_get_hardcoded_edid() 447 if (rdev->family == CHIP_RS300 || in combios_setup_i2c_bus() 448 rdev->family == CHIP_RS400 || in combios_setup_i2c_bus() [all …]
|
/linux/drivers/gpu/drm/amd/include/ |
H A D | amd_acpi.h | 48 u8 thermal_state; /* thermal state: state id (0: exit state, non-0: state) */ 52 u8 backlight_level; /* panel backlight level (0-255) */ 64 u8 ipnut_signal; /* input signal in range 0-255 */ 73 u8 min_input_signal; /* max input signal in range 0-255 */ 74 u8 max_input_signal; /* min input signal in range 0-255 */ 94 u16 client_id; /* client id (bit 2-0: func num, 7-3: dev num, 15-8: bus num) */ 108 u16 dgpu_id; /* client id (bit 2-0: func num, 7-3: dev num, 15-8: bus num) */ 119 * The AMD ACPI notification mechanism uses Notify (VGA, 0x81) or a custom 121 * Method GET_SYSTEM_PARAMETERS. When the driver receives Notify (VGA, 0x81) or 154 * WORD - structure size in bytes (includes size field) [all …]
|
/linux/arch/arm/boot/dts/arm/ |
H A D | integratorcp.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 11 compatible = "arm,integrator-cp"; 18 #address-cells = <1>; 19 #size-cells = <0>; 35 operating-points = <50000 0 38 clock-names = "cpu"; 39 clock-latency = <1000000>; /* 1 ms */ 45 * ARM DUI 0184B page 7-28 "Integrator/CP922T system clocks" which 50 xtal_codec: clock-24576000 { [all …]
|
/linux/drivers/gpu/drm/tve200/ |
H A D | tve200_display.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2006-2008 Intel Corporation 14 #include <linux/dma-buf.h> 34 stat = readl(priv->regs + TVE200_INT_STAT); in tve200_irq() 51 val = readl(priv->regs + TVE200_CTRL); in tve200_irq() 54 drm_crtc_handle_vblank(&priv->pipe.crtc); in tve200_irq() 61 writel(val, priv->regs + TVE200_CTRL); in tve200_irq() 63 dev_err(priv->drm->dev, "stray IRQ %08x\n", stat); in tve200_irq() 66 writel(stat, priv->regs + TVE200_INT_CLR); in tve200_irq() 75 const struct drm_display_mode *mode = &cstate->mode; in tve200_display_check() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bios.c | 2 * Copyright 2005-2006 Erik Waling 4 * Copyright 2007-2009 Stuart Bennett 33 #include <linux/io-mapping.h> 43 #define BIOSLOG(sip, fmt, arg...) NV_DEBUG(sip->dev, fmt, ##arg) 69 if (bios->major_version < 5) /* pre BIT */ in clkcmptable() 75 compareclk = ROM16(bios->data[clktable + compare_record_len * i]); in clkcmptable() 77 if (bios->major_version < 5) { in clkcmptable() 78 uint8_t tmdssub = bios->data[clktable + 2 + compare_record_len * i]; in clkcmptable() 79 scriptptr = ROM16(bios->data[bios->init_script_tbls_ptr + tmdssub * 2]); in clkcmptable() 81 scriptptr = ROM16(bios->data[clktable + 2 + compare_record_len * i]); in clkcmptable() [all …]
|