Home
last modified time | relevance | path

Searched refs:dsi (Results 1 – 25 of 41) sorted by relevance

12

/drivers/gpu/drm/mediatek/
Dmtk_dsi.c160 static void mtk_dsi_mask(struct mtk_dsi *dsi, u32 offset, u32 mask, u32 data) in mtk_dsi_mask() argument
162 u32 temp = readl(dsi->regs + offset); in mtk_dsi_mask()
164 writel((temp & ~mask) | (data & mask), dsi->regs + offset); in mtk_dsi_mask()
167 static void dsi_phy_timconfig(struct mtk_dsi *dsi) in dsi_phy_timconfig() argument
172 ui = 1000 / dsi->data_rate + 0x01; in dsi_phy_timconfig()
173 cycle_time = 8000 / dsi->data_rate + 0x01; in dsi_phy_timconfig()
183 writel(timcon0, dsi->regs + DSI_PHY_TIMECON0); in dsi_phy_timconfig()
184 writel(timcon1, dsi->regs + DSI_PHY_TIMECON1); in dsi_phy_timconfig()
185 writel(timcon2, dsi->regs + DSI_PHY_TIMECON2); in dsi_phy_timconfig()
186 writel(timcon3, dsi->regs + DSI_PHY_TIMECON3); in dsi_phy_timconfig()
[all …]
/drivers/gpu/drm/rockchip/
Ddw-mipi-dsi.c333 static void dw_mipi_dsi_wait_for_two_frames(struct dw_mipi_dsi *dsi) in dw_mipi_dsi_wait_for_two_frames() argument
337 refresh = drm_mode_vrefresh(dsi->mode); in dw_mipi_dsi_wait_for_two_frames()
356 static inline void dsi_write(struct dw_mipi_dsi *dsi, u32 reg, u32 val) in dsi_write() argument
358 writel(val, dsi->base + reg); in dsi_write()
361 static inline u32 dsi_read(struct dw_mipi_dsi *dsi, u32 reg) in dsi_read() argument
363 return readl(dsi->base + reg); in dsi_read()
366 static void dw_mipi_dsi_phy_write(struct dw_mipi_dsi *dsi, u8 test_code, in dw_mipi_dsi_phy_write() argument
374 dsi_write(dsi, DSI_PHY_TST_CTRL0, PHY_TESTCLK | PHY_UNTESTCLR); in dw_mipi_dsi_phy_write()
376 dsi_write(dsi, DSI_PHY_TST_CTRL1, PHY_TESTEN | PHY_TESTDOUT(0) | in dw_mipi_dsi_phy_write()
379 dsi_write(dsi, DSI_PHY_TST_CTRL0, PHY_UNTESTCLK | PHY_UNTESTCLR); in dw_mipi_dsi_phy_write()
[all …]
DMakefile11 obj-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi.o
/drivers/gpu/drm/tegra/
Ddsi.c103 static struct tegra_dsi_state *tegra_dsi_get_state(struct tegra_dsi *dsi) in tegra_dsi_get_state() argument
105 return to_dsi_state(dsi->output.connector.state); in tegra_dsi_get_state()
108 static inline u32 tegra_dsi_readl(struct tegra_dsi *dsi, unsigned long reg) in tegra_dsi_readl() argument
110 return readl(dsi->regs + (reg << 2)); in tegra_dsi_readl()
113 static inline void tegra_dsi_writel(struct tegra_dsi *dsi, u32 value, in tegra_dsi_writel() argument
116 writel(value, dsi->regs + (reg << 2)); in tegra_dsi_writel()
122 struct tegra_dsi *dsi = node->info_ent->data; in tegra_dsi_show_regs() local
123 struct drm_crtc *crtc = dsi->output.encoder.crtc; in tegra_dsi_show_regs()
136 tegra_dsi_readl(dsi, name)) in tegra_dsi_show_regs()
231 static int tegra_dsi_debugfs_init(struct tegra_dsi *dsi, in tegra_dsi_debugfs_init() argument
[all …]
DMakefile12 dsi.o \
/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c320 static inline void exynos_dsi_write(struct exynos_dsi *dsi, enum reg_idx idx, in exynos_dsi_write() argument
324 writel(val, dsi->reg_base + dsi->driver_data->reg_ofs[idx]); in exynos_dsi_write()
327 static inline u32 exynos_dsi_read(struct exynos_dsi *dsi, enum reg_idx idx) in exynos_dsi_read() argument
329 return readl(dsi->reg_base + dsi->driver_data->reg_ofs[idx]); in exynos_dsi_read()
535 static void exynos_dsi_wait_for_reset(struct exynos_dsi *dsi) in exynos_dsi_wait_for_reset() argument
537 if (wait_for_completion_timeout(&dsi->completed, msecs_to_jiffies(300))) in exynos_dsi_wait_for_reset()
540 dev_err(dsi->dev, "timeout waiting for reset\n"); in exynos_dsi_wait_for_reset()
543 static void exynos_dsi_reset(struct exynos_dsi *dsi) in exynos_dsi_reset() argument
545 u32 reset_val = dsi->driver_data->reg_values[RESET_TYPE]; in exynos_dsi_reset()
547 reinit_completion(&dsi->completed); in exynos_dsi_reset()
[all …]
/drivers/gpu/drm/
Ddrm_mipi_dsi.c50 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_device_match() local
57 if (!strcmp(dsi->name, drv->name)) in mipi_dsi_device_match()
65 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_uevent() local
73 dsi->name); in mipi_dsi_uevent()
121 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_dev_release() local
124 kfree(dsi); in mipi_dsi_dev_release()
133 struct mipi_dsi_device *dsi; in mipi_dsi_device_alloc() local
135 dsi = kzalloc(sizeof(*dsi), GFP_KERNEL); in mipi_dsi_device_alloc()
136 if (!dsi) in mipi_dsi_device_alloc()
139 dsi->host = host; in mipi_dsi_device_alloc()
[all …]
/drivers/gpu/drm/panel/
Dpanel-jdi-lt070me05000.c44 struct mipi_dsi_device *dsi; member
66 struct mipi_dsi_device *dsi = jdi->dsi; in jdi_panel_init() local
67 struct device *dev = &jdi->dsi->dev; in jdi_panel_init()
70 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in jdi_panel_init()
72 ret = mipi_dsi_dcs_soft_reset(dsi); in jdi_panel_init()
78 ret = mipi_dsi_dcs_set_pixel_format(dsi, MIPI_DCS_PIXEL_FMT_24BIT << 4); in jdi_panel_init()
84 ret = mipi_dsi_dcs_set_column_address(dsi, 0, jdi->mode->hdisplay - 1); in jdi_panel_init()
90 ret = mipi_dsi_dcs_set_page_address(dsi, 0, jdi->mode->vdisplay - 1); in jdi_panel_init()
102 ret = mipi_dsi_dcs_write(dsi, MIPI_DCS_WRITE_CONTROL_DISPLAY, in jdi_panel_init()
110 ret = mipi_dsi_dcs_write(dsi, MIPI_DCS_WRITE_POWER_SAVE, in jdi_panel_init()
[all …]
Dpanel-sharp-ls043t1le01.c36 struct mipi_dsi_device *dsi; member
55 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_init() local
58 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sharp_nt_panel_init()
60 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in sharp_nt_panel_init()
67 ret = mipi_dsi_dcs_write(dsi, 0xae, (u8[]){ 0x03 }, 1); in sharp_nt_panel_init()
72 ret = mipi_dsi_dcs_set_pixel_format(dsi, MIPI_DCS_PIXEL_FMT_24BIT | in sharp_nt_panel_init()
82 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_on() local
85 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sharp_nt_panel_on()
87 ret = mipi_dsi_dcs_set_display_on(dsi); in sharp_nt_panel_on()
96 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_off() local
[all …]
Dpanel-panasonic-vvx10f034n00.c42 struct mipi_dsi_device *dsi; member
62 struct mipi_dsi_device *dsi = wuxga_nt->dsi; in wuxga_nt_panel_on() local
65 ret = mipi_dsi_turn_on_peripheral(dsi); in wuxga_nt_panel_on()
79 mipi_dsi_shutdown_peripheral(wuxga_nt->dsi); in wuxga_nt_panel_disable()
223 struct device *dev = &wuxga_nt->dsi->dev; in wuxga_nt_panel_add()
244 wuxga_nt->base.dev = &wuxga_nt->dsi->dev; in wuxga_nt_panel_add()
268 static int wuxga_nt_panel_probe(struct mipi_dsi_device *dsi) in wuxga_nt_panel_probe() argument
273 dsi->lanes = 4; in wuxga_nt_panel_probe()
274 dsi->format = MIPI_DSI_FMT_RGB888; in wuxga_nt_panel_probe()
275 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | in wuxga_nt_panel_probe()
[all …]
Dpanel-sharp-lq101r1sx01.c55 struct mipi_dsi_device *dsi = sharp->link1; in sharp_panel_write() local
58 err = mipi_dsi_generic_write(dsi, payload, sizeof(payload)); in sharp_panel_write()
60 dev_err(&dsi->dev, "failed to write %02x to %04x: %zd\n", in sharp_panel_write()
65 err = mipi_dsi_dcs_nop(dsi); in sharp_panel_write()
67 dev_err(&dsi->dev, "failed to send DCS nop: %zd\n", err); in sharp_panel_write()
374 static int sharp_panel_probe(struct mipi_dsi_device *dsi) in sharp_panel_probe() argument
381 dsi->lanes = 4; in sharp_panel_probe()
382 dsi->format = MIPI_DSI_FMT_RGB888; in sharp_panel_probe()
383 dsi->mode_flags = MIPI_DSI_MODE_LPM; in sharp_panel_probe()
386 np = of_parse_phandle(dsi->dev.of_node, "link2", 0); in sharp_panel_probe()
[all …]
Dpanel-samsung-s6e8aa0.c138 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in s6e8aa0_dcs_write() local
144 ret = mipi_dsi_dcs_write_buffer(dsi, data, len); in s6e8aa0_dcs_write()
154 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in s6e8aa0_dcs_read() local
160 ret = mipi_dsi_dcs_read(dsi, cmd, data, len); in s6e8aa0_dcs_read()
805 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in s6e8aa0_set_maximum_return_packet_size() local
811 ret = mipi_dsi_set_maximum_return_packet_size(dsi, size); in s6e8aa0_set_maximum_return_packet_size()
976 static int s6e8aa0_probe(struct mipi_dsi_device *dsi) in s6e8aa0_probe() argument
978 struct device *dev = &dsi->dev; in s6e8aa0_probe()
986 mipi_dsi_set_drvdata(dsi, ctx); in s6e8aa0_probe()
990 dsi->lanes = 4; in s6e8aa0_probe()
[all …]
Dpanel-simple.c1927 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi) in panel_simple_dsi_probe() argument
1933 id = of_match_node(dsi_of_match, dsi->dev.of_node); in panel_simple_dsi_probe()
1939 err = panel_simple_probe(&dsi->dev, &desc->desc); in panel_simple_dsi_probe()
1943 dsi->mode_flags = desc->flags; in panel_simple_dsi_probe()
1944 dsi->format = desc->format; in panel_simple_dsi_probe()
1945 dsi->lanes = desc->lanes; in panel_simple_dsi_probe()
1947 return mipi_dsi_attach(dsi); in panel_simple_dsi_probe()
1950 static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi) in panel_simple_dsi_remove() argument
1954 err = mipi_dsi_detach(dsi); in panel_simple_dsi_remove()
1956 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err); in panel_simple_dsi_remove()
[all …]
/drivers/video/fbdev/omap2/omapfb/dss/
Ddsi.c445 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); in dsi_write_reg() local
449 case DSI_PROTO: base = dsi->proto_base; break; in dsi_write_reg()
450 case DSI_PHY: base = dsi->phy_base; break; in dsi_write_reg()
451 case DSI_PLL: base = dsi->pll_base; break; in dsi_write_reg()
461 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); in dsi_read_reg() local
465 case DSI_PROTO: base = dsi->proto_base; break; in dsi_read_reg()
466 case DSI_PHY: base = dsi->phy_base; break; in dsi_read_reg()
467 case DSI_PLL: base = dsi->pll_base; break; in dsi_read_reg()
477 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); in dsi_bus_lock() local
479 down(&dsi->bus_lock); in dsi_bus_lock()
[all …]
/drivers/gpu/drm/omapdrm/dss/
Ddsi.c445 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); in dsi_write_reg() local
449 case DSI_PROTO: base = dsi->proto_base; break; in dsi_write_reg()
450 case DSI_PHY: base = dsi->phy_base; break; in dsi_write_reg()
451 case DSI_PLL: base = dsi->pll_base; break; in dsi_write_reg()
461 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); in dsi_read_reg() local
465 case DSI_PROTO: base = dsi->proto_base; break; in dsi_read_reg()
466 case DSI_PHY: base = dsi->phy_base; break; in dsi_read_reg()
467 case DSI_PLL: base = dsi->pll_base; break; in dsi_read_reg()
477 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); in dsi_bus_lock() local
479 down(&dsi->bus_lock); in dsi_bus_lock()
[all …]
DMakefile10 omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o
/drivers/gpu/drm/bridge/adv7511/
Dadv7533.c44 struct mipi_dsi_device *dsi = adv->dsi; in adv7511_dsi_config_timing_gen() local
58 clock_div_by_lanes[dsi->lanes - 2] << 3); in adv7511_dsi_config_timing_gen()
83 struct mipi_dsi_device *dsi = adv->dsi; in adv7533_dsi_power_on() local
89 regmap_write(adv->regmap_cec, 0x1c, dsi->lanes << 4); in adv7533_dsi_power_on()
120 struct mipi_dsi_device *dsi = adv->dsi; in adv7533_mode_set() local
131 if (lanes != dsi->lanes) { in adv7533_mode_set()
132 mipi_dsi_detach(dsi); in adv7533_mode_set()
133 dsi->lanes = lanes; in adv7533_mode_set()
134 ret = mipi_dsi_attach(dsi); in adv7533_mode_set()
136 dev_err(&dsi->dev, "failed to change host lanes\n"); in adv7533_mode_set()
[all …]
/drivers/gpu/drm/hisilicon/kirin/
Ddw_drm_dsi.c96 struct dw_dsi dsi; member
536 static void dsi_mipi_init(struct dw_dsi *dsi) in dsi_mipi_init() argument
538 struct dsi_hw_ctx *ctx = dsi->ctx; in dsi_mipi_init()
539 struct mipi_phy_params *phy = &dsi->phy; in dsi_mipi_init()
540 struct drm_display_mode *mode = &dsi->cur_mode; in dsi_mipi_init()
541 u32 bpp = mipi_dsi_pixel_format_to_bpp(dsi->format); in dsi_mipi_init()
548 dphy_req_kHz = mode->clock * bpp / dsi->lanes; in dsi_mipi_init()
555 dsi_set_mipi_phy(base, phy, dsi->lanes); in dsi_mipi_init()
558 dsi_set_mode_timing(base, phy->lane_byte_clk_kHz, mode, dsi->format); in dsi_mipi_init()
561 dsi_set_video_mode(base, dsi->mode_flags); in dsi_mipi_init()
[all …]
/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-dsi-cm.c115 r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd, buf, 1); in dsicm_dcs_read_1()
128 return in->ops.dsi->dcs_write(in, ddata->channel, &dcs_cmd, 1); in dsicm_dcs_write_0()
136 return in->ops.dsi->dcs_write(in, ddata->channel, buf, 2); in dsicm_dcs_write_1()
149 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, &cmd, 1); in dsicm_sleep_in()
211 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); in dsicm_set_update_window()
221 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); in dsicm_set_update_window()
225 in->ops.dsi->bta_sync(in, ddata->channel); in dsicm_set_update_window()
259 in->ops.dsi->disable(in, false, true); in dsicm_enter_ulps()
284 r = in->ops.dsi->enable(in); in dsicm_exit_ulps()
290 in->ops.dsi->enable_hs(in, ddata->channel, true); in dsicm_exit_ulps()
[all …]
/drivers/gpu/drm/omapdrm/displays/
Dpanel-dsi-cm.c117 r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd, buf, 1); in dsicm_dcs_read_1()
130 return in->ops.dsi->dcs_write(in, ddata->channel, &dcs_cmd, 1); in dsicm_dcs_write_0()
138 return in->ops.dsi->dcs_write(in, ddata->channel, buf, 2); in dsicm_dcs_write_1()
151 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, &cmd, 1); in dsicm_sleep_in()
213 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); in dsicm_set_update_window()
223 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); in dsicm_set_update_window()
227 in->ops.dsi->bta_sync(in, ddata->channel); in dsicm_set_update_window()
261 in->ops.dsi->disable(in, false, true); in dsicm_enter_ulps()
286 r = in->ops.dsi->enable(in); in dsicm_exit_ulps()
292 in->ops.dsi->enable_hs(in, ddata->channel, true); in dsicm_exit_ulps()
[all …]
/drivers/gpu/drm/msm/
DMakefile2 ccflags-$(CONFIG_DRM_MSM_DSI) += -Idrivers/gpu/drm/msm/dsi
64 msm-$(CONFIG_DRM_MSM_DSI) += dsi/dsi.o \
66 dsi/dsi_cfg.o \
67 dsi/dsi_host.o \
68 dsi/dsi_manager.o \
69 dsi/phy/dsi_phy.o \
72 msm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o
73 msm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o
74 msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o
77 msm-y += dsi/pll/dsi_pll.o
[all …]
/drivers/gpu/drm/i915/
Dintel_dsi_panel_vbt.c223 if (dev_priv->vbt.dsi.seq_version >= 3) { in vlv_exec_gpio()
260 if (dev_priv->vbt.dsi.seq_version >= 3) { in chv_exec_gpio()
311 if (dev_priv->vbt.dsi.seq_version >= 3) in mipi_exec_gpio()
317 if (dev_priv->vbt.dsi.seq_version == 2) in mipi_exec_gpio()
385 if (WARN_ON(seq_id >= ARRAY_SIZE(dev_priv->vbt.dsi.sequence))) in generic_exec_sequence()
388 data = dev_priv->vbt.dsi.sequence[seq_id]; in generic_exec_sequence()
404 if (dev_priv->vbt.dsi.seq_version >= 3) in generic_exec_sequence()
420 if (dev_priv->vbt.dsi.seq_version >= 3) in generic_exec_sequence()
502 struct mipi_config *mipi_config = dev_priv->vbt.dsi.config; in vbt_panel_init()
503 struct mipi_pps_data *pps = dev_priv->vbt.dsi.pps; in vbt_panel_init()
Dintel_bios.c743 dev_priv->vbt.dsi.panel_id = MIPI_DSI_UNDEFINED_PANEL_ID; in parse_mipi_config()
770 dev_priv->vbt.dsi.config = kmemdup(config, sizeof(struct mipi_config), GFP_KERNEL); in parse_mipi_config()
771 if (!dev_priv->vbt.dsi.config) in parse_mipi_config()
774 dev_priv->vbt.dsi.pps = kmemdup(pps, sizeof(struct mipi_pps_data), GFP_KERNEL); in parse_mipi_config()
775 if (!dev_priv->vbt.dsi.pps) { in parse_mipi_config()
776 kfree(dev_priv->vbt.dsi.config); in parse_mipi_config()
785 if (dev_priv->vbt.dsi.config->dual_link && bdb->version < 197) { in parse_mipi_config()
786 dev_priv->vbt.dsi.config->dl_dcs_cabc_ports = 0; in parse_mipi_config()
787 dev_priv->vbt.dsi.config->dl_dcs_backlight_ports = 0; in parse_mipi_config()
791 dev_priv->vbt.dsi.panel_id = MIPI_DSI_GENERIC_PANEL_ID; in parse_mipi_config()
[all …]
/drivers/gpu/drm/msm/dsi/
Ddsi_manager.c30 struct msm_dsi *dsi[DSI_MAX]; member
45 return msm_dsim_glb.dsi[id]; in dsi_mgr_get_dsi()
50 return msm_dsim_glb.dsi[(id + 1) % DSI_MAX]; in dsi_mgr_get_other_dsi()
796 if (msm_dsim->dsi[id]) { in msm_dsi_manager_register()
801 msm_dsim->dsi[id] = msm_dsi; in msm_dsi_manager_register()
819 msm_dsim->dsi[id] = NULL; in msm_dsi_manager_register()
829 msm_dsim->dsi[msm_dsi->id] = NULL; in msm_dsi_manager_unregister()
Ddsi.c125 priv->dsi[msm_dsi->id] = msm_dsi; in dsi_bind()
138 if (priv->dsi[id]) { in dsi_unbind()
140 priv->dsi[id] = NULL; in dsi_unbind()

12