Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1338401ybb; Sat, 11 Apr 2020 00:46:07 -0700 (PDT) X-Google-Smtp-Source: APiQypJiU2x1ODE6hBGo3lMgdm4hPKvHn5/jMwLts4V1AHtIwlHZNOOsRHbCyuOqFaiiIPrIIL9D X-Received: by 2002:ae9:dfc5:: with SMTP id t188mr7399743qkf.384.1586591167408; Sat, 11 Apr 2020 00:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586591167; cv=none; d=google.com; s=arc-20160816; b=Z1o5SiWh71/hkV72AQBTuXBs4QYPlpKw5FLdmQA5ELSjjdaRp/D4VdIOnwsc9PD+Cb NhmqvgiI+kCIm60vtyFGUR5Vixr6pVyKYcbeaDd6rHHtdA6Lbwj7upSmMGE1MxGtyDBK 4fay3p+CMEnY10OeKH+R94y84r6fxchzFZ4ELY6zhtaAUSJZdGSjM/8Nx0YMaUbJ18+F 7u2mKc/h3I8UWAOqhnr0EWnMR6WBvbM8YdZlfpJO06uybIb2V7CGlxJ5wDCrQyY6RPc3 enxr20UuQHWC/qnA+CwInb/C9MOOlYGoGOSZd0V5PkrRErA/OgqyJHscBHfXs/B3MffF kmRQ== 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 :dkim-signature; bh=AHxhUn2kmmaiTpuNqyuJ91haPBs27z9l86TI6FY89lo=; b=qNeDWlIbn82DwfeGQVt04hdtTiCvTcQhFnWODc8vLmSr7/7OODVl7RcofRSy/grgfu PKBg4VMCxBCTYw+dvsz1ePUqqUHAQMcqA1EwYSRcMXzNjpTsZpW9QXSqU+xvjOvZvc0i obmbcf8MqWtShKpDcYEkXhCWXS44QEhjAMZk3aaoL9NqE1bZWWEUbMwf8Nj3ZWV9+eIK 6Ds54pBAjTPGIQW5d16f3XNYRJLi429IOBw8zyscMm7dWcxGaPb+09hX5GP+ScHYIOY9 sRzpYnV4YdO36mrEEhMJYxCcGK3TiTeytEWncZljdMbab5dTBoCNwkON4PMMN2QXE2Qz kr2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HANf0K7O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si2248145qvo.65.2020.04.11.00.45.54; Sat, 11 Apr 2020 00:46:07 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=HANf0K7O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725966AbgDKHoi (ORCPT + 99 others); Sat, 11 Apr 2020 03:44:38 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:37086 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725899AbgDKHoh (ORCPT ); Sat, 11 Apr 2020 03:44:37 -0400 X-UUID: ba456588f9db49a798718c0c55767750-20200411 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=AHxhUn2kmmaiTpuNqyuJ91haPBs27z9l86TI6FY89lo=; b=HANf0K7OwymCJmRC/RqCZPhcDTIdxnfUP1R+AltCBZ+zuN5FxTUZf1Jmq7SZPjEA64Zo7Cm6k0iEUn8EBIKXUwqgzRMevEGEe2dXimYWLCTinPY5dR0tTEszinZQr2Ky1efo4hfI5SOZBRm67ReyBFyIbpnhiWeE8oSeXfJmGKE=; X-UUID: ba456588f9db49a798718c0c55767750-20200411 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1950745472; Sat, 11 Apr 2020 15:44:28 +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.1497.2; Sat, 11 Apr 2020 15:44:28 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Apr 2020 15:44:25 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi , Chun-Kuang Hu Subject: [PATCH v6 3/4] drm/mediatek: add the mipitx driving control Date: Sat, 11 Apr 2020 15:44:07 +0800 Message-ID: <20200411074408.38090-4-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200411074408.38090-1-jitao.shi@mediatek.com> References: <20200411074408.38090-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F585F1D0662B1E91FEA6FA77DF2A7867D88A48573C1192C85F33AC2D99FED72D2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIGEgcHJvcGVydHkgaW4gZGV2aWNlIHRyZWUgdG8gY29udHJvbCB0aGUgZHJpdmluZyBieSBk aWZmZXJlbnQNCmJvYXJkL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