xref: /openbmc/linux/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
14537977aSPhilip Chen// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
24537977aSPhilip Chen/*
34537977aSPhilip Chen * Google Trogdor dts fragment for the boards with TI sn65dsi86 edp bridge
44537977aSPhilip Chen *
54537977aSPhilip Chen * Copyright 2021 Google LLC.
64537977aSPhilip Chen */
74537977aSPhilip Chen
8963070f7SPhilip Chen#include <dt-bindings/gpio/gpio.h>
9963070f7SPhilip Chen
10f5b4811eSDouglas Anderson/*
11f5b4811eSDouglas Anderson * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES
12f5b4811eSDouglas Anderson *
13f5b4811eSDouglas Anderson * Sort order matches the order in the parent files (parents before children).
14f5b4811eSDouglas Anderson */
15f5b4811eSDouglas Anderson
16f5b4811eSDouglas Anderson&pp3300_dx_edp {
17f5b4811eSDouglas Anderson	off-on-delay-us = <500000>;
1823ff8669SDouglas Anderson
1923ff8669SDouglas Anderson	/*
2023ff8669SDouglas Anderson	 * It's nicer to start with this regulator enabled. The
2123ff8669SDouglas Anderson	 * bootloader may have left it on and it's nice not to cause an
2223ff8669SDouglas Anderson	 * extra power cycle of the touchscreen and eDP panel at bootup.
2323ff8669SDouglas Anderson	 * This should help speed bootup because we have off-on-delay-us.
2423ff8669SDouglas Anderson	 */
2523ff8669SDouglas Anderson	regulator-boot-on;
26f5b4811eSDouglas Anderson};
27f5b4811eSDouglas Anderson
28f5b4811eSDouglas Anderson/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
29f5b4811eSDouglas Anderson
304537977aSPhilip Chenedp_brij_i2c: &i2c2 {
314537977aSPhilip Chen	status = "okay";
324537977aSPhilip Chen	clock-frequency = <400000>;
334537977aSPhilip Chen
344537977aSPhilip Chen	sn65dsi86_bridge: bridge@2d {
354537977aSPhilip Chen		compatible = "ti,sn65dsi86";
364537977aSPhilip Chen		reg = <0x2d>;
374537977aSPhilip Chen		pinctrl-names = "default";
384537977aSPhilip Chen		pinctrl-0 = <&edp_brij_en>, <&edp_brij_irq>;
394537977aSPhilip Chen		gpio-controller;
404537977aSPhilip Chen		#gpio-cells = <2>;
414537977aSPhilip Chen
424537977aSPhilip Chen		interrupt-parent = <&tlmm>;
434537977aSPhilip Chen		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
444537977aSPhilip Chen
454537977aSPhilip Chen		enable-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>;
464537977aSPhilip Chen
474537977aSPhilip Chen		vpll-supply = <&pp1800_edp_vpll>;
484537977aSPhilip Chen		vccio-supply = <&pp1800_brij_vccio>;
494537977aSPhilip Chen		vcca-supply = <&pp1200_brij>;
504537977aSPhilip Chen		vcc-supply = <&pp1200_brij>;
514537977aSPhilip Chen
524537977aSPhilip Chen		clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
534537977aSPhilip Chen		clock-names = "refclk";
544537977aSPhilip Chen
554537977aSPhilip Chen		no-hpd;
564537977aSPhilip Chen
574537977aSPhilip Chen		ports {
584537977aSPhilip Chen			#address-cells = <1>;
594537977aSPhilip Chen			#size-cells = <0>;
604537977aSPhilip Chen
614537977aSPhilip Chen			port@0 {
624537977aSPhilip Chen				reg = <0>;
634537977aSPhilip Chen				sn65dsi86_in: endpoint {
64*2b616f86SDmitry Baryshkov					remote-endpoint = <&mdss_dsi0_out>;
654537977aSPhilip Chen				};
664537977aSPhilip Chen			};
674537977aSPhilip Chen
684537977aSPhilip Chen			port@1 {
694537977aSPhilip Chen				reg = <1>;
704537977aSPhilip Chen				sn65dsi86_out: endpoint {
714537977aSPhilip Chen					data-lanes = <0 1>;
724537977aSPhilip Chen					remote-endpoint = <&panel_in_edp>;
734537977aSPhilip Chen				};
744537977aSPhilip Chen			};
754537977aSPhilip Chen		};
764537977aSPhilip Chen
774537977aSPhilip Chen		aux-bus {
784537977aSPhilip Chen			panel: panel {
794537977aSPhilip Chen				/* Compatible will be filled in per-board */
804537977aSPhilip Chen				power-supply = <&pp3300_dx_edp>;
814537977aSPhilip Chen				backlight = <&backlight>;
824537977aSPhilip Chen				hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>;
834537977aSPhilip Chen
844537977aSPhilip Chen				port {
854537977aSPhilip Chen					panel_in_edp: endpoint {
864537977aSPhilip Chen						remote-endpoint = <&sn65dsi86_out>;
874537977aSPhilip Chen					};
884537977aSPhilip Chen				};
894537977aSPhilip Chen			};
904537977aSPhilip Chen		};
914537977aSPhilip Chen	};
924537977aSPhilip Chen};
934537977aSPhilip Chen
94*2b616f86SDmitry Baryshkov&mdss_dsi0_out {
95*2b616f86SDmitry Baryshkov	remote-endpoint = <&sn65dsi86_in>;
96*2b616f86SDmitry Baryshkov};
97*2b616f86SDmitry Baryshkov
984537977aSPhilip Chen&tlmm {
992f0300a6SKrzysztof Kozlowski	edp_brij_irq: edp-brij-irq-state {
1004537977aSPhilip Chen		pins = "gpio11";
1014537977aSPhilip Chen		function = "gpio";
1024537977aSPhilip Chen		drive-strength = <2>;
1034537977aSPhilip Chen		bias-pull-down;
1044537977aSPhilip Chen	};
1054537977aSPhilip Chen};
106