ti-cal.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL)
  2. ------------------------------------------------------
  3. The Camera Adaptation Layer (CAL) is a key component for image capture
  4. applications. The capture module provides the system interface and the
  5. processing capability to connect CSI2 image-sensor modules to the
  6. DRA72x device.
  7. Required properties:
  8. - compatible:
  9. Should be "ti,dra72-cal", for DRA72 controllers
  10. Should be "ti,dra72-pre-es2-cal", for DRA72 controllers pre ES2.0
  11. Should be "ti,dra76-cal", for DRA76 controllers
  12. - reg: CAL Top level, Receiver Core #0, Receiver Core #1 and Camera RX
  13. control address space
  14. - reg-names: cal_top, cal_rx_core0, cal_rx_core1 and camerrx_control
  15. registers
  16. - interrupts: should contain IRQ line for the CAL;
  17. - syscon-camerrx: phandle to the device control module and offset to the
  18. control_camerarx_core register
  19. This node is meant to replace the "camerrx_control" reg
  20. entry above but "camerrx_control" is still handled
  21. for backward compatibility.
  22. CAL supports 2 camera port nodes on MIPI bus. Each CSI2 camera port nodes
  23. should contain a 'port' child node with child 'endpoint' node. Please
  24. refer to the bindings defined in
  25. Documentation/devicetree/bindings/media/video-interfaces.txt.
  26. Example:
  27. cal: cal@4845b000 {
  28. compatible = "ti,dra72-cal";
  29. ti,hwmods = "cal";
  30. reg = <0x4845B000 0x400>,
  31. <0x4845B800 0x40>,
  32. <0x4845B900 0x40>;
  33. reg-names = "cal_top",
  34. "cal_rx_core0",
  35. "cal_rx_core1";
  36. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
  37. syscon-camerrx = <&scm_conf 0xE94>;
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. ports {
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. csi2_0: port@0 {
  44. reg = <0>;
  45. endpoint {
  46. slave-mode;
  47. remote-endpoint = <&ar0330_1>;
  48. };
  49. };
  50. csi2_1: port@1 {
  51. reg = <1>;
  52. };
  53. };
  54. };
  55. i2c5: i2c@4807c000 {
  56. ar0330@10 {
  57. compatible = "ti,ar0330";
  58. reg = <0x10>;
  59. port {
  60. #address-cells = <1>;
  61. #size-cells = <0>;
  62. ar0330_1: endpoint {
  63. reg = <0>;
  64. clock-lanes = <1>;
  65. data-lanes = <0 2 3 4>;
  66. remote-endpoint = <&csi2_0>;
  67. };
  68. };
  69. };
  70. };