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