From patchwork Mon Dec 4 07:16:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huang lin X-Patchwork-Id: 10089771 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 C920C60327 for ; Mon, 4 Dec 2017 08:17:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA95D2905E for ; Mon, 4 Dec 2017 08:17:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF2E529066; Mon, 4 Dec 2017 08:17:35 +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 348E02905E for ; Mon, 4 Dec 2017 08:17:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B95786E2D8; 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-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by gabe.freedesktop.org (Postfix) with ESMTPS id 890F86E2C1 for ; Mon, 4 Dec 2017 07:16:13 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id o2so7591855pgc.8 for ; Sun, 03 Dec 2017 23:16:13 -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=uRGSN0xhEqIyNJ/Lyn3vxaLVhHSn2lVbUFJ3q55/PyF+GeBmqgip1dogA0D3Dm+DXj xB9cia3URN8mvYRsiHZaK97nRdAgC574upkOodI6bAqMTu4O9EuGy55Xh0weoYrMHe50 9ngJ7tCAEixCmVedOR+B7JiBKUnjmlKg4BuCeXPwGUBJjt9GpYukWz7FQx3wJT6fQPkm New9ur/czkPEPJI+AHvC+y570YuTx1334JLPHcJGt++od5AmU3HkqclY4ZSIYZSnrpFe X5XZl+kjhUINfmA96kSDzhvkJm+FKaZbJnEk4fhDn8POd1iG0qGrY7GutOFhGfjxSBHF rf8A== X-Gm-Message-State: AJaThX6vvR+OccsJB8GVOoPrpqrx1FwKbcyofx6EXVuZHnaGelKw7hOC nFh5cfCr8g2rUwuYI/GTN7s= X-Google-Smtp-Source: AGs4zMYlt/NNJlTd+9MuZVSilchQ2ILFMwOSvFhNm8WWANUrNLL46oxO4W/hmoLrU/6LrjsbB9dj6g== X-Received: by 10.84.252.10 with SMTP id x10mr13437912pll.216.1512371773021; Sun, 03 Dec 2017 23:16:13 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id i186sm21641873pfg.178.2017.12.03.23.16.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Dec 2017 23:16:12 -0800 (PST) From: Lin Huang To: emil.l.velikov@gmail.com, briannorris@chromium.org, thierry.reding@gmail.com, robh+dt@kernel.org Subject: [PATCH v3 1/3] drm/panel: refactor INNOLUX P079ZCA panel driver Date: Mon, 4 Dec 2017 15:16:03 +0800 Message-Id: <1512371765-15166-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