From patchwork Fri Aug 3 02:49:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhinav Kumar X-Patchwork-Id: 10554391 X-Patchwork-Delegate: agross@codeaurora.org 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 EFA2D1822 for ; Fri, 3 Aug 2018 02:49:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCC1C2C451 for ; Fri, 3 Aug 2018 02:49:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D14302C499; Fri, 3 Aug 2018 02:49:46 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CDA52C451 for ; Fri, 3 Aug 2018 02:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727377AbeHCEnt (ORCPT ); Fri, 3 Aug 2018 00:43:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39618 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbeHCEnt (ORCPT ); Fri, 3 Aug 2018 00:43:49 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AA08360AD9; Fri, 3 Aug 2018 02:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533264584; bh=o++yWGUSsnxLTZV7zqGcT58PFTCkeu6GVsyvPkue1Gc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BTCPoGuG9fkRLyxvyRZ2lb8dV1I7fl+/t6OWDtBP00W1ichv5F2C8HAEregeKGbym kHqeGwHVJA0TsYIZvCi/SN4UNrFsG/5XX+2Qr3LJhp/qJYbxp3WjGHBlLjTR3+GWWg 6983ezqBUqmn+VLiEYEgl3ZmiWMQTrpGneeoS1qw= Received: from abhinavk-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: abhinavk@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 03A2C607BD; Fri, 3 Aug 2018 02:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533264583; bh=o++yWGUSsnxLTZV7zqGcT58PFTCkeu6GVsyvPkue1Gc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HDGJFkTBkqm0XsknlmvLXNyXzNnJPNymca5JU3ikNwkDLvw4lweRAJQNygau3TEn6 Y8plIWYJTNNUd+wHSAS4J9CTyy6dxvZVxsV/KtGsBYIH/5+53NI7IMh6/AsrN2sX4e sVurF00QIBwGpC9TtY6bcRnqH++UxoJao4iMROYs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 03A2C607BD Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=abhinavk@codeaurora.org From: Abhinav Kumar To: dri-devel@lists.freedesktop.org Cc: "abhinavk@codeaurora.org" , linux-arm-msm@vger.kernel.org, robdclark@gmail.com, thierry.reding@gmail.com, hoegsberg@google.com, chandanu@codeaurora.org, seanpaul@chromium.org, architt@codeaurora.org, robh@kernel.org, nganji@codeaurora.org, jsanka@codeaurora.org Subject: [PATCH v5 2/2] dt-bindings: Add Truly NT35597 panel bindings Date: Thu, 2 Aug 2018 19:49:32 -0700 Message-Id: <1533264572-6364-2-git-send-email-abhinavk@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1533264572-6364-1-git-send-email-abhinavk@codeaurora.org> References: <1533264572-6364-1-git-send-email-abhinavk@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "abhinavk@codeaurora.org" Add the device tree bindings for Truly NT35597 panel. This panel supports both single DSI and dual DSI. However, this patch series supports only dual DSI. Changes in v5: - None Signed-off-by: Abhinav Kumar --- .../devicetree/bindings/display/truly,nt35597.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/truly,nt35597.txt diff --git a/Documentation/devicetree/bindings/display/truly,nt35597.txt b/Documentation/devicetree/bindings/display/truly,nt35597.txt new file mode 100644 index 0000000..5d297b8 --- /dev/null +++ b/Documentation/devicetree/bindings/display/truly,nt35597.txt @@ -0,0 +1,69 @@ +Truly model NT35597 1440x2560 DSI Panel + +Required properties: +- compatible: should be "truly,nt35597" +- vdda-supply: phandle of the regulator that provides the supply voltage + Power IC supply +- vdispp-supply: phandle of the regulator that provides the supply voltage + for positive LCD bias +- vdispn-supply: phandle of the regulator that provides the supply voltage + for negative LCD bias +- reset-gpios: phandle of gpio for reset line + This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names +- mode-gpios: phandle of the gpio for choosing the mode of the display + for single DSI or Dual DSI + This should be low for dual DSI and high for single DSI mode +- display-timings: Node for the Panel timings +- ports: This device has two video ports driven by two DSIs. Their connections + are modelled using the OF graph bindings specified in + Documentation/devicetree/bindings/graph.txt. + - port@0: DSI input port driven by master DSI + - port@1: DSI input port driven by secondary DSI + +Example: + + dsi@ae94000 { + panel@0 { + compatible = "truly,nt35597"; + reg = <0>; + vdda-supply = <&pm8998_l14>; + vdispp-supply = <&lab_regulator>; + vdispn-supply = <&ibb_regulator>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&dpu_dsi_active>; + pinctrl-1 = <&dpu_dsi_suspend>; + + reset-gpios = <&tlmm 6 0>; + mode-gpios = <&tlmm 52 0>; + display-timings { + timing0: timing-0 { + clock-frequency = <268316138>; + hactive = <1440>; + vactive = <2560>; + hfront-porch = <200>; + hback-porch = <64>; + hsync-len = <32>; + vfront-porch = <8>; + vback-porch = <7>; + vsync-len = <1>; + }; + }; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + panel0_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1 { + reg = <1>; + panel1_in: endpoint { + remote-endpoint = <&dsi1_out>; + }; + }; + }; + }; + };