rcar_vin.txt 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Renesas RCar Video Input driver (rcar_vin)
  2. ------------------------------------------
  3. The rcar_vin device provides video input capabilities for the Renesas R-Car
  4. family of devices. The current blocks are always slaves and suppot one input
  5. channel which can be either RGB, YUYV or BT656.
  6. - compatible: Must be one or more of the following
  7. - "renesas,vin-r8a7795" for the R8A7795 device
  8. - "renesas,vin-r8a7794" for the R8A7794 device
  9. - "renesas,vin-r8a7793" for the R8A7793 device
  10. - "renesas,vin-r8a7792" for the R8A7792 device
  11. - "renesas,vin-r8a7791" for the R8A7791 device
  12. - "renesas,vin-r8a7790" for the R8A7790 device
  13. - "renesas,vin-r8a7779" for the R8A7779 device
  14. - "renesas,vin-r8a7778" for the R8A7778 device
  15. - "renesas,rcar-gen2-vin" for a generic R-Car Gen2 compatible device.
  16. - "renesas,rcar-gen3-vin" for a generic R-Car Gen3 compatible device.
  17. When compatible with the generic version nodes must list the
  18. SoC-specific version corresponding to the platform first
  19. followed by the generic version.
  20. - reg: the register base and size for the device registers
  21. - interrupts: the interrupt for the device
  22. - clocks: Reference to the parent clock
  23. Additionally, an alias named vinX will need to be created to specify
  24. which video input device this is.
  25. The per-board settings:
  26. - port sub-node describing a single endpoint connected to the vin
  27. as described in video-interfaces.txt[1]. Only the first one will
  28. be considered as each vin interface has one input port.
  29. These settings are used to work out video input format and widths
  30. into the system.
  31. Device node example
  32. -------------------
  33. aliases {
  34. vin0 = &vin0;
  35. };
  36. vin0: vin@0xe6ef0000 {
  37. compatible = "renesas,vin-r8a7790", "renesas,rcar-gen2-vin";
  38. clocks = <&mstp8_clks R8A7790_CLK_VIN0>;
  39. reg = <0 0xe6ef0000 0 0x1000>;
  40. interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
  41. status = "disabled";
  42. };
  43. Board setup example (vin1 composite video input)
  44. ------------------------------------------------
  45. &i2c2 {
  46. status = "ok";
  47. pinctrl-0 = <&i2c2_pins>;
  48. pinctrl-names = "default";
  49. adv7180@20 {
  50. compatible = "adi,adv7180";
  51. reg = <0x20>;
  52. remote = <&vin1>;
  53. port {
  54. adv7180: endpoint {
  55. bus-width = <8>;
  56. remote-endpoint = <&vin1ep0>;
  57. };
  58. };
  59. };
  60. };
  61. /* composite video input */
  62. &vin1 {
  63. pinctrl-0 = <&vin1_pins>;
  64. pinctrl-names = "default";
  65. status = "ok";
  66. port {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. vin1ep0: endpoint {
  70. remote-endpoint = <&adv7180>;
  71. bus-width = <8>;
  72. };
  73. };
  74. };
  75. [1] video-interfaces.txt common video media interface