From patchwork Mon Nov 17 11:34:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 5318131 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9BD329F1E1 for ; Mon, 17 Nov 2014 11:35:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF5F12015E for ; Mon, 17 Nov 2014 11:35:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BFC272012B for ; Mon, 17 Nov 2014 11:35:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbaKQLfc (ORCPT ); Mon, 17 Nov 2014 06:35:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51445 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751959AbaKQLfb (ORCPT ); Mon, 17 Nov 2014 06:35:31 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAHBYuRg006477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Nov 2014 06:34:56 -0500 Received: from shalem.localdomain.com (vpn1-7-227.ams2.redhat.com [10.36.7.227]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sAHBYlDV019855; Mon, 17 Nov 2014 06:34:53 -0500 From: Hans de Goede To: Tomi Valkeinen , Grant Likely , Ian Campbell Cc: Rob Herring , Maxime Ripard , David Herrmann , Geert Uytterhoeven , linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree , linux-sunxi@googlegroups.com, Hans de Goede Subject: [PATCH 2/2] dt-bindings: simplefb-sunxi: Add sunxi simplefb extensions Date: Mon, 17 Nov 2014 12:34:46 +0100 Message-Id: <1416224086-5698-3-git-send-email-hdegoede@redhat.com> In-Reply-To: <1416224086-5698-1-git-send-email-hdegoede@redhat.com> References: <1416224086-5698-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 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, 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 If pre-filled framebuffer nodes are used, the firmware may need extra properties to find the right node. This documents the properties to use for this on sunxi platforms. Signed-off-by: Hans de Goede Acked-by: Grant Likely --- .../bindings/video/simple-framebuffer-sunxi.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt diff --git a/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt new file mode 100644 index 0000000..84ca264 --- /dev/null +++ b/Documentation/devicetree/bindings/video/simple-framebuffer-sunxi.txt @@ -0,0 +1,33 @@ +Sunxi specific Simple Framebuffer bindings + +This binding documents sunxi specific extensions to the simple-framebuffer +bindings. The sunxi simplefb u-boot code relies on the devicetree containing +pre-populated simplefb nodes. + +These extensions are intended so that u-boot can select the right node based +on which pipeline and output is being used. As such they are solely intended +for firmware / bootloader use, and the OS should ignore them. + +Required properties: +- compatible: "sunxi,framebuffer" +- sunxi,pipeline: + <0> for the de_be0 -> lcdc0 -> output pipeline + <1> for the de_be1 -> lcdc1 -> output pipeline +- sunxi,output: One of: "hdmi", "lcd", "vga", and "composite" + +Example: + +chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + framebuffer@0 { + compatible = "sunxi,framebuffer", "simple-framebuffer"; + sunxi,pipeline = <0>; + sunxi,output = "hdmi"; + clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>, + <&ahb_gates 44>; + status = "disabled"; + }; +};