Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp220518ybb; Thu, 9 Apr 2020 21:34:53 -0700 (PDT) X-Google-Smtp-Source: APiQypKTNehmb0sqoBob7V+t4nfOt1SsCeykKr6oYbiFHG5nlModxPgt4l4XA8W6sKPpoeTdjszR X-Received: by 2002:a05:620a:13b5:: with SMTP id m21mr2385026qki.208.1586493293159; Thu, 09 Apr 2020 21:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586493293; cv=none; d=google.com; s=arc-20160816; b=J/qVUH5XxoL6RRc2ZuAgVACiAzjqigxC4A/3FNOuKd6Ureyrz5QLFOoUk5po/pLLtD 335i+l1yMw7CUhCDZC5NR7+JPtGPSfOehXoOJQ2H6+Ad9GyAkGQd/VDwUVxv8nRbVy6J rrMaItyOqGWi0oLMwBpGWRJsePh2Y8lzLbULP+3z2BQ4VEP0Zpb0OrIqHaFu25KjIw/y n9AZ1pYrppo56NzWOlU88E44XvpkxJiqaKIod3ontr+xbgxwlPsz8aF0a1vonaF3yYUj zzrhmkwCS4S8j2L/uaJxt2wblX7Pd6oyG9nbPlp9xkV6QDBbGHuub8azRHukTrN/BWGU 5P9A== 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=pXR854tKanah7clCK+g44WH6ogIhj59hVtD6j611uAu70PRPuG1dmjV15fExgsbKf2 ji6O3o7sxCbI7nkpJ5Xp1ojdjvEcPnMl8p0cUieMvjfv3Ys5K1vmE51PJCfg3fPALZj2 07Cj3/4igdcyzi8KO1uplXovY5D3HQ9GS3M6UwwYole0rlgB7E8ifVCIe4sbZO64AZgr G3M0sM2YhV6ogpBdHehBDAF+W4TrP8rQxsWR0ceG7FnsXSDmnT+begQnFTyw6iMIlUgz LN2TYSB2QU8dI4N3n72hFOnx7jB1wbDxAfrgAb7WONT/deFjInsQbVAoEpk1halN4bwm WXdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=P681Josp; 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 c26si669309qka.317.2020.04.09.21.34.38; Thu, 09 Apr 2020 21:34:53 -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=P681Josp; 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 S1726173AbgDJEdL (ORCPT + 99 others); Fri, 10 Apr 2020 00:33:11 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:25742 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725839AbgDJEdK (ORCPT ); Fri, 10 Apr 2020 00:33:10 -0400 X-UUID: 2f345ddf911d4c1d926dc04197958f70-20200410 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=P681JospeW7clmufrEnhNdQjB1QVmpndyiiLLC8Nb5emFRpWoJyRctIZJifd5j7dVRWbRsNW/f2D7e5gXeD8jjF09HGsNoLH7MI6/YCWT8dAPnu1sp73j76ZdREwLAKCrvBVx98qjbgkUcepEi7RUNyAN7aQv9VvRr+i2npv3rI=; X-UUID: 2f345ddf911d4c1d926dc04197958f70-20200410 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 327123782; Fri, 10 Apr 2020 12:32:58 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Apr 2020 12:32:55 +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; Fri, 10 Apr 2020 12:32:53 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi , Chun-Kuang Hu Subject: [PATCH v5 3/4] drm/mediatek: add the mipitx driving control Date: Fri, 10 Apr 2020 12:32:47 +0800 Message-ID: <20200410043248.114384-4-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200410043248.114384-1-jitao.shi@mediatek.com> References: <20200410043248.114384-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 9A5E095EBF718CF57F55493196C241806DF8C8BD009F0C431C325DABC9C882DF2000: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 aWZmZXJlbnQNCmJvYXJkLg0KDQpSZXZpZXdlZC1ieTogQ2h1bi1L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