aboutsummaryrefslogtreecommitdiffstats
blob: c928be92c1acd2442c8bfbf7da8e5b0a4a651b73 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

/ {
	backlight {
		compatible = "led-backlight";
		leds = <&backlight_led>;
		brightness-levels = <0 2 38 74 110 146 182 218 255>;
		default-brightness-level = <8>;

		enable-gpios = <&pcf_display_board 0 GPIO_ACTIVE_LOW>;
	};

	lcd_fpd: display {
		compatible = "auo,g101evn01.0", "panel-dpi";

		label = "lcd_fpd";
		status = "disabled";

		panel-timing {
			clock-frequency = <68930000>;
			hactive = <1280>;
			vactive = <800>;

			hfront-porch = <48>;
			hsync-len = <32>;
			hback-porch = <48>;

			vfront-porch = <4>;
			vsync-len = <4>;
			vback-porch = <8>;

			hsync-active = <0>;
			vsync-active = <0>;
			de-active = <1>;
			pixelclk-active = <1>;
		};

		port {
			fpd_in: endpoint {
			};
		};
	};
};

&disp_ser {

	/*
	* 0x2c - deserializer
	* 0x40 - TLC59108
	* 0x27 - PCF8575
	* 0x57 - EEPROM
	* 0x14 - Goodix Touch Controller
	* 0x28 - RF430CL330H
	*/

	disp_des: deserializer@2c {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "ti,ds90ub924q";
		reg = <0x2c>;
		slave-mode;
	};

	/* TLC chip for LCD panel power and backlight */
	fpd_disp: tlc59108@40 {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "ti,tlc59108";
		reg = <0x40>;

		backlight_led: bl@2 {
			label = "backlight";
			reg = <0x2>;
		};
	};

	pcf_display_board: gpio@27 {
		compatible = "nxp,pcf8575";
		reg = <0x27>;
		gpio-controller;
		#gpio-cells = <2>;
	};

	touchscreen: goodix-gt9271@14 {
		status = "okay";
		compatible = "goodix,gt9271";
		reg = <0x14>;

		touchscreen-size-x = <1280>;
		touchscreen-size-y = <800>;
		touchscreen-inverted-y;

		/* Reset gpio line is inverted before going to touch panel */
		reset-gpios = <&pcf_display_board 5 GPIO_ACTIVE_LOW>;
		irq-gpios = <&pcf_display_board 6 GPIO_ACTIVE_HIGH>;
	};

	/* Below two slaves on the I2C bus are not yet defined */
	/* ID EEPROM 0x57 */
	/* RF430CL330H 0x28 */
};