mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 10:01:56 +00:00
669406534b
Use videomode helpers to get display timings and configurations from device tree when platform_data is absent. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
* Freescale MXS LCD Interface (LCDIF)
|
|
|
|
Required properties:
|
|
- compatible: Should be "fsl,<chip>-lcdif". Supported chips include
|
|
imx23 and imx28.
|
|
- reg: Address and length of the register set for lcdif
|
|
- interrupts: Should contain lcdif interrupts
|
|
- display : phandle to display node (see below for details)
|
|
|
|
Optional properties:
|
|
- panel-enable-gpios : Should specify the gpio for panel enable
|
|
|
|
* display node
|
|
|
|
Required properties:
|
|
- bits-per-pixel : <16> for RGB565, <32> for RGB888/666.
|
|
- bus-width : number of data lines. Could be <8>, <16>, <18> or <24>.
|
|
|
|
Required sub-node:
|
|
- display-timings : Refer to binding doc display-timing.txt for details.
|
|
|
|
Examples:
|
|
|
|
lcdif@80030000 {
|
|
compatible = "fsl,imx28-lcdif";
|
|
reg = <0x80030000 2000>;
|
|
interrupts = <38 86>;
|
|
panel-enable-gpios = <&gpio3 30 0>;
|
|
|
|
display: display {
|
|
bits-per-pixel = <32>;
|
|
bus-width = <24>;
|
|
|
|
display-timings {
|
|
native-mode = <&timing0>;
|
|
timing0: timing0 {
|
|
clock-frequency = <33500000>;
|
|
hactive = <800>;
|
|
vactive = <480>;
|
|
hfront-porch = <164>;
|
|
hback-porch = <89>;
|
|
hsync-len = <10>;
|
|
vback-porch = <23>;
|
|
vfront-porch = <10>;
|
|
vsync-len = <10>;
|
|
hsync-active = <0>;
|
|
vsync-active = <0>;
|
|
de-active = <1>;
|
|
pixelclk-active = <0>;
|
|
};
|
|
};
|
|
};
|
|
};
|