aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/wm8850-w70v2.dts
blob: fcc660c89540b9db811f68519d2c4c20c54c9a0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * wm8850-w70v2.dts
 *  - Device tree file for Wondermedia WM8850 Tablet
 *  - 'W70-V2' mainboard
 *  - HongLianYing 'HLY070ML268-21A' 7" LCD panel
 *
 * Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz>
 *
 * Licensed under GPLv2 or later
 */

/dts-v1/;
/include/ "wm8850.dtsi"

/ {
	model = "Wondermedia WM8850-W70v2 Tablet";

	/*
	 * Display node is based on Sascha Hauer's patch on dri-devel.
	 * Added a bpp property to calculate the size of the framebuffer
	 * until the binding is formalized.
	 */
	display: display@0 {
		modes {
			mode0: mode@0 {
				hactive = <800>;
				vactive = <480>;
				hback-porch = <88>;
				hfront-porch = <40>;
				hsync-len = <0>;
				vback-porch = <32>;
				vfront-porch = <11>;
				vsync-len = <1>;
				clock = <0>;	/* unused but required */
				bpp = <16>;	/* non-standard but required */
			};
		};
	};

	backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm 0 50000 1>;	/* duty inverted */

		brightness-levels = <0 40 60 80 100 130 190 255>;
		default-brightness-level = <5>;
	};
};