summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/ti/omap/am57xx-evm.dtso
blob: 12385a31061e94bd98e5cf52673955cc6d37637e (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// SPDX-License-Identifier: GPL-2.0
/*
 * DT overlay for AM57xx GP EVM boards
 *
 * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
 */

/dts-v1/;
/plugin/;

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

&{/} {
	compatible = "ti,am5728-evm", "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
	model = "TI AM5728 EVM";

	aliases {
		display0 = "/display";
		display1 = "/connector"; // Fixme: &lcd0 and &hdmi0 could be
					 // resolved here correcly based on
					 // information in the base dtb symbol
					 // table with a fix in dtc
	};

	gpio-keys {
		compatible = "gpio-keys";

		button-user1 {
			gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
			label = "USER1";
			linux,code = <BTN_1>;
		};

		button-user2 {
			gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
			label = "USER2";
			linux,code = <BTN_2>;
		};

		button-user3 {
			gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
			label = "USER3";
			linux,code = <BTN_3>;
		};

		button-user4 {
			gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
			label = "USER4";
			linux,code = <BTN_4>;
		};

		button-user5 {
			gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
			label = "USER5";
			linux,code = <BTN_5>;
		};
	};

	lcd0: display {
		compatible = "osddisplays,osd070t1718-19ts", "panel-dpi";
		backlight = <&lcd_bl>;
		enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
		label = "lcd";

		port {
			lcd_in: endpoint {
				remote-endpoint = <&dpi_out>;
			};
		};
	};

	lcd_bl: backlight {
		compatible = "pwm-backlight";
		brightness-levels = <0 243 245 247 249 251 252 253 255>;
		default-brightness-level = <8>;
		pwms = <&ehrpwm1 0 50000 0>;
	};
};

&ehrpwm1 {
	status = "okay";
};

&epwmss1 {
	status = "okay";
};

&i2c5 {
	status = "okay";
	clock-frequency = <400000>;

	#address-cells = <1>;
	#size-cells = <0>;

	touchscreen@5c {
		compatible = "pixcir,pixcir_tangoc";
		attb-gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>;
		interrupt-parent = <&gpio2>;
		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
		reg = <0x5c>;
		reset-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
		touchscreen-size-x = <1024>;
		touchscreen-size-y = <600>;
	};
};

&uart8 {
	status = "okay";
};

&dss {
	ports {
		#address-cells = <1>;
		#size-cells = <0>;

		port@0 {
			reg = <0>;

			dpi_out: endpoint {
				data-lines = <24>;
				remote-endpoint = <&lcd_in>;
			};
		};
	};
};