-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add devicetree support for imx framebuffer driver. It uses the generic display bindings and helper functions. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
- Loading branch information
Markus Pargmann
authored and
Jean-Christophe PLAGNIOL-VILLARD
committed
Jul 8, 2013
1 parent
19fd744
commit 1b6c793
Showing
3 changed files
with
212 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Freescale imx21 Framebuffer | ||
|
||
This framebuffer driver supports devices imx1, imx21, imx25, and imx27. | ||
|
||
Required properties: | ||
- compatible : "fsl,<chip>-fb", chip should be imx1 or imx21 | ||
- reg : Should contain 1 register ranges(address and length) | ||
- interrupts : One interrupt of the fb dev | ||
|
||
Required nodes: | ||
- display: Phandle to a display node as described in | ||
Documentation/devicetree/bindings/video/display-timing.txt | ||
Additional, the display node has to define properties: | ||
- bits-per-pixel: Bits per pixel | ||
- fsl,pcr: LCDC PCR value | ||
|
||
Optional properties: | ||
- fsl,dmacr: DMA Control Register value. This is optional. By default, the | ||
register is not modified as recommended by the datasheet. | ||
- fsl,lscr1: LCDC Sharp Configuration Register value. | ||
|
||
Example: | ||
|
||
imxfb: fb@10021000 { | ||
compatible = "fsl,imx21-fb"; | ||
interrupts = <61>; | ||
reg = <0x10021000 0x1000>; | ||
display = <&display0>; | ||
}; | ||
|
||
... | ||
|
||
display0: display0 { | ||
model = "Primeview-PD050VL1"; | ||
native-mode = <&timing_disp0>; | ||
bits-per-pixel = <16>; | ||
fsl,pcr = <0xf0c88080>; /* non-standard but required */ | ||
display-timings { | ||
timing_disp0: 640x480 { | ||
hactive = <640>; | ||
vactive = <480>; | ||
hback-porch = <112>; | ||
hfront-porch = <36>; | ||
hsync-len = <32>; | ||
vback-porch = <33>; | ||
vfront-porch = <33>; | ||
vsync-len = <2>; | ||
clock-frequency = <25000000>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.