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