xref: /linux/arch/arm64/boot/dts/ti/k3-am654-base-board-rocktech-rk101-panel.dtso (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1*2822c791SNishanth Menon// SPDX-License-Identifier: GPL-2.0-only OR MIT
2b8690ed3SJyri Sarha/**
3b8690ed3SJyri Sarha * OLDI-LCD1EVM Rocktech integrated panel and touch DT overlay for AM654-EVM.
4b8690ed3SJyri Sarha * Panel Link: https://www.digimax.it/en/tft-lcd/20881-RK101II01D-CT
5b8690ed3SJyri Sarha * AM654 LCD EVM: https://www.ti.com/tool/TMDSLCD1EVM
6b8690ed3SJyri Sarha *
7*2822c791SNishanth Menon * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
8b8690ed3SJyri Sarha */
9b8690ed3SJyri Sarha
10b8690ed3SJyri Sarha/dts-v1/;
11b8690ed3SJyri Sarha/plugin/;
12b8690ed3SJyri Sarha
13b8690ed3SJyri Sarha#include <dt-bindings/pwm/pwm.h>
14b8690ed3SJyri Sarha#include <dt-bindings/gpio/gpio.h>
15b8690ed3SJyri Sarha#include <dt-bindings/interrupt-controller/irq.h>
16b8690ed3SJyri Sarha
17b8690ed3SJyri Sarha&{/} {
18b8690ed3SJyri Sarha	display0 {
19b8690ed3SJyri Sarha		compatible = "rocktech,rk101ii01d-ct";
20b8690ed3SJyri Sarha		backlight = <&lcd_bl>;
21b8690ed3SJyri Sarha		enable-gpios = <&pca9555 8 GPIO_ACTIVE_HIGH>;
22b8690ed3SJyri Sarha		port {
23b8690ed3SJyri Sarha			lcd_in0: endpoint {
24b8690ed3SJyri Sarha				remote-endpoint = <&oldi_out0>;
25b8690ed3SJyri Sarha			};
26b8690ed3SJyri Sarha		};
27b8690ed3SJyri Sarha	};
28b8690ed3SJyri Sarha
29b8690ed3SJyri Sarha	lcd_bl: backlight {
30b8690ed3SJyri Sarha		compatible = "pwm-backlight";
31b8690ed3SJyri Sarha		pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
32b8690ed3SJyri Sarha		brightness-levels =
33b8690ed3SJyri Sarha			<0 32 64 96 128 160 192 224 255>;
34b8690ed3SJyri Sarha		default-brightness-level = <8>;
35b8690ed3SJyri Sarha	};
36b8690ed3SJyri Sarha};
37b8690ed3SJyri Sarha
38b8690ed3SJyri Sarha&dss {
39b8690ed3SJyri Sarha	status = "okay";
40b8690ed3SJyri Sarha};
41b8690ed3SJyri Sarha
42b8690ed3SJyri Sarha&dss_ports {
43b8690ed3SJyri Sarha	#address-cells = <1>;
44b8690ed3SJyri Sarha	#size-cells = <0>;
45b8690ed3SJyri Sarha
46b8690ed3SJyri Sarha	port@0 {
47b8690ed3SJyri Sarha		reg = <0>;
48b8690ed3SJyri Sarha
49b8690ed3SJyri Sarha		oldi_out0: endpoint {
50b8690ed3SJyri Sarha			remote-endpoint = <&lcd_in0>;
51b8690ed3SJyri Sarha		};
52b8690ed3SJyri Sarha	};
53b8690ed3SJyri Sarha};
54b8690ed3SJyri Sarha
55b8690ed3SJyri Sarha&main_i2c1 {
56b8690ed3SJyri Sarha	#address-cells = <1>;
57b8690ed3SJyri Sarha	#size-cells = <0>;
58b8690ed3SJyri Sarha
59b8690ed3SJyri Sarha	touchscreen@14 {
60b8690ed3SJyri Sarha		compatible = "goodix,gt928";
61b8690ed3SJyri Sarha		reg = <0x14>;
62b8690ed3SJyri Sarha
63b8690ed3SJyri Sarha		interrupt-parent = <&pca9554>;
64b8690ed3SJyri Sarha		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
65b8690ed3SJyri Sarha		touchscreen-size-x = <1280>;
66b8690ed3SJyri Sarha		touchscreen-size-y = <800>;
67b8690ed3SJyri Sarha
68b8690ed3SJyri Sarha		reset-gpios = <&pca9555 9 GPIO_ACTIVE_HIGH>;
69b8690ed3SJyri Sarha		irq-gpios = <&pca9554 3 GPIO_ACTIVE_HIGH>;
70b8690ed3SJyri Sarha	};
71b8690ed3SJyri Sarha};
72