/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_lvds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Mark Yao <mark.yao@rock-chips.com> 6 * Sandy Huang <hjc@rock-chips.com> 38 * struct rockchip_lvds_soc_data - rockchip lvds Soc private data 39 * @probe: LVDS platform probe function 40 * @helper_funcs: LVDS connector helper functions 43 int (*probe)(struct platform_device *pdev, struct rockchip_lvds *lvds); 54 int output; /* rgb lvds or dual lvds output */ 60 struct rockchip_encoder encoder; member 69 static inline struct rockchip_lvds *encoder_to_lvds(struct drm_encoder *encoder) in encoder_to_lvds() argument [all …]
|
/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_lvds.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 23 struct drm_encoder encoder; member 36 drm_encoder_to_sun4i_lvds(struct drm_encoder *encoder) in drm_encoder_to_sun4i_lvds() argument 38 return container_of(encoder, struct sun4i_lvds, in drm_encoder_to_sun4i_lvds() 39 encoder); in drm_encoder_to_sun4i_lvds() 44 struct sun4i_lvds *lvds = in sun4i_lvds_get_modes() local 47 return drm_panel_get_modes(lvds->panel, connector); in sun4i_lvds_get_modes() 68 static void sun4i_lvds_encoder_enable(struct drm_encoder *encoder) in sun4i_lvds_encoder_enable() argument 70 struct sun4i_lvds *lvds = drm_encoder_to_sun4i_lvds(encoder); in sun4i_lvds_encoder_enable() local [all …]
|
H A D | sun4i_tcon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 11 #include <linux/media-bus-format.h> 43 static struct drm_connector *sun4i_tcon_get_connector(const struct drm_encoder *encoder) in sun4i_tcon_get_connector() argument 48 drm_connector_list_iter_begin(encoder->dev, &iter); in sun4i_tcon_get_connector() 50 if (connector->encoder == encoder) { in sun4i_tcon_get_connector() 59 static int sun4i_tcon_get_pixel_depth(const struct drm_encoder *encoder) in sun4i_tcon_get_pixel_depth() argument 64 connector = sun4i_tcon_get_connector(encoder); in sun4i_tcon_get_pixel_depth() 66 return -EINVAL; in sun4i_tcon_get_pixel_depth() 68 info = &connector->display_info; in sun4i_tcon_get_pixel_depth() [all …]
|
/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_lvds.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * R-Car LVDS Encoder 5 * Copyright (C) 2013-2018 Renesas Electronics Corporation 13 #include <linux/media-bus-format.h> 50 #define RCAR_LVDS_QUIRK_LANES BIT(0) /* LVDS lanes 1 and 3 inverted */ 54 #define RCAR_LVDS_QUIRK_DUAL_LINK BIT(4) /* Supports dual-link operation */ 59 void (*pll_setup)(struct rcar_lvds *lvds, unsigned int freq); 86 static u32 rcar_lvds_read(struct rcar_lvds *lvds, u32 reg) in rcar_lvds_read() argument 88 return ioread32(lvds->mmio + reg); in rcar_lvds_read() 91 static void rcar_lvds_write(struct rcar_lvds *lvds, u32 reg, u32 data) in rcar_lvds_write() argument [all …]
|
H A D | rcar_du_encoder.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * R-Car Display Unit Encoder 5 * Copyright (C) 2013-2014 Renesas Electronics Corporation 21 /* ----------------------------------------------------------------------------- 22 * Encoder 70 bridge = devm_drm_panel_bridge_add_typed(rcdu->dev, panel, in rcar_du_encoder_init() 77 return -EPROBE_DEFER; in rcar_du_encoder_init() 81 rcdu->lvds[output - RCAR_DU_OUTPUT_LVDS0] = bridge; in rcar_du_encoder_init() 85 rcdu->dsi[output - RCAR_DU_OUTPUT_DSI0] = bridge; in rcar_du_encoder_init() 89 * Create and initialize the encoder. On Gen3, skip the LVDS1 output if in rcar_du_encoder_init() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 3 tristate "DRM Support for R-Car Display Unit" 13 Choose this option if you have an R-Car chipset. 14 If M is selected the module will be called rcar-du-drm. 17 bool "R-Car DU Color Management Module (CMM) Support" 21 Enable support for R-Car Color Management Module (CMM). 28 tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support" 33 Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder. 36 bool "R-Car DU LVDS Encoder Support" 41 Enable support for the R-Car Display Unit embedded LVDS encoders. [all …]
|
/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | renesas,lvds.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/bridge/renesas,lvds.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas R-Car LVDS Encoder 10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 13 These DT bindings describe the LVDS encoder embedded in the Renesas R-Car 14 Gen2, R-Car Gen3, RZ/G1 and RZ/G2 SoCs. 19 - renesas,r8a7742-lvds # for RZ/G1H compatible LVDS encoders 20 - renesas,r8a7743-lvds # for RZ/G1M compatible LVDS encoders [all …]
|
H A D | lvds-codec.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/bridge/lvds-codec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Transparent LVDS encoders and decoders 10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 13 This binding supports transparent LVDS encoders and decoders that don't 16 LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple 18 to LVDS panels. This binding targets devices compatible with the following 21 [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_encoders.c | 2 * Copyright 2007-8 Advanced Micro Devices, Inc. 46 static void radeon_legacy_encoder_disable(struct drm_encoder *encoder) in radeon_legacy_encoder_disable() argument 48 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_encoder_disable() 51 encoder_funcs = encoder->helper_private; in radeon_legacy_encoder_disable() 52 encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in radeon_legacy_encoder_disable() 53 radeon_encoder->active_device = 0; in radeon_legacy_encoder_disable() 56 static void radeon_legacy_lvds_update(struct drm_encoder *encoder, int mode) in radeon_legacy_lvds_update() argument 58 struct drm_device *dev = encoder in radeon_legacy_lvds_update() 72 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; radeon_legacy_lvds_update() local 77 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; radeon_legacy_lvds_update() local 145 radeon_legacy_lvds_dpms(struct drm_encoder * encoder,int mode) radeon_legacy_lvds_dpms() argument 153 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; radeon_legacy_lvds_dpms() local 156 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; radeon_legacy_lvds_dpms() local 164 radeon_legacy_lvds_prepare(struct drm_encoder * encoder) radeon_legacy_lvds_prepare() argument 175 radeon_legacy_lvds_commit(struct drm_encoder * encoder) radeon_legacy_lvds_commit() argument 186 radeon_legacy_lvds_mode_set(struct drm_encoder * encoder,struct drm_display_mode * mode,struct drm_display_mode * adjusted_mode) radeon_legacy_lvds_mode_set() argument 210 struct radeon_encoder_lvds *lvds = (struct radeon_encoder_lvds *)radeon_encoder->enc_priv; radeon_legacy_lvds_mode_set() local 256 radeon_legacy_mode_fixup(struct drm_encoder * encoder,const struct drm_display_mode * mode,struct drm_display_mode * adjusted_mode) radeon_legacy_mode_fixup() argument 304 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; radeon_legacy_set_backlight_level() local 311 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; radeon_legacy_set_backlight_level() local 445 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; radeon_legacy_backlight_init() local 448 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; radeon_legacy_backlight_init() local 476 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; radeon_legacy_backlight_exit() local 480 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; radeon_legacy_backlight_exit() local 496 radeon_lvds_enc_destroy(struct drm_encoder * encoder) radeon_lvds_enc_destroy() argument 512 radeon_legacy_primary_dac_dpms(struct drm_encoder * encoder,int mode) radeon_legacy_primary_dac_dpms() argument 554 radeon_legacy_primary_dac_prepare(struct drm_encoder * encoder) radeon_legacy_primary_dac_prepare() argument 565 radeon_legacy_primary_dac_commit(struct drm_encoder * encoder) radeon_legacy_primary_dac_commit() argument 577 radeon_legacy_primary_dac_mode_set(struct drm_encoder * encoder,struct drm_display_mode * mode,struct drm_display_mode * adjusted_mode) radeon_legacy_primary_dac_mode_set() argument 634 radeon_legacy_primary_dac_detect(struct drm_encoder * encoder,struct drm_connector * connector) radeon_legacy_primary_dac_detect() argument 724 radeon_legacy_tmds_int_dpms(struct drm_encoder * encoder,int mode) radeon_legacy_tmds_int_dpms() argument 751 radeon_legacy_tmds_int_prepare(struct drm_encoder * encoder) radeon_legacy_tmds_int_prepare() argument 762 radeon_legacy_tmds_int_commit(struct drm_encoder * encoder) radeon_legacy_tmds_int_commit() argument 774 radeon_legacy_tmds_int_mode_set(struct drm_encoder * encoder,struct drm_display_mode * mode,struct drm_display_mode * adjusted_mode) radeon_legacy_tmds_int_mode_set() argument 888 radeon_legacy_tmds_ext_dpms(struct drm_encoder * encoder,int mode) radeon_legacy_tmds_ext_dpms() argument 917 radeon_legacy_tmds_ext_prepare(struct drm_encoder * encoder) radeon_legacy_tmds_ext_prepare() argument 928 radeon_legacy_tmds_ext_commit(struct drm_encoder * encoder) radeon_legacy_tmds_ext_commit() argument 939 radeon_legacy_tmds_ext_mode_set(struct drm_encoder * encoder,struct drm_display_mode * mode,struct drm_display_mode * adjusted_mode) radeon_legacy_tmds_ext_mode_set() argument 1008 radeon_ext_tmds_enc_destroy(struct drm_encoder * encoder) radeon_ext_tmds_enc_destroy() argument 1031 radeon_legacy_tv_dac_dpms(struct drm_encoder * encoder,int mode) radeon_legacy_tv_dac_dpms() argument 1122 radeon_legacy_tv_dac_prepare(struct drm_encoder * encoder) radeon_legacy_tv_dac_prepare() argument 1133 radeon_legacy_tv_dac_commit(struct drm_encoder * encoder) radeon_legacy_tv_dac_commit() argument 1145 radeon_legacy_tv_dac_mode_set(struct drm_encoder * encoder,struct drm_display_mode * mode,struct drm_display_mode * adjusted_mode) radeon_legacy_tv_dac_mode_set() argument 1299 r300_legacy_tv_detect(struct drm_encoder * encoder,struct drm_connector * connector) r300_legacy_tv_detect() argument 1370 radeon_legacy_tv_detect(struct drm_encoder * encoder,struct drm_connector * connector) radeon_legacy_tv_detect() argument 1434 radeon_legacy_ext_dac_detect(struct drm_encoder * encoder,struct drm_connector * connector) radeon_legacy_ext_dac_detect() argument 1524 radeon_legacy_tv_dac_detect(struct drm_encoder * encoder,struct drm_connector * connector) radeon_legacy_tv_dac_detect() argument 1691 radeon_legacy_get_tmds_info(struct radeon_encoder * encoder) radeon_legacy_get_tmds_info() argument 1714 radeon_legacy_get_ext_tmds_info(struct radeon_encoder * encoder) radeon_legacy_get_ext_tmds_info() argument 1741 struct drm_encoder *encoder; radeon_add_legacy_encoder() local [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)); 447 if (rdev->family == CHIP_RS300 || in combios_setup_i2c_bus() 448 rdev->famil in combios_setup_i2c_bus() 860 radeon_combios_get_primary_dac_info(struct radeon_encoder * encoder) radeon_combios_get_primary_dac_info() argument 1011 radeon_combios_get_tv_dac_info(struct radeon_encoder * encoder) radeon_combios_get_tv_dac_info() argument 1104 struct radeon_encoder_lvds *lvds; radeon_legacy_get_lvds_info_from_regs() local 1170 radeon_combios_get_lvds_info(struct radeon_encoder * encoder) radeon_combios_get_lvds_info() argument 1179 struct radeon_encoder_lvds *lvds = NULL; radeon_combios_get_lvds_info() local 1315 radeon_legacy_get_tmds_info_from_table(struct radeon_encoder * encoder,struct radeon_encoder_int_tmds * tmds) radeon_legacy_get_tmds_info_from_table() argument 1331 radeon_legacy_get_tmds_info_from_combios(struct radeon_encoder * encoder,struct radeon_encoder_int_tmds * tmds) radeon_legacy_get_tmds_info_from_combios() argument 1384 radeon_legacy_get_ext_tmds_info_from_table(struct radeon_encoder * encoder,struct radeon_encoder_ext_tmds * tmds) radeon_legacy_get_ext_tmds_info_from_table() argument 1408 radeon_legacy_get_ext_tmds_info_from_combios(struct radeon_encoder * encoder,struct radeon_encoder_ext_tmds * tmds) radeon_legacy_get_ext_tmds_info_from_combios() argument 2837 radeon_external_tmds_setup(struct drm_encoder * encoder) radeon_external_tmds_setup() argument 2884 radeon_combios_external_tmds_setup(struct drm_encoder * encoder) radeon_combios_external_tmds_setup() argument 3441 radeon_combios_output_lock(struct drm_encoder * encoder,bool lock) radeon_combios_output_lock() argument 3459 radeon_combios_connected_scratch_regs(struct drm_connector * connector,struct drm_encoder * encoder,bool connected) radeon_combios_connected_scratch_regs() argument 3561 radeon_combios_encoder_crtc_scratch_regs(struct drm_encoder * encoder,int crtc) radeon_combios_encoder_crtc_scratch_regs() argument 3596 radeon_combios_encoder_dpms_scratch_regs(struct drm_encoder * encoder,bool on) radeon_combios_encoder_dpms_scratch_regs() argument [all...] |
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_encoders.c | 2 * Copyright 2007-11 Advanced Micro Devices, Inc. 74 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_get_backlight_level() 77 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_get_backlight_level() 87 struct drm_encoder *encoder = &amdgpu_encoder->base; in amdgpu_atombios_encoder_set_backlight_level() local 88 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_set_backlight_level() 92 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_set_backlight_level() 95 if ((amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) && in amdgpu_atombios_encoder_set_backlight_level() 96 amdgpu_encoder->enc_priv) { in amdgpu_atombios_encoder_set_backlight_level() 97 dig = amdgpu_encoder->enc_pri in amdgpu_atombios_encoder_set_backlight_level() 263 amdgpu_atombios_encoder_is_digital(struct drm_encoder * encoder) amdgpu_atombios_encoder_is_digital() argument 278 amdgpu_atombios_encoder_mode_fixup(struct drm_encoder * encoder,const struct drm_display_mode * mode,struct drm_display_mode * adjusted_mode) amdgpu_atombios_encoder_mode_fixup() argument 313 amdgpu_atombios_encoder_setup_dac(struct drm_encoder * encoder,int action) amdgpu_atombios_encoder_setup_dac() argument 342 amdgpu_atombios_encoder_get_bpc(struct drm_encoder * encoder) amdgpu_atombios_encoder_get_bpc() argument 376 amdgpu_atombios_encoder_setup_dvo(struct drm_encoder * encoder,int action) amdgpu_atombios_encoder_setup_dvo() argument 438 amdgpu_atombios_encoder_get_encoder_mode(struct drm_encoder * encoder) amdgpu_atombios_encoder_get_encoder_mode() argument 560 amdgpu_atombios_encoder_setup_dig_encoder(struct drm_encoder * encoder,int action,int panel_mode) amdgpu_atombios_encoder_setup_dig_encoder() argument 749 amdgpu_atombios_encoder_setup_dig_transmitter(struct drm_encoder * encoder,int action,uint8_t lane_num,uint8_t lane_set) amdgpu_atombios_encoder_setup_dig_transmitter() argument 1190 amdgpu_atombios_encoder_setup_external_encoder(struct drm_encoder * encoder,struct drm_encoder * ext_encoder,int action) amdgpu_atombios_encoder_setup_external_encoder() argument 1295 amdgpu_atombios_encoder_setup_dig(struct drm_encoder * encoder,int action) amdgpu_atombios_encoder_setup_dig() argument 1374 amdgpu_atombios_encoder_dpms(struct drm_encoder * encoder,int mode) amdgpu_atombios_encoder_dpms() argument 1433 amdgpu_atombios_encoder_set_crtc_source(struct drm_encoder * encoder) amdgpu_atombios_encoder_set_crtc_source() argument 1644 struct drm_encoder *encoder; amdgpu_atombios_encoder_init_dig() local 1667 amdgpu_atombios_encoder_dac_load_detect(struct drm_encoder * encoder,struct drm_connector * connector) amdgpu_atombios_encoder_dac_load_detect() argument 1717 amdgpu_atombios_encoder_dac_detect(struct drm_encoder * encoder,struct drm_connector * connector) amdgpu_atombios_encoder_dac_detect() argument 1756 amdgpu_atombios_encoder_dig_detect(struct drm_encoder * encoder,struct drm_connector * connector) amdgpu_atombios_encoder_dig_detect() argument 1801 amdgpu_atombios_encoder_setup_ext_encoder_ddc(struct drm_encoder * encoder) amdgpu_atombios_encoder_setup_ext_encoder_ddc() argument 1814 amdgpu_atombios_encoder_set_bios_scratch_regs(struct drm_connector * connector,struct drm_encoder * encoder,bool connected) amdgpu_atombios_encoder_set_bios_scratch_regs() argument 1966 amdgpu_atombios_encoder_get_lcd_info(struct amdgpu_encoder * encoder) amdgpu_atombios_encoder_get_lcd_info() argument 1975 struct amdgpu_encoder_atom_dig *lvds = NULL; amdgpu_atombios_encoder_get_lcd_info() local [all...] |
/linux/drivers/gpu/drm/gma500/ |
H A D | oaktrail_lvds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright © 2006-2009 Intel Corporation 24 /* The max/min PWM frequency in BPCR[31:17] - */ 26 * 15-bit field of the and then*/ 27 /* shifts to the left by one bit to get the actual 16-bit 28 * value that the 15-bits correspond to.*/ 51 dev_priv->is_lvds_on = true; in oaktrail_lvds_set_power() 52 if (dev_priv->ops->lvds_bl_power) in oaktrail_lvds_set_power() 53 dev_priv->ops->lvds_bl_power(dev, true); in oaktrail_lvds_set_power() 55 if (dev_priv->ops->lvds_bl_power) in oaktrail_lvds_set_power() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_of.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include <linux/media-bus-format.h> 25 * drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node 39 if (tmp->port == port) in drm_of_crtc_port_mask() 50 * drm_of_find_possible_crtcs - find the possible CRTCs for an encoder port 52 * @port: encoder port to scan for endpoints 56 * encoder. 83 * drm_of_component_match_add - Add a component helper OF node match rule 101 * drm_of_component_probe - Generic probe function for a component based master 121 if (!dev->of_node) in drm_of_component_probe() [all …]
|
/linux/drivers/gpu/drm/bridge/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 21 Simple transparent bridge that is used by several non-DRM drivers to 36 tristate "Chipone ICN6211 MIPI-DSI/RGB Converter bridge" 43 ICN6211 is MIPI-DSI/RGB Converter bridge from chipone. 51 tristate "Chrontel CH7033 Video Encoder" 55 Enable support for the Chrontel CH7033 VGA/DVI/HDMI Encoder, as 67 ChromeOS EC ANX7688 is an ultra-low power 68 4K Ultra-HD (4096x2160p60) mobile HD transmitter 70 2.0 to DisplayPort 1.3 Ultra-HD. It is connected 77 Driver for display connectors with support for DDC and hot-plug [all …]
|
H A D | lvds-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #include <linux/media-bus-format.h> 41 return drm_bridge_attach(bridge->encoder, lvds_codec->panel_bridge, in lvds_codec_attach() 50 ret = regulator_enable(lvds_codec->vcc); in lvds_codec_enable() 52 dev_err(lvds_codec->dev, in lvds_codec_enable() 57 if (lvds_codec->powerdown_gpio) in lvds_codec_enable() 58 gpiod_set_value_cansleep(lvds_codec->powerdown_gpio, 0); in lvds_codec_enable() 66 if (lvds_codec->powerdown_gpio) in lvds_codec_disable() 67 gpiod_set_value_cansleep(lvds_codec->powerdown_gpio, 1); in lvds_codec_disable() 69 ret = regulator_disable(lvds_codec->vcc); in lvds_codec_disable() [all …]
|
H A D | fsl-ldb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 #include <linux/media-bus-format.h> 40 * Clear it to enable LVDS and set it to disable LVDS. 99 return (fsl_ldb->ch0_enabled && fsl_ldb->ch1_enabled); in fsl_ldb_is_dual() 120 return drm_bridge_attach(bridge->encoder, fsl_ldb->panel_bridge, in fsl_ldb_attach() 128 struct drm_atomic_state *state = old_bridge_state->base.state; in fsl_ldb_atomic_enable() 140 /* Get the LVDS format from the bridge state. */ in fsl_ldb_atomic_enable() 143 switch (bridge_state->output_bus_cfg.format) { in fsl_ldb_atomic_enable() 158 * Some bridges still don't set the correct LVDS bus pixel in fsl_ldb_atomic_enable() 163 dev_warn(fsl_ldb->dev, in fsl_ldb_atomic_enable() [all …]
|
H A D | microchip-lvds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 69 static inline u32 lvds_readl(struct mchp_lvds *lvds, u32 offset) in lvds_readl() argument 71 return readl_relaxed(lvds->regs + offset); in lvds_readl() 74 static inline void lvds_writel(struct mchp_lvds *lvds, u32 offset, u32 val) in lvds_writel() argument 76 writel_relaxed(val, lvds->regs + offset); in lvds_writel() 79 static void lvds_serialiser_on(struct mchp_lvds *lvds) in lvds_serialiser_on() argument 84 lvds_writel(lvds, LVDSC_WPMR, (LVDSC_WPMR_WPKEY_PSSWD & in lvds_serialiser_on() 88 while (lvds_readl(lvds, LVDSC_SR) & LVDSC_SR_CS) { in lvds_serialiser_on() 90 dev_err(lvds->dev, "%s: timeout error\n", __func__); in lvds_serialiser_on() 97 lvds_writel(lvds, LVDSC_CFGR, (LVDSC_CFGR_MAPPING_JEIDA | in lvds_serialiser_on() [all …]
|
H A D | tc358775.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * TC358775 DSI to LVDS bridge driver 16 #include <linux/media-bus-format.h> 36 /* DSI D-PHY Layer Registers */ 52 #define PPI_STARTPPI 0x0104 /* START control bit of PPI-TX function. */ 93 #define DSI_STARTDSI 0x0204 /* START control bit of DSI-TX function */ 119 /* Mux Input Select for LVDS LINK Input */ 162 #define LVCFG 0x049C /* LVDS Configuration */ 163 #define LVPHY0 0x04A0 /* LVDS PHY 0 */ 169 #define LVPHY1 0x04A4 /* LVDS PHY 1 */ [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | rgb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 91 static void tegra_rgb_encoder_disable(struct drm_encoder *encoder) in tegra_rgb_encoder_disable() argument 93 struct tegra_output *output = encoder_to_output(encoder); in tegra_rgb_encoder_disable() 96 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable() 97 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable() 100 static void tegra_rgb_encoder_enable(struct drm_encoder *encoder) in tegra_rgb_encoder_enable() argument 102 struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; in tegra_rgb_encoder_enable() 103 struct tegra_output *output = encoder_to_output(encoder); in tegra_rgb_encoder_enable() 107 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable() 110 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable() [all …]
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra30-asus-lvds-display.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 /* This dtsi file describes parts common for Asus T30 devices with a LVDS panel. */ 5 #include <dt-bindings/gpio/tegra-gpio.h> 15 remote-endpoint = <&bridge_input>; 16 bus-width = <24>; 23 display-panel { 24 power-supply = <&vdd_pnl>; 25 ddc-i2c-bus = <&lcd_ddc>; 30 remote-endpoint = <&bridge_output>; 35 /* Texas Instruments SN75LVDS83B LVDS Transmitter */ [all …]
|
/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_lcdc_encoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 static struct mdp4_kms *get_kms(struct drm_encoder *encoder) in get_kms() argument 29 struct msm_drm_private *priv = encoder->dev->dev_private; in get_kms() 30 return to_mdp4_kms(to_mdp_kms(priv->kms)); in get_kms() 34 static struct drm_connector *get_connector(struct drm_encoder *encoder) in get_connector() argument 36 struct drm_device *dev = encoder->dev; in get_connector() 39 list_for_each_entry(connector, &dev->mode_config.connector_list, head) in get_connector() 40 if (connector->encoder == encoder) in get_connector() 46 static void setup_phy(struct drm_encoder *encoder) in setup_phy() argument 48 struct drm_device *dev = encoder->dev; in setup_phy() [all …]
|
H A D | mdp4_kms.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 struct drm_device *dev = mdp4_kms->dev; in mdp4_hw_init() 23 pm_runtime_get_sync(dev->dev); in mdp4_hw_init() 25 if (mdp4_kms->rev > 1) { in mdp4_hw_init() 35 clk = clk_get_rate(mdp4_kms->clk); in mdp4_hw_init() 37 if ((mdp4_kms->rev >= 1) || (clk >= 90000000)) { in mdp4_hw_init() 38 dmap_cfg = 0x47; /* 16 bytes-burst x 8 req */ in mdp4_hw_init() 39 vg_cfg = 0x47; /* 16 bytes-burs x 8 req */ in mdp4_hw_init() 41 dmap_cfg = 0x27; /* 8 bytes-burst x 8 req */ in mdp4_hw_init() 42 vg_cfg = 0x43; /* 16 bytes-burst x 4 req */ in mdp4_hw_init() [all …]
|
/linux/Documentation/devicetree/bindings/display/rockchip/ |
H A D | rockchip,lvds.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/rockchip/rockchip,lvds.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip low-voltage differential signal (LVDS) transmitter 10 - Sandy Huang <hjc@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 16 - rockchip,px30-lvds 17 - rockchip,rk3288-lvds 25 clock-names: [all …]
|
/linux/drivers/gpu/drm/bridge/imx/ |
H A D | Kconfig | 7 tristate "Freescale i.MX8MP HDMI-TX bridge support" 14 Choose this to enable support for the internal HDMI encoder found 25 tristate "Freescale i.MX8QM LVDS display bridge" 31 Choose this to enable the internal LVDS Display Bridge(LDB) found in 35 tristate "Freescale i.MX8QXP LVDS display bridge" 41 Choose this to enable the internal LVDS Display Bridge(LDB) found in
|
/linux/Documentation/devicetree/bindings/display/imx/ |
H A D | ldb.txt | 1 Device-Tree bindings for LVDS Display Bridge (ldb) 3 LVDS Display Bridge 6 The LVDS Display Bridge device tree node contains up to two lvds-channel 7 nodes describing each of the two LVDS encoder channels of the bridge. 10 - #address-cells : should be <1> 11 - #size-cells : should be <0> 12 - compatible : should be "fsl,imx53-ldb" or "fsl,imx6q-ldb". 15 interfaces as input for each LVDS channel. 16 - gpr : should be <&gpr> on i.MX53 and i.MX6q. 17 The phandle points to the iomuxc-gpr region containing the LVDS [all …]
|