Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2786106yba; Sat, 18 May 2019 02:59:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNlJV05+mKIGq002cj5vHqzhYTYeZqefaJKLPHxPHE8I/0ZsBYXCqA6NpQ8tIcH1qZnFHN X-Received: by 2002:a63:6dca:: with SMTP id i193mr60125978pgc.353.1558173543586; Sat, 18 May 2019 02:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558173543; cv=none; d=google.com; s=arc-20160816; b=sgJ6B0DQ+Bw85Q0/KoTrnzFHlhQPpQvEQjBbN0c84RG2Rk4s4OyfBcUhfSszznKXTJ rRW53CdkP6Q0EP2cZ+KOHMBBciLjO7Yyb6uCfV+Zre8AbAogIICaaEz3G4Qd7QC/e1iG ovyDBMiLLRSM0kwB7FMd3OWR2H8iWGIgQJODppFZ0TfXMGiyKy1qIBbyMfPsaam5lsHA +cOp6/ZQ7z4x/ERPjdcHkvXBS9ZNNOmj5jNM+D9+fxarwHgu4TXa0wpqMqhmGmuaprmN RIPbWvtM7GI+UP1KxvuOzFfjj4kghZZ9BurqWUwYHhh+zaSxBQ3dupcOhH7bSUhBM8VN ycow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uPRvhU17KqjpVkdBZgmh9KrJka15l0r1wt3owoBMf6Y=; b=VkJIyk0wlpkYJjXgPunQpv6K/0X9E10pcMhJPEHrnPZZR5nhGGY1eub0KpFCsWt+XU t2aLfaeKnMC1SFO15rzqKzmE2nBI9pjfEXQ3IKQ43QHAmk9EBMc/S9YKUZZxkX8XEMpt LOuTI5ziZxxxcFSOngdopxKPU5bmVfMs/SpwbsSHE27cPYiCIKM8OZwN47BxK1G89gUY XlUELZImTiE7MrhzAJrH31rMBmRPLfCswKPwYJY9g7qSY43q4fVm8op2zzUiRnwlLrcH MVMe5toYKmMFhCrRtF8PDcmTa1CAqKnT8biDxL6We3egXce/PSe5F7XjA0AljApgzp3k cFVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f64si10815980plf.128.2019.05.18.02.58.48; Sat, 18 May 2019 02:59:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729984AbfERJ4o (ORCPT + 99 others); Sat, 18 May 2019 05:56:44 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:43199 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729929AbfERJ4g (ORCPT ); Sat, 18 May 2019 05:56:36 -0400 X-UUID: 2e26d94caa8440f5b2f67a263e06bef3-20190518 X-UUID: 2e26d94caa8440f5b2f67a263e06bef3-20190518 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1306581263; Sat, 18 May 2019 17:56:30 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 18 May 2019 17:56:29 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 18 May 2019 17:56:28 +0800 From: Jitao Shi To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , , David Airlie , Matthias Brugger CC: Jitao Shi , Thierry Reding , Ajay Kumar , Inki Dae , Rahul Sharma , Sean Paul , Vincent Palatin , Andy Yan , Philipp Zabel , Russell King , , , , , , , Sascha Hauer , , , , , , Subject: [v4 5/5] drm/mediatek: add mt8183 support dpi pins control Date: Sat, 18 May 2019 17:56:18 +0800 Message-ID: <20190518095618.18454-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190518095618.18454-1-jitao.shi@mediatek.com> References: <20190518095618.18454-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some DPI pins(Hsync Vsync DE ... ) keep high voltage and will cause leakage current. So set dpi pin as gpio and pull low when dpi off. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 0c4ba0a2be27..565892a3e1ba 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -719,6 +719,7 @@ static const struct mtk_dpi_conf mt8183_conf = { .cal_factor = mt8183_calculate_factor, .reg_h_fre_con = 0xe0, .dual_edge = true, + .dpi_pin_ctrl = true, }; static int mtk_dpi_probe(struct platform_device *pdev) -- 2.21.0