]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: asus: tf700t: bind tc358768 bridge and panel
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 25 Apr 2023 15:21:32 +0000 (18:21 +0300)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Mon, 22 Apr 2024 09:17:20 +0000 (12:17 +0300)
Of all T30 transformers, only the TF700T has a FullHD DSI panel,
which is connected via tc358768 RGB to DSI bridge. Since the
bridge driver is available now, TF700T can have video support.

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS TF700T
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
arch/arm/dts/tegra30-asus-tf700t.dts
board/asus/transformer-t30/configs/tf700t.config

index cc03f5a7ec23e8d20c2e19a3d57fe5dd7915960b..6dc760b90d6513a4d91ce06b369525554e6d4cb3 100644 (file)
@@ -7,7 +7,18 @@
        model = "ASUS Transformer Infinity TF700T";
        compatible = "asus,tf700t", "nvidia,tegra30";
 
-       /delete-node/ host1x@50000000;
+       host1x@50000000 {
+               dc@54200000 {
+                       clocks = <&tegra_car TEGRA30_CLK_DISP1>,
+                                <&tegra_car TEGRA30_CLK_PLL_D_OUT0>;
+
+                       rgb {
+                               status = "okay";
+
+                               nvidia,panel = <&tc358768>;
+                       };
+               };
+       };
 
        pinmux@70000868 {
                state_default: pinmux {
                };
        };
 
-       /delete-node/ panel;
+       tc358768_refclk: clock-tc358768 {
+               compatible = "fixed-clock";
+               clock-frequency = <23100000>;
+               clock-accuracy = <100>;
+               #clock-cells = <0>;
+       };
+
+       tc358768_osc: clock-tc358768-osc-gate {
+               compatible = "gpio-gate-clock";
+               enable-gpios = <&gpio TEGRA_GPIO(D, 2) GPIO_ACTIVE_HIGH>;
+               clocks = <&tc358768_refclk>;
+               #clock-cells = <0>;
+       };
+
+       i2c-mux {
+               compatible = "i2c-mux-gpio";
+
+               mux-gpios = <&gpio TEGRA_GPIO(X, 0) GPIO_ACTIVE_HIGH>;
+               i2c-parent = <&gen1_i2c>;
+               idle-state = <0x0>;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               i2c@1 {
+                       reg = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       tc358768: dsi@7 {
+                               compatible = "toshiba,tc358768";
+                               reg = <0x7>;
+
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               clocks = <&tc358768_osc>;
+                               clock-names = "refclk";
+
+                               reset-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_LOW>;
+
+                               vddc-supply = <&vdd_1v2_mipi>;
+                               vddio-supply = <&vdd_1v8_vio>;
+                               vddmipi-supply = <&vdd_1v2_mipi>;
+
+                               panel = <&panel>;
+                       };
+               };
+       };
+
+       panel: panel {
+               compatible = "panasonic,vvx10f004b00";
+
+               power-supply = <&vdd_pnl_reg>;
+               backlight = <&backlight>;
+
+               /delete-property/ enable-gpios;
+
+               display-timings {
+                       timing@0 {
+                               /* 1920x1200@60Hz */
+                               clock-frequency = <154000000>;
+
+                               hactive = <1920>;
+                               hfront-porch = <48>;
+                               hback-porch = <80>;
+                               hsync-len = <32>;
+                               hsync-active = <1>;
+
+                               vactive = <1200>;
+                               vfront-porch = <3>;
+                               vback-porch = <26>;
+                               vsync-len = <6>;
+                               vsync-active = <1>;
+                       };
+               };
+       };
+
+       vdd_1v2_mipi: regulator-mipi {
+               compatible = "regulator-fixed";
+               regulator-name = "tc358768_1v2_vdd";
+               regulator-min-microvolt = <1200000>;
+               regulator-max-microvolt = <1200000>;
+               regulator-enable-ramp-delay = <10000>;
+               regulator-boot-on;
+               gpio = <&gpio TEGRA_GPIO(BB, 3) GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
index 066c884d0827f005e9841f5d47ee19c0b525707a..887c25fbf22f0af2cec346732c2383e3b1c19dba 100644 (file)
@@ -1,2 +1,4 @@
 CONFIG_DEFAULT_DEVICE_TREE="tegra30-asus-tf700t"
+CONFIG_CLK_GPIO=y
 CONFIG_USB_GADGET_PRODUCT_NUM=0x4c90
+CONFIG_VIDEO_BRIDGE_TOSHIBA_TC358768=y