950-0593-dt-bindings-media-i2c-Add-IMX296-CMOS-sensor-binding.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. From 7ed07a716b1aab15c91a3238dacbc1fc76ace567 Mon Sep 17 00:00:00 2001
  2. From: Manivannan Sadhasivam <[email protected]>
  3. Date: Tue, 23 Aug 2022 03:58:21 +0300
  4. Subject: [PATCH] dt-bindings: media: i2c: Add IMX296 CMOS sensor
  5. binding
  6. Add YAML devicetree binding for IMX296 CMOS image sensor. Let's also
  7. add MAINTAINERS entry for the binding and driver.
  8. Signed-off-by: Manivannan Sadhasivam <[email protected]>
  9. Signed-off-by: Laurent Pinchart <[email protected]>
  10. Reviewed-by: Rob Herring <[email protected]>
  11. Signed-off-by: Sakari Ailus <[email protected]>
  12. ---
  13. .../bindings/media/i2c/sony,imx296.yaml | 106 ++++++++++++++++++
  14. MAINTAINERS | 8 ++
  15. 2 files changed, 114 insertions(+)
  16. create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx296.yaml
  17. --- /dev/null
  18. +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx296.yaml
  19. @@ -0,0 +1,106 @@
  20. +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  21. +%YAML 1.2
  22. +---
  23. +$id: http://devicetree.org/schemas/media/i2c/sony,imx296.yaml#
  24. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  25. +
  26. +title: Sony IMX296 1/2.8-Inch CMOS Image Sensor
  27. +
  28. +maintainers:
  29. + - Manivannan Sadhasivam <[email protected]>
  30. + - Laurent Pinchart <[email protected]>
  31. +
  32. +description: |-
  33. + The Sony IMX296 is a 1/2.9-Inch active pixel type CMOS Solid-state image
  34. + sensor with square pixel array and 1.58 M effective pixels. This chip
  35. + features a global shutter with variable charge-integration time. It is
  36. + programmable through I2C and 4-wire interfaces. The sensor output is
  37. + available via CSI-2 serial data output (1 Lane).
  38. +
  39. +properties:
  40. + compatible:
  41. + enum:
  42. + - sony,imx296
  43. + - sony,imx296ll
  44. + - sony,imx296lq
  45. + description:
  46. + The IMX296 sensor exists in two different models, a colour variant
  47. + (IMX296LQ) and a monochrome variant (IMX296LL). The device exposes the
  48. + model through registers, allowing for auto-detection with a common
  49. + "sony,imx296" compatible string. However, some camera modules disable the
  50. + ability to read the sensor model register, which disables this feature.
  51. + In those cases, the exact model needs to be specified as "sony,imx296ll"
  52. + or "sony,imx296lq".
  53. +
  54. + reg:
  55. + maxItems: 1
  56. +
  57. + clocks:
  58. + maxItems: 1
  59. +
  60. + clock-names:
  61. + description: Input clock (37.125 MHz, 54 MHz or 74.25 MHz)
  62. + items:
  63. + - const: inck
  64. +
  65. + avdd-supply:
  66. + description: Analog power supply (3.3V)
  67. +
  68. + dvdd-supply:
  69. + description: Digital power supply (1.2V)
  70. +
  71. + ovdd-supply:
  72. + description: Interface power supply (1.8V)
  73. +
  74. + reset-gpios:
  75. + description: Sensor reset (XCLR) GPIO
  76. + maxItems: 1
  77. +
  78. + port:
  79. + $ref: /schemas/graph.yaml#/properties/port
  80. +
  81. +required:
  82. + - compatible
  83. + - reg
  84. + - clocks
  85. + - clock-names
  86. + - avdd-supply
  87. + - dvdd-supply
  88. + - ovdd-supply
  89. + - port
  90. +
  91. +additionalProperties: false
  92. +
  93. +examples:
  94. + - |
  95. + #include <dt-bindings/gpio/gpio.h>
  96. +
  97. + i2c {
  98. + #address-cells = <1>;
  99. + #size-cells = <0>;
  100. +
  101. + imx296: camera-sensor@1a {
  102. + compatible = "sony,imx296";
  103. + reg = <0x1a>;
  104. +
  105. + pinctrl-names = "default";
  106. + pinctrl-0 = <&camera_rear_default>;
  107. +
  108. + clocks = <&gcc 90>;
  109. + clock-names = "inck";
  110. +
  111. + avdd-supply = <&camera_vdda_3v3>;
  112. + dvdd-supply = <&camera_vddd_1v2>;
  113. + ovdd-supply = <&camera_vddo_1v8>;
  114. +
  115. + reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>;
  116. +
  117. + port {
  118. + imx296_ep: endpoint {
  119. + remote-endpoint = <&csiphy0_ep>;
  120. + };
  121. + };
  122. + };
  123. + };
  124. +
  125. +...
  126. --- a/MAINTAINERS
  127. +++ b/MAINTAINERS
  128. @@ -19281,6 +19281,14 @@ T: git git://linuxtv.org/media_tree.git
  129. F: Documentation/devicetree/bindings/media/i2c/imx290.txt
  130. F: drivers/media/i2c/imx290.c
  131. +SONY IMX296 SENSOR DRIVER
  132. +M: Laurent Pinchart <[email protected]>
  133. +M: Manivannan Sadhasivam <[email protected]>
  134. +L: [email protected]
  135. +S: Maintained
  136. +T: git git://linuxtv.org/media_tree.git
  137. +F: Documentation/devicetree/bindings/media/i2c/sony,imx296.yaml
  138. +
  139. SONY IMX319 SENSOR DRIVER
  140. M: Bingbu Cao <[email protected]>
  141. L: [email protected]