blob: 12385a31061e94bd98e5cf52673955cc6d37637e [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * DT overlay for AM57xx GP EVM boards
4 *
5 * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
6 */
7
8/dts-v1/;
9/plugin/;
10
11#include <dt-bindings/interrupt-controller/irq.h>
12#include <dt-bindings/gpio/gpio.h>
13#include <dt-bindings/input/input.h>
14
15&{/} {
16 compatible = "ti,am5728-evm", "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
17 model = "TI AM5728 EVM";
18
19 aliases {
20 display0 = "/display";
21 display1 = "/connector"; // Fixme: &lcd0 and &hdmi0 could be
22 // resolved here correcly based on
23 // information in the base dtb symbol
24 // table with a fix in dtc
25 };
26
27 gpio-keys {
28 compatible = "gpio-keys";
29
30 button-user1 {
31 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
32 label = "USER1";
33 linux,code = <BTN_1>;
34 };
35
36 button-user2 {
37 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
38 label = "USER2";
39 linux,code = <BTN_2>;
40 };
41
42 button-user3 {
43 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
44 label = "USER3";
45 linux,code = <BTN_3>;
46 };
47
48 button-user4 {
49 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
50 label = "USER4";
51 linux,code = <BTN_4>;
52 };
53
54 button-user5 {
55 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
56 label = "USER5";
57 linux,code = <BTN_5>;
58 };
59 };
60
61 lcd0: display {
62 compatible = "osddisplays,osd070t1718-19ts", "panel-dpi";
63 backlight = <&lcd_bl>;
64 enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
65 label = "lcd";
66
67 port {
68 lcd_in: endpoint {
69 remote-endpoint = <&dpi_out>;
70 };
71 };
72 };
73
74 lcd_bl: backlight {
75 compatible = "pwm-backlight";
76 brightness-levels = <0 243 245 247 249 251 252 253 255>;
77 default-brightness-level = <8>;
78 pwms = <&ehrpwm1 0 50000 0>;
79 };
80};
81
82&ehrpwm1 {
83 status = "okay";
84};
85
86&epwmss1 {
87 status = "okay";
88};
89
90&i2c5 {
91 status = "okay";
92 clock-frequency = <400000>;
93
94 #address-cells = <1>;
95 #size-cells = <0>;
96
97 touchscreen@5c {
98 compatible = "pixcir,pixcir_tangoc";
99 attb-gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>;
100 interrupt-parent = <&gpio2>;
101 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
102 reg = <0x5c>;
103 reset-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
104 touchscreen-size-x = <1024>;
105 touchscreen-size-y = <600>;
106 };
107};
108
109&uart8 {
110 status = "okay";
111};
112
113&dss {
114 ports {
115 #address-cells = <1>;
116 #size-cells = <0>;
117
118 port@0 {
119 reg = <0>;
120
121 dpi_out: endpoint {
122 data-lines = <24>;
123 remote-endpoint = <&lcd_in>;
124 };
125 };
126 };
127};