From patchwork Thu Aug 15 11:04:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 11095549 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8EC11399 for ; Thu, 15 Aug 2019 11:05:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C77D4287A6 for ; Thu, 15 Aug 2019 11:05:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBD9B288BE; Thu, 15 Aug 2019 11:05:30 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FB86288D0 for ; Thu, 15 Aug 2019 11:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730559AbfHOLFa (ORCPT ); Thu, 15 Aug 2019 07:05:30 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:34169 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726008AbfHOLFa (ORCPT ); Thu, 15 Aug 2019 07:05:30 -0400 X-IronPort-AV: E=Sophos;i="5.64,389,1559487600"; d="scan'208";a="23867492" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 15 Aug 2019 20:05:28 +0900 Received: from fabrizio-dev.ree.adwin.renesas.com (unknown [10.226.36.196]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 07C40417763E; Thu, 15 Aug 2019 20:05:23 +0900 (JST) From: Fabrizio Castro To: Laurent Pinchart , Thierry Reding , David Airlie , Daniel Vetter Cc: Fabrizio Castro , Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Simon Horman , Geert Uytterhoeven , Chris Paterson , Biju Das , linux-renesas-soc@vger.kernel.org, Kieran Bingham , Jacopo Mondi Subject: [PATCH v2 8/9] drm/panel: lvds: Add support for the IDK-2121WR Date: Thu, 15 Aug 2019 12:04:32 +0100 Message-Id: <1565867073-24746-9-git-send-email-fabrizio.castro@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1565867073-24746-1-git-send-email-fabrizio.castro@bp.renesas.com> References: <1565867073-24746-1-git-send-email-fabrizio.castro@bp.renesas.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The IDK-2121WR from Advantech is a dual-LVDS display. Signed-off-by: Fabrizio Castro --- v1->v2: * new patch drivers/gpu/drm/panel/panel-lvds.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c index 1ec57d0..2cd41757 100644 --- a/drivers/gpu/drm/panel/panel-lvds.c +++ b/drivers/gpu/drm/panel/panel-lvds.c @@ -22,6 +22,7 @@ #include #include +#include struct panel_lvds { struct drm_panel panel; @@ -259,6 +260,7 @@ static int panel_lvds_probe(struct platform_device *pdev) /* Register the panel. */ drm_panel_init(&lvds->panel); lvds->panel.dev = lvds->dev; + lvds->panel.timings = of_device_get_match_data(lvds->dev); lvds->panel.funcs = &panel_lvds_funcs; ret = drm_panel_add(&lvds->panel); @@ -287,7 +289,13 @@ static int panel_lvds_remove(struct platform_device *pdev) return 0; } +static const struct drm_timings advantech_idk_2121wr = { + .dual_link = true, + .link_flags = DRM_LINK_DUAL_LVDS_ODD_EVEN, +}; + static const struct of_device_id panel_lvds_of_table[] = { + { .compatible = "advantech,idk-2121wr", .data = &advantech_idk_2121wr}, { .compatible = "panel-lvds", }, { /* Sentinel */ }, };