xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
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#include <dt-bindings/gpio/gpio.h>
9
10&dsi0_out {
11	remote-endpoint = <&sn65dsi86_in>;
12};
13
14edp_brij_i2c: &i2c2 {
15	status = "okay";
16	clock-frequency = <400000>;
17
18	sn65dsi86_bridge: bridge@2d {
19		compatible = "ti,sn65dsi86";
20		reg = <0x2d>;
21		pinctrl-names = "default";
22		pinctrl-0 = <&edp_brij_en>, <&edp_brij_irq>;
23		gpio-controller;
24		#gpio-cells = <2>;
25
26		interrupt-parent = <&tlmm>;
27		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
28
29		enable-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>;
30
31		vpll-supply = <&pp1800_edp_vpll>;
32		vccio-supply = <&pp1800_brij_vccio>;
33		vcca-supply = <&pp1200_brij>;
34		vcc-supply = <&pp1200_brij>;
35
36		clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
37		clock-names = "refclk";
38
39		no-hpd;
40
41		ports {
42			#address-cells = <1>;
43			#size-cells = <0>;
44
45			port@0 {
46				reg = <0>;
47				sn65dsi86_in: endpoint {
48					remote-endpoint = <&dsi0_out>;
49				};
50			};
51
52			port@1 {
53				reg = <1>;
54				sn65dsi86_out: endpoint {
55					data-lanes = <0 1>;
56					remote-endpoint = <&panel_in_edp>;
57				};
58			};
59		};
60
61		aux-bus {
62			panel: panel {
63				/* Compatible will be filled in per-board */
64				power-supply = <&pp3300_dx_edp>;
65				backlight = <&backlight>;
66				hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>;
67
68				port {
69					panel_in_edp: endpoint {
70						remote-endpoint = <&sn65dsi86_out>;
71					};
72				};
73			};
74		};
75	};
76};
77
78&tlmm {
79	edp_brij_irq: edp-brij-irq {
80		pinmux {
81			pins = "gpio11";
82			function = "gpio";
83		};
84
85		pinconf {
86			pins = "gpio11";
87			drive-strength = <2>;
88			bias-pull-down;
89		};
90	};
91};
92