From patchwork Wed Oct 19 14:07:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9384803 X-Patchwork-Delegate: geert@linux-m68k.org 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 8E1C660762 for ; Wed, 19 Oct 2016 16:26:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 809DA28812 for ; Wed, 19 Oct 2016 16:26:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 759AA28C05; Wed, 19 Oct 2016 16:26:43 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 2E8F0288DA for ; Wed, 19 Oct 2016 16:26:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755276AbcJSQ0f (ORCPT ); Wed, 19 Oct 2016 12:26:35 -0400 Received: from galahad.ideasonboard.com ([185.26.127.97]:35070 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938618AbcJSOOH (ORCPT ); Wed, 19 Oct 2016 10:14:07 -0400 Received: from localhost.localdomain (37-136-126-33.rev.dnainternet.fi [37.136.126.33]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 9CDAF20859; Wed, 19 Oct 2016 16:07:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1476886035; bh=rtog9EEaxyfziK8LpHe6RLKxvG0Nu/TZ/gFqJhJ8gh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HF2gFGrfotAp1Bs0mEwe/gQZi5c6yNSyy+l2vp2ry3Kn5UR81sCrnsO3T4wm0yVvo DfIEEV4bctG2MkORM5XmTTZ2rYR22Y7DDOmF3l+Gr25/cjruFEy7n2323LuzSKYoGD S7Q2hSwhnCpjyDIK5JEA39vuIo81mlaQ425nx7Iw= From: Laurent Pinchart To: dri-devel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Subject: [PATCH 3/8] drm: bridge: lvds-encoder: Add thine, thc63lvdm83d compatible string Date: Wed, 19 Oct 2016 17:07:51 +0300 Message-Id: <1476886076-24178-4-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1476886076-24178-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1476886076-24178-1-git-send-email-laurent.pinchart+renesas@ideasonboard.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 THC63LVDM83D is a transparent LVDS encoder. Unlike dumb LVDS encoders it can be controlled through a few pins (power down, LVDS swing, clock edge selection) and requires power supplies. However, on several boards where the device is used neither the control pins nor the power supply are controllable. To avoid developing a separate device-specific driver add a "thine,thc63lvdm83d" compatible entry to the lvds-encoder driver. This will allow supporting many THC63LVDM83D-based boards easily, while allowing future development of an thc63lvdm83d driver when needed without breaking backward compatibility. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/lvds-encoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c b/drivers/gpu/drm/bridge/lvds-encoder.c index 33e8025c8a6d..f3026ad82fe1 100644 --- a/drivers/gpu/drm/bridge/lvds-encoder.c +++ b/drivers/gpu/drm/bridge/lvds-encoder.c @@ -184,6 +184,7 @@ static int lvds_encoder_remove(struct platform_device *pdev) static const struct of_device_id lvds_encoder_match[] = { { .compatible = "lvds-encoder" }, + { .compatible = "thine,thc63lvdm83d" }, {}, }; MODULE_DEVICE_TABLE(of, lvds_encoder_match);