pil-q6v5-mss.txt 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. Qualcomm Technologies Inc MSS QDSP6v5 Peripheral Image Loader
  2. pil-qdsp6v5-mss is a peripheral image loader (PIL) driver. It is used for
  3. loading QDSP6v5 (Hexagon) firmware images for modem subsystems into memory and
  4. preparing the subsystem's processor to execute code. It's also responsible for
  5. shutting down the processor when it's not needed.
  6. Required properties:
  7. - compatible: Must be "qcom,pil-q6v5-mss" or "qcom,pil-q6v55-mss" or
  8. "qcom,pil-q6v56-mss".
  9. - reg: Pairs of physical base addresses and region sizes of
  10. memory mapped registers.
  11. - reg-names: Names of the bases for the above registers. "qdsp6_base",
  12. "rmb_base", "restart_reg" or "restart_reg_sec"(optional
  13. for secure mode) are expected.
  14. If "halt_base" is in same 4K pages this register then
  15. this will be defined else "halt_q6", "halt_modem",
  16. "halt_nc" is required.
  17. "pdc_sync" is the power domain register introduced in
  18. sdm845 for power domain of subsystems.
  19. If alternative reset is required, "alt_reset" maps to
  20. mss_alt_ares.
  21. - interrupts: The modem watchdog interrupt
  22. - vdd_cx-supply: Reference to the regulator that supplies the vdd_cx domain.
  23. - vdd_cx-voltage: Voltage corner/level(max) for cx rail.
  24. - vdd_mx-supply: Reference to the regulator that supplies the memory rail.
  25. - vdd_mx-uV: Voltage setting for the mx rail.
  26. - qcom,firmware-name: Base name of the firmware image. Ex. "mdsp"
  27. Optional properties:
  28. - vdd_mss-supply: Reference to the regulator that supplies the processor.
  29. This may be a shared regulator that is already voted
  30. on in the PIL proxy voting code (and also managed by the
  31. modem on its own), hence we mark it as as optional.
  32. - vdd_mss-uV: Voltage to set for vdd_mss.
  33. - vdd_pll-supply: Reference to the regulator that supplies the PLL's rail.
  34. - qcom,vdd_pll: Voltage to be set for the PLL's rail.
  35. - reg-names: "cxrail_bhs_reg" - control register for modem power
  36. domain.
  37. - clocks: Array of <clock_controller_phandle clock_reference> listing
  38. all the clocks that are accesed by this subsystem.
  39. - qcom,proxy-clock-names: Names of the clocks that need to be turned on/off during
  40. proxy voting/unvoting.
  41. - qcom,active-clock-names: Names of the clocks that need to be turned on for the
  42. subsystem to run. Turned off when the subsystem is shutdown.
  43. - clock-names: Names of all the clocks that are accessed by the subsystem.
  44. - qcom,is-not-loadable: Boolean- Present if the image does not need to
  45. be loaded.
  46. - qcom,pil-self-auth: Boolean- True if authentication is required.
  47. - qcom,mem-protect-id: Virtual ID used by PIL to call into TZ/HYP to protect/unprotect
  48. subsystem related memory.
  49. - qcom,gpio-err-fatal: GPIO used by the modem to indicate error fatal to the apps.
  50. - qcom,gpio-err-ready: GPIO used by the modem to indicate error ready to the apps.
  51. - qcom,gpio-proxy-unvote: GPIO used by the modem to trigger proxy unvoting in
  52. the apps.
  53. - qcom,gpio-force-stop: GPIO used by the apps to force the modem to shutdown.
  54. - qcom,gpio-stop-ack: GPIO used by the modem to ack force stop or a graceful stop
  55. to the apps.
  56. - qcom,gpio-ramdump-disable: GPIO used by the modem to inform the apps that ramdump
  57. collection should be disabled.
  58. - qcom,gpio-shutdown-ack: GPIO used by the modem to indicate that it has done the
  59. necessary cleanup and that the apps can move forward with
  60. the shutdown sequence.
  61. - qcom,restart-group: List of subsystems that will need to restart together.
  62. - qcom,mba-image-is-not-elf: Boolean- Present if MBA image doesn't use the ELF
  63. format.
  64. - qcom,ssctl-instance-id: Instance id used by the subsystem to connect with the SSCTL
  65. service.
  66. - qcom,sysmon-id: platform device id that sysmon is probed with for the subsystem.
  67. - qcom,override-acc: Boolean- Present if we need to override the default ACC settings
  68. - qcom,mss_pdc_offset: Integer- Mandatory if PDC register is specified. It is
  69. used to specify which bit in the PDC register
  70. corresponds to the modem.
  71. - qcom,ahb-clk-vote: Boolean- Present if we need to remove the vote for the mss_cfg_ahb
  72. clock after the modem boots up
  73. - qcom,pnoc-clk-vote: Boolean- Present if the modem needs the PNOC bus to be
  74. clocked before it boots up
  75. - qcom,qdsp6v56-1-3: Boolean- Present if the qdsp version is v56 1.3
  76. - qcom,qdsp6v56-1-5: Boolean- Present if the qdsp version is v56 1.5
  77. - qcom,edge: GLINK logical name of the remote subsystem
  78. - qcom,pil-force-shutdown: Boolean. If set, the SSR framework will not trigger graceful shutdown
  79. on behalf of the subsystem driver.
  80. - qcom,pil-mss-memsetup: Boolean - True if TZ need to be informed of modem start address and size.
  81. - qcom,pas-id: pas_id of the subsystem.
  82. - qcom,qdsp6v56-1-8: Boolean- Present if the qdsp version is v56 1.8
  83. - qcom,qdsp6v56-1-8-inrush-current: Boolean- Present if the qdsp version is V56 1.8 and has in-rush
  84. current issue.
  85. - qcom,qdsp6v61-1-1: Boolean- Present if the qdsp version is v61 1.1
  86. - qcom,qdsp6v62-1-2: Boolean- Present if the qdsp version is v62 1.2
  87. - qcom,qdsp6v62-1-4: Boolean- Present if the qdsp version is v62 1.4
  88. - qcom,qdsp6v62-1-5: Boolean- Present if the qdsp version is v62 1.5
  89. - qcom,qdsp6v65-1-0: Boolean- Present if the qdsp version is v65 1.0
  90. - qcom,mx-spike-wa: Boolean- Present if we need to assert QDSP6 I/O clamp, memory
  91. wordline clamp, and compiler memory clamp during MSS restart.
  92. - qcom,qdsp6v56-1-10: Boolean- Present if the qdsp version is v56 1.10
  93. - qcom,override-acc-1: Override the default ACC settings with this value if present.
  94. - qcom,minidump-id: Unique id for each subsystem
  95. - qcom,reset-clk: Enable clock after MSS restart
  96. One child node to represent the MBA image may be specified, when the MBA image
  97. needs to be loaded in a specifically carved out memory region.
  98. Required properties:
  99. - compatible: Must be "qcom,pil-mba-mem"
  100. - memory-region: A phandle that points to a reserved memory where the MBA image will be loaded.
  101. Example:
  102. qcom,mss@fc880000 {
  103. compatible = "qcom,pil-q6v5-mss";
  104. reg = <0xfc880000 0x100>,
  105. <0xfd485000 0x400>,
  106. <0xfc820000 0x020>,
  107. <0xfc401680 0x004>;
  108. reg-names = "qdsp6_base", "halt_base", "rmb_base",
  109. "restart_reg";
  110. interrupts = <0 24 1>;
  111. vdd_mss-supply = <&pm8841_s3>;
  112. vdd_cx-supply = <&pm8841_s2>;
  113. vdd_cx-voltage = <7>;
  114. vdd_mx-supply = <&pm8841_s1>;
  115. vdd_mx-uV = <105000>;
  116. clocks = <&clock_rpm clk_xo_pil_mss_clk>,
  117. <&clock_gcc clk_gcc_mss_cfg_ahb_clk>,
  118. <&clock_gcc clk_gcc_mss_q6_bimc_axi_clk>,
  119. <&clock_gcc clk_gcc_boot_rom_ahb_clk>;
  120. clock-names = "xo", "iface_clk", "bus_clk", "mem_clk";
  121. qcom,proxy-clock-names = "xo";
  122. qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk";
  123. qcom,is-not-loadable;
  124. qcom,firmware-name = "mba";
  125. qcom,pil-self-auth;
  126. qcom,mba-image-is-not-elf;
  127. qcom,override-acc;
  128. /* GPIO inputs from mss */
  129. qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
  130. qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
  131. qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
  132. /* GPIO output to mss */
  133. qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
  134. qcom,ssctl-instance-id = <12>;
  135. qcom,sysmon-id = <0>;
  136. qcom,mba-mem@0 {
  137. compatible = "qcom,pil-mba-mem";
  138. memory-region = <&peripheral_mem>;
  139. };
  140. };