From patchwork Mon Dec 4 07:17:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huang lin X-Patchwork-Id: 10089767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 13BC860327 for ; Mon, 4 Dec 2017 08:17:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04E9729009 for ; Mon, 4 Dec 2017 08:17:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC3A72905F; Mon, 4 Dec 2017 08:17:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 524F429009 for ; Mon, 4 Dec 2017 08:17:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 832776E2D2; Mon, 4 Dec 2017 08:17:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id A3F266E2C1 for ; Mon, 4 Dec 2017 07:17:57 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id u25so7881896pfg.5 for ; Sun, 03 Dec 2017 23:17:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7lInZ3pv//JesyEQmn7bu1ceO13TeSemI17oz9N1r5A=; b=S221bh2mUjQZXr+dLSi57JA7Xz2EqjH5gyJTd/fw+YgZO2p4NIxxFUXOGeL1iDy7gy oDag/KikFkj1TRfUPowvYEjSnQyiqJ8YWpp9iqI9dbw/2CaN3dgbk4TOgmP0Va3LpfIV xUN+920Rcnda+/Z/dLPsuN0Q9C+nzSgLub1ByM8QOkJNXWCDzaP7BPsLTsL3n0mWjOFC FgHw5hieXe3zISFQFXXOsj2l1enCoeI+bqCRhAcKwz/ueirf/Wz2OSjkS1hapXKP5Zeb jWxFK48zuvnfraH5Ofb75ycj0mNJBBodUU/mO6urlkWZuGlO3ilJ5C0pz/bQ7sS3xFX0 cNSA== X-Gm-Message-State: AJaThX5Jg1SpYdmPxfj5PAZ08+NWKGeyno7oWRlyYdbMyyVbMfw56HTb ouivuoJp0xAroWDieSMZ2X94rQ== X-Google-Smtp-Source: AGs4zMZlDIGKHF9/N43hDlql7kurA6Gz0Vx2mnR4b+i/k660B/1c16yR30Y8hHoaU8EggU65tg1+PQ== X-Received: by 10.159.253.3 with SMTP id p3mr13954657pls.236.1512371877153; Sun, 03 Dec 2017 23:17:57 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 75sm3067314pfo.103.2017.12.03.23.17.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Dec 2017 23:17:56 -0800 (PST) From: Lin Huang To: emil.l.velikov@gmail.com, briannorris@chromium.org, thierry.reding@gmail.com, robh+dt@kernel.org Subject: [RESEND PATCH v3 1/3] drm/panel: refactor INNOLUX P079ZCA panel driver Date: Mon, 4 Dec 2017 15:17:48 +0800 Message-Id: <1512371870-15350-1-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Mon, 04 Dec 2017 08:17:11 +0000 Cc: Lin Huang , airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nickey.yang@rock-chips.com, zyw@rock-chips.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Refactor Innolux P079ZCA panel driver, let it support multi panel. Signed-off-by: Lin Huang --- Changes in v2: - Change regulator property name to meet the panel datasheet Changes in v3: - this patch only refactor P079ZCA panel to support multi panel, support P097PFG panel in another patch drivers/gpu/drm/panel/panel-innolux-p079zca.c | 147 ++++++++++++++++++-------- 1 file changed, 105 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm/panel/panel-innolux-p079zca.c index 6ba9344..1597744 100644 --- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c +++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c @@ -20,12 +20,32 @@ #include