renesas,rcar-csi2.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Renesas R-Car MIPI CSI-2
  2. ------------------------
  3. The R-Car CSI-2 receiver device provides MIPI CSI-2 capabilities for the
  4. Renesas R-Car family of devices. It is used in conjunction with the
  5. R-Car VIN module, which provides the video capture capabilities.
  6. Mandatory properties
  7. --------------------
  8. - compatible: Must be one or more of the following
  9. - "renesas,r8a7795-csi2" for the R8A7795 device.
  10. - "renesas,r8a7796-csi2" for the R8A7796 device.
  11. - "renesas,r8a77965-csi2" for the R8A77965 device.
  12. - "renesas,r8a77970-csi2" for the R8A77970 device.
  13. - reg: the register base and size for the device registers
  14. - interrupts: the interrupt for the device
  15. - clocks: reference to the parent clock
  16. The device node shall contain two 'port' child nodes according to the
  17. bindings defined in Documentation/devicetree/bindings/media/
  18. video-interfaces.txt. port@0 shall connect to the CSI-2 source. port@1
  19. shall connect to all the R-Car VIN modules that have a hardware
  20. connection to the CSI-2 receiver.
  21. - port@0- Video source (mandatory)
  22. - endpoint@0 - sub-node describing the endpoint that is the video source
  23. - port@1 - VIN instances (optional)
  24. - One endpoint sub-node for every R-Car VIN instance which is connected
  25. to the R-Car CSI-2 receiver.
  26. Example:
  27. csi20: csi2@fea80000 {
  28. compatible = "renesas,r8a7796-csi2";
  29. reg = <0 0xfea80000 0 0x10000>;
  30. interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
  31. clocks = <&cpg CPG_MOD 714>;
  32. power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
  33. resets = <&cpg 714>;
  34. ports {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. port@0 {
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. reg = <0>;
  41. csi20_in: endpoint@0 {
  42. reg = <0>;
  43. clock-lanes = <0>;
  44. data-lanes = <1>;
  45. remote-endpoint = <&adv7482_txb>;
  46. };
  47. };
  48. port@1 {
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. reg = <1>;
  52. csi20vin0: endpoint@0 {
  53. reg = <0>;
  54. remote-endpoint = <&vin0csi20>;
  55. };
  56. csi20vin1: endpoint@1 {
  57. reg = <1>;
  58. remote-endpoint = <&vin1csi20>;
  59. };
  60. csi20vin2: endpoint@2 {
  61. reg = <2>;
  62. remote-endpoint = <&vin2csi20>;
  63. };
  64. csi20vin3: endpoint@3 {
  65. reg = <3>;
  66. remote-endpoint = <&vin3csi20>;
  67. };
  68. csi20vin4: endpoint@4 {
  69. reg = <4>;
  70. remote-endpoint = <&vin4csi20>;
  71. };
  72. csi20vin5: endpoint@5 {
  73. reg = <5>;
  74. remote-endpoint = <&vin5csi20>;
  75. };
  76. csi20vin6: endpoint@6 {
  77. reg = <6>;
  78. remote-endpoint = <&vin6csi20>;
  79. };
  80. csi20vin7: endpoint@7 {
  81. reg = <7>;
  82. remote-endpoint = <&vin7csi20>;
  83. };
  84. };
  85. };
  86. };