950-0528-dtbindings-media-i2c-Add-IMX708-CMOS-sensor-binding.patch 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. From 27a49357c8dc582428cc7a7c80b39da157bf3f66 Mon Sep 17 00:00:00 2001
  2. From: Dave Stevenson <[email protected]>
  3. Date: Thu, 22 Dec 2022 14:08:35 +0000
  4. Subject: [PATCH] dtbindings: media: i2c: Add IMX708 CMOS sensor
  5. binding
  6. Add YAML devicetree binding for IMX708 CMOS image sensor.
  7. Let's also add a MAINTAINERS entry for the binding and driver.
  8. Signed-off-by: Dave Stevenson <[email protected]>
  9. ---
  10. .../devicetree/bindings/media/i2c/imx708.yaml | 119 ++++++++++++++++++
  11. MAINTAINERS | 8 ++
  12. 2 files changed, 127 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/media/i2c/imx708.yaml
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/media/i2c/imx708.yaml
  16. @@ -0,0 +1,119 @@
  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/imx708.yaml#
  21. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  22. +
  23. +title: Sony 1/2.3-Inch 12Mpixel CMOS Digital Image Sensor
  24. +
  25. +maintainers:
  26. + - Naushir Patuck <[email protected]>
  27. +
  28. +description: |-
  29. + The Sony IMX708 is a 1/2.3-inch CMOS active pixel digital image sensor
  30. + with an active array size of 4608H x 2592V. 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,imx708
  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.1 volts
  49. +
  50. + VANA1-supply:
  51. + description:
  52. + Analog1 voltage supply, 2.8 volts
  53. +
  54. + VANA2-supply:
  55. + description:
  56. + Analog2 voltage supply, 1.8 volts
  57. +
  58. + VDDL-supply:
  59. + description:
  60. + Digital core voltage supply, 1.8 volts
  61. +
  62. + reset-gpios:
  63. + description: |-
  64. + Reference to the GPIO connected to the xclr pin, if any.
  65. + Must be released (set high) after all supplies and INCK are applied.
  66. +
  67. + # See ../video-interfaces.txt for more details
  68. + port:
  69. + type: object
  70. + properties:
  71. + endpoint:
  72. + type: object
  73. + properties:
  74. + data-lanes:
  75. + description: |-
  76. + The sensor supports either two-lane, or four-lane operation.
  77. + For two-lane operation the property must be set to <1 2>.
  78. + items:
  79. + - const: 1
  80. + - const: 2
  81. +
  82. + clock-noncontinuous:
  83. + type: boolean
  84. + description: |-
  85. + MIPI CSI-2 clock is non-continuous if this property is present,
  86. + otherwise it's continuous.
  87. +
  88. + link-frequencies:
  89. + allOf:
  90. + - $ref: /schemas/types.yaml#/definitions/uint64-array
  91. + description:
  92. + Allowed data bus frequencies.
  93. +
  94. + required:
  95. + - link-frequencies
  96. +
  97. +required:
  98. + - compatible
  99. + - reg
  100. + - clocks
  101. + - VANA1-supply
  102. + - VANA2-supply
  103. + - VDIG-supply
  104. + - VDDL-supply
  105. + - port
  106. +
  107. +additionalProperties: false
  108. +
  109. +examples:
  110. + - |
  111. + i2c0 {
  112. + #address-cells = <1>;
  113. + #size-cells = <0>;
  114. +
  115. + imx708: sensor@1a {
  116. + compatible = "sony,imx708";
  117. + reg = <0x1a>;
  118. + clocks = <&imx708_clk>;
  119. + VANA1-supply = <&imx708_vana1>; /* 1.8v */
  120. + VANA2-supply = <&imx708_vana2>; /* 2.8v */
  121. + VDIG-supply = <&imx708_vdig>; /* 1.1v */
  122. + VDDL-supply = <&imx708_vddl>; /* 1.8v */
  123. +
  124. + port {
  125. + imx708_0: endpoint {
  126. + remote-endpoint = <&csi1_ep>;
  127. + data-lanes = <1 2>;
  128. + clock-noncontinuous;
  129. + link-frequencies = /bits/ 64 <450000000>;
  130. + };
  131. + };
  132. + };
  133. + };
  134. +
  135. +...
  136. --- a/MAINTAINERS
  137. +++ b/MAINTAINERS
  138. @@ -19330,6 +19330,14 @@ T: git git://linuxtv.org/media_tree.git
  139. F: Documentation/devicetree/bindings/media/i2c/imx519.yaml
  140. F: drivers/media/i2c/imx519.c
  141. +SONY IMX708 SENSOR DRIVER
  142. +M: Raspberry Pi Kernel Maintenance <[email protected]>
  143. +L: [email protected]
  144. +S: Maintained
  145. +T: git git://linuxtv.org/media_tree.git
  146. +F: Documentation/devicetree/bindings/media/i2c/imx708.yaml
  147. +F: drivers/media/i2c/imx708.c
  148. +
  149. SONY MEMORYSTICK SUBSYSTEM
  150. M: Maxim Levitsky <[email protected]>
  151. M: Alex Dubov <[email protected]>