Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-am654-base-board-rocktech-rk101-panel.dtso

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