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