From patchwork Sun Oct 4 10:31:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 7323511 Return-Path: X-Original-To: patchwork-linux-fbdev@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 683C0BEEA4 for ; Sun, 4 Oct 2015 10:36:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8978E205EE for ; Sun, 4 Oct 2015 10:36:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 84047205F2 for ; Sun, 4 Oct 2015 10:36:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbbJDKgy (ORCPT ); Sun, 4 Oct 2015 06:36:54 -0400 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:16696 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368AbbJDKgx (ORCPT ); Sun, 4 Oct 2015 06:36:53 -0400 Received: from belgarion.home ([90.38.170.78]) by mwinf5d09 with ME id Qycn1r0091hq3pm03ycnBp; Sun, 04 Oct 2015 12:36:51 +0200 X-ME-Helo: belgarion.home X-ME-Date: Sun, 04 Oct 2015 12:36:51 +0200 X-ME-IP: 90.38.170.78 From: Robert Jarzmik To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Philipp Zabel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jean-Christophe Plagniol-Villard , Tomi Valkeinen , linux-fbdev@vger.kernel.org, Robert Jarzmik Subject: [PATCH v2] video: fbdev: add Marvell PXA framebuffer binding Date: Sun, 4 Oct 2015 12:31:23 +0200 Message-Id: <1443954683-13126-1-git-send-email-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.1.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 Add documentation for the PXA frambuffer devicetree binding. Signed-off-by: Robert Jarzmik --- Since v1: Philipp's review on the whole binding --- .../devicetree/bindings/video/marvell,pxafb.txt | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/marvell,pxafb.txt diff --git a/Documentation/devicetree/bindings/video/marvell,pxafb.txt b/Documentation/devicetree/bindings/video/marvell,pxafb.txt new file mode 100644 index 000000000000..4d6bd490680d --- /dev/null +++ b/Documentation/devicetree/bindings/video/marvell,pxafb.txt @@ -0,0 +1,80 @@ +PXA LCDC Framebuffer +-------------------- + +Required properties: + - compatible : + "marvell,pxa2xx-lcdc", + - reg : Should contain 1 register ranges(address and length). + Can contain an additional register range(address and length) + for fixed framebuffer memory. Useful for dedicated memories. + - interrupts : framebuffer controller interrupt + +Required nodes: + - clocks: phandle to input clocks. + - port: connection to the LCD panel (see video-interfaces.txt) + This nodes must have its properties bus-width and remote-endpoint set. + This should be in the board dts. + +Example: + + lcd-controller@40500000 { + compatible = "marvell,pxa2xx-lcdc"; + reg = <0x44000000 0x10000>; + interrupts = <17>; + clocks = <&clks CLK_LCD>; + interrupts = <23>; + status = "okay"; + + port { + lcdc_out: endpoint { + remote-endpoint = <&panel_in>; + bus-width = <16>; + }; + }; + }; + +PXA LCDC Display +---------------- +Required properties (as per of_videomode_helper): + - lcd-type: either "mono-stn", "mono-dstn", "color-stn", "color-dstn", + "color-tft", "smart-panel" + +Optional properties (as per of_videomode_helper): + - power-supply: power supply regulator to the LCD to power it on or off + (see regulator.txt) + - backlight: backlight control (see backlight.txt) + +Required nodes: + - port: connection to the LCD controller + - display-timings: panel timings (see display-timing.txt) + +Example: + panel { + compatible = "toshiba,ltm0305a776"; + lcd-type = "color-tft"; + + power-supply = <&lcd_supply>; + backlight = <&lcd_backlight>; + + port { + panel_in: endpoint { + remote-endpoint = <&lcdc_out>; + }; + }; + + display-timings { + native-mode = <&timing0>; + timing0: 240p { + /* 240x320p24 */ + clock-frequency = <4545000>; + hactive = <240>; + vactive = <320>; + hfront-porch = <4>; + hback-porch = <6>; + hsync-len = <4>; + vback-porch = <5>; + vfront-porch = <3>; + vsync-len = <2>; + }; + }; + };