18c2ecf20Sopenharmony_ciAtmel LCDC Framebuffer
28c2ecf20Sopenharmony_ci-----------------------------------------------------
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciRequired properties:
58c2ecf20Sopenharmony_ci- compatible :
68c2ecf20Sopenharmony_ci	"atmel,at91sam9261-lcdc" , 
78c2ecf20Sopenharmony_ci	"atmel,at91sam9263-lcdc" ,
88c2ecf20Sopenharmony_ci	"atmel,at91sam9g10-lcdc" ,
98c2ecf20Sopenharmony_ci	"atmel,at91sam9g45-lcdc" ,
108c2ecf20Sopenharmony_ci	"atmel,at91sam9g45es-lcdc" ,
118c2ecf20Sopenharmony_ci	"atmel,at91sam9rl-lcdc" ,
128c2ecf20Sopenharmony_ci	"atmel,at32ap-lcdc"
138c2ecf20Sopenharmony_ci- reg : Should contain 1 register ranges(address and length).
148c2ecf20Sopenharmony_ci	Can contain an additional register range(address and length)
158c2ecf20Sopenharmony_ci	for fixed framebuffer memory. Useful for dedicated memories.
168c2ecf20Sopenharmony_ci- interrupts : framebuffer controller interrupt
178c2ecf20Sopenharmony_ci- display: a phandle pointing to the display node
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciRequired nodes:
208c2ecf20Sopenharmony_ci- display: a display node is required to initialize the lcd panel
218c2ecf20Sopenharmony_ci	This should be in the board dts.
228c2ecf20Sopenharmony_ci- default-mode: a videomode within the display with timing parameters
238c2ecf20Sopenharmony_ci	as specified below.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciOptional properties:
268c2ecf20Sopenharmony_ci- lcd-supply: Regulator for LCD supply voltage.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciExample:
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	fb0: fb@00500000 {
318c2ecf20Sopenharmony_ci		compatible = "atmel,at91sam9g45-lcdc";
328c2ecf20Sopenharmony_ci		reg = <0x00500000 0x1000>;
338c2ecf20Sopenharmony_ci		interrupts = <23 3 0>;
348c2ecf20Sopenharmony_ci		pinctrl-names = "default";
358c2ecf20Sopenharmony_ci		pinctrl-0 = <&pinctrl_fb>;
368c2ecf20Sopenharmony_ci		display = <&display0>;
378c2ecf20Sopenharmony_ci		#address-cells = <1>;
388c2ecf20Sopenharmony_ci		#size-cells = <1>;
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci	};
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciExample for fixed framebuffer memory:
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci	fb0: fb@00500000 {
458c2ecf20Sopenharmony_ci		compatible = "atmel,at91sam9263-lcdc";
468c2ecf20Sopenharmony_ci		reg = <0x00700000 0x1000 0x70000000 0x200000>;
478c2ecf20Sopenharmony_ci		[...]
488c2ecf20Sopenharmony_ci	};
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciAtmel LCDC Display
518c2ecf20Sopenharmony_ci-----------------------------------------------------
528c2ecf20Sopenharmony_ciRequired properties (as per of_videomode_helper):
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci - atmel,dmacon: dma controller configuration
558c2ecf20Sopenharmony_ci - atmel,lcdcon2: lcd controller configuration
568c2ecf20Sopenharmony_ci - atmel,guard-time: lcd guard time (Delay in frame periods)
578c2ecf20Sopenharmony_ci - bits-per-pixel: lcd panel bit-depth.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciOptional properties (as per of_videomode_helper):
608c2ecf20Sopenharmony_ci - atmel,lcdcon-backlight: enable backlight
618c2ecf20Sopenharmony_ci - atmel,lcdcon-backlight-inverted: invert backlight PWM polarity
628c2ecf20Sopenharmony_ci - atmel,lcd-wiring-mode: lcd wiring mode "RGB" or "BRG"
638c2ecf20Sopenharmony_ci - atmel,power-control-gpio: gpio to power on or off the LCD (as many as needed)
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciExample:
668c2ecf20Sopenharmony_ci	display0: display {
678c2ecf20Sopenharmony_ci		bits-per-pixel = <32>;
688c2ecf20Sopenharmony_ci		atmel,lcdcon-backlight;
698c2ecf20Sopenharmony_ci		atmel,dmacon = <0x1>;
708c2ecf20Sopenharmony_ci		atmel,lcdcon2 = <0x80008002>;
718c2ecf20Sopenharmony_ci		atmel,guard-time = <9>;
728c2ecf20Sopenharmony_ci		atmel,lcd-wiring-mode = <1>;
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci		display-timings {
758c2ecf20Sopenharmony_ci			native-mode = <&timing0>;
768c2ecf20Sopenharmony_ci			timing0: timing0 {
778c2ecf20Sopenharmony_ci				clock-frequency = <9000000>;
788c2ecf20Sopenharmony_ci				hactive = <480>;
798c2ecf20Sopenharmony_ci				vactive = <272>;
808c2ecf20Sopenharmony_ci				hback-porch = <1>;
818c2ecf20Sopenharmony_ci				hfront-porch = <1>;
828c2ecf20Sopenharmony_ci				vback-porch = <40>;
838c2ecf20Sopenharmony_ci				vfront-porch = <1>;
848c2ecf20Sopenharmony_ci				hsync-len = <45>;
858c2ecf20Sopenharmony_ci				vsync-len = <1>;
868c2ecf20Sopenharmony_ci			};
878c2ecf20Sopenharmony_ci		};
888c2ecf20Sopenharmony_ci	};
89