1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google Trogdor dts fragment for the boards with TI sn65dsi86 edp bridge
4 *
5 * Copyright 2021 Google LLC.
6 */
7
8&dsi0_out {
9	remote-endpoint = <&sn65dsi86_in>;
10	data-lanes = <0 1 2 3>;
11};
12
13edp_brij_i2c: &i2c2 {
14	status = "okay";
15	clock-frequency = <400000>;
16
17	sn65dsi86_bridge: bridge@2d {
18		compatible = "ti,sn65dsi86";
19		reg = <0x2d>;
20		pinctrl-names = "default";
21		pinctrl-0 = <&edp_brij_en>, <&edp_brij_irq>;
22		gpio-controller;
23		#gpio-cells = <2>;
24
25		interrupt-parent = <&tlmm>;
26		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
27
28		enable-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>;
29
30		vpll-supply = <&pp1800_edp_vpll>;
31		vccio-supply = <&pp1800_brij_vccio>;
32		vcca-supply = <&pp1200_brij>;
33		vcc-supply = <&pp1200_brij>;
34
35		clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
36		clock-names = "refclk";
37
38		no-hpd;
39
40		ports {
41			#address-cells = <1>;
42			#size-cells = <0>;
43
44			port@0 {
45				reg = <0>;
46				sn65dsi86_in: endpoint {
47					remote-endpoint = <&dsi0_out>;
48				};
49			};
50
51			port@1 {
52				reg = <1>;
53				sn65dsi86_out: endpoint {
54					data-lanes = <0 1>;
55					remote-endpoint = <&panel_in_edp>;
56				};
57			};
58		};
59
60		aux-bus {
61			panel: panel {
62				/* Compatible will be filled in per-board */
63				power-supply = <&pp3300_dx_edp>;
64				backlight = <&backlight>;
65				hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>;
66
67				port {
68					panel_in_edp: endpoint {
69						remote-endpoint = <&sn65dsi86_out>;
70					};
71				};
72			};
73		};
74	};
75};
76
77&tlmm {
78	edp_brij_irq: edp-brij-irq {
79		pinmux {
80			pins = "gpio11";
81			function = "gpio";
82		};
83
84		pinconf {
85			pins = "gpio11";
86			drive-strength = <2>;
87			bias-pull-down;
88		};
89	};
90};
91