950-0676-dt-bindings-media-i2c-Replace-IMX708-sensor-binding-.patch 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. From f3dbbaa2a6c8ddfc22feac62e1fea6310a4fd659 Mon Sep 17 00:00:00 2001
  2. From: Naushir Patuck <[email protected]>
  3. Date: Fri, 31 Mar 2023 11:52:25 +0100
  4. Subject: [PATCH] dt-bindings: media: i2c: Replace IMX708 sensor
  5. binding documentation file
  6. Replace the existing imx708.yaml file with sony,imx708.yaml that follows
  7. the latest devicetree conventions for camera sensors.
  8. Signed-off-by: Naushir Patuck <[email protected]>
  9. ---
  10. .../devicetree/bindings/media/i2c/imx708.yaml | 119 ----------------
  11. .../bindings/media/i2c/sony,imx708.yaml | 128 ++++++++++++++++++
  12. MAINTAINERS | 2 +-
  13. 3 files changed, 129 insertions(+), 120 deletions(-)
  14. delete mode 100644 Documentation/devicetree/bindings/media/i2c/imx708.yaml
  15. create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx708.yaml
  16. --- a/Documentation/devicetree/bindings/media/i2c/imx708.yaml
  17. +++ /dev/null
  18. @@ -1,119 +0,0 @@
  19. -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  20. -%YAML 1.2
  21. ----
  22. -$id: http://devicetree.org/schemas/media/i2c/imx708.yaml#
  23. -$schema: http://devicetree.org/meta-schemas/core.yaml#
  24. -
  25. -title: Sony 1/2.3-Inch 12Mpixel CMOS Digital Image Sensor
  26. -
  27. -maintainers:
  28. - - Naushir Patuck <[email protected]>
  29. -
  30. -description: |-
  31. - The Sony IMX708 is a 1/2.3-inch CMOS active pixel digital image sensor
  32. - with an active array size of 4608H x 2592V. It is programmable through
  33. - I2C interface. The I2C address is fixed to 0x1A as per sensor data sheet.
  34. - Image data is sent through MIPI CSI-2, which is configured as either 2 or
  35. - 4 data lanes.
  36. -
  37. -properties:
  38. - compatible:
  39. - const: sony,imx708
  40. -
  41. - reg:
  42. - description: I2C device address
  43. - maxItems: 1
  44. -
  45. - clocks:
  46. - maxItems: 1
  47. -
  48. - VDIG-supply:
  49. - description:
  50. - Digital I/O voltage supply, 1.1 volts
  51. -
  52. - VANA1-supply:
  53. - description:
  54. - Analog1 voltage supply, 2.8 volts
  55. -
  56. - VANA2-supply:
  57. - description:
  58. - Analog2 voltage supply, 1.8 volts
  59. -
  60. - VDDL-supply:
  61. - description:
  62. - Digital core voltage supply, 1.8 volts
  63. -
  64. - reset-gpios:
  65. - description: |-
  66. - Reference to the GPIO connected to the xclr pin, if any.
  67. - Must be released (set high) after all supplies and INCK are applied.
  68. -
  69. - # See ../video-interfaces.txt for more details
  70. - port:
  71. - type: object
  72. - properties:
  73. - endpoint:
  74. - type: object
  75. - properties:
  76. - data-lanes:
  77. - description: |-
  78. - The sensor supports either two-lane, or four-lane operation.
  79. - For two-lane operation the property must be set to <1 2>.
  80. - items:
  81. - - const: 1
  82. - - const: 2
  83. -
  84. - clock-noncontinuous:
  85. - type: boolean
  86. - description: |-
  87. - MIPI CSI-2 clock is non-continuous if this property is present,
  88. - otherwise it's continuous.
  89. -
  90. - link-frequencies:
  91. - allOf:
  92. - - $ref: /schemas/types.yaml#/definitions/uint64-array
  93. - description:
  94. - Allowed data bus frequencies.
  95. -
  96. - required:
  97. - - link-frequencies
  98. -
  99. -required:
  100. - - compatible
  101. - - reg
  102. - - clocks
  103. - - VANA1-supply
  104. - - VANA2-supply
  105. - - VDIG-supply
  106. - - VDDL-supply
  107. - - port
  108. -
  109. -additionalProperties: false
  110. -
  111. -examples:
  112. - - |
  113. - i2c0 {
  114. - #address-cells = <1>;
  115. - #size-cells = <0>;
  116. -
  117. - imx708: sensor@1a {
  118. - compatible = "sony,imx708";
  119. - reg = <0x1a>;
  120. - clocks = <&imx708_clk>;
  121. - VANA1-supply = <&imx708_vana1>; /* 1.8v */
  122. - VANA2-supply = <&imx708_vana2>; /* 2.8v */
  123. - VDIG-supply = <&imx708_vdig>; /* 1.1v */
  124. - VDDL-supply = <&imx708_vddl>; /* 1.8v */
  125. -
  126. - port {
  127. - imx708_0: endpoint {
  128. - remote-endpoint = <&csi1_ep>;
  129. - data-lanes = <1 2>;
  130. - clock-noncontinuous;
  131. - link-frequencies = /bits/ 64 <450000000>;
  132. - };
  133. - };
  134. - };
  135. - };
  136. -
  137. -...
  138. --- /dev/null
  139. +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx708.yaml
  140. @@ -0,0 +1,128 @@
  141. +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  142. +%YAML 1.2
  143. +---
  144. +$id: http://devicetree.org/schemas/media/i2c/sony,imx708.yaml#
  145. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  146. +
  147. +title: Sony 1/2.3-Inch 12Mpixel CMOS Digital Image Sensor
  148. +
  149. +maintainers:
  150. + - Raspberry Pi Kernel Maintenance <[email protected]>
  151. +
  152. +description: |-
  153. + The Sony IMX708 is a 1/2.3-inch CMOS active pixel digital image sensor
  154. + with an active array size of 4608H x 2592V. It is programmable through
  155. + I2C interface. The I2C address is fixed to 0x1A as per sensor data sheet.
  156. + Image data is sent through MIPI CSI-2, which is configured as either 2 or
  157. + 4 data lanes.
  158. +
  159. +properties:
  160. + compatible:
  161. + const: sony,imx708
  162. +
  163. + reg:
  164. + maxItems: 1
  165. +
  166. + clocks:
  167. + maxItems: 1
  168. +
  169. + clock-names:
  170. + description: Input clock (6 to 27 MHz)
  171. + items:
  172. + - const: inck
  173. +
  174. + vdig-supply:
  175. + description:
  176. + Digital I/O voltage supply, 1.1 volts
  177. +
  178. + vana1-supply:
  179. + description:
  180. + Analog1 voltage supply, 2.8 volts
  181. +
  182. + vana2-supply:
  183. + description:
  184. + Analog2 voltage supply, 1.8 volts
  185. +
  186. + vddl-supply:
  187. + description:
  188. + Digital core voltage supply, 1.8 volts
  189. +
  190. + reset-gpios:
  191. + description: Sensor reset (XCLR) GPIO
  192. + maxItems: 1
  193. +
  194. + port:
  195. + $ref: /schemas/graph.yaml#/$defs/port-base
  196. + description: |
  197. + Video output port
  198. +
  199. + properties:
  200. + endpoint:
  201. + $ref: /schemas/media/video-interfaces.yaml#
  202. + unevaluatedProperties: false
  203. +
  204. + properties:
  205. + data-lanes:
  206. + anyOf:
  207. + - items:
  208. + - const: 1
  209. + - const: 2
  210. + - items:
  211. + - const: 1
  212. + - const: 2
  213. + - const: 3
  214. + - const: 4
  215. +
  216. + link-frequencies: true
  217. +
  218. + required:
  219. + - data-lanes
  220. + - link-frequencies
  221. +
  222. + additionalProperties: false
  223. +
  224. +required:
  225. + - compatible
  226. + - reg
  227. + - clocks
  228. + - clock-names
  229. + - vdig-supply
  230. + - vana1-supply
  231. + - vana2-supply
  232. + - vddl-supply
  233. + - port
  234. +
  235. +additionalProperties: false
  236. +
  237. +examples:
  238. + - |
  239. + #include <dt-bindings/gpio/gpio.h>
  240. +
  241. + i2c {
  242. + #address-cells = <1>;
  243. + #size-cells = <0>;
  244. +
  245. + imx708: camera-sensor@1a {
  246. + compatible = "sony,imx708";
  247. + reg = <0x1a>;
  248. +
  249. + clocks = <&clk 90>;
  250. + clock-names = "inck";
  251. +
  252. + vdig-supply = <&camera_vdig>;
  253. + vana1-supply = <&camera_vana1>;
  254. + vana2-supply = <&camera_vana2>;
  255. + vddl-supply = <&camera_vddl>;
  256. +
  257. + reset-gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
  258. +
  259. + port {
  260. + imx708_ep: endpoint {
  261. + data-lanes = <1 2>;
  262. + link-frequencies = /bits/ 64 <450000000>;
  263. + remote-endpoint = <&csi_ep>;
  264. + };
  265. + };
  266. + };
  267. + };
  268. +...
  269. --- a/MAINTAINERS
  270. +++ b/MAINTAINERS
  271. @@ -19344,7 +19344,7 @@ M: Raspberry Pi Kernel Maintenance <kern
  272. L: [email protected]
  273. S: Maintained
  274. T: git git://linuxtv.org/media_tree.git
  275. -F: Documentation/devicetree/bindings/media/i2c/imx708.yaml
  276. +F: Documentation/devicetree/bindings/media/i2c/sony,imx708.yaml
  277. F: drivers/media/i2c/imx708.c
  278. SONY MEMORYSTICK SUBSYSTEM