From patchwork Tue Dec 18 15:37:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 10736893 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CFD916C2 for ; Wed, 19 Dec 2018 08:41:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1BA52AEB3 for ; Wed, 19 Dec 2018 08:41:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C03DB2AEBE; Wed, 19 Dec 2018 08:41:40 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 751B12AEB9 for ; Wed, 19 Dec 2018 08:41:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F34D36EE3E; Wed, 19 Dec 2018 08:41:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from shell.v3.sk (shell.v3.sk [90.176.6.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id 178C96EC48 for ; Tue, 18 Dec 2018 15:38:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 9F169CA2EB; Tue, 18 Dec 2018 16:38:11 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Alw97AvaDi8f; Tue, 18 Dec 2018 16:37:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id DC3B6CA2E4; Tue, 18 Dec 2018 16:37:50 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Q3rhWWHa2r_o; Tue, 18 Dec 2018 16:37:48 +0100 (CET) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id B405ECA2D5; Tue, 18 Dec 2018 16:37:46 +0100 (CET) From: Lubomir Rintel To: dri-devel@lists.freedesktop.org Subject: [RFC 07/16] dt-bindings: display: himax, hx8837: Add Himax HX8837 bindings Date: Tue, 18 Dec 2018 16:37:33 +0100 Message-Id: <20181218153742.1313125-8-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181218153742.1313125-1-lkundrak@v3.sk> References: <20181218153742.1313125-1-lkundrak@v3.sk> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 19 Dec 2018 08:40:40 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lubomir Rintel , Russell King , James Cameron Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Himax HX8837 is a secondary display controller used to drive the panel on OLPC platforms. Signed-off-by: Lubomir Rintel --- Changes since v3: - Moved to bindings/display/ - Added the ports - Removed Pavel's Ack, because the changes are substantial Changes since v2: - s/betweend/between/ Changes since v1: - s/load-gpio/load-gpios/ - Use interrupt bindings instead of gpio for the IRQ --- .../bindings/display/bridge/himax,hx8837.txt | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt diff --git a/Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt b/Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt new file mode 100644 index 000000000000..c52274f05692 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/himax,hx8837.txt @@ -0,0 +1,44 @@ +HX8837 Display Controller + +Required properties: +- compatible: Should be "himax,hx8837". +- reg: I2C address, must be 0x0d +- stat-gpios: gpio specifier of DCON_STAT0 and DCON_STAT1 pins (active high) +- load-gpios: gpio specifier of DCON_LOAD pin (active high) +- interrupt: interrupt specifier of DCON_IRQ pin (edge falling) + +Required nodes: +- ports: contains port nodes with endpoints, as described in + Documentation/devicetree/bindings/graph.txt + Port 0's endpoint is connected to the LCD controller's RGB data output + endpoint. + Port 1's endpoint is connected to the panel's input endpoint. + +Example: + dcon@d { + compatible = "himax,hx8837"; + reg = <0x0d>; + stat-gpios = <&gpio 100 GPIO_ACTIVE_HIGH + &gpio 101 GPIO_ACTIVE_HIGH>; + load-gpios = <&gpio 142 GPIO_ACTIVE_HIGH>; + interrupts = <&gpio 124 IRQ_TYPE_EDGE_FALLING>; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@0 { + reg = <0x00>; + dcon_rgb_in: endpoint { + remote-endpoint = <&lcd0_rgb_out>; + }; + }; + + port@1 { + reg = <0x01>; + dcon_gettl_out: endpoint { + remote-endpoint = <&panel_dettl_in>; + }; + }; + }; + };