From patchwork Wed Dec 7 10:42:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9464251 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 359C76074E for ; Wed, 7 Dec 2016 10:43:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F01227DA4 for ; Wed, 7 Dec 2016 10:43:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33B9B284F2; Wed, 7 Dec 2016 10:43:09 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 E413827DA4 for ; Wed, 7 Dec 2016 10:43:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F67B6E53F; Wed, 7 Dec 2016 10:43:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x22a.google.com (mail-wj0-x22a.google.com [IPv6:2a00:1450:400c:c01::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9CB326E53F for ; Wed, 7 Dec 2016 10:43:01 +0000 (UTC) Received: by mail-wj0-x22a.google.com with SMTP id xy5so356661635wjc.0 for ; Wed, 07 Dec 2016 02:43:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UcHofR7N2h7Y5TVmhU37GC0OGoqX4FdICKvSWLIhQhM=; b=N7AdX5wHUmhh0wO1ogxjr6XJQUYcS+WhImfIbCqwtsubkItF60pe/dr1MXf5jHOh4z kueehRL07PltkqxtTiy/UKPY+5R7g6SPI90E/ZiWQjAKevv1bE2JCVksQw5qXKvlbduj h7fQIiDytpNe6btc/JF0QDRZtNH0q8sxAss8BNcAew3bLsKv9emLhfQCWnqwUy9Sdiur C8PYoYhoU+t1ExhdN50i8PP+uDn/PIA102ANOTeKNCFEigsfXm3IWYvh+AUqgRCMhnvk TNfoVU8k8reH6K6bVtYyQdIXYuHpH3e5jvy/Pb/uUzWdGGuywG2Rb83acN8YroLdYrKD sZDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UcHofR7N2h7Y5TVmhU37GC0OGoqX4FdICKvSWLIhQhM=; b=BS7TK5h+dhoKoKAsmGN/RFemJQbzeD+B2Ks8erQkFeM3om4sE2XF2fS37M0XJfk3c0 HTJa6n44gpktg4WSsqka56icRxLc/M3+c6c3mIHuTVVWM4Af8LON12P0QKk2NSPEZ52n QBeCVMS/OlPpyu5d4Xv77tO1KSXPxkgOE4HdL+Ik7cQvpF2JuSOfXtQdxfnezdGQf/bA YKWBhok7vHHoHlIWwqgrdob0XqOnb89pGD5AEv4g+nK/5lipTcoPHED13KvUifZKcDsg 3sAhw87zsmp7Jrmewow1casIGeAENia6t1/Ia8xn7x4HIpzAHfKmx7tL2oXK9B9F9lfv /HCg== X-Gm-Message-State: AKaTC01mI7oYNOmb6xwGDUeO44kjN9bNCbB9mmfyorwxBs+Tj2jRQQWRCxUxBlH5H206o7i5 X-Received: by 10.194.51.137 with SMTP id k9mr58680490wjo.1.1481107379819; Wed, 07 Dec 2016 02:42:59 -0800 (PST) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id w7sm8888886wmd.24.2016.12.07.02.42.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Dec 2016 02:42:59 -0800 (PST) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Laurent Pinchart , Peter Ujfalusi , Russell King Subject: [PATCH v5 2/4] drm: bridge: add support for TI ths8135 Date: Wed, 7 Dec 2016 11:42:43 +0100 Message-Id: <1481107365-24839-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481107365-24839-1-git-send-email-bgolaszewski@baylibre.com> References: <1481107365-24839-1-git-send-email-bgolaszewski@baylibre.com> Cc: linux-devicetree , linux-drm , LKML , arm-soc , Bartosz Golaszewski 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 THS8135 is a configurable video DAC. Add DT bindings for this chip and use the dumb-vga-dac driver for now as no configuration is required to make it work. Signed-off-by: Bartosz Golaszewski Reviewed-by: Laurent Pinchart Acked-by: Rob Herring --- .../bindings/display/bridge/ti,ths8135.txt | 52 ++++++++++++++++++++++ drivers/gpu/drm/bridge/dumb-vga-dac.c | 1 + 2 files changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt diff --git a/Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt b/Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt new file mode 100644 index 0000000..23cd8ee --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt @@ -0,0 +1,52 @@ +THS8135 Video DAC +----------------- + +This is the binding for Texas Instruments THS8135 Video DAC bridge. + +Required properties: + +- compatible: Must be "ti,ths8135" + +Required nodes: + +This device has two video ports. Their connections are modelled using the OF +graph bindings specified in Documentation/devicetree/bindings/graph.txt. + +- Video port 0 for RGB input +- Video port 1 for VGA output + +Example +------- + +vga-bridge { + compatible = "ti,ths8135"; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + vga_bridge_in: endpoint@0 { + reg = <0>; + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + vga_bridge_out: endpoint@0 { + reg = <0>; + remote-endpoint = <&vga_con_in>; + }; + }; + }; +}; diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-dac.c index afec232..498fa75 100644 --- a/drivers/gpu/drm/bridge/dumb-vga-dac.c +++ b/drivers/gpu/drm/bridge/dumb-vga-dac.c @@ -204,6 +204,7 @@ static int dumb_vga_remove(struct platform_device *pdev) static const struct of_device_id dumb_vga_match[] = { { .compatible = "dumb-vga-dac" }, + { .compatible = "ti,ths8135" }, {}, }; MODULE_DEVICE_TABLE(of, dumb_vga_match);