toshiba,tc358768.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/bridge/toshiba,tc358768.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Toschiba TC358768/TC358778 Parallel RGB to MIPI DSI bridge
  7. maintainers:
  8. - Peter Ujfalusi <peter.ujfalusi@ti.com>
  9. description: |
  10. The TC358768/TC358778 is bridge device which converts RGB to DSI.
  11. properties:
  12. compatible:
  13. enum:
  14. - toshiba,tc358768
  15. - toshiba,tc358778
  16. reg:
  17. maxItems: 1
  18. description: base I2C address of the device
  19. reset-gpios:
  20. maxItems: 1
  21. description: GPIO connected to active low RESX pin
  22. vddc-supply:
  23. description: Regulator for 1.2V internal core power.
  24. vddmipi-supply:
  25. description: Regulator for 1.2V for the MIPI.
  26. vddio-supply:
  27. description: Regulator for 1.8V - 3.3V IO power.
  28. clocks:
  29. maxItems: 1
  30. clock-names:
  31. const: refclk
  32. ports:
  33. $ref: /schemas/graph.yaml#/properties/ports
  34. properties:
  35. port@0:
  36. $ref: /schemas/graph.yaml#/$defs/port-base
  37. unevaluatedProperties: false
  38. description: |
  39. Video port for RGB input
  40. properties:
  41. endpoint:
  42. $ref: /schemas/graph.yaml#/$defs/endpoint-base
  43. unevaluatedProperties: false
  44. properties:
  45. data-lines:
  46. $ref: /schemas/types.yaml#/definitions/uint32
  47. enum: [ 16, 18, 24 ]
  48. port@1:
  49. $ref: /schemas/graph.yaml#/properties/port
  50. description: |
  51. Video port for DSI output (panel or connector).
  52. required:
  53. - port@0
  54. - port@1
  55. required:
  56. - compatible
  57. - reg
  58. - vddc-supply
  59. - vddmipi-supply
  60. - vddio-supply
  61. - ports
  62. allOf:
  63. - $ref: ../dsi-controller.yaml#
  64. unevaluatedProperties: false
  65. examples:
  66. - |
  67. #include <dt-bindings/gpio/gpio.h>
  68. i2c {
  69. #address-cells = <1>;
  70. #size-cells = <0>;
  71. dsi_bridge: dsi@e {
  72. compatible = "toshiba,tc358768";
  73. reg = <0xe>;
  74. clocks = <&tc358768_refclk>;
  75. clock-names = "refclk";
  76. reset-gpios = <&pcf_display_board 0 GPIO_ACTIVE_LOW>;
  77. vddc-supply = <&v1_2d>;
  78. vddmipi-supply = <&v1_2d>;
  79. vddio-supply = <&v3_3d>;
  80. dsi_bridge_ports: ports {
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. port@0 {
  84. reg = <0>;
  85. rgb_in: endpoint {
  86. remote-endpoint = <&dpi_out>;
  87. data-lines = <24>;
  88. };
  89. };
  90. port@1 {
  91. reg = <1>;
  92. dsi_out: endpoint {
  93. remote-endpoint = <&lcd_in>;
  94. };
  95. };
  96. };
  97. };
  98. };