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