ARM: dts: am57xx-idk-common: add tc358778 bridge
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 Apr 2020 11:30:20 +0000 (14:30 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Apr 2020 16:46:27 +0000 (09:46 -0700)
AM5 IDK boards have TC358778 DPI-to-DSI bridge. Two different DSI panel
models are used with the AM5 IDKs, and these panels are added with DT
overlays. The AM5 IDKs can also be used without any panel.

Add TC358778 data to the am57xx-idk-common.dtsi, but set the status to
disabled.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am57xx-idk-common.dtsi

index aa5e55f..8ec7134 100644 (file)
                regulator-boot-on;
        };
 
+       v1_2d: fixedregulator-v1_2d {
+               compatible = "regulator-fixed";
+               regulator-name = "V1_2D";
+               vin-supply = <&vmain>;
+               regulator-min-microvolt = <1200000>;
+               regulator-max-microvolt = <1200000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
        vtt_fixed: fixedregulator-vtt {
                /* TPS51200 */
                compatible = "regulator-fixed";
                        };
                };
        };
+
+       src_clk_x1: src_clk_x1 {
+               #clock-cells = <0>;
+               compatible = "fixed-clock";
+               clock-frequency = <20000000>;
+       };
 };
 
 &dra7_pmx_core {
                gpio-controller;
                #gpio-cells = <2>;
        };
+
+       dsi_bridge: tc358778@e {
+               compatible = "toshiba,tc358778", "toshiba,tc358768";
+               reg = <0xe>;
+               status = "disabled";
+
+               clocks = <&src_clk_x1>;
+               clock-names = "refclk";
+
+               vddc-supply = <&v1_2d>;
+               vddmipi-supply = <&v1_2d>;
+               vddio-supply = <&v3_3d>;
+
+               dsi_bridge_ports: ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+                               rgb_in: endpoint {
+                                       remote-endpoint = <&dpi_out>;
+                                       data-lines = <24>;
+                               };
+                       };
+               };
+       };
 };
 
 &mcspi3 {
 
 &dss {
        status = "okay";
+
+       vdda_video-supply = <&ldoln_reg>;
+
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               port@0 {
+                       reg = <0>;
+
+                       dpi_out: endpoint {
+                               remote-endpoint = <&rgb_in>;
+                               data-lines = <24>;
+                       };
+               };
+       };
 };