renesas,ceu.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Renesas Capture Engine Unit (CEU)
  2. ----------------------------------------------
  3. The Capture Engine Unit is the image capture interface found in the Renesas
  4. SH Mobile, R-Mobile and RZ SoCs.
  5. The interface supports a single parallel input with data bus width of 8 or 16
  6. bits.
  7. Required properties:
  8. - compatible: Shall be one of the following values:
  9. "renesas,r7s72100-ceu" for CEU units found in RZ/A1H and RZ/A1M SoCs
  10. "renesas,r8a7740-ceu" for CEU units found in R-Mobile A1 R8A7740 SoCs
  11. - reg: Registers address base and size.
  12. - interrupts: The interrupt specifier.
  13. The CEU supports a single parallel input and should contain a single 'port'
  14. subnode with a single 'endpoint'. Connection to input devices are modeled
  15. according to the video interfaces OF bindings specified in:
  16. Documentation/devicetree/bindings/media/video-interfaces.txt
  17. Optional endpoint properties applicable to parallel input bus described in
  18. the above mentioned "video-interfaces.txt" file are supported.
  19. - hsync-active: Active state of the HSYNC signal, 0/1 for LOW/HIGH respectively.
  20. If property is not present, default is active high.
  21. - vsync-active: Active state of the VSYNC signal, 0/1 for LOW/HIGH respectively.
  22. If property is not present, default is active high.
  23. Example:
  24. The example describes the connection between the Capture Engine Unit and an
  25. OV7670 image sensor connected to i2c1 interface.
  26. ceu: ceu@e8210000 {
  27. reg = <0xe8210000 0x209c>;
  28. compatible = "renesas,r7s72100-ceu";
  29. interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&vio_pins>;
  32. status = "okay";
  33. port {
  34. ceu_in: endpoint {
  35. remote-endpoint = <&ov7670_out>;
  36. hsync-active = <1>;
  37. vsync-active = <0>;
  38. };
  39. };
  40. };
  41. i2c1: i2c@fcfee400 {
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&i2c1_pins>;
  44. status = "okay";
  45. clock-frequency = <100000>;
  46. ov7670: camera@21 {
  47. compatible = "ovti,ov7670";
  48. reg = <0x21>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&vio_pins>;
  51. reset-gpios = <&port3 11 GPIO_ACTIVE_LOW>;
  52. powerdown-gpios = <&port3 12 GPIO_ACTIVE_HIGH>;
  53. port {
  54. ov7670_out: endpoint {
  55. remote-endpoint = <&ceu_in>;
  56. hsync-active = <1>;
  57. vsync-active = <0>;
  58. };
  59. };
  60. };
  61. };