xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/cirrus,clps711x-fb.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Currus Logic CLPS711X Framebuffer
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Shall contain "cirrus,ep7209-fb".
5*4882a593Smuzhiyun- reg       : Physical base address and length of the controller's registers +
6*4882a593Smuzhiyun              location and size of the framebuffer memory.
7*4882a593Smuzhiyun- clocks    : phandle + clock specifier pair of the FB reference clock.
8*4882a593Smuzhiyun- display   : phandle to a display node as described in
9*4882a593Smuzhiyun              Documentation/devicetree/bindings/display/panel/display-timing.txt.
10*4882a593Smuzhiyun              Additionally, the display node has to define properties:
11*4882a593Smuzhiyun  - bits-per-pixel: Bits per pixel.
12*4882a593Smuzhiyun  - ac-prescale   : LCD AC bias frequency. This frequency is the required
13*4882a593Smuzhiyun                    AC bias frequency for a given manufacturer's LCD plate.
14*4882a593Smuzhiyun  - cmap-invert   : Invert the color levels (Optional).
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunOptional properties:
17*4882a593Smuzhiyun- lcd-supply: Regulator for LCD supply voltage.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunExample:
20*4882a593Smuzhiyun	fb: fb@800002c0 {
21*4882a593Smuzhiyun		compatible = "cirrus,ep7312-fb", "cirrus,ep7209-fb";
22*4882a593Smuzhiyun		reg = <0x800002c0 0xd44>, <0x60000000 0xc000>;
23*4882a593Smuzhiyun		clocks = <&clks 2>;
24*4882a593Smuzhiyun		lcd-supply = <&reg5v0>;
25*4882a593Smuzhiyun		display = <&display>;
26*4882a593Smuzhiyun	};
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	display: display {
29*4882a593Smuzhiyun		model = "320x240x4";
30*4882a593Smuzhiyun		bits-per-pixel = <4>;
31*4882a593Smuzhiyun		ac-prescale = <17>;
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun		display-timings {
34*4882a593Smuzhiyun			native-mode = <&timing0>;
35*4882a593Smuzhiyun			timing0: 320x240 {
36*4882a593Smuzhiyun				hactive = <320>;
37*4882a593Smuzhiyun				hback-porch = <0>;
38*4882a593Smuzhiyun				hfront-porch = <0>;
39*4882a593Smuzhiyun				hsync-len = <0>;
40*4882a593Smuzhiyun				vactive = <240>;
41*4882a593Smuzhiyun				vback-porch = <0>;
42*4882a593Smuzhiyun				vfront-porch = <0>;
43*4882a593Smuzhiyun				vsync-len = <0>;
44*4882a593Smuzhiyun				clock-frequency = <6500000>;
45*4882a593Smuzhiyun			};
46*4882a593Smuzhiyun		};
47*4882a593Smuzhiyun	};
48