From patchwork Sat Oct 3 16:11:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 7321961 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 506CABEEA4 for ; Sat, 3 Oct 2015 16:17:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A3AC207EC for ; Sat, 3 Oct 2015 16:17:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47E82207CB for ; Sat, 3 Oct 2015 16:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752185AbbJCQQ7 (ORCPT ); Sat, 3 Oct 2015 12:16:59 -0400 Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:50550 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752147AbbJCQQ6 (ORCPT ); Sat, 3 Oct 2015 12:16:58 -0400 Received: from belgarion.home ([90.38.170.78]) by mwinf5d37 with ME id QgGu1r0061hq3pm03gGulf; Sat, 03 Oct 2015 18:16:56 +0200 X-ME-Helo: belgarion.home X-ME-Date: Sat, 03 Oct 2015 18:16:56 +0200 X-ME-IP: 90.38.170.78 From: Robert Jarzmik To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Jarzmik , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , linux-fbdev@vger.kernel.org Subject: [PATCH] video: fbdev: add Marvell PXA framebuffer binding Date: Sat, 3 Oct 2015 18:11:34 +0200 Message-Id: <1443888694-12311-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 Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: linux-fbdev@vger.kernel.org --- .../devicetree/bindings/video/marvell,pxafb.txt | 75 ++++++++++++++++++++++ 1 file changed, 75 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..489055bf3c57 --- /dev/null +++ b/Documentation/devicetree/bindings/video/marvell,pxafb.txt @@ -0,0 +1,75 @@ +PXA LCDC Framebuffer +----------------------------------------------------- + +Required properties: +- compatible : + "marvell,pxa2xx-fb", +- 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 +- display: a phandle pointing to the display node + +Required nodes: +- display: a display node is required to initialize the lcd panel + This should be in the board dts. +- default-mode: a videomode within the display with timing parameters + as specified below. +- bits-per-pixel: pixel data bus width of the LCD panel + +Optional properties: +- lcd-supply: Regulator for LCD supply voltage. +- enable-transparency-bit: if framebuffer colorspace reserves a bit for + transparency +- enable-greyscale-cmap: true if palette is a grayscale based instead of color + +Example: + + fb0: video@0x44000000 { + compatible = "marvell,pxa2xx-fb"; + reg = <0x44000000 0x10000>; + interrupts = <17>; + clocks = <&clks CLK_LCD>; + interrupts = <23>; + display = <&display0>; + status = "okay"; + + enable-transparency-bit = <0>; + enable-greyscale-cmap = <0>; + #address-cells = <1>; + #size-cells = <1>; + }; + +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" + - bits-per-pixel: LCD data bus width + +Optional properties (as per of_videomode_helper): + - power-regulator: power supply regulator to the LCD to power it on or off + +Example: + display0: display { + lcd-type = "color-tft"; + bits-per-pixel = <16>; + + 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>; + pixelclk-active = <0>; + de-active = <1>; + }; + }; + };