Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Google Trogdor dts fragment for the boards with TI sn65dsi86 edp bridge
0004  *
0005  * Copyright 2021 Google LLC.
0006  */
0007 
0008 #include <dt-bindings/gpio/gpio.h>
0009 
0010 &dsi0_out {
0011         remote-endpoint = <&sn65dsi86_in>;
0012 };
0013 
0014 edp_brij_i2c: &i2c2 {
0015         status = "okay";
0016         clock-frequency = <400000>;
0017 
0018         sn65dsi86_bridge: bridge@2d {
0019                 compatible = "ti,sn65dsi86";
0020                 reg = <0x2d>;
0021                 pinctrl-names = "default";
0022                 pinctrl-0 = <&edp_brij_en>, <&edp_brij_irq>;
0023                 gpio-controller;
0024                 #gpio-cells = <2>;
0025 
0026                 interrupt-parent = <&tlmm>;
0027                 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
0028 
0029                 enable-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>;
0030 
0031                 vpll-supply = <&pp1800_edp_vpll>;
0032                 vccio-supply = <&pp1800_brij_vccio>;
0033                 vcca-supply = <&pp1200_brij>;
0034                 vcc-supply = <&pp1200_brij>;
0035 
0036                 clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
0037                 clock-names = "refclk";
0038 
0039                 no-hpd;
0040 
0041                 ports {
0042                         #address-cells = <1>;
0043                         #size-cells = <0>;
0044 
0045                         port@0 {
0046                                 reg = <0>;
0047                                 sn65dsi86_in: endpoint {
0048                                         remote-endpoint = <&dsi0_out>;
0049                                 };
0050                         };
0051 
0052                         port@1 {
0053                                 reg = <1>;
0054                                 sn65dsi86_out: endpoint {
0055                                         data-lanes = <0 1>;
0056                                         remote-endpoint = <&panel_in_edp>;
0057                                 };
0058                         };
0059                 };
0060 
0061                 aux-bus {
0062                         panel: panel {
0063                                 /* Compatible will be filled in per-board */
0064                                 power-supply = <&pp3300_dx_edp>;
0065                                 backlight = <&backlight>;
0066                                 hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>;
0067 
0068                                 port {
0069                                         panel_in_edp: endpoint {
0070                                                 remote-endpoint = <&sn65dsi86_out>;
0071                                         };
0072                                 };
0073                         };
0074                 };
0075         };
0076 };
0077 
0078 &tlmm {
0079         edp_brij_irq: edp-brij-irq {
0080                 pinmux {
0081                         pins = "gpio11";
0082                         function = "gpio";
0083                 };
0084 
0085                 pinconf {
0086                         pins = "gpio11";
0087                         drive-strength = <2>;
0088                         bias-pull-down;
0089                 };
0090         };
0091 };