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 Parade ps8640 edp bridge
0004  *
0005  * Copyright 2021 Google LLC.
0006  */
0007 
0008 #include <dt-bindings/gpio/gpio.h>
0009 
0010 / {
0011         pp3300_brij_ps8640: pp3300-brij-ps8640 {
0012                 compatible = "regulator-fixed";
0013                 status = "okay";
0014                 regulator-name = "pp3300_brij_ps8640";
0015 
0016                 regulator-min-microvolt = <3300000>;
0017                 regulator-max-microvolt = <3300000>;
0018 
0019                 gpio = <&tlmm 32 GPIO_ACTIVE_HIGH>;
0020                 enable-active-high;
0021 
0022                 pinctrl-names = "default";
0023                 pinctrl-0 = <&en_pp3300_edp_brij_ps8640>;
0024 
0025                 vin-supply = <&pp3300_a>;
0026         };
0027 };
0028 
0029 &dsi0_out {
0030         remote-endpoint = <&ps8640_in>;
0031 };
0032 
0033 edp_brij_i2c: &i2c2 {
0034         status = "okay";
0035         clock-frequency = <400000>;
0036 
0037         ps8640_bridge: bridge@8 {
0038                 compatible = "parade,ps8640";
0039                 reg = <0x8>;
0040 
0041                 powerdown-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>;
0042                 reset-gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
0043 
0044                 pinctrl-names = "default";
0045                 pinctrl-0 = <&edp_brij_en>, <&edp_brij_ps8640_rst>;
0046 
0047                 vdd12-supply = <&pp1200_brij>;
0048                 vdd33-supply = <&pp3300_brij_ps8640>;
0049 
0050                 ports {
0051                         #address-cells = <1>;
0052                         #size-cells = <0>;
0053 
0054                         port@0 {
0055                                 reg = <0>;
0056                                 ps8640_in: endpoint {
0057                                         remote-endpoint = <&dsi0_out>;
0058                                 };
0059                         };
0060 
0061                         port@1 {
0062                                 reg = <1>;
0063                                 ps8640_out: endpoint {
0064                                         remote-endpoint = <&panel_in_edp>;
0065                                 };
0066                         };
0067                 };
0068 
0069                 aux-bus {
0070                         panel: panel {
0071                                 /* Compatible will be filled in per-board */
0072                                 power-supply = <&pp3300_dx_edp>;
0073                                 backlight = <&backlight>;
0074 
0075                                 port {
0076                                         panel_in_edp: endpoint {
0077                                                 remote-endpoint = <&ps8640_out>;
0078                                         };
0079                                 };
0080                         };
0081                 };
0082         };
0083 };
0084 
0085 &tlmm {
0086         edp_brij_ps8640_rst: edp-brij-ps8640-rst {
0087                 pinmux {
0088                         pins = "gpio11";
0089                         function = "gpio";
0090                 };
0091 
0092                 pinconf {
0093                         pins = "gpio11";
0094                         drive-strength = <2>;
0095                         bias-disable;
0096                 };
0097         };
0098 
0099         en_pp3300_edp_brij_ps8640: en-pp3300-edp-brij-ps8640 {
0100                 pinmux {
0101                         pins = "gpio32";
0102                         function = "gpio";
0103                 };
0104 
0105                 pinconf {
0106                         pins = "gpio32";
0107                         drive-strength = <2>;
0108                         bias-disable;
0109                 };
0110         };
0111 };