From patchwork Fri May 9 14:16:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 347429 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 35350140077 for ; Sat, 10 May 2014 00:17:37 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756393AbaEIORU (ORCPT ); Fri, 9 May 2014 10:17:20 -0400 Received: from top.free-electrons.com ([176.31.233.9]:46297 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756727AbaEIOQr (ORCPT ); Fri, 9 May 2014 10:16:47 -0400 Received: by mail.free-electrons.com (Postfix, from userid 106) id 2A5CA80D; Fri, 9 May 2014 16:16:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.2 Received: from localhost.localdomain (col31-4-88-188-83-94.fbx.proxad.net [88.188.83.94]) by mail.free-electrons.com (Postfix) with ESMTPSA id 915807D6; Fri, 9 May 2014 16:16:48 +0200 (CEST) From: Boris BREZILLON To: Thierry Reding Cc: Randy Dunlap , David Airlie , Jean-Jacques Hiblot , Nicolas Ferre , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Boris BREZILLON Subject: [RFC PATCH 2/2] drm/panel: update simple-panel DT bindings doc with panel desc properties Date: Fri, 9 May 2014 16:16:42 +0200 Message-Id: <1399645002-18000-3-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1399645002-18000-1-git-send-email-boris.brezillon@free-electrons.com> References: <1399645002-18000-1-git-send-email-boris.brezillon@free-electrons.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document simple-panel description properties and subnodes. The display-timings definition is the one described in Documentation/devicetree/bindings/video/display-timing.txt. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/panel/simple-panel.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/panel/simple-panel.txt b/Documentation/devicetree/bindings/panel/simple-panel.txt index 1341bbf..3440f78 100644 --- a/Documentation/devicetree/bindings/panel/simple-panel.txt +++ b/Documentation/devicetree/bindings/panel/simple-panel.txt @@ -7,6 +7,13 @@ Optional properties: - ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing - enable-gpios: GPIO pin to enable or disable the panel - backlight: phandle of the backlight device attached to the panel +- height: the screen height in pixels +- width: the screen width in pixels + +Optional children nodes: +- display-timings: encode the panel timings. + see Documentation/devicetree/bindings/video/display-timing.txt for a full + description. Example: @@ -19,3 +26,30 @@ Example: backlight = <&backlight>; }; + +or + panel: panel { + compatible = "simple-panel"; + enable-gpios = <&gpio 90 0>; + + backlight = <&backlight>; + + width = 1920; + height = 1080; + display-timings { + native-mode = <&timing0>; + timing0: 1080p24 { + /* 1920x1080p24 */ + clock-frequency = <52000000>; + hactive = <1920>; + vactive = <1080>; + hfront-porch = <25>; + hback-porch = <25>; + hsync-len = <25>; + vback-porch = <2>; + vfront-porch = <2>; + vsync-len = <2>; + hsync-active = <1>; + }; + }; + };