qcom,camss.txt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. Qualcomm Camera Subsystem
  2. * Properties
  3. - compatible:
  4. Usage: required
  5. Value type: <stringlist>
  6. Definition: Should contain one of:
  7. - "qcom,msm8916-camss"
  8. - "qcom,msm8996-camss"
  9. - reg:
  10. Usage: required
  11. Value type: <prop-encoded-array>
  12. Definition: Register ranges as listed in the reg-names property.
  13. - reg-names:
  14. Usage: required
  15. Value type: <stringlist>
  16. Definition: Should contain the following entries:
  17. - "csiphy0"
  18. - "csiphy0_clk_mux"
  19. - "csiphy1"
  20. - "csiphy1_clk_mux"
  21. - "csiphy2" (8996 only)
  22. - "csiphy2_clk_mux" (8996 only)
  23. - "csid0"
  24. - "csid1"
  25. - "csid2" (8996 only)
  26. - "csid3" (8996 only)
  27. - "ispif"
  28. - "csi_clk_mux"
  29. - "vfe0"
  30. - "vfe1" (8996 only)
  31. - interrupts:
  32. Usage: required
  33. Value type: <prop-encoded-array>
  34. Definition: Interrupts as listed in the interrupt-names property.
  35. - interrupt-names:
  36. Usage: required
  37. Value type: <stringlist>
  38. Definition: Should contain the following entries:
  39. - "csiphy0"
  40. - "csiphy1"
  41. - "csiphy2" (8996 only)
  42. - "csid0"
  43. - "csid1"
  44. - "csid2" (8996 only)
  45. - "csid3" (8996 only)
  46. - "ispif"
  47. - "vfe0"
  48. - "vfe1" (8996 only)
  49. - power-domains:
  50. Usage: required
  51. Value type: <prop-encoded-array>
  52. Definition: A phandle and power domain specifier pairs to the
  53. power domain which is responsible for collapsing
  54. and restoring power to the peripheral.
  55. - clocks:
  56. Usage: required
  57. Value type: <prop-encoded-array>
  58. Definition: A list of phandle and clock specifier pairs as listed
  59. in clock-names property.
  60. - clock-names:
  61. Usage: required
  62. Value type: <stringlist>
  63. Definition: Should contain the following entries:
  64. - "top_ahb"
  65. - "ispif_ahb"
  66. - "csiphy0_timer"
  67. - "csiphy1_timer"
  68. - "csiphy2_timer" (8996 only)
  69. - "csi0_ahb"
  70. - "csi0"
  71. - "csi0_phy"
  72. - "csi0_pix"
  73. - "csi0_rdi"
  74. - "csi1_ahb"
  75. - "csi1"
  76. - "csi1_phy"
  77. - "csi1_pix"
  78. - "csi1_rdi"
  79. - "csi2_ahb" (8996 only)
  80. - "csi2" (8996 only)
  81. - "csi2_phy" (8996 only)
  82. - "csi2_pix" (8996 only)
  83. - "csi2_rdi" (8996 only)
  84. - "csi3_ahb" (8996 only)
  85. - "csi3" (8996 only)
  86. - "csi3_phy" (8996 only)
  87. - "csi3_pix" (8996 only)
  88. - "csi3_rdi" (8996 only)
  89. - "ahb"
  90. - "vfe0"
  91. - "csi_vfe0"
  92. - "vfe0_ahb", (8996 only)
  93. - "vfe0_stream", (8996 only)
  94. - "vfe1", (8996 only)
  95. - "csi_vfe1", (8996 only)
  96. - "vfe1_ahb", (8996 only)
  97. - "vfe1_stream", (8996 only)
  98. - "vfe_ahb"
  99. - "vfe_axi"
  100. - vdda-supply:
  101. Usage: required
  102. Value type: <phandle>
  103. Definition: A phandle to voltage supply for CSI2.
  104. - iommus:
  105. Usage: required
  106. Value type: <prop-encoded-array>
  107. Definition: A list of phandle and IOMMU specifier pairs.
  108. * Nodes
  109. - ports:
  110. Usage: required
  111. Definition: As described in video-interfaces.txt in same directory.
  112. Properties:
  113. - reg:
  114. Usage: required
  115. Value type: <u32>
  116. Definition: Selects CSI2 PHY interface - PHY0, PHY1
  117. or PHY2 (8996 only)
  118. Endpoint node properties:
  119. - clock-lanes:
  120. Usage: required
  121. Value type: <u32>
  122. Definition: The physical clock lane index. On 8916
  123. the value must always be <1> as the physical
  124. clock lane is lane 1. On 8996 the value must
  125. always be <7> as the hardware supports D-PHY
  126. and C-PHY, indexes are in a common set and
  127. D-PHY physical clock lane is labeled as 7.
  128. - data-lanes:
  129. Usage: required
  130. Value type: <prop-encoded-array>
  131. Definition: An array of physical data lanes indexes.
  132. Position of an entry determines the logical
  133. lane number, while the value of an entry
  134. indicates physical lane index. Lane swapping
  135. is supported. Physical lane indexes for
  136. 8916: 0, 2, 3, 4; for 8996: 0, 1, 2, 3.
  137. * An Example
  138. camss: camss@1b00000 {
  139. compatible = "qcom,msm8916-camss";
  140. reg = <0x1b0ac00 0x200>,
  141. <0x1b00030 0x4>,
  142. <0x1b0b000 0x200>,
  143. <0x1b00038 0x4>,
  144. <0x1b08000 0x100>,
  145. <0x1b08400 0x100>,
  146. <0x1b0a000 0x500>,
  147. <0x1b00020 0x10>,
  148. <0x1b10000 0x1000>;
  149. reg-names = "csiphy0",
  150. "csiphy0_clk_mux",
  151. "csiphy1",
  152. "csiphy1_clk_mux",
  153. "csid0",
  154. "csid1",
  155. "ispif",
  156. "csi_clk_mux",
  157. "vfe0";
  158. interrupts = <GIC_SPI 78 0>,
  159. <GIC_SPI 79 0>,
  160. <GIC_SPI 51 0>,
  161. <GIC_SPI 52 0>,
  162. <GIC_SPI 55 0>,
  163. <GIC_SPI 57 0>;
  164. interrupt-names = "csiphy0",
  165. "csiphy1",
  166. "csid0",
  167. "csid1",
  168. "ispif",
  169. "vfe0";
  170. power-domains = <&gcc VFE_GDSC>;
  171. clocks = <&gcc GCC_CAMSS_TOP_AHB_CLK>,
  172. <&gcc GCC_CAMSS_ISPIF_AHB_CLK>,
  173. <&gcc GCC_CAMSS_CSI0PHYTIMER_CLK>,
  174. <&gcc GCC_CAMSS_CSI1PHYTIMER_CLK>,
  175. <&gcc GCC_CAMSS_CSI0_AHB_CLK>,
  176. <&gcc GCC_CAMSS_CSI0_CLK>,
  177. <&gcc GCC_CAMSS_CSI0PHY_CLK>,
  178. <&gcc GCC_CAMSS_CSI0PIX_CLK>,
  179. <&gcc GCC_CAMSS_CSI0RDI_CLK>,
  180. <&gcc GCC_CAMSS_CSI1_AHB_CLK>,
  181. <&gcc GCC_CAMSS_CSI1_CLK>,
  182. <&gcc GCC_CAMSS_CSI1PHY_CLK>,
  183. <&gcc GCC_CAMSS_CSI1PIX_CLK>,
  184. <&gcc GCC_CAMSS_CSI1RDI_CLK>,
  185. <&gcc GCC_CAMSS_AHB_CLK>,
  186. <&gcc GCC_CAMSS_VFE0_CLK>,
  187. <&gcc GCC_CAMSS_CSI_VFE0_CLK>,
  188. <&gcc GCC_CAMSS_VFE_AHB_CLK>,
  189. <&gcc GCC_CAMSS_VFE_AXI_CLK>;
  190. clock-names = "top_ahb",
  191. "ispif_ahb",
  192. "csiphy0_timer",
  193. "csiphy1_timer",
  194. "csi0_ahb",
  195. "csi0",
  196. "csi0_phy",
  197. "csi0_pix",
  198. "csi0_rdi",
  199. "csi1_ahb",
  200. "csi1",
  201. "csi1_phy",
  202. "csi1_pix",
  203. "csi1_rdi",
  204. "ahb",
  205. "vfe0",
  206. "csi_vfe0",
  207. "vfe_ahb",
  208. "vfe_axi";
  209. vdda-supply = <&pm8916_l2>;
  210. iommus = <&apps_iommu 3>;
  211. ports {
  212. #address-cells = <1>;
  213. #size-cells = <0>;
  214. port@0 {
  215. reg = <0>;
  216. csiphy0_ep: endpoint {
  217. clock-lanes = <1>;
  218. data-lanes = <0 2>;
  219. remote-endpoint = <&ov5645_ep>;
  220. };
  221. };
  222. };
  223. };