1// SPDX-License-Identifier: GPL-2.0
2/*
3 * at91-dvk_su60_somc_lcm.dtsi - Device Tree file for the DVK SOM60 LCD board
4 *
5 *  Copyright (C) 2018 Laird,
6 *		  2018 Ben Whitten <ben.whitten@lairdtech.com>
7 *
8 */
9
10/ {
11	backlight: backlight {
12		compatible = "pwm-backlight";
13		pwms = <&hlcdc_pwm 0 50000 0>;
14		brightness-levels = <0 4 8 16 32 64 128 255>;
15		default-brightness-level = <6>;
16		status = "okay";
17	};
18
19	panel: panel {
20		compatible = "winstar,wf70gtiagdng0", "innolux,at070tn92";
21		backlight = <&backlight>;
22		power-supply = <&vcc_lcd_reg>;
23		#address-cells = <1>;
24		#size-cells = <0>;
25		status = "okay";
26
27		port@0 {
28			#address-cells = <1>;
29			#size-cells = <0>;
30			reg = <0>;
31
32			panel_input: endpoint@0 {
33				reg = <0>;
34				remote-endpoint = <&hlcdc_panel_output>;
35			};
36		};
37	};
38
39	vcc_lcd_reg: fixedregulator_lcd {
40		compatible = "regulator-fixed";
41		regulator-name = "VCC LCM";
42		regulator-min-microvolt = <5000000>;
43		regulator-max-microvolt = <5000000>;
44		regulator-boot-on;
45		regulator-always-on;
46		status = "okay";
47	};
48};
49
50&pinctrl {
51	board {
52		pinctrl_lcd_ctp_int: lcd_ctp_int {
53			 atmel,pins =
54				 <AT91_PIOC 28 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
55		};
56	};
57};
58
59&i2c1 {
60	status = "okay";
61
62	ft5426@38 {
63		compatible = "focaltech,ft5426", "edt,edt-ft5406";
64		reg = <0x38>;
65		pinctrl-names = "default";
66		pinctrl-0 = <&pinctrl_lcd_ctp_int>;
67
68		interrupt-parent = <&pioC>;
69		interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
70
71		touchscreen-size-x = <800>;
72		touchscreen-size-y = <480>;
73	};
74};
75
76&hlcdc {
77	status = "okay";
78
79	hlcdc-display-controller {
80		pinctrl-names = "default";
81		pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888>;
82
83		port@0 {
84			hlcdc_panel_output: endpoint@0 {
85				reg = <0>;
86				remote-endpoint = <&panel_input>;
87			};
88		};
89	};
90};
91