显示相关驱动 feature

本文详细介绍了LCD面板驱动的过程,特别是在enable特定feature时的上下电流程,涉及GPIO控制及电压设置。同时,文章探讨了窄缝传感器方案,指出某些项目可能需要背光补偿值校准,并提到了Linux的poll机制在leddriverporting中的应用。窄缝方案的原理未在摘要中展开。
摘要由CSDN通过智能技术生成

1 双击唤醒

display panel driver 需要根据是否有enable 这个feature 决定上下电的流程。

如果该feature 有enable 则只需要关闭vdd即可

static int lcm_prepare(struct drm_panel *panel)
{
	struct lcm *ctx = panel_to_lcm(panel);
	int ret;

	pr_info("%s\n", __func__);
	if (ctx->prepared)
		return 0;

	if (is_tp_doubleclick_enable() == false) {
		lcm_panel_vddi_enable(ctx->dev);
		udelay(1000);

		/*VCAM_LDO_EN -------->  GPIO158*/
		ctx->cam_gpio = devm_gpiod_get_index(ctx->dev,
			"cam", 0, GPIOD_OUT_HIGH);
		if (IS_ERR(ctx->cam_gpio)) {
			dev_err(ctx->dev, "%s: cannot get dvdd gpio %ld\n",
				__func__, PTR_ERR(ctx->cam_gpio));
			return PTR_ERR(ctx->cam_gpio);
		}
		gpiod_set_value(ctx->cam_gpio, 1);
		devm_gpiod_put(ctx->dev, ctx->cam_gpio);

		/*DVDD -----> GPIO3*/
		ctx->dvdd_gpio = devm_gpiod_get_index(ctx->dev,
			"dvdd", 0, GPIOD_OUT_HIGH);
		if (IS_ERR(ctx->dvdd_gpio)) {
			dev_err(ctx-
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值