Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | /* |
| 3 | * Device Tree Source for Qualcomm MDM9615 SoC |
| 4 | * |
| 5 | * Copyright (C) 2016 BayLibre, SAS. |
| 6 | * Author : Neil Armstrong <narmstrong@baylibre.com> |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | |
| 11 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 12 | #include <dt-bindings/clock/qcom,gcc-mdm9615.h> |
| 13 | #include <dt-bindings/clock/qcom,lcc-msm8960.h> |
| 14 | #include <dt-bindings/reset/qcom,gcc-mdm9615.h> |
| 15 | #include <dt-bindings/mfd/qcom-rpm.h> |
| 16 | #include <dt-bindings/soc/qcom,gsbi.h> |
| 17 | |
| 18 | / { |
| 19 | #address-cells = <1>; |
| 20 | #size-cells = <1>; |
| 21 | model = "Qualcomm MDM9615"; |
| 22 | compatible = "qcom,mdm9615"; |
| 23 | interrupt-parent = <&intc>; |
| 24 | |
| 25 | cpus { |
| 26 | #address-cells = <1>; |
| 27 | #size-cells = <0>; |
| 28 | |
| 29 | cpu0: cpu@0 { |
| 30 | compatible = "arm,cortex-a5"; |
| 31 | reg = <0>; |
| 32 | device_type = "cpu"; |
| 33 | next-level-cache = <&L2>; |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | cpu-pmu { |
| 38 | compatible = "arm,cortex-a5-pmu"; |
| 39 | interrupts = <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>; |
| 40 | }; |
| 41 | |
| 42 | clocks { |
| 43 | cxo_board: cxo_board { |
| 44 | compatible = "fixed-clock"; |
| 45 | #clock-cells = <0>; |
| 46 | clock-frequency = <19200000>; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | vsdcc_fixed: vsdcc-regulator { |
| 51 | compatible = "regulator-fixed"; |
| 52 | regulator-name = "SDCC Power"; |
| 53 | regulator-min-microvolt = <2700000>; |
| 54 | regulator-max-microvolt = <2700000>; |
| 55 | regulator-always-on; |
| 56 | }; |
| 57 | |
| 58 | soc: soc { |
| 59 | #address-cells = <1>; |
| 60 | #size-cells = <1>; |
| 61 | ranges; |
| 62 | compatible = "simple-bus"; |
| 63 | |
| 64 | L2: cache-controller@2040000 { |
| 65 | compatible = "arm,pl310-cache"; |
| 66 | reg = <0x02040000 0x1000>; |
| 67 | arm,data-latency = <2 2 0>; |
| 68 | cache-unified; |
| 69 | cache-level = <2>; |
| 70 | }; |
| 71 | |
| 72 | intc: interrupt-controller@2000000 { |
| 73 | compatible = "qcom,msm-qgic2"; |
| 74 | interrupt-controller; |
| 75 | #interrupt-cells = <3>; |
| 76 | reg = <0x02000000 0x1000>, |
| 77 | <0x02002000 0x1000>; |
| 78 | }; |
| 79 | |
| 80 | timer@200a000 { |
| 81 | compatible = "qcom,kpss-wdt-mdm9615", "qcom,kpss-timer", |
| 82 | "qcom,msm-timer"; |
| 83 | interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>, |
| 84 | <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>, |
| 85 | <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>; |
| 86 | reg = <0x0200a000 0x100>; |
| 87 | clock-frequency = <27000000>; |
| 88 | cpu-offset = <0x80000>; |
| 89 | }; |
| 90 | |
| 91 | msmgpio: pinctrl@800000 { |
| 92 | compatible = "qcom,mdm9615-pinctrl"; |
| 93 | gpio-controller; |
| 94 | gpio-ranges = <&msmgpio 0 0 88>; |
| 95 | #gpio-cells = <2>; |
| 96 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
| 97 | interrupt-controller; |
| 98 | #interrupt-cells = <2>; |
| 99 | reg = <0x800000 0x4000>; |
| 100 | }; |
| 101 | |
| 102 | gcc: clock-controller@900000 { |
| 103 | compatible = "qcom,gcc-mdm9615"; |
| 104 | #clock-cells = <1>; |
| 105 | #power-domain-cells = <1>; |
| 106 | #reset-cells = <1>; |
| 107 | reg = <0x900000 0x4000>; |
| 108 | clocks = <&cxo_board>, |
| 109 | <&lcc PLL4>; |
| 110 | }; |
| 111 | |
| 112 | lcc: clock-controller@28000000 { |
| 113 | compatible = "qcom,lcc-mdm9615"; |
| 114 | reg = <0x28000000 0x1000>; |
| 115 | #clock-cells = <1>; |
| 116 | #reset-cells = <1>; |
| 117 | clocks = <&cxo_board>, |
| 118 | <&gcc PLL4_VOTE>, |
| 119 | <0>, |
| 120 | <0>, <0>, |
| 121 | <0>, <0>, |
| 122 | <0>; |
| 123 | clock-names = "cxo", |
| 124 | "pll4_vote", |
| 125 | "mi2s_codec_clk", |
| 126 | "codec_i2s_mic_codec_clk", |
| 127 | "spare_i2s_mic_codec_clk", |
| 128 | "codec_i2s_spkr_codec_clk", |
| 129 | "spare_i2s_spkr_codec_clk", |
| 130 | "pcm_codec_clk"; |
| 131 | }; |
| 132 | |
| 133 | l2cc: clock-controller@2011000 { |
| 134 | compatible = "qcom,kpss-gcc-mdm9615", "qcom,kpss-gcc", "syscon"; |
| 135 | reg = <0x02011000 0x1000>; |
| 136 | }; |
| 137 | |
| 138 | rng@1a500000 { |
| 139 | compatible = "qcom,prng"; |
| 140 | reg = <0x1a500000 0x200>; |
| 141 | clocks = <&gcc PRNG_CLK>; |
| 142 | clock-names = "core"; |
| 143 | assigned-clocks = <&gcc PRNG_CLK>; |
| 144 | assigned-clock-rates = <32000000>; |
| 145 | }; |
| 146 | |
| 147 | gsbi2: gsbi@16100000 { |
| 148 | compatible = "qcom,gsbi-v1.0.0"; |
| 149 | cell-index = <2>; |
| 150 | reg = <0x16100000 0x100>; |
| 151 | clocks = <&gcc GSBI2_H_CLK>; |
| 152 | clock-names = "iface"; |
| 153 | status = "disabled"; |
| 154 | #address-cells = <1>; |
| 155 | #size-cells = <1>; |
| 156 | ranges; |
| 157 | |
| 158 | gsbi2_i2c: i2c@16180000 { |
| 159 | compatible = "qcom,i2c-qup-v1.1.1"; |
| 160 | #address-cells = <1>; |
| 161 | #size-cells = <0>; |
| 162 | reg = <0x16180000 0x1000>; |
| 163 | interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; |
| 164 | |
| 165 | clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>; |
| 166 | clock-names = "core", "iface"; |
| 167 | status = "disabled"; |
| 168 | }; |
| 169 | }; |
| 170 | |
| 171 | gsbi3: gsbi@16200000 { |
| 172 | compatible = "qcom,gsbi-v1.0.0"; |
| 173 | cell-index = <3>; |
| 174 | reg = <0x16200000 0x100>; |
| 175 | clocks = <&gcc GSBI3_H_CLK>; |
| 176 | clock-names = "iface"; |
| 177 | status = "disabled"; |
| 178 | #address-cells = <1>; |
| 179 | #size-cells = <1>; |
| 180 | ranges; |
| 181 | |
| 182 | gsbi3_spi: spi@16280000 { |
| 183 | compatible = "qcom,spi-qup-v1.1.1"; |
| 184 | #address-cells = <1>; |
| 185 | #size-cells = <0>; |
| 186 | reg = <0x16280000 0x1000>; |
| 187 | interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>; |
| 188 | |
| 189 | clocks = <&gcc GSBI3_QUP_CLK>, <&gcc GSBI3_H_CLK>; |
| 190 | clock-names = "core", "iface"; |
| 191 | status = "disabled"; |
| 192 | }; |
| 193 | }; |
| 194 | |
| 195 | gsbi4: gsbi@16300000 { |
| 196 | compatible = "qcom,gsbi-v1.0.0"; |
| 197 | cell-index = <4>; |
| 198 | reg = <0x16300000 0x100>; |
| 199 | clocks = <&gcc GSBI4_H_CLK>; |
| 200 | clock-names = "iface"; |
| 201 | status = "disabled"; |
| 202 | #address-cells = <1>; |
| 203 | #size-cells = <1>; |
| 204 | ranges; |
| 205 | |
| 206 | syscon-tcsr = <&tcsr>; |
| 207 | |
| 208 | gsbi4_serial: serial@16340000 { |
| 209 | compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; |
| 210 | reg = <0x16340000 0x1000>, |
| 211 | <0x16300000 0x1000>; |
| 212 | interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; |
| 213 | clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>; |
| 214 | clock-names = "core", "iface"; |
| 215 | status = "disabled"; |
| 216 | }; |
| 217 | }; |
| 218 | |
| 219 | gsbi5: gsbi@16400000 { |
| 220 | compatible = "qcom,gsbi-v1.0.0"; |
| 221 | cell-index = <5>; |
| 222 | reg = <0x16400000 0x100>; |
| 223 | clocks = <&gcc GSBI5_H_CLK>; |
| 224 | clock-names = "iface"; |
| 225 | status = "disabled"; |
| 226 | #address-cells = <1>; |
| 227 | #size-cells = <1>; |
| 228 | ranges; |
| 229 | |
| 230 | syscon-tcsr = <&tcsr>; |
| 231 | |
| 232 | gsbi5_i2c: i2c@16480000 { |
| 233 | compatible = "qcom,i2c-qup-v1.1.1"; |
| 234 | #address-cells = <1>; |
| 235 | #size-cells = <0>; |
| 236 | reg = <0x16480000 0x1000>; |
| 237 | interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; |
| 238 | |
| 239 | /* QUP clock is not initialized, set rate */ |
| 240 | assigned-clocks = <&gcc GSBI5_QUP_CLK>; |
| 241 | assigned-clock-rates = <24000000>; |
| 242 | |
| 243 | clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>; |
| 244 | clock-names = "core", "iface"; |
| 245 | status = "disabled"; |
| 246 | }; |
| 247 | |
| 248 | gsbi5_serial: serial@16440000 { |
| 249 | compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; |
| 250 | reg = <0x16440000 0x1000>, |
| 251 | <0x16400000 0x1000>; |
| 252 | interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; |
| 253 | clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>; |
| 254 | clock-names = "core", "iface"; |
| 255 | status = "disabled"; |
| 256 | }; |
| 257 | }; |
| 258 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 259 | ssbi: ssbi@500000 { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 260 | compatible = "qcom,ssbi"; |
| 261 | reg = <0x500000 0x1000>; |
| 262 | qcom,controller-type = "pmic-arbiter"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | sdcc1bam: dma-controller@12182000 { |
| 266 | compatible = "qcom,bam-v1.3.0"; |
| 267 | reg = <0x12182000 0x8000>; |
| 268 | interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; |
| 269 | clocks = <&gcc SDC1_H_CLK>; |
| 270 | clock-names = "bam_clk"; |
| 271 | #dma-cells = <1>; |
| 272 | qcom,ee = <0>; |
| 273 | }; |
| 274 | |
| 275 | sdcc2bam: dma-controller@12142000 { |
| 276 | compatible = "qcom,bam-v1.3.0"; |
| 277 | reg = <0x12142000 0x8000>; |
| 278 | interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; |
| 279 | clocks = <&gcc SDC2_H_CLK>; |
| 280 | clock-names = "bam_clk"; |
| 281 | #dma-cells = <1>; |
| 282 | qcom,ee = <0>; |
| 283 | }; |
| 284 | |
| 285 | sdcc1: mmc@12180000 { |
| 286 | status = "disabled"; |
| 287 | compatible = "arm,pl18x", "arm,primecell"; |
| 288 | arm,primecell-periphid = <0x00051180>; |
| 289 | reg = <0x12180000 0x2000>; |
| 290 | interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; |
| 291 | clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>; |
| 292 | clock-names = "mclk", "apb_pclk"; |
| 293 | bus-width = <8>; |
| 294 | max-frequency = <48000000>; |
| 295 | cap-sd-highspeed; |
| 296 | cap-mmc-highspeed; |
| 297 | vmmc-supply = <&vsdcc_fixed>; |
| 298 | dmas = <&sdcc1bam 2>, <&sdcc1bam 1>; |
| 299 | dma-names = "tx", "rx"; |
| 300 | assigned-clocks = <&gcc SDC1_CLK>; |
| 301 | assigned-clock-rates = <400000>; |
| 302 | }; |
| 303 | |
| 304 | sdcc2: mmc@12140000 { |
| 305 | compatible = "arm,pl18x", "arm,primecell"; |
| 306 | arm,primecell-periphid = <0x00051180>; |
| 307 | status = "disabled"; |
| 308 | reg = <0x12140000 0x2000>; |
| 309 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
| 310 | clocks = <&gcc SDC2_CLK>, <&gcc SDC2_H_CLK>; |
| 311 | clock-names = "mclk", "apb_pclk"; |
| 312 | bus-width = <4>; |
| 313 | cap-sd-highspeed; |
| 314 | cap-mmc-highspeed; |
| 315 | max-frequency = <48000000>; |
| 316 | no-1-8-v; |
| 317 | vmmc-supply = <&vsdcc_fixed>; |
| 318 | dmas = <&sdcc2bam 2>, <&sdcc2bam 1>; |
| 319 | dma-names = "tx", "rx"; |
| 320 | assigned-clocks = <&gcc SDC2_CLK>; |
| 321 | assigned-clock-rates = <400000>; |
| 322 | }; |
| 323 | |
| 324 | tcsr: syscon@1a400000 { |
| 325 | compatible = "qcom,tcsr-mdm9615", "syscon"; |
| 326 | reg = <0x1a400000 0x100>; |
| 327 | }; |
| 328 | |
| 329 | rpm: rpm@108000 { |
| 330 | compatible = "qcom,rpm-mdm9615"; |
| 331 | reg = <0x108000 0x1000>; |
| 332 | |
| 333 | qcom,ipc = <&l2cc 0x8 2>; |
| 334 | |
| 335 | interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>, |
| 336 | <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>, |
| 337 | <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>; |
| 338 | interrupt-names = "ack", "err", "wakeup"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 339 | }; |
| 340 | }; |
| 341 | }; |