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