rcar_vin.txt 2.4 KB

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