Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 1 | Qualcomm Hexagon Peripheral Image Loader |
| 2 | |
| 3 | This document defines the binding for a component that loads and boots firmware |
| 4 | on the Qualcomm Hexagon core. |
| 5 | |
| 6 | - compatible: |
| 7 | Usage: required |
| 8 | Value type: <string> |
| 9 | Definition: must be one of: |
Avaneesh Kumar Dwivedi | 7a8ffe1 | 2016-12-30 19:24:00 +0530 | [diff] [blame] | 10 | "qcom,q6v5-pil", |
Sricharan R | 3a3d416 | 2018-06-07 22:57:11 +0530 | [diff] [blame] | 11 | "qcom,ipq8074-wcss-pil" |
Avaneesh Kumar Dwivedi | 7a8ffe1 | 2016-12-30 19:24:00 +0530 | [diff] [blame] | 12 | "qcom,msm8916-mss-pil", |
| 13 | "qcom,msm8974-mss-pil" |
Avaneesh Kumar Dwivedi | 9f058fa | 2017-10-24 21:22:27 +0530 | [diff] [blame] | 14 | "qcom,msm8996-mss-pil" |
Jeffrey Hugo | ab1b123 | 2019-10-31 19:44:35 -0700 | [diff] [blame] | 15 | "qcom,msm8998-mss-pil" |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 16 | "qcom,sc7180-mss-pil" |
Sibi Sankar | fb22022 | 2018-05-21 22:57:11 +0530 | [diff] [blame] | 17 | "qcom,sdm845-mss-pil" |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 18 | |
| 19 | - reg: |
| 20 | Usage: required |
| 21 | Value type: <prop-encoded-array> |
| 22 | Definition: must specify the base address and size of the qdsp6 and |
| 23 | rmb register blocks |
| 24 | |
| 25 | - reg-names: |
| 26 | Usage: required |
| 27 | Value type: <stringlist> |
| 28 | Definition: must be "q6dsp" and "rmb" |
| 29 | |
| 30 | - interrupts-extended: |
| 31 | Usage: required |
| 32 | Value type: <prop-encoded-array> |
Sibi Sankar | 05f9f57 | 2019-01-08 15:53:42 +0530 | [diff] [blame] | 33 | Definition: reference to the interrupts that match interrupt-names |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 34 | |
| 35 | - interrupt-names: |
| 36 | Usage: required |
| 37 | Value type: <stringlist> |
Sibi Sankar | 05f9f57 | 2019-01-08 15:53:42 +0530 | [diff] [blame] | 38 | Definition: The interrupts needed depends on the the compatible |
| 39 | string: |
| 40 | qcom,q6v5-pil: |
| 41 | qcom,ipq8074-wcss-pil: |
| 42 | qcom,msm8916-mss-pil: |
| 43 | qcom,msm8974-mss-pil: |
| 44 | must be "wdog", "fatal", "ready", "handover", "stop-ack" |
| 45 | qcom,msm8996-mss-pil: |
Jeffrey Hugo | ab1b123 | 2019-10-31 19:44:35 -0700 | [diff] [blame] | 46 | qcom,msm8998-mss-pil: |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 47 | qcom,sc7180-mss-pil: |
Sibi Sankar | 05f9f57 | 2019-01-08 15:53:42 +0530 | [diff] [blame] | 48 | qcom,sdm845-mss-pil: |
| 49 | must be "wdog", "fatal", "ready", "handover", "stop-ack", |
| 50 | "shutdown-ack" |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 51 | |
Sibi Sankar | a5cb1ee | 2018-12-28 10:18:18 +0530 | [diff] [blame] | 52 | - firmware-name: |
| 53 | Usage: optional |
| 54 | Value type: <stringlist> |
| 55 | Definition: must list the relative firmware image paths for mba and |
| 56 | modem. They are used for booting and authenticating the |
| 57 | Hexagon core. |
| 58 | |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 59 | - clocks: |
| 60 | Usage: required |
| 61 | Value type: <phandle> |
Sibi Sankar | 2808cd5 | 2018-12-29 00:23:01 +0530 | [diff] [blame] | 62 | Definition: reference to the clocks that match clock-names |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 63 | |
| 64 | - clock-names: |
| 65 | Usage: required |
| 66 | Value type: <stringlist> |
Sibi Sankar | 2808cd5 | 2018-12-29 00:23:01 +0530 | [diff] [blame] | 67 | Definition: The clocks needed depend on the compatible string: |
| 68 | qcom,ipq8074-wcss-pil: |
| 69 | no clock names required |
| 70 | qcom,q6v5-pil: |
| 71 | qcom,msm8916-mss-pil: |
| 72 | qcom,msm8974-mss-pil: |
| 73 | must be "iface", "bus", "mem", "xo" |
Sibi Sankar | 0f97dbb | 2018-12-29 00:23:02 +0530 | [diff] [blame] | 74 | qcom,msm8996-mss-pil: |
| 75 | must be "iface", "bus", "mem", "xo", "gpll0_mss", |
| 76 | "snoc_axi", "mnoc_axi", "pnoc", "qdss" |
Jeffrey Hugo | ab1b123 | 2019-10-31 19:44:35 -0700 | [diff] [blame] | 77 | qcom,msm8998-mss-pil: |
| 78 | must be "iface", "bus", "mem", "xo", "gpll0_mss", |
| 79 | "snoc_axi", "mnoc_axi", "qdss" |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 80 | qcom,sc7180-mss-pil: |
| 81 | must be "iface", "bus", "xo", "snoc_axi", "mnoc_axi", |
Sibi Sankar | e62e3ac | 2020-04-15 20:21:09 +0530 | [diff] [blame] | 82 | "nav" |
Sibi Sankar | 2808cd5 | 2018-12-29 00:23:01 +0530 | [diff] [blame] | 83 | qcom,sdm845-mss-pil: |
| 84 | must be "iface", "bus", "mem", "xo", "gpll0_mss", |
| 85 | "snoc_axi", "mnoc_axi", "prng" |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 86 | |
| 87 | - resets: |
| 88 | Usage: required |
| 89 | Value type: <phandle> |
| 90 | Definition: reference to the reset-controller for the modem sub-system |
Sricharan R | 3a3d416 | 2018-06-07 22:57:11 +0530 | [diff] [blame] | 91 | reference to the list of 3 reset-controllers for the |
| 92 | wcss sub-system |
Sibi Sankar | 9a66961 | 2018-08-30 00:42:13 +0530 | [diff] [blame] | 93 | reference to the list of 2 reset-controllers for the modem |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 94 | sub-system on SC7180, SDM845 SoCs |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 95 | |
| 96 | - reset-names: |
| 97 | Usage: required |
| 98 | Value type: <stringlist> |
Sricharan R | 3a3d416 | 2018-06-07 22:57:11 +0530 | [diff] [blame] | 99 | Definition: must be "mss_restart" for the modem sub-system |
Sibi Sankar | f861164 | 2018-08-30 00:42:12 +0530 | [diff] [blame] | 100 | must be "wcss_aon_reset", "wcss_reset", "wcss_q6_reset" |
| 101 | for the wcss sub-system |
Sibi Sankar | 9a66961 | 2018-08-30 00:42:13 +0530 | [diff] [blame] | 102 | must be "mss_restart", "pdc_reset" for the modem |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 103 | sub-system on SC7180, SDM845 SoCs |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 104 | |
Sibi Sankar | d964b0b | 2020-04-21 20:02:24 +0530 | [diff] [blame] | 105 | For devices where the mba and mpss sub-nodes are not specified, mba/mpss region |
| 106 | should be referenced as follows: |
| 107 | - memory-region: |
| 108 | Usage: required |
| 109 | Value type: <phandle> |
| 110 | Definition: reference to the reserved-memory for the mba region followed |
| 111 | by the mpss region |
| 112 | |
Sibi Sankar | 688c437 | 2018-12-29 00:23:04 +0530 | [diff] [blame] | 113 | For the compatible strings below the following supplies are required: |
| 114 | "qcom,q6v5-pil" |
| 115 | "qcom,msm8916-mss-pil", |
| 116 | - cx-supply: |
| 117 | - mx-supply: |
| 118 | - pll-supply: |
| 119 | Usage: required |
| 120 | Value type: <phandle> |
| 121 | Definition: reference to the regulators to be held on behalf of the |
| 122 | booting of the Hexagon core |
| 123 | |
| 124 | For the compatible string below the following supplies are required: |
| 125 | "qcom,msm8974-mss-pil" |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 126 | - cx-supply: |
| 127 | - mss-supply: |
| 128 | - mx-supply: |
| 129 | - pll-supply: |
| 130 | Usage: required |
| 131 | Value type: <phandle> |
| 132 | Definition: reference to the regulators to be held on behalf of the |
| 133 | booting of the Hexagon core |
| 134 | |
Sibi Sankar | 688c437 | 2018-12-29 00:23:04 +0530 | [diff] [blame] | 135 | For the compatible string below the following supplies are required: |
| 136 | "qcom,msm8996-mss-pil" |
| 137 | - pll-supply: |
| 138 | Usage: required |
| 139 | Value type: <phandle> |
| 140 | Definition: reference to the regulators to be held on behalf of the |
| 141 | booting of the Hexagon core |
| 142 | |
Sibi Sankar | f2951bb | 2018-12-29 00:23:06 +0530 | [diff] [blame] | 143 | - power-domains: |
| 144 | Usage: required |
| 145 | Value type: <phandle> |
| 146 | Definition: reference to power-domains that match power-domain-names |
| 147 | |
| 148 | - power-domain-names: |
| 149 | Usage: required |
| 150 | Value type: <stringlist> |
| 151 | Definition: The power-domains needed depend on the compatible string: |
| 152 | qcom,q6v5-pil: |
| 153 | qcom,ipq8074-wcss-pil: |
| 154 | qcom,msm8916-mss-pil: |
| 155 | qcom,msm8974-mss-pil: |
| 156 | no power-domain names required |
| 157 | qcom,msm8996-mss-pil: |
Jeffrey Hugo | ab1b123 | 2019-10-31 19:44:35 -0700 | [diff] [blame] | 158 | qcom,msm8998-mss-pil: |
Sibi Sankar | f2951bb | 2018-12-29 00:23:06 +0530 | [diff] [blame] | 159 | must be "cx", "mx" |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 160 | qcom,sc7180-mss-pil: |
Sibi Sankar | f2951bb | 2018-12-29 00:23:06 +0530 | [diff] [blame] | 161 | qcom,sdm845-mss-pil: |
| 162 | must be "cx", "mx", "mss", "load_state" |
| 163 | |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 164 | - qcom,smem-states: |
| 165 | Usage: required |
| 166 | Value type: <phandle> |
| 167 | Definition: reference to the smem state for requesting the Hexagon to |
| 168 | shut down |
| 169 | |
| 170 | - qcom,smem-state-names: |
| 171 | Usage: required |
| 172 | Value type: <stringlist> |
| 173 | Definition: must be "stop" |
| 174 | |
| 175 | - qcom,halt-regs: |
| 176 | Usage: required |
| 177 | Value type: <prop-encoded-array> |
| 178 | Definition: a phandle reference to a syscon representing TCSR followed |
| 179 | by the three offsets within syscon for q6, modem and nc |
| 180 | halt registers. |
| 181 | |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 182 | For the compatible strings below the following phandle references are required: |
| 183 | "qcom,sc7180-mss-pil" |
Sibi Sankar | e62e3ac | 2020-04-15 20:21:09 +0530 | [diff] [blame] | 184 | - qcom,spare-regs: |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 185 | Usage: required |
| 186 | Value type: <prop-encoded-array> |
Sibi Sankar | e62e3ac | 2020-04-15 20:21:09 +0530 | [diff] [blame] | 187 | Definition: a phandle reference to a syscon representing TCSR followed |
| 188 | by the offset within syscon for conn_box_spare0 register |
| 189 | used by the modem sub-system running on SC7180 SoC. |
Sibi Sankar | 65518e9 | 2019-12-19 11:15:05 +0530 | [diff] [blame] | 190 | |
Sibi Sankar | 23cf515 | 2020-04-21 00:03:53 +0530 | [diff] [blame] | 191 | The Hexagon node must contain iommus property as described in ../iommu/iommu.txt |
| 192 | on platforms which do not have TrustZone. |
| 193 | |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 194 | = SUBNODES: |
| 195 | The Hexagon node must contain two subnodes, named "mba" and "mpss" representing |
| 196 | the memory regions used by the Hexagon firmware. Each sub-node must contain: |
| 197 | |
| 198 | - memory-region: |
| 199 | Usage: required |
| 200 | Value type: <phandle> |
| 201 | Definition: reference to the reserved-memory for the region |
| 202 | |
Bjorn Andersson | 2b41d6c | 2017-08-29 16:13:36 -0700 | [diff] [blame] | 203 | The Hexagon node may also have an subnode named either "smd-edge" or |
| 204 | "glink-edge" that describes the communication edge, channels and devices |
| 205 | related to the Hexagon. See ../soc/qcom/qcom,smd.txt and |
| 206 | ../soc/qcom/qcom,glink.txt for details on how to describe these. |
| 207 | |
Bjorn Andersson | 3b76df4 | 2016-06-20 14:28:42 -0700 | [diff] [blame] | 208 | = EXAMPLE |
| 209 | The following example describes the resources needed to boot control the |
| 210 | Hexagon, as it is found on MSM8974 boards. |
| 211 | |
| 212 | modem-rproc@fc880000 { |
| 213 | compatible = "qcom,q6v5-pil"; |
| 214 | reg = <0xfc880000 0x100>, |
| 215 | <0xfc820000 0x020>; |
| 216 | reg-names = "qdsp6", "rmb"; |
| 217 | |
| 218 | interrupts-extended = <&intc 0 24 1>, |
| 219 | <&modem_smp2p_in 0 0>, |
| 220 | <&modem_smp2p_in 1 0>, |
| 221 | <&modem_smp2p_in 2 0>, |
| 222 | <&modem_smp2p_in 3 0>; |
| 223 | interrupt-names = "wdog", |
| 224 | "fatal", |
| 225 | "ready", |
| 226 | "handover", |
| 227 | "stop-ack"; |
| 228 | |
| 229 | clocks = <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, |
| 230 | <&gcc GCC_MSS_CFG_AHB_CLK>, |
| 231 | <&gcc GCC_BOOT_ROM_AHB_CLK>; |
| 232 | clock-names = "iface", "bus", "mem"; |
| 233 | |
| 234 | qcom,halt-regs = <&tcsr_mutex_block 0x1180 0x1200 0x1280>; |
| 235 | |
| 236 | resets = <&gcc GCC_MSS_RESTART>; |
| 237 | reset-names = "mss_restart"; |
| 238 | |
| 239 | cx-supply = <&pm8841_s2>; |
| 240 | mss-supply = <&pm8841_s3>; |
| 241 | mx-supply = <&pm8841_s1>; |
| 242 | pll-supply = <&pm8941_l12>; |
| 243 | |
| 244 | qcom,smem-states = <&modem_smp2p_out 0>; |
| 245 | qcom,smem-state-names = "stop"; |
| 246 | |
| 247 | mba { |
| 248 | memory-region = <&mba_region>; |
| 249 | }; |
| 250 | |
| 251 | mpss { |
| 252 | memory-region = <&mpss_region>; |
| 253 | }; |
| 254 | }; |