-
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.
drm/tilcdc: add support for LCD panels (v5)
Add an output panel driver for LCD panels. Tested with LCD3 cape on beaglebone. v1: original v2: s/of_find_node_by_name()/of_get_child_by_name()/ from Pantelis Antoniou v3: add backlight support v4: rebase to latest of video timing helpers v5: remove some unneeded fields from panel-info struct, add DT bindings docs Signed-off-by: Rob Clark <robdclark@gmail.com> Tested-by: Koen Kooi <koen@dominion.thruhere.net>
- Loading branch information
Rob Clark
committed
Feb 19, 2013
1 parent
6e8de0b
commit 0d4bbaf
Showing
6 changed files
with
528 additions
and
0 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,59 @@ | ||
Device-Tree bindings for tilcdc DRM generic panel output driver | ||
|
||
Required properties: | ||
- compatible: value should be "ti,tilcdc,panel". | ||
- panel-info: configuration info to configure LCDC correctly for the panel | ||
- ac-bias: AC Bias Pin Frequency | ||
- ac-bias-intrpt: AC Bias Pin Transitions per Interrupt | ||
- dma-burst-sz: DMA burst size | ||
- bpp: Bits per pixel | ||
- fdd: FIFO DMA Request Delay | ||
- sync-edge: Horizontal and Vertical Sync Edge: 0=rising 1=falling | ||
- sync-ctrl: Horizontal and Vertical Sync: Control: 0=ignore | ||
- raster-order: Raster Data Order Select: 1=Most-to-least 0=Least-to-most | ||
- fifo-th: DMA FIFO threshold | ||
- display-timings: typical videomode of lcd panel. Multiple video modes | ||
can be listed if the panel supports multiple timings, but the 'native-mode' | ||
should be the preferred/default resolution. Refer to | ||
Documentation/devicetree/bindings/video/display-timing.txt for display | ||
timing binding details. | ||
|
||
Recommended properties: | ||
- pinctrl-names, pinctrl-0: the pincontrol settings to configure | ||
muxing properly for pins that connect to TFP410 device | ||
|
||
Example: | ||
|
||
/* Settings for CDTech_S035Q01 / LCD3 cape: */ | ||
lcd3 { | ||
compatible = "ti,tilcdc,panel"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&bone_lcd3_cape_lcd_pins>; | ||
panel-info { | ||
ac-bias = <255>; | ||
ac-bias-intrpt = <0>; | ||
dma-burst-sz = <16>; | ||
bpp = <16>; | ||
fdd = <0x80>; | ||
sync-edge = <0>; | ||
sync-ctrl = <1>; | ||
raster-order = <0>; | ||
fifo-th = <0>; | ||
}; | ||
display-timings { | ||
native-mode = <&timing0>; | ||
timing0: 320x240 { | ||
hactive = <320>; | ||
vactive = <240>; | ||
hback-porch = <21>; | ||
hfront-porch = <58>; | ||
hsync-len = <47>; | ||
vback-porch = <11>; | ||
vfront-porch = <23>; | ||
vsync-len = <2>; | ||
clock-frequency = <8000000>; | ||
hsync-active = <0>; | ||
vsync-active = <0>; | ||
}; | ||
}; | ||
}; |
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
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
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.