950-0413-Documentation-devicetree-Add-documentation-for-imx37.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. From a307b7b21da2c1b61226a5f1b2b56b6582fe7cc4 Mon Sep 17 00:00:00 2001
  2. From: David Plowman <[email protected]>
  3. Date: Tue, 29 Jun 2021 14:38:23 +0100
  4. Subject: [PATCH] Documentation: devicetree: Add documentation for
  5. imx378 sensor
  6. The imx378 sensor is compatible with the imx477 and shares common
  7. device tree settings.
  8. Signed-off-by: David Plowman <[email protected]>
  9. ---
  10. .../devicetree/bindings/media/i2c/imx378.yaml | 113 ++++++++++++++++++
  11. MAINTAINERS | 1 +
  12. 2 files changed, 114 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/media/i2c/imx378.yaml
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/media/i2c/imx378.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/imx378.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 IMX378 is a 1/2.3-inch CMOS active pixel digital image sensor
  30. + with an active array size of 4056H x 3040V. 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,imx378
  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. + imx378: sensor@10 {
  111. + compatible = "sony,imx378";
  112. + reg = <0x1a>;
  113. + clocks = <&imx378_clk>;
  114. + VANA-supply = <&imx378_vana>; /* 2.8v */
  115. + VDIG-supply = <&imx378_vdig>; /* 1.05v */
  116. + VDDL-supply = <&imx378_vddl>; /* 1.8v */
  117. +
  118. + port {
  119. + imx378_0: endpoint {
  120. + remote-endpoint = <&csi1_ep>;
  121. + data-lanes = <1 2>;
  122. + clock-noncontinuous;
  123. + link-frequencies = /bits/ 64 <450000000>;
  124. + };
  125. + };
  126. + };
  127. + };
  128. +
  129. +...
  130. --- a/MAINTAINERS
  131. +++ b/MAINTAINERS
  132. @@ -17544,6 +17544,7 @@ M: Raspberry Pi Kernel Maintenance <kern
  133. L: [email protected]
  134. S: Maintained
  135. T: git git://linuxtv.org/media_tree.git
  136. +F: Documentation/devicetree/bindings/media/i2c/imx378.yaml
  137. F: Documentation/devicetree/bindings/media/i2c/imx477.yaml
  138. F: drivers/media/i2c/imx477.c