2
0

950-0520-dt-bindings-media-i2c-Add-IMX519-CMOS-sensor-binding.patch 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. From dea6a3f3a5c9b1fa6a5dc60eaeaeca487e07769b Mon Sep 17 00:00:00 2001
  2. From: Lee Jackson <[email protected]>
  3. Date: Fri, 27 Aug 2021 14:36:55 +0800
  4. Subject: [PATCH] dt-bindings: media: i2c: Add IMX519 CMOS sensor
  5. binding
  6. Add YAML device tree binding for IMX519 CMOS image sensor, and
  7. the relevant MAINTAINERS entries.
  8. Signed-off-by: Lee Jackson <[email protected]>
  9. ---
  10. .../devicetree/bindings/media/i2c/imx519.yaml | 113 ++++++++++++++++++
  11. MAINTAINERS | 8 ++
  12. 2 files changed, 121 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/media/i2c/imx519.yaml
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/media/i2c/imx519.yaml
  16. @@ -0,0 +1,113 @@
  17. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  18. +%YAML 1.2
  19. +---
  20. +$id: http://devicetree.org/schemas/media/i2c/imx519.yaml#
  21. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  22. +
  23. +title: Sony 1/2.5-Inch 16Mpixel CMOS Digital Image Sensor
  24. +
  25. +maintainers:
  26. + - Lee Jackson <[email protected]>
  27. +
  28. +description: |-
  29. + The Sony IMX519 is a 1/2.5-inch CMOS active pixel digital image sensor
  30. + with an active array size of 4656H x 3496V. It is programmable through
  31. + I2C interface. The I2C address is fixed to 0x1A as per sensor data sheet.
  32. + Image data is sent through MIPI CSI-2, which is configured as either 2 or
  33. + 4 data lanes.
  34. +
  35. +properties:
  36. + compatible:
  37. + const: sony,imx519
  38. +
  39. + reg:
  40. + description: I2C device address
  41. + maxItems: 1
  42. +
  43. + clocks:
  44. + maxItems: 1
  45. +
  46. + VDIG-supply:
  47. + description:
  48. + Digital I/O voltage supply, 1.05 volts
  49. +
  50. + VANA-supply:
  51. + description:
  52. + Analog voltage supply, 2.8 volts
  53. +
  54. + VDDL-supply:
  55. + description:
  56. + Digital core voltage supply, 1.8 volts
  57. +
  58. + reset-gpios:
  59. + description: |-
  60. + Reference to the GPIO connected to the xclr pin, if any.
  61. + Must be released (set high) after all supplies and INCK are applied.
  62. +
  63. + # See ../video-interfaces.txt for more details
  64. + port:
  65. + type: object
  66. + properties:
  67. + endpoint:
  68. + type: object
  69. + properties:
  70. + data-lanes:
  71. + description: |-
  72. + The sensor supports either two-lane, or four-lane operation.
  73. + For two-lane operation the property must be set to <1 2>.
  74. + items:
  75. + - const: 1
  76. + - const: 2
  77. +
  78. + clock-noncontinuous:
  79. + type: boolean
  80. + description: |-
  81. + MIPI CSI-2 clock is non-continuous if this property is present,
  82. + otherwise it's continuous.
  83. +
  84. + link-frequencies:
  85. + allOf:
  86. + - $ref: /schemas/types.yaml#/definitions/uint64-array
  87. + description:
  88. + Allowed data bus frequencies.
  89. +
  90. + required:
  91. + - link-frequencies
  92. +
  93. +required:
  94. + - compatible
  95. + - reg
  96. + - clocks
  97. + - VANA-supply
  98. + - VDIG-supply
  99. + - VDDL-supply
  100. + - port
  101. +
  102. +additionalProperties: false
  103. +
  104. +examples:
  105. + - |
  106. + i2c0 {
  107. + #address-cells = <1>;
  108. + #size-cells = <0>;
  109. +
  110. + imx519: sensor@1a {
  111. + compatible = "sony,imx519";
  112. + reg = <0x1a>;
  113. + clocks = <&imx519_clk>;
  114. + VANA-supply = <&imx519_vana>; /* 2.8v */
  115. + VDIG-supply = <&imx519_vdig>; /* 1.05v */
  116. + VDDL-supply = <&imx519_vddl>; /* 1.8v */
  117. +
  118. + port {
  119. + imx519_0: endpoint {
  120. + remote-endpoint = <&csi1_ep>;
  121. + data-lanes = <1 2>;
  122. + clock-noncontinuous;
  123. + link-frequencies = /bits/ 64 <493500000>;
  124. + };
  125. + };
  126. + };
  127. + };
  128. +
  129. +...
  130. --- a/MAINTAINERS
  131. +++ b/MAINTAINERS
  132. @@ -17548,6 +17548,14 @@ F: Documentation/devicetree/bindings/med
  133. F: Documentation/devicetree/bindings/media/i2c/imx477.yaml
  134. F: drivers/media/i2c/imx477.c
  135. +SONY IMX519 SENSOR DRIVER
  136. +M: Arducam Kernel Maintenance <[email protected]>
  137. +L: [email protected]
  138. +S: Maintained
  139. +T: git git://linuxtv.org/media_tree.git
  140. +F: Documentation/devicetree/bindings/media/i2c/imx519.yaml
  141. +F: drivers/media/i2c/imx519.c
  142. +
  143. SONY MEMORYSTICK SUBSYSTEM
  144. M: Maxim Levitsky <[email protected]>
  145. M: Alex Dubov <[email protected]>