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