From patchwork Fri Dec 4 08:35:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo Serra X-Patchwork-Id: 7766161 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1492BBEEE1 for ; Fri, 4 Dec 2015 08:35:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F144F204E0 for ; Fri, 4 Dec 2015 08:35:28 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2308C20519 for ; Fri, 4 Dec 2015 08:35:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 402408A75B; Fri, 4 Dec 2015 00:35:27 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0CB1C8A75B for ; Fri, 4 Dec 2015 00:35:25 -0800 (PST) Received: by wmuu63 with SMTP id u63so9157649wmu.0 for ; Fri, 04 Dec 2015 00:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=71O7utw3zP/1Kq1sSQ185SrGXf6ZKF3TbU03uU+UIy8=; b=TDCraWUVlTKqYebIs4doB1tAAjLAew4H5LIuhz41vRDmM14wuWdSgPNnXsC1Svkb6Z xEWJG14LPjuGRzHl+PxM3FBMMnyN209XhBXeEKCYPUVMaRwqKANoZQMAQSwZI1hXSz/a GALcva4OeFCQ3fiY3b1iTqK+nA+a4IvjyEf4/Y4Tg0cZt6TPQHAoRchZTK49K9MhHItt hYKwnjqZ3rBpmghEwVpbU42LWXBlGvW22zUYX/BdCNukf3ZNlOr4nNH3CsRLnGtADjqQ x35oKejDqoqtEUPLbfqBO2NKsXm/W5LVd1oD91LochrFDYiPWs9uBi6G9IoMxKMhSTJq hMoQ== X-Received: by 10.28.140.211 with SMTP id o202mr3359545wmd.8.1449218123884; Fri, 04 Dec 2015 00:35:23 -0800 (PST) Received: from localhost.localdomain ([84.236.220.225]) by smtp.gmail.com with ESMTPSA id c194sm2456731wmd.13.2015.12.04.00.35.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 00:35:23 -0800 (PST) From: Enric Balletbo i Serra X-Google-Original-From: Enric Balletbo i Serra To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devel@driverdev.osuosl.org, treding@nvidia.com Subject: [PATCHv6 4/5] devicetree: Add new ANX7814 SlimPort transmitter binding. Date: Fri, 4 Dec 2015 09:35:06 +0100 Message-Id: <1449218107-6590-5-git-send-email-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1449218107-6590-1-git-send-email-enric.balletbo@collabora.com> References: <1449218107-6590-1-git-send-email-enric.balletbo@collabora.com> Cc: mark.rutland@arm.com, drinkcat@chromium.org, laurent.pinchart@ideasonboard.com, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, gregkh@linuxfoundation.org, emil.l.velikov@gmail.com, cawa.cheng@mediatek.com, jb.tsai@mediatek.com, sjoerd.simons@collabora.co.uk, robh+dt@kernel.org, span@analogixsemi.com, galak@codeaurora.org, javier@dowhile0.org, eddie.huang@mediatek.com, cjiao@analogixsemi.com, dan.carpenter@oracle.com, nathan.chung@mediatek.com 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter designed for portable devices. You can add support to your board with current binding. Example: anx7814: anx7814@38 { compatible = "analogix,anx7814"; reg = <0x38>; interrupt-parent = <&gpio0> interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; pd-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; reset-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; v10-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; ports { anx7814_in: endpoint { remote-endpoint = <&hdmi0_out>; }; }; }; Signed-off-by: Enric Balletbo i Serra Acked-by: Rob Herring --- Changes since last version (requested by Rob Herring) - Specify how many ports and how many endpoints for each port - Simplify to just port (dropping ports) - For cable det use an interrupt instead (to a gpio controller) .../devicetree/bindings/video/bridge/anx7814.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/bridge/anx7814.txt diff --git a/Documentation/devicetree/bindings/video/bridge/anx7814.txt b/Documentation/devicetree/bindings/video/bridge/anx7814.txt new file mode 100644 index 0000000..4e68789 --- /dev/null +++ b/Documentation/devicetree/bindings/video/bridge/anx7814.txt @@ -0,0 +1,39 @@ +Analogix ANX7814 SlimPort (Full-HD Transmitter) +----------------------------------------------- + +The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter +designed for portable devices. + +Required properties: + + - compatible : "analogix,anx7814" + - reg : I2C address of the device + - interrupt-parent : Should be the phandle of the interrupt controller + that services interrupts for this device + - interrupts : Should contain the cable detection interrupt + - pd-gpios : Which GPIO to use for power down + - reset-gpios : Which GPIO to use for reset + +Optional properties: + + - v10-gpios : Which GPIO to use for V10 control. + - Video port for HDMI output, using the DT bindings defined in [1]. + +[1]: Documentation/devicetree/bindings/media/video-interfaces.txt + +Example: + + anx7814: anx7814@38 { + compatible = "analogix,anx7814"; + reg = <0x38>; + interrupt-parent = <&gpio0> + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; + pd-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; + v10-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; + ports { + anx7814_in: endpoint { + remote-endpoint = <&hdmi0_out>; + }; + }; + };