<div dir="ltr"><div>Hi All,</div><div><br></div><div>Please Review the patch<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 10, 2020 at 7:11 PM Vinay Simha BN <<a href="mailto:simhavcs@gmail.com">simhavcs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">- license modified to (GPL-2.0-only OR BSD-2-Clause)<br>
- single-link and dual-link lvds description and<br>
  examples are added<br>
- proper indentation<br>
- VESA/JEIDA formats picked from panel-lvds dts<br>
- dsi data-lanes property removed, it will be picked<br>
  from dsi0 ports<br>
- dual-link lvds port added and implemented<br>
- converted from .txt to .yaml<br>
<br>
Signed-off-by: Vinay Simha BN <<a href="mailto:simhavcs@gmail.com" target="_blank">simhavcs@gmail.com</a>><br>
Reviewed-by: Sam Ravnborg <<a href="mailto:sam@ravnborg.org" target="_blank">sam@ravnborg.org</a>><br>
Reviewed-by: Rob Herring <<a href="mailto:robh@kernel.org" target="_blank">robh@kernel.org</a>><br>
---<br>
v1:<br>
 Initial version wast .txt file<br>
<br>
v2:<br>
 From txt to yaml file format<br>
<br>
v3:<br>
* Andrzej Hajda review comments incorporated<br>
  dual port lvds implemented<br>
<br>
* Laurent Pinchart review comments incorporated<br>
  dsi lanes property removed and it is dynamically<br>
  picked from the dsi ports<br>
  VESA/JEIDA format picked from panel-lvds dts<br>
<br>
v4:<br>
* Sam Ravnborg review comments incorporated<br>
  }' is indented properly in examples data-lanes<br>
  description for single-link and dual-link lvds<br>
<br>
v5:<br>
* Sam Ravnborg review comments incorporated<br>
  license modified to (GPL-2.0-only OR BSD-2-Clause)<br>
  changelog added<br>
<br>
v6:<br>
* No changes, revision version mentioned to inline with<br>
  driver file<br>
<br>
v7:<br>
* change log added<br>
  Reviewed-by: Sam Ravnborg <<a href="mailto:sam@ravnborg.org" target="_blank">sam@ravnborg.org</a>><br>
<br>
v8:<br>
* Reviewed-by: Rob Herring <<a href="mailto:robh@kernel.org" target="_blank">robh@kernel.org</a>><br>
* change log modified in reverse chronological order<br>
---<br>
 .../bindings/display/bridge/toshiba,tc358775.yaml  | 215 +++++++++++++++++++++<br>
 1 file changed, 215 insertions(+)<br>
 create mode 100644 Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml<br>
<br>
diff --git a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml<br>
new file mode 100644<br>
index 0000000..31f085d<br>
--- /dev/null<br>
+++ b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml<br>
@@ -0,0 +1,215 @@<br>
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)<br>
+%YAML 1.2<br>
+---<br>
+$id: <a href="http://devicetree.org/schemas/display/bridge/toshiba,tc358775.yaml#" rel="noreferrer" target="_blank">http://devicetree.org/schemas/display/bridge/toshiba,tc358775.yaml#</a><br>
+$schema: <a href="http://devicetree.org/meta-schemas/core.yaml#" rel="noreferrer" target="_blank">http://devicetree.org/meta-schemas/core.yaml#</a><br>
+<br>
+title: Toshiba TC358775 DSI to LVDS bridge bindings<br>
+<br>
+maintainers:<br>
+ - Vinay Simha BN <<a href="mailto:simhavcs@gmail.com" target="_blank">simhavcs@gmail.com</a>><br>
+<br>
+description: |<br>
+ This binding supports DSI to LVDS bridge TC358775<br>
+<br>
+ MIPI DSI-RX Data 4-lane, CLK 1-lane with data rates up to 800 Mbps/lane.<br>
+ Video frame size:<br>
+ Up to 1600x1200 24-bit/pixel resolution for single-link LVDS display panel<br>
+ limited by 135 MHz LVDS speed<br>
+ Up to WUXGA (1920x1200 24-bit pixels) resolution for dual-link LVDS display<br>
+ panel, limited by 270 MHz LVDS speed.<br>
+<br>
+properties:<br>
+  compatible:<br>
+    const: toshiba,tc358775<br>
+<br>
+  reg:<br>
+    maxItems: 1<br>
+    description: i2c address of the bridge, 0x0f<br>
+<br>
+  vdd-supply:<br>
+    maxItems: 1<br>
+    description:  1.2V LVDS Power Supply<br>
+<br>
+  vddio-supply:<br>
+    maxItems: 1<br>
+    description: 1.8V IO Power Supply<br>
+<br>
+  stby-gpios:<br>
+    maxItems: 1<br>
+    description: Standby pin, Low active<br>
+<br>
+  reset-gpios:<br>
+    maxItems: 1<br>
+    description: Hardware reset, Low active<br>
+<br>
+  ports:<br>
+    type: object<br>
+    description:<br>
+      A node containing input and output port nodes with endpoint definitions<br>
+      as documented in<br>
+      Documentation/devicetree/bindings/media/video-interfaces.txt<br>
+    properties:<br>
+      "#address-cells":<br>
+        const: 1<br>
+<br>
+      "#size-cells":<br>
+        const: 0<br>
+<br>
+      port@0:<br>
+        type: object<br>
+        description: |<br>
+          DSI Input. The remote endpoint phandle should be a<br>
+          reference to a valid mipi_dsi_host device node.<br>
+<br>
+      port@1:<br>
+        type: object<br>
+        description: |<br>
+          Video port for LVDS output (panel or connector).<br>
+<br>
+      port@2:<br>
+        type: object<br>
+        description: |<br>
+          Video port for Dual link LVDS output (panel or connector).<br>
+<br>
+    required:<br>
+      - port@0<br>
+      - port@1<br>
+<br>
+required:<br>
+ - compatible<br>
+ - reg<br>
+ - vdd-supply<br>
+ - vddio-supply<br>
+ - stby-gpios<br>
+ - reset-gpios<br>
+ - ports<br>
+<br>
+examples:<br>
+ - |<br>
+    #include <dt-bindings/gpio/gpio.h><br>
+<br>
+    /* For single-link LVDS display panel */<br>
+<br>
+    i2c@78b8000 {<br>
+        /* On High speed expansion */<br>
+        label = "HS-I2C2";<br>
+        reg = <0x078b8000 0x500>;<br>
+        clock-frequency = <400000>; /* fastmode operation */<br>
+        #address-cells = <1>;<br>
+        #size-cells = <0>;<br>
+<br>
+        tc_bridge: bridge@f {<br>
+            compatible = "toshiba,tc358775";<br>
+            reg = <0x0f>;<br>
+<br>
+            vdd-supply = <&pm8916_l2>;<br>
+            vddio-supply = <&pm8916_l6>;<br>
+<br>
+            stby-gpios = <&msmgpio 99 GPIO_ACTIVE_LOW>;<br>
+            reset-gpios = <&msmgpio 72 GPIO_ACTIVE_LOW>;<br>
+<br>
+            ports {<br>
+                #address-cells = <1>;<br>
+                #size-cells = <0>;<br>
+<br>
+                port@0 {<br>
+                    reg = <0>;<br>
+                    d2l_in_test: endpoint {<br>
+                        remote-endpoint = <&dsi0_out>;<br>
+                    };<br>
+                };<br>
+<br>
+                port@1 {<br>
+                    reg = <1>;<br>
+                    lvds_out: endpoint {<br>
+                        remote-endpoint = <&panel_in>;<br>
+                    };<br>
+                };<br>
+            };<br>
+        };<br>
+    };<br>
+<br>
+    dsi@1a98000 {<br>
+        reg = <0x1a98000 0x25c>;<br>
+        reg-names = "dsi_ctrl";<br>
+<br>
+        ports {<br>
+            #address-cells = <1>;<br>
+            #size-cells = <0>;<br>
+            port@1 {<br>
+                reg = <1>;<br>
+                dsi0_out: endpoint {<br>
+                    remote-endpoint = <&d2l_in_test>;<br>
+                    data-lanes = <0 1 2 3>;<br>
+                };<br>
+             };<br>
+         };<br>
+     };<br>
+<br>
+ - |<br>
+    /* For dual-link LVDS display panel */<br>
+<br>
+    i2c@78b8000 {<br>
+        /* On High speed expansion */<br>
+        label = "HS-I2C2";<br>
+        reg = <0x078b8000 0x500>;<br>
+        clock-frequency = <400000>; /* fastmode operation */<br>
+        #address-cells = <1>;<br>
+        #size-cells = <0>;<br>
+<br>
+        tc_bridge_dual: bridge@f {<br>
+            compatible = "toshiba,tc358775";<br>
+            reg = <0x0f>;<br>
+<br>
+            vdd-supply = <&pm8916_l2>;<br>
+            vddio-supply = <&pm8916_l6>;<br>
+<br>
+            stby-gpios = <&msmgpio 99 GPIO_ACTIVE_LOW>;<br>
+            reset-gpios = <&msmgpio 72 GPIO_ACTIVE_LOW>;<br>
+<br>
+            ports {<br>
+                #address-cells = <1>;<br>
+                #size-cells = <0>;<br>
+<br>
+                port@0 {<br>
+                    reg = <0>;<br>
+                    d2l_in_dual: endpoint {<br>
+                        remote-endpoint = <&dsi0_out_dual>;<br>
+                    };<br>
+                };<br>
+<br>
+                port@1 {<br>
+                    reg = <1>;<br>
+                    lvds0_out: endpoint {<br>
+                        remote-endpoint = <&panel_in0>;<br>
+                    };<br>
+                };<br>
+<br>
+                port@2 {<br>
+                    reg = <2>;<br>
+                    lvds1_out: endpoint {<br>
+                        remote-endpoint = <&panel_in1>;<br>
+                    };<br>
+                };<br>
+            };<br>
+        };<br>
+    };<br>
+<br>
+    dsi@1a98000 {<br>
+        reg = <0x1a98000 0x25c>;<br>
+        reg-names = "dsi_ctrl";<br>
+<br>
+        ports {<br>
+            #address-cells = <1>;<br>
+            #size-cells = <0>;<br>
+            port@1 {<br>
+                reg = <1>;<br>
+                dsi0_out_dual: endpoint {<br>
+                    remote-endpoint = <&d2l_in_dual>;<br>
+                    data-lanes = <0 1 2 3>;<br>
+                };<br>
+             };<br>
+         };<br>
+     };<br>
+...<br>
-- <br>
2.1.2<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">regards,<br>vinaysimha</div>