Merge branch 'locking-arch-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / video / atmel,lcdc.txt
1 Atmel LCDC Framebuffer
2 -----------------------------------------------------
3
4 Required properties:
5 - compatible :
6         "atmel,at91sam9261-lcdc" , 
7         "atmel,at91sam9263-lcdc" ,
8         "atmel,at91sam9g10-lcdc" ,
9         "atmel,at91sam9g45-lcdc" ,
10         "atmel,at91sam9g45es-lcdc" ,
11         "atmel,at91sam9rl-lcdc" ,
12         "atmel,at32ap-lcdc"
13 - reg : Should contain 1 register ranges(address and length)
14 - interrupts : framebuffer controller interrupt
15 - display: a phandle pointing to the display node
16
17 Required nodes:
18 - display: a display node is required to initialize the lcd panel
19         This should be in the board dts.
20 - default-mode: a videomode within the display with timing parameters
21         as specified below.
22
23 Example:
24
25         fb0: fb@0x00500000 {
26                 compatible = "atmel,at91sam9g45-lcdc";
27                 reg = <0x00500000 0x1000>;
28                 interrupts = <23 3 0>;
29                 pinctrl-names = "default";
30                 pinctrl-0 = <&pinctrl_fb>;
31                 display = <&display0>;
32                 status = "okay";
33                 #address-cells = <1>;
34                 #size-cells = <1>;
35
36         };
37
38 Atmel LCDC Display
39 -----------------------------------------------------
40 Required properties (as per of_videomode_helper):
41
42  - atmel,dmacon: dma controller configuration
43  - atmel,lcdcon2: lcd controller configuration
44  - atmel,guard-time: lcd guard time (Delay in frame periods)
45  - bits-per-pixel: lcd panel bit-depth.
46
47 Optional properties (as per of_videomode_helper):
48  - atmel,lcdcon-backlight: enable backlight
49  - atmel,lcdcon-backlight-inverted: invert backlight PWM polarity
50  - atmel,lcd-wiring-mode: lcd wiring mode "RGB" or "BRG"
51  - atmel,power-control-gpio: gpio to power on or off the LCD (as many as needed)
52
53 Example:
54         display0: display {
55                 bits-per-pixel = <32>;
56                 atmel,lcdcon-backlight;
57                 atmel,dmacon = <0x1>;
58                 atmel,lcdcon2 = <0x80008002>;
59                 atmel,guard-time = <9>;
60                 atmel,lcd-wiring-mode = <1>;
61
62                 display-timings {
63                         native-mode = <&timing0>;
64                         timing0: timing0 {
65                                 clock-frequency = <9000000>;
66                                 hactive = <480>;
67                                 vactive = <272>;
68                                 hback-porch = <1>;
69                                 hfront-porch = <1>;
70                                 vback-porch = <40>;
71                                 vfront-porch = <1>;
72                                 hsync-len = <45>;
73                                 vsync-len = <1>;
74                         };
75                 };
76         };