From patchwork Wed Dec 3 09:16:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 5428261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7129DBEEA8 for ; Wed, 3 Dec 2014 09:20:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A65D720120 for ; Wed, 3 Dec 2014 09:20:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C3D7A2034F for ; Wed, 3 Dec 2014 09:20:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xw64t-0004sI-4S; Wed, 03 Dec 2014 09:18:31 +0000 Received: from mail-bn1bn0102.outbound.protection.outlook.com ([157.56.110.102] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xw64Q-0004AJ-Sf for linux-arm-kernel@lists.infradead.org; Wed, 03 Dec 2014 09:18:03 +0000 Received: from CO2PR03CA0052.namprd03.prod.outlook.com (10.141.194.179) by CY1PR0301MB0617.namprd03.prod.outlook.com (25.160.142.24) with Microsoft SMTP Server (TLS) id 15.1.26.15; Wed, 3 Dec 2014 09:17:40 +0000 Received: from BL2FFO11FD045.protection.gbl (2a01:111:f400:7c09::150) by CO2PR03CA0052.outlook.office365.com (2a01:111:e400:1414::51) with Microsoft SMTP Server (TLS) id 15.1.16.15 via Frontend Transport; Wed, 3 Dec 2014 09:17:39 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD045.mail.protection.outlook.com (10.173.161.207) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Wed, 3 Dec 2014 09:17:39 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id sB39HRkZ000769; Wed, 3 Dec 2014 02:17:36 -0700 From: Xiubo Li To: , Subject: [PATCHv2 2/4] video: fsl-dcfb: Add devicetree binding support Date: Wed, 3 Dec 2014 17:16:00 +0800 Message-ID: <1417598162-40433-3-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1417598162-40433-1-git-send-email-Li.Xiubo@freescale.com> References: <1417598162-40433-1-git-send-email-Li.Xiubo@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(107046002)(229853001)(104016003)(77096005)(92726001)(92566001)(102836001)(68736005)(21056001)(104166001)(64706001)(20776003)(47776003)(76176999)(93916002)(50986999)(86362001)(31966008)(4396001)(88136002)(87936001)(36756003)(44976005)(48376002)(87286001)(6806004)(89996001)(50226001)(19580395003)(120916001)(106466001)(77156002)(99396003)(19580405001)(105606002)(84676001)(62966003)(46102003)(50466002)(97736003)(95666004); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB0617; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0617; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0617; X-Forefront-PRVS: 0414DF926F Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Li.Xiubo@freescale.com; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0617; X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141203_011803_120286_4A852BB8 X-CRM114-Status: UNSURE ( 6.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo Li , shawn.guo@linaro.org, linux-arm-kernel@lists.infradead.org, alexander.stein@systec-electronic.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 devicetree binding support for fsl-dcfb framebuffer driver. It uses the generic display bindings and helper functions. Signed-off-by: Xiubo Li --- .../devicetree/bindings/video/fsl,dcfb.txt | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/fsl,dcfb.txt diff --git a/Documentation/devicetree/bindings/video/fsl,dcfb.txt b/Documentation/devicetree/bindings/video/fsl,dcfb.txt new file mode 100644 index 0000000..2f3d02b --- /dev/null +++ b/Documentation/devicetree/bindings/video/fsl,dcfb.txt @@ -0,0 +1,52 @@ +* Freescale Simple Display Controller FB Driver + +=== For dcfb node === +Required properties: +- compatible: Should be one of "fsl,ls1021a-dcfb". +- reg: Address and length of the register set for dcfb. +- clocks: From common clock binding: handle to dcfb clock. +- clock-names: From common clock binding: Shall be "dcfb". +- display: The phandle to display node. + +Optional properties: +- scfg-controller: The phandle of scfg node. + +=== For display sub-node === +Required properties: +- bits-per-pixel: <16> for RGB565, + <24> for RGB888, + <32> for RGB8888. + +Required timing node for dispplay sub-node: +- display-timings: Refer to binding doc display-timing.txt for details. + +Examples: +dcfb: dcfb@2ce0000 { + compatible = "fsl,ls1021a-dcfb"; + reg = <0x0 0x2ce0000 0x0 0x10000>; + clocks = <&platform_clk 0>; + clock-names = "dcfb"; + scfg-controller = <&scfg>; + display = <&display>; + + display: display@0 { + bits-per-pixel = <24>; + + display-timings { + native-mode = <&timing0>; + timing0: nl4827hc19 { + clock-frequency = <10870000>; + hactive = <480>; + vactive = <272>; + hback-porch = <2>; + hfront-porch = <2>; + vback-porch = <1>; + vfront-porch = <1>; + hsync-len = <41>; + vsync-len = <2>; + hsync-active = <1>; + vsync-active = <1>; + }; + }; + }; +};