From patchwork Fri Jul 3 00:16:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 490846 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1B1C41402A9 for ; Fri, 3 Jul 2015 10:19:19 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=GbaNM2hz; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1F9ED4B704; Fri, 3 Jul 2015 02:19:05 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BsHQFuQn5qRt; Fri, 3 Jul 2015 02:19:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5FEB64B705; Fri, 3 Jul 2015 02:18:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A93314B69A for ; Fri, 3 Jul 2015 02:17:07 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lS6wbTaP0hER for ; Fri, 3 Jul 2015 02:17:07 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) by theia.denx.de (Postfix) with ESMTPS id 335574B635 for ; Fri, 3 Jul 2015 02:17:05 +0200 (CEST) Received: by iebmu5 with SMTP id mu5so67265185ieb.1 for ; Thu, 02 Jul 2015 17:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Oxq/xyv2KqQfALnJh1kGG/v+HAh5PArjh5XnYdQ0Jx4=; b=GbaNM2hzkZAI6V1kxHRCKyO+W9Fhb9qcR+ueARRVY2DZOISVOf4Ec0J/Z5OgaQnQdT hfpYdaXxpCgJy0pA24GaTUUGOkpklOfa/sgESNmW3+dHsZgGqQ6vMuzNazDCR3E+7rxh fhRgYPlr7ei7bwFp9PAGbZTvJZp8oNrCzIu4flj5qg0GZ7bmeXo8I/gciAITv69Pcprk 1vW4NwuB7yhNGs2UrWHksIuV6BIJor/t0U6IEcSHDt3dVW/EL3vuQ3uPVnWwC+7EZV2G QBDx5cTEQQEPugDm+zBAt+FfuXsa4P0leuJZeVXHpX5O+firIHxNdfFeDQtLhdeMEdoH V7eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Oxq/xyv2KqQfALnJh1kGG/v+HAh5PArjh5XnYdQ0Jx4=; b=HlNyX6Ps4cwnZLxSJiFh36YlGAmwXkOAikhNMAV06uUvvhFX1jiEP8G/PNRNA+QWri QuAGbPrhEeXGNeachd1od/UUxClQZriaiuGo4ZpNoY3d6I1T3fN37SY+f5eA8s6YjpdG MluPxz8+Olafks/7MfjaUivoxAr5DanfLTZUCdxuWvBbZJHy4iRfzcs4dVpJE4FklsgX /YGn1QESVflCed6WSsPb94V8OFigqeR3odaz9aIZa9EN9dh6XDoJYaGYh0StVDgw6Erm xAVap+We4hFxIaQ4TcF+Q5no2RbrN9hZ2h9Z/clVfF2FJTCFvwlpOl0ubRmy1kPrNzuw pTDg== X-Gm-Message-State: ALoCoQn8fqMRmmEvICRYTBw5gBO29QYQjZPiXkSrhMNxeEZ0Yc9Ske2fL19JVerIWrrV5uttsR1j X-Received: by 10.107.46.2 with SMTP id i2mr49556516ioo.18.1435882624146; Thu, 02 Jul 2015 17:17:04 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:1100:4998:7123:8ba4:fc02]) by smtp.gmail.com with ESMTPSA id h2sm6623244igv.2.2015.07.02.17.17.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 17:17:04 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 1537B221203; Thu, 2 Jul 2015 18:16:55 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Thu, 2 Jul 2015 18:16:10 -0600 Message-Id: <1435882592-487-34-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.4.3.573.g4eafbef In-Reply-To: <1435882592-487-1-git-send-email-sjg@chromium.org> References: <1435882592-487-1-git-send-email-sjg@chromium.org> Cc: Tom Rini Subject: [U-Boot] [PATCH 33/55] dm: video: Add support for the NXP PTN3460 bridge X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This chip provides an eDP to LVDS bridge which is useful for SoCs that don't support LVDS displays (or it would waste scarce pins). There is no setup required by this chip, other than to adjust power-down and reset pins, and those are managed by the uclass. Signed-off-by: Simon Glass --- drivers/video/bridge/Kconfig | 9 +++++++++ drivers/video/bridge/Makefile | 1 + drivers/video/bridge/ptn3460.c | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 drivers/video/bridge/ptn3460.c diff --git a/drivers/video/bridge/Kconfig b/drivers/video/bridge/Kconfig index 589795d..2a3b6c4 100644 --- a/drivers/video/bridge/Kconfig +++ b/drivers/video/bridge/Kconfig @@ -16,3 +16,12 @@ config VIDEO_BRIDGE_PARADE_PS862X to be connected to an eDP output device such as an SoC that lacks LVDS capability, or where LVDS requires too many signals to route on the PCB. Setup parameters are provided in the device tree. + +config VIDEO_BRIDGE_NXP_PTN3460 + bool "Support NXP PTN3460 DP->LVDS bridge" + depends on VIDEO_BRIDGE + help + The NXP PTN3460 is a DisplayPort-to-LVDS (Low voltage differential + signalling) converter. It enables an LVDS LCD panel to be connected + to an eDP output device such as an SoC that lacks LVDS capability, + or where LVDS requires too many signals to route on the PCB. diff --git a/drivers/video/bridge/Makefile b/drivers/video/bridge/Makefile index c7cc563..ce731fa 100644 --- a/drivers/video/bridge/Makefile +++ b/drivers/video/bridge/Makefile @@ -6,3 +6,4 @@ obj-$(CONFIG_VIDEO_BRIDGE) += video-bridge-uclass.o obj-$(CONFIG_VIDEO_BRIDGE_PARADE_PS862X) += ps862x.o +obj-$(CONFIG_VIDEO_BRIDGE_NXP_PTN3460) += ptn3460.o diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c new file mode 100644 index 0000000..2e2ae7c --- /dev/null +++ b/drivers/video/bridge/ptn3460.c @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2015 Google, Inc + * Written by Simon Glass + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include +#include + +static int ptn3460_attach(struct udevice *dev) +{ + int ret; + + debug("%s: %s\n", __func__, dev->name); + ret = video_bridge_set_active(dev, true); + if (ret) + return ret; + + return 0; +} + +struct video_bridge_ops ptn3460_ops = { + .attach = ptn3460_attach, +}; + +static const struct udevice_id ptn3460_ids[] = { + { .compatible = "nxp,ptn3460", }, + { } +}; + +U_BOOT_DRIVER(parade_ptn3460) = { + .name = "nmp_ptn3460", + .id = UCLASS_VIDEO_BRIDGE, + .of_match = ptn3460_ids, + .ops = &ptn3460_ops, +};