microchip,xisc.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. # Copyright (C) 2021 Microchip Technology, Inc.
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/media/microchip,xisc.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Microchip eXtended Image Sensor Controller (XISC)
  8. maintainers:
  9. - Eugen Hristev <eugen.hristev@microchip.com>
  10. description: |
  11. The eXtended Image Sensor Controller (XISC) device provides the video input capabilities for the
  12. Microchip AT91 SAM family of devices.
  13. The XISC has a single internal parallel input that supports RAW Bayer, RGB or YUV video.
  14. The source can be either a demuxer from a CSI2 type of bus, or a simple direct bridge to a
  15. parallel sensor.
  16. The XISC provides one clock output that is used to clock the demuxer/bridge.
  17. properties:
  18. compatible:
  19. const: microchip,sama7g5-isc
  20. reg:
  21. maxItems: 1
  22. interrupts:
  23. maxItems: 1
  24. clocks:
  25. maxItems: 1
  26. clock-names:
  27. items:
  28. - const: hclock
  29. '#clock-cells':
  30. const: 0
  31. clock-output-names:
  32. const: isc-mck
  33. microchip,mipi-mode:
  34. type: boolean
  35. description:
  36. As the XISC is usually connected to a demux/bridge, the XISC receives
  37. the same type of input, however, it should be aware of the type of
  38. signals received. The mipi-mode enables different internal handling
  39. of the data and clock lines.
  40. port:
  41. $ref: /schemas/graph.yaml#/$defs/port-base
  42. description:
  43. Input port node, single endpoint describing the input pad.
  44. properties:
  45. endpoint:
  46. $ref: video-interfaces.yaml#
  47. properties:
  48. bus-type:
  49. enum: [5, 6]
  50. remote-endpoint: true
  51. bus-width:
  52. enum: [8, 9, 10, 11, 12, 14]
  53. default: 12
  54. hsync-active:
  55. enum: [0, 1]
  56. default: 1
  57. vsync-active:
  58. enum: [0, 1]
  59. default: 1
  60. pclk-sample:
  61. enum: [0, 1]
  62. default: 1
  63. required:
  64. - remote-endpoint
  65. - bus-type
  66. additionalProperties: false
  67. additionalProperties: false
  68. required:
  69. - compatible
  70. - reg
  71. - clocks
  72. - clock-names
  73. - '#clock-cells'
  74. - clock-output-names
  75. - port
  76. additionalProperties: false
  77. examples:
  78. - |
  79. #include <dt-bindings/interrupt-controller/arm-gic.h>
  80. #include <dt-bindings/clock/at91.h>
  81. #include <dt-bindings/interrupt-controller/irq.h>
  82. #include <dt-bindings/media/video-interfaces.h>
  83. xisc: xisc@e1408000 {
  84. compatible = "microchip,sama7g5-isc";
  85. reg = <0xe1408000 0x2000>;
  86. interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  87. clocks = <&pmc PMC_TYPE_PERIPHERAL 56>;
  88. clock-names = "hclock";
  89. #clock-cells = <0>;
  90. clock-output-names = "isc-mck";
  91. port {
  92. xisc_in: endpoint {
  93. bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
  94. remote-endpoint = <&csi2dc_out>;
  95. hsync-active = <1>;
  96. vsync-active = <1>;
  97. bus-width = <12>;
  98. };
  99. };
  100. };