1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2/* 3 * Copyright (C) 2021 Marek Vasut 4 */ 5#include <dt-bindings/gpio/gpio.h> 6 7&{/} { 8 panel { 9 compatible = "powertip,ph800480t013-idf02"; 10 backlight = <&attiny>; 11 power-supply = <&attiny>; 12 13 port { 14 panel_in: endpoint { 15 remote-endpoint = <&bridge_out>; 16 }; 17 }; 18 }; 19}; 20 21&attiny { 22 compatible = "raspberrypi,7inch-touchscreen-panel-regulator"; 23 gpio-controller; 24 #gpio-cells = <2>; 25 reg = <0x45>; 26}; 27 28&dsi { 29 #address-cells = <1>; 30 #size-cells = <0>; 31 32 phy-dsi-supply = <®18>; 33 status = "okay"; 34 35 bridge@0 { 36 compatible = "toshiba,tc358762"; 37 reg = <0>; 38 reset-gpios = <&attiny 0 GPIO_ACTIVE_HIGH>; 39 vddc-supply = <&attiny>; 40 status = "okay"; 41 42 ports { 43 #address-cells = <1>; 44 #size-cells = <0>; 45 46 port@0 { 47 reg = <0>; 48 bridge_in: endpoint { 49 remote-endpoint = <&dsi_out>; 50 }; 51 }; 52 53 port@1 { 54 reg = <1>; 55 bridge_out: endpoint { 56 remote-endpoint = <&panel_in>; 57 }; 58 }; 59 }; 60 }; 61 62 ports { 63 #address-cells = <1>; 64 #size-cells = <0>; 65 66 port@0 { 67 reg = <0>; 68 dsi_in: endpoint { 69 remote-endpoint = <<dc_ep_out>; 70 }; 71 }; 72 73 port@1 { 74 reg = <1>; 75 dsi_out: endpoint { 76 remote-endpoint = <&bridge_in>; 77 }; 78 }; 79 }; 80}; 81 82&touchscreen { 83 compatible = "edt,edt-ft5406"; 84 reg = <0x38>; 85 reset-gpios = <&attiny 1 GPIO_ACTIVE_LOW>; 86 /* 87 * Disabled, since the IRQ line is not on 88 * the FPC cable, so we cannot get touch 89 * IRQs unless its connected otherwise. In 90 * that case, add entry like this one and 91 * enable below. 92 * 93 * interrupt-parent = <&gpiog>; 94 * interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 95 */ 96 status = "disabled"; 97}; 98