summaryrefslogtreecommitdiffstats
path: root/dts/src/arm/at91-dvk_su60_somc_lcm.dtsi
blob: bea920b192b659b6be417e948c1e6f3e5a2b9bde (plain)
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
// SPDX-License-Identifier: GPL-2.0
/*
 * at91-dvk_su60_somc_lcm.dtsi - Device Tree file for the DVK SOM60 LCD board
 *
 *  Copyright (C) 2018 Laird,
 *		  2018 Ben Whitten <ben.whitten@lairdtech.com>
 *
 */

/ {
	backlight: backlight {
		compatible = "pwm-backlight";
		pwms = <&hlcdc_pwm 0 50000 0>;
		brightness-levels = <0 4 8 16 32 64 128 255>;
		default-brightness-level = <6>;
		status = "okay";
	};

	panel: panel {
		compatible = "winstar,wf70gtiagdng0", "innolux,at070tn92";
		backlight = <&backlight>;
		power-supply = <&vcc_lcd_reg>;
		#address-cells = <1>;
		#size-cells = <0>;
		status = "okay";

		port@0 {
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0>;

			panel_input: endpoint@0 {
				reg = <0>;
				remote-endpoint = <&hlcdc_panel_output>;
			};
		};
	};

	vcc_lcd_reg: fixedregulator_lcd {
		compatible = "regulator-fixed";
		regulator-name = "VCC LCM";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		regulator-boot-on;
		regulator-always-on;
		status = "okay";
	};
};

&pinctrl {
	board {
		pinctrl_lcd_ctp_int: lcd_ctp_int {
			 atmel,pins =
				 <AT91_PIOC 28 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
		};
	};
};

&i2c1 {
	status = "okay";

	ft5426@38 {
		compatible = "focaltech,ft5426", "edt,edt-ft5406";
		reg = <0x38>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_lcd_ctp_int>;

		interrupt-parent = <&pioC>;
		interrupts = <28 IRQ_TYPE_EDGE_FALLING>;

		touchscreen-size-x = <800>;
		touchscreen-size-y = <480>;
	};
};

&hlcdc {
	status = "okay";

	hlcdc-display-controller {
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888>;

		port@0 {
			hlcdc_panel_output: endpoint@0 {
				reg = <0>;
				remote-endpoint = <&panel_input>;
			};
		};
	};
};