// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /** * DT Overlay for RPi 7inch touchscreen panel interfaced with DSI on * J721E based BeagleBone AI-64 (BBAI-64) platform. * * BBAI-64: https://www.beagleboard.org/boards/beaglebone-ai-64 * RPi DSI Panel: https://www.raspberrypi.com/products/raspberry-pi-touch-display/ * * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ */ /dts-v1/; /plugin/; #include #include #include "k3-pinctrl.h" &{/} { bridge_reg: bridge-regulator { compatible = "regulator-fixed"; regulator-name = "bridge-reg"; gpio = <&display_reg 0 0>; vin-supply = <&display_reg>; enable-active-high; }; panel0 { compatible = "raspberrypi,7inch-dsi", "simple-panel"; backlight = <&display_reg>; power-supply = <&display_reg>; port { panel_in: endpoint { remote-endpoint = <&panel_bridge_out>; }; }; }; }; &main_pmx0 { dsi_main_i2c4_pins: dsi-main-i2c4-pins { pinctrl-single,pins = < J721E_IOPAD(0xa8, PIN_INPUT_PULLUP, 2) /* (AD19) PRG1_MDIO0_MDIO.I2C4_SCL */ J721E_IOPAD(0xac, PIN_INPUT_PULLUP, 2) /* (AD18) PRG1_MDIO0_MDC.I2C4_SDA */ >; }; }; &main_i2c4 { clock-frequency = <400000>; pinctrl-names = "default"; pinctrl-0 = <&dsi_main_i2c4_pins>; #address-cells = <1>; #size-cells = <0>; display_reg: regulator@45 { compatible = "raspberrypi,7inch-touchscreen-panel-regulator"; reg = <0x45>; gpio-controller; #gpio-cells = <2>; }; touch-controller@38 { compatible = "edt,edt-ft5406"; reg = <0x38>; touchscreen-size-x = < 800 >; touchscreen-size-y = < 480 >; vcc-supply = <&display_reg>; reset-gpio = <&display_reg 1 1>; touchscreen-inverted-x; touchscreen-inverted-y; }; }; &dss_ports { #address-cells = <1>; #size-cells = <0>; port@2 { reg = <2>; dpi2_out: endpoint { remote-endpoint = <&dsi0_in>; }; }; }; &dphy2 { status = "okay"; }; &dsi0 { status = "okay"; #address-cells = <1>; #size-cells = <0>; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; dsi0_out: endpoint { remote-endpoint = <&panel_bridge_in>; }; }; port@1 { reg = <1>; dsi0_in: endpoint { remote-endpoint = <&dpi2_out>; }; }; }; bridge@0 { compatible = "toshiba,tc358762"; reg = <0>; vddc-supply = <&bridge_reg>; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; panel_bridge_in: endpoint { remote-endpoint = <&dsi0_out>; }; }; port@1 { reg = <1>; panel_bridge_out: endpoint { remote-endpoint = <&panel_in>; }; }; }; }; };