From patchwork Sun Aug 20 10:05:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9911043 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 2BBFC602A0 for ; Sun, 20 Aug 2017 10:06:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D61028720 for ; Sun, 20 Aug 2017 10:06:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1215928727; Sun, 20 Aug 2017 10:06: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 A91E828720 for ; Sun, 20 Aug 2017 10:06:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ADE776E148; Sun, 20 Aug 2017 10:06:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) by gabe.freedesktop.org (Postfix) with ESMTPS id BCF6D6E148 for ; Sun, 20 Aug 2017 10:06:06 +0000 (UTC) Received: by mail-lf0-x234.google.com with SMTP id k186so1042152lfe.2 for ; Sun, 20 Aug 2017 03:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RFC7y9PlD7JF5hSzyK90RFFs/Ba9xW8scxGiIRCv5qo=; b=KSbJryAFjD0xKboqtCoKcQ3unxoPZgzmS6VK2dUHaWWvcoBuQAArBkQSwTXzwxurh4 JZJMNHjoeYi6mASL7q0SFwXx8Pk61ydosh0TBDn+SYVLcQZSWgVskE9wkPKvOWeTyjNn BiamjJy5+GEQWzp5c0Urg8nCmZX36APubO5NI= 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=RFC7y9PlD7JF5hSzyK90RFFs/Ba9xW8scxGiIRCv5qo=; b=cFTShtMtGr3PvvjjTENmL1V6ixfeB6Cw4agdD4MKpnEacOIJEpomE6fXrwhQszAmEJ +Xsp9JwHIJkWeYUSyS8wyJG5+qxSrRCZQ0dQJspLRb0XOVM9FEiGs3IeeeKym4uvxbQ+ hI0HAUJ9PqZrK2d1qtxIXJWOQ3jd+ekCkmOkcAaK+IEIPKXqg9aPzvYh7lcE8PVgtE29 XU3IIbPXVxN8YkAp33MNpH80qSuZE3F4pkCp3xI1ogne9dAbhA+T9Z9GKBCDmXeaU0jh z7qMnB67w8MjxosUeSvQmWx2tRZojDIXMndq9oxb5tahFkDjTwZuwtNV6tQxADcQi/90 I7Tw== X-Gm-Message-State: AHYfb5ggFYsRlzI9kHbEQbvktCu0J3t/NEVqCPGjdzy3RYPC1VvrFwi9 /gFSoqd4wq1alhi5Tfp8Bw== X-Received: by 10.46.83.2 with SMTP id h2mr4941829ljb.22.1503223564751; Sun, 20 Aug 2017 03:06:04 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-437f71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.127.67]) by smtp.gmail.com with ESMTPSA id q11sm2127985lfi.24.2017.08.20.03.06.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Aug 2017 03:06:04 -0700 (PDT) From: Linus Walleij To: dri-devel@lists.freedesktop.org, Eric Anholt , Daniel Vetter , Jani Nikula , Sean Paul Subject: [PATCH 1/4 v2] drm/tve200: Add DT bindings Date: Sun, 20 Aug 2017 12:05:54 +0200 Message-Id: <20170820100557.24991-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.5 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 This adds device tree bindings for the Faraday TVE200 IP block. This IP block is present in the Gemini ARM SoC and also in some Grain Media GMxxxx SoCs. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij Acked-by: Rob Herring --- ChangeLog v1->v2: - Fix display port bindings: list required endpoint. - Fix the example to include an endpoint. --- .../devicetree/bindings/display/faraday,tve200.txt | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/faraday,tve200.txt diff --git a/Documentation/devicetree/bindings/display/faraday,tve200.txt b/Documentation/devicetree/bindings/display/faraday,tve200.txt new file mode 100644 index 000000000000..82e3bc0b7485 --- /dev/null +++ b/Documentation/devicetree/bindings/display/faraday,tve200.txt @@ -0,0 +1,54 @@ +* Faraday TV Encoder TVE200 + +Required properties: + +- compatible: must be one of: + "faraday,tve200" + "cortina,gemini-tvc", "faraday,tve200" + +- reg: base address and size of the control registers block + +- interrupts: contains an interrupt specifier for the interrupt + line from the TVE200 + +- clock-names: should contain "PCLK" for the clock line clocking the + silicon and "TVE" for the 27MHz clock to the video driver + +- clocks: contains phandle and clock specifier pairs for the entries + in the clock-names property. See + Documentation/devicetree/bindings/clock/clock-bindings.txt + +Optional properties: + +- resets: contains the reset line phandle for the block + +Required sub-nodes: + +- port: describes LCD panel signals, following the common binding + for video transmitter interfaces; see + Documentation/devicetree/bindings/media/video-interfaces.txt + This port should have the properties: + reg = <0>; + It should have one endpoint connected to a remote endpoint where + the display is connected. + +Example: + +display-controller@6a000000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "faraday,tve200"; + reg = <0x6a000000 0x1000>; + interrupts = <13 IRQ_TYPE_EDGE_RISING>; + resets = <&syscon GEMINI_RESET_TVC>; + clocks = <&syscon GEMINI_CLK_GATE_TVC>, + <&syscon GEMINI_CLK_TVC>; + clock-names = "PCLK", "TVE"; + + port@0 { + reg = <0>; + display_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; +};