Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[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 Optional properties:
24 - lcd-supply: Regulator for LCD supply voltage.
25
26 Example:
27
28         fb0: fb@0x00500000 {
29                 compatible = "atmel,at91sam9g45-lcdc";
30                 reg = <0x00500000 0x1000>;
31                 interrupts = <23 3 0>;
32                 pinctrl-names = "default";
33                 pinctrl-0 = <&pinctrl_fb>;
34                 display = <&display0>;
35                 status = "okay";
36                 #address-cells = <1>;
37                 #size-cells = <1>;
38
39         };
40
41 Atmel LCDC Display
42 -----------------------------------------------------
43 Required properties (as per of_videomode_helper):
44
45  - atmel,dmacon: dma controller configuration
46  - atmel,lcdcon2: lcd controller configuration
47  - atmel,guard-time: lcd guard time (Delay in frame periods)
48  - bits-per-pixel: lcd panel bit-depth.
49
50 Optional properties (as per of_videomode_helper):
51  - atmel,lcdcon-backlight: enable backlight
52  - atmel,lcdcon-backlight-inverted: invert backlight PWM polarity
53  - atmel,lcd-wiring-mode: lcd wiring mode "RGB" or "BRG"
54  - atmel,power-control-gpio: gpio to power on or off the LCD (as many as needed)
55
56 Example:
57         display0: display {
58                 bits-per-pixel = <32>;
59                 atmel,lcdcon-backlight;
60                 atmel,dmacon = <0x1>;
61                 atmel,lcdcon2 = <0x80008002>;
62                 atmel,guard-time = <9>;
63                 atmel,lcd-wiring-mode = <1>;
64
65                 display-timings {
66                         native-mode = <&timing0>;
67                         timing0: timing0 {
68                                 clock-frequency = <9000000>;
69                                 hactive = <480>;
70                                 vactive = <272>;
71                                 hback-porch = <1>;
72                                 hfront-porch = <1>;
73                                 vback-porch = <40>;
74                                 vfront-porch = <1>;
75                                 hsync-len = <45>;
76                                 vsync-len = <1>;
77                         };
78                 };
79         };