rcar_vin.txt 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 of the following
  7. - "renesas,vin-r8a7794" for the R8A7794 device
  8. - "renesas,vin-r8a7793" for the R8A7793 device
  9. - "renesas,vin-r8a7791" for the R8A7791 device
  10. - "renesas,vin-r8a7790" for the R8A7790 device
  11. - "renesas,vin-r8a7779" for the R8A7779 device
  12. - "renesas,vin-r8a7778" for the R8A7778 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. Additionally, an alias named vinX will need to be created to specify
  17. which video input device this is.
  18. The per-board settings:
  19. - port sub-node describing a single endpoint connected to the vin
  20. as described in video-interfaces.txt[1]. Only the first one will
  21. be considered as each vin interface has one input port.
  22. These settings are used to work out video input format and widths
  23. into the system.
  24. Device node example
  25. -------------------
  26. aliases {
  27. vin0 = &vin0;
  28. };
  29. vin0: vin@0xe6ef0000 {
  30. compatible = "renesas,vin-r8a7790";
  31. clocks = <&mstp8_clks R8A7790_CLK_VIN0>;
  32. reg = <0 0xe6ef0000 0 0x1000>;
  33. interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
  34. status = "disabled";
  35. };
  36. Board setup example (vin1 composite video input)
  37. ------------------------------------------------
  38. &i2c2 {
  39. status = "ok";
  40. pinctrl-0 = <&i2c2_pins>;
  41. pinctrl-names = "default";
  42. adv7180@20 {
  43. compatible = "adi,adv7180";
  44. reg = <0x20>;
  45. remote = <&vin1>;
  46. port {
  47. adv7180: endpoint {
  48. bus-width = <8>;
  49. remote-endpoint = <&vin1ep0>;
  50. };
  51. };
  52. };
  53. };
  54. /* composite video input */
  55. &vin1 {
  56. pinctrl-0 = <&vin1_pins>;
  57. pinctrl-names = "default";
  58. status = "ok";
  59. port {
  60. #address-cells = <1>;
  61. #size-cells = <0>;
  62. vin1ep0: endpoint {
  63. remote-endpoint = <&adv7180>;
  64. bus-width = <8>;
  65. };
  66. };
  67. };
  68. [1] video-interfaces.txt common video media interface