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