Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3261608ybb; Tue, 31 Mar 2020 01:29:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt+YKM2CM0ZtijsE+JN1kj3vhMHphW57xhwZJYOov0i8G3gtO4OFWbor6cgwUyQtCU7+/mH X-Received: by 2002:aca:4991:: with SMTP id w139mr1307501oia.145.1585643359511; Tue, 31 Mar 2020 01:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585643359; cv=none; d=google.com; s=arc-20160816; b=pBUBxcdA8oDwRcrTMKi/t1MkuJ5dCPDjJ7c1CV62J8p9t6yYFinyyLbnbk2vKP6nOk t6oki5pQhObHqC06Y1Dz93bx/voJ4HSL3M6wnKZQdGbE6UsjgNryjjVqMIrJXGyPtwWC cFAod4ZRhTj/27aXncl0JZgnELEu+W0ITORXRjLC5hgD109ck2P+1EweZFKpnqRPpZnL tlTApkMqeLACwHkw3R02jFGK6w8jrKWmI+Ev13UMEZboYlU2H5vlNPppedzKeQCFAlAP kvN2Tjwxe09r14tOzJy8HYetTfcMZbPgr1GAeOSggoTk3h33hDgZUHYEYjBULEnWH6ZR +dwA== 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=rciAlFaUJxmJYeohlOVBqQpG4bjwObp3/2jJtpkx6Pc=; b=BOe/yVLHRWxf6IRhF4cGwqFDCoOWGDW9Y80V8/mVkIt+oOZKTBnxXRSUVLQAN76z4z bQu2+Dg55YeCrqmaezHeASGIkc5TDXpOpcUUvw3Py+Ypv6uQVDxH+d+x9uarIeWNZbuR 62RhaB6qNZ3MTyoJH3EvzZRi4rrbSvxfKFsPUgssUYYSoHaq6g7ws6KIUcJyNiiorZL1 CFVTP4bPaP9X15uEuZQgohafjBHNQsw902AJl+3uGM6F8Pg/BWjrT/F+Mkm4UuZia/Ax /sHX/2iZqmNEb831F9RD7cCdpK+L6Jop5XTXOI2H8B6c68rijO4jums2+d7C2ydoB0l2 BxMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=exqZv8Zb; 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 r18si1228426otq.124.2020.03.31.01.29.07; Tue, 31 Mar 2020 01:29:19 -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=exqZv8Zb; 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 S1730228AbgCaI2X (ORCPT + 99 others); Tue, 31 Mar 2020 04:28:23 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:16243 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730096AbgCaI2V (ORCPT ); Tue, 31 Mar 2020 04:28:21 -0400 X-UUID: f1a47595bc71470cad10f050830f46d2-20200331 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=rciAlFaUJxmJYeohlOVBqQpG4bjwObp3/2jJtpkx6Pc=; b=exqZv8ZbSWE8wbJq5lV8qXOiCE/z8SWcY8gdzE07NG9kknApdvjh7H+Ej67YpoUXRRA2bl3Zi1dRfbdx6NgY764qtUT7Xi8DisP1AL+fAHxlojdFlQ0ajSaNVeC5DK04FSjr4uvAkXgHusa/mgA9GRsJ9B60GZ4YNCfYZZQjZ6k=; X-UUID: f1a47595bc71470cad10f050830f46d2-20200331 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1144074984; Tue, 31 Mar 2020 16:27:58 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 16:27:58 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 31 Mar 2020 16:27:55 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v4 3/4] drm/mediatek: add the mipitx driving control Date: Tue, 31 Mar 2020 16:27:24 +0800 Message-ID: <20200331082725.81048-4-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200331082725.81048-1-jitao.shi@mediatek.com> References: <20200331082725.81048-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: CDD238A934F4566BB8936801F8D4F688F9A8C445ACBA109B34F45B0AA54C47932000: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 aWZmZXJlbnQNCmJvYXJkLg0KDQpSZXZpZXdlZC1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