dsi-controller-main.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/msm/dsi-controller-main.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Qualcomm Display DSI controller
  7. maintainers:
  8. - Krishna Manikandan <quic_mkrishn@quicinc.com>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - items:
  13. - enum:
  14. - qcom,apq8064-dsi-ctrl
  15. - qcom,msm8226-dsi-ctrl
  16. - qcom,msm8916-dsi-ctrl
  17. - qcom,msm8953-dsi-ctrl
  18. - qcom,msm8974-dsi-ctrl
  19. - qcom,msm8976-dsi-ctrl
  20. - qcom,msm8996-dsi-ctrl
  21. - qcom,msm8998-dsi-ctrl
  22. - qcom,qcm2290-dsi-ctrl
  23. - qcom,sc7180-dsi-ctrl
  24. - qcom,sc7280-dsi-ctrl
  25. - qcom,sdm660-dsi-ctrl
  26. - qcom,sdm670-dsi-ctrl
  27. - qcom,sdm845-dsi-ctrl
  28. - qcom,sm6115-dsi-ctrl
  29. - qcom,sm6125-dsi-ctrl
  30. - qcom,sm6350-dsi-ctrl
  31. - qcom,sm6375-dsi-ctrl
  32. - qcom,sm7150-dsi-ctrl
  33. - qcom,sm8150-dsi-ctrl
  34. - qcom,sm8250-dsi-ctrl
  35. - qcom,sm8350-dsi-ctrl
  36. - qcom,sm8450-dsi-ctrl
  37. - qcom,sm8550-dsi-ctrl
  38. - qcom,sm8650-dsi-ctrl
  39. - const: qcom,mdss-dsi-ctrl
  40. - enum:
  41. - qcom,dsi-ctrl-6g-qcm2290
  42. - qcom,mdss-dsi-ctrl # This should always come with an SoC-specific compatible
  43. deprecated: true
  44. reg:
  45. maxItems: 1
  46. reg-names:
  47. const: dsi_ctrl
  48. interrupts:
  49. maxItems: 1
  50. clocks:
  51. description: |
  52. Several clocks are used, depending on the variant. Typical ones are::
  53. - bus:: Display AHB clock.
  54. - byte:: Display byte clock.
  55. - byte_intf:: Display byte interface clock.
  56. - core:: Display core clock.
  57. - core_mss:: Core MultiMedia SubSystem clock.
  58. - iface:: Display AXI clock.
  59. - mdp_core:: MDP Core clock.
  60. - mnoc:: MNOC clock
  61. - pixel:: Display pixel clock.
  62. minItems: 3
  63. maxItems: 9
  64. clock-names:
  65. minItems: 3
  66. maxItems: 9
  67. phys:
  68. maxItems: 1
  69. phy-names:
  70. deprecated: true
  71. const: dsi
  72. syscon-sfpb:
  73. description: A phandle to mmss_sfpb syscon node (only for DSIv2).
  74. $ref: /schemas/types.yaml#/definitions/phandle
  75. qcom,dual-dsi-mode:
  76. type: boolean
  77. description: |
  78. Indicates if the DSI controller is driving a panel which needs
  79. 2 DSI links.
  80. qcom,master-dsi:
  81. type: boolean
  82. description: |
  83. Indicates if the DSI controller is the master DSI controller when
  84. qcom,dual-dsi-mode enabled.
  85. qcom,sync-dual-dsi:
  86. type: boolean
  87. description: |
  88. Indicates if the DSI controller needs to sync the other DSI controller
  89. with MIPI DCS commands when qcom,dual-dsi-mode enabled.
  90. assigned-clocks:
  91. minItems: 2
  92. maxItems: 4
  93. description: |
  94. Parents of "byte" and "pixel" for the given platform.
  95. For DSIv2 platforms this should contain "byte", "esc", "src" and
  96. "pixel_src" clocks.
  97. assigned-clock-parents:
  98. minItems: 2
  99. maxItems: 4
  100. description: |
  101. The Byte clock and Pixel clock PLL outputs provided by a DSI PHY block.
  102. power-domains:
  103. maxItems: 1
  104. operating-points-v2: true
  105. opp-table:
  106. type: object
  107. ports:
  108. $ref: /schemas/graph.yaml#/properties/ports
  109. description: |
  110. Contains DSI controller input and output ports as children, each
  111. containing one endpoint subnode.
  112. properties:
  113. port@0:
  114. $ref: /schemas/graph.yaml#/$defs/port-base
  115. unevaluatedProperties: false
  116. description: |
  117. Input endpoints of the controller.
  118. properties:
  119. endpoint:
  120. $ref: /schemas/media/video-interfaces.yaml#
  121. unevaluatedProperties: false
  122. properties:
  123. data-lanes:
  124. maxItems: 4
  125. minItems: 1
  126. items:
  127. enum: [ 0, 1, 2, 3 ]
  128. port@1:
  129. $ref: /schemas/graph.yaml#/$defs/port-base
  130. unevaluatedProperties: false
  131. description: |
  132. Output endpoints of the controller.
  133. properties:
  134. endpoint:
  135. $ref: /schemas/media/video-interfaces.yaml#
  136. unevaluatedProperties: false
  137. properties:
  138. data-lanes:
  139. maxItems: 4
  140. minItems: 1
  141. items:
  142. enum: [ 0, 1, 2, 3 ]
  143. qcom,te-source:
  144. $ref: /schemas/types.yaml#/definitions/string
  145. description:
  146. Specifies the source of vsync signal from the panel used for
  147. tearing elimination.
  148. default: mdp_vsync_p
  149. enum:
  150. - mdp_vsync_p
  151. - mdp_vsync_s
  152. - mdp_vsync_e
  153. - timer0
  154. - timer1
  155. - timer2
  156. - timer3
  157. - timer4
  158. required:
  159. - port@0
  160. - port@1
  161. avdd-supply:
  162. description:
  163. Phandle to vdd regulator device node
  164. refgen-supply:
  165. description:
  166. Phandle to REFGEN regulator device node
  167. vcca-supply:
  168. description:
  169. Phandle to vdd regulator device node
  170. vdd-supply:
  171. description:
  172. VDD regulator
  173. vddio-supply:
  174. description:
  175. VDD-IO regulator
  176. vdda-supply:
  177. description:
  178. VDDA regulator
  179. required:
  180. - compatible
  181. - reg
  182. - reg-names
  183. - interrupts
  184. - clocks
  185. - clock-names
  186. - phys
  187. - assigned-clocks
  188. - assigned-clock-parents
  189. - ports
  190. allOf:
  191. - $ref: ../dsi-controller.yaml#
  192. - if:
  193. properties:
  194. compatible:
  195. contains:
  196. enum:
  197. - qcom,apq8064-dsi-ctrl
  198. then:
  199. properties:
  200. clocks:
  201. maxItems: 7
  202. clock-names:
  203. items:
  204. - const: iface
  205. - const: bus
  206. - const: core_mmss
  207. - const: src
  208. - const: byte
  209. - const: pixel
  210. - const: core
  211. - if:
  212. properties:
  213. compatible:
  214. contains:
  215. enum:
  216. - qcom,msm8916-dsi-ctrl
  217. then:
  218. properties:
  219. clocks:
  220. maxItems: 6
  221. clock-names:
  222. items:
  223. - const: mdp_core
  224. - const: iface
  225. - const: bus
  226. - const: byte
  227. - const: pixel
  228. - const: core
  229. - if:
  230. properties:
  231. compatible:
  232. contains:
  233. enum:
  234. - qcom,msm8953-dsi-ctrl
  235. - qcom,msm8976-dsi-ctrl
  236. then:
  237. properties:
  238. clocks:
  239. maxItems: 6
  240. clock-names:
  241. items:
  242. - const: mdp_core
  243. - const: iface
  244. - const: bus
  245. - const: byte
  246. - const: pixel
  247. - const: core
  248. - if:
  249. properties:
  250. compatible:
  251. contains:
  252. enum:
  253. - qcom,msm8226-dsi-ctrl
  254. - qcom,msm8974-dsi-ctrl
  255. then:
  256. properties:
  257. clocks:
  258. maxItems: 7
  259. clock-names:
  260. items:
  261. - const: mdp_core
  262. - const: iface
  263. - const: bus
  264. - const: byte
  265. - const: pixel
  266. - const: core
  267. - const: core_mmss
  268. - if:
  269. properties:
  270. compatible:
  271. contains:
  272. enum:
  273. - qcom,msm8996-dsi-ctrl
  274. then:
  275. properties:
  276. clocks:
  277. maxItems: 7
  278. clock-names:
  279. items:
  280. - const: mdp_core
  281. - const: byte
  282. - const: iface
  283. - const: bus
  284. - const: core_mmss
  285. - const: pixel
  286. - const: core
  287. - if:
  288. properties:
  289. compatible:
  290. contains:
  291. enum:
  292. - qcom,msm8998-dsi-ctrl
  293. - qcom,sm6125-dsi-ctrl
  294. - qcom,sm6350-dsi-ctrl
  295. then:
  296. properties:
  297. clocks:
  298. maxItems: 6
  299. clock-names:
  300. items:
  301. - const: byte
  302. - const: byte_intf
  303. - const: pixel
  304. - const: core
  305. - const: iface
  306. - const: bus
  307. - if:
  308. properties:
  309. compatible:
  310. contains:
  311. enum:
  312. - qcom,sc7180-dsi-ctrl
  313. - qcom,sc7280-dsi-ctrl
  314. - qcom,sm7150-dsi-ctrl
  315. - qcom,sm8150-dsi-ctrl
  316. - qcom,sm8250-dsi-ctrl
  317. - qcom,sm8350-dsi-ctrl
  318. - qcom,sm8450-dsi-ctrl
  319. - qcom,sm8550-dsi-ctrl
  320. - qcom,sm8650-dsi-ctrl
  321. then:
  322. properties:
  323. clocks:
  324. maxItems: 6
  325. clock-names:
  326. items:
  327. - const: byte
  328. - const: byte_intf
  329. - const: pixel
  330. - const: core
  331. - const: iface
  332. - const: bus
  333. - if:
  334. properties:
  335. compatible:
  336. contains:
  337. enum:
  338. - qcom,sdm660-dsi-ctrl
  339. then:
  340. properties:
  341. clocks:
  342. maxItems: 9
  343. clock-names:
  344. items:
  345. - const: mdp_core
  346. - const: byte
  347. - const: byte_intf
  348. - const: mnoc
  349. - const: iface
  350. - const: bus
  351. - const: core_mmss
  352. - const: pixel
  353. - const: core
  354. - if:
  355. properties:
  356. compatible:
  357. contains:
  358. enum:
  359. - qcom,sdm845-dsi-ctrl
  360. - qcom,sm6115-dsi-ctrl
  361. - qcom,sm6375-dsi-ctrl
  362. then:
  363. properties:
  364. clocks:
  365. maxItems: 6
  366. clock-names:
  367. items:
  368. - const: byte
  369. - const: byte_intf
  370. - const: pixel
  371. - const: core
  372. - const: iface
  373. - const: bus
  374. unevaluatedProperties: false
  375. examples:
  376. - |
  377. #include <dt-bindings/interrupt-controller/arm-gic.h>
  378. #include <dt-bindings/clock/qcom,dispcc-sdm845.h>
  379. #include <dt-bindings/clock/qcom,gcc-sdm845.h>
  380. #include <dt-bindings/power/qcom-rpmpd.h>
  381. dsi@ae94000 {
  382. compatible = "qcom,sc7180-dsi-ctrl", "qcom,mdss-dsi-ctrl";
  383. reg = <0x0ae94000 0x400>;
  384. reg-names = "dsi_ctrl";
  385. #address-cells = <1>;
  386. #size-cells = <0>;
  387. interrupt-parent = <&mdss>;
  388. interrupts = <4>;
  389. clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK>,
  390. <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>,
  391. <&dispcc DISP_CC_MDSS_PCLK0_CLK>,
  392. <&dispcc DISP_CC_MDSS_ESC0_CLK>,
  393. <&dispcc DISP_CC_MDSS_AHB_CLK>,
  394. <&dispcc DISP_CC_MDSS_AXI_CLK>;
  395. clock-names = "byte",
  396. "byte_intf",
  397. "pixel",
  398. "core",
  399. "iface",
  400. "bus";
  401. phys = <&dsi0_phy>;
  402. phy-names = "dsi";
  403. assigned-clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK_SRC>, <&dispcc DISP_CC_MDSS_PCLK0_CLK_SRC>;
  404. assigned-clock-parents = <&dsi_phy 0>, <&dsi_phy 1>;
  405. power-domains = <&rpmhpd SC7180_CX>;
  406. operating-points-v2 = <&dsi_opp_table>;
  407. ports {
  408. #address-cells = <1>;
  409. #size-cells = <0>;
  410. port@0 {
  411. reg = <0>;
  412. dsi0_in: endpoint {
  413. remote-endpoint = <&dpu_intf1_out>;
  414. };
  415. };
  416. port@1 {
  417. reg = <1>;
  418. dsi0_out: endpoint {
  419. remote-endpoint = <&sn65dsi86_in>;
  420. data-lanes = <0 1 2 3>;
  421. qcom,te-source = "mdp_vsync_e";
  422. };
  423. };
  424. };
  425. };
  426. ...