From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Pargmann Date: Fri, 01 Mar 2013 15:41:07 +0000 Subject: [PATCH 2/2] video: imxfb: Add DT support Message-Id: <1362152467-27998-3-git-send-email-mpa@pengutronix.de> List-Id: References: <1362152467-27998-1-git-send-email-mpa@pengutronix.de> In-Reply-To: <1362152467-27998-1-git-send-email-mpa@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org Add devicetree support for imx framebuffer driver. It uses the generic display bindings and helper functions. Signed-off-by: Markus Pargmann --- .../devicetree/bindings/video/fsl,imx-fb.txt | 30 ++++ drivers/video/imxfb.c | 176 +++++++++++++++++---- 2 files changed, 173 insertions(+), 33 deletions(-) create mode 100644 Documentation/devicetree/bindings/video/fsl,imx-fb.txt diff --git a/Documentation/devicetree/bindings/video/fsl,imx-fb.txt b/Documentation/devicetree/bindings/video/fsl,imx-fb.txt new file mode 100644 index 0000000..fd88d26 --- /dev/null +++ b/Documentation/devicetree/bindings/video/fsl,imx-fb.txt @@ -0,0 +1,30 @@ +Freescale imx21 Framebuffer + +This framebuffer driver supports chips imx1 and imx21. + +Required properties: +- compatible : "fsl,-fb" +- reg : Should contain 1 register ranges(address and length) +- interrupts : One interrupt of the fb dev + +Required nodes: +- display: a display node is required to initialize the lcd panel + This should be in the board dts. See definition in + Documentation/devicetree/bindings/video/via,vt8500-fb.txt +- default-mode: a videomode node as specified in + Documentation/devicetree/bindings/video/via,vt8500-fb.txt + +Optional properties: +- pwmr: Address of pwmr register +- lscr1: Address of lscr1 register +- dmacr: Address of dmacr register + +Example: + + imxfb: fb@10021000 { + compatible = "fsl,imx27-fb", "fsl,imx21-fb"; + interrupts = <61>; + reg = <0x10021000 0x1000>; + display = <&display0>; + default-mode = <&mode0>; + }; diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c index ef2b587..6f1b04c 100644 --- a/drivers/video/imxfb.c +++ b/drivers/video/imxfb.c @@ -32,6 +32,12 @@ #include #include #include +#include +#include + +#include