1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * SC7180 IDP board device tree source 3 * SC7180 IDP board device tree source 4 * 4 * 5 * Copyright (c) 2019, The Linux Foundation. A 5 * Copyright (c) 2019, The Linux Foundation. All rights reserved. 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 9 10 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/regulator/qcom,rpmh-regu 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h << 13 #include "sc7180.dtsi" 12 #include "sc7180.dtsi" 14 #include "sc7180-firmware-tfa.dtsi" << 15 #include "pm6150.dtsi" 13 #include "pm6150.dtsi" 16 #include "pm6150l.dtsi" 14 #include "pm6150l.dtsi" 17 15 18 / { 16 / { 19 model = "Qualcomm Technologies, Inc. S 17 model = "Qualcomm Technologies, Inc. SC7180 IDP"; 20 compatible = "qcom,sc7180-idp", "qcom, 18 compatible = "qcom,sc7180-idp", "qcom,sc7180"; 21 19 22 aliases { 20 aliases { 23 bluetooth0 = &bluetooth; 21 bluetooth0 = &bluetooth; 24 hsuart0 = &uart3; 22 hsuart0 = &uart3; 25 serial0 = &uart8; 23 serial0 = &uart8; 26 wifi0 = &wifi; 24 wifi0 = &wifi; 27 }; 25 }; 28 26 29 chosen { 27 chosen { 30 stdout-path = "serial0:115200n 28 stdout-path = "serial0:115200n8"; 31 }; 29 }; 32 }; 30 }; 33 31 34 /* 32 /* 35 * Reserved memory changes 33 * Reserved memory changes 36 * 34 * 37 * Delete all unused memory nodes and define t 35 * Delete all unused memory nodes and define the peripheral memory regions 38 * required by the board dts. 36 * required by the board dts. 39 * 37 * 40 */ 38 */ 41 39 42 /delete-node/ &hyp_mem; 40 /delete-node/ &hyp_mem; 43 /delete-node/ &xbl_mem; 41 /delete-node/ &xbl_mem; 44 /delete-node/ &aop_mem; 42 /delete-node/ &aop_mem; 45 /delete-node/ &sec_apps_mem; 43 /delete-node/ &sec_apps_mem; 46 /delete-node/ &tz_mem; 44 /delete-node/ &tz_mem; 47 45 48 /* Increase the size from 2MB to 8MB */ 46 /* Increase the size from 2MB to 8MB */ 49 &rmtfs_mem { 47 &rmtfs_mem { 50 reg = <0x0 0x94600000 0x0 0x800000>; !! 48 reg = <0x0 0x84400000 0x0 0x800000>; 51 }; 49 }; 52 50 53 / { 51 / { 54 reserved-memory { 52 reserved-memory { 55 atf_mem: memory@80b00000 { 53 atf_mem: memory@80b00000 { 56 reg = <0x0 0x80b00000 54 reg = <0x0 0x80b00000 0x0 0x100000>; 57 no-map; 55 no-map; 58 }; 56 }; 59 57 60 mpss_mem: memory@86000000 { 58 mpss_mem: memory@86000000 { 61 reg = <0x0 0x86000000 59 reg = <0x0 0x86000000 0x0 0x8c00000>; 62 no-map; 60 no-map; 63 }; 61 }; 64 62 65 camera_mem: memory@8ec00000 { 63 camera_mem: memory@8ec00000 { 66 reg = <0x0 0x8ec00000 64 reg = <0x0 0x8ec00000 0x0 0x500000>; 67 no-map; 65 no-map; 68 }; 66 }; 69 67 70 venus_mem: memory@8f600000 { 68 venus_mem: memory@8f600000 { 71 reg = <0 0x8f600000 0 69 reg = <0 0x8f600000 0 0x500000>; 72 no-map; 70 no-map; 73 }; 71 }; 74 72 75 wlan_mem: memory@94100000 { 73 wlan_mem: memory@94100000 { 76 reg = <0x0 0x94100000 74 reg = <0x0 0x94100000 0x0 0x200000>; 77 no-map; 75 no-map; 78 }; 76 }; 79 77 80 mba_mem: memory@94400000 { 78 mba_mem: memory@94400000 { 81 reg = <0x0 0x94400000 79 reg = <0x0 0x94400000 0x0 0x200000>; 82 no-map; 80 no-map; 83 }; 81 }; 84 << 85 mdata_mem: mpss-metadata { << 86 alloc-ranges = <0x0 0x << 87 size = <0x0 0x4000>; << 88 no-map; << 89 }; << 90 }; 82 }; 91 }; 83 }; 92 84 93 &apps_rsc { 85 &apps_rsc { 94 regulators-0 { !! 86 pm6150-rpmh-regulators { 95 compatible = "qcom,pm6150-rpmh 87 compatible = "qcom,pm6150-rpmh-regulators"; 96 qcom,pmic-id = "a"; 88 qcom,pmic-id = "a"; 97 89 98 vreg_s1a_1p1: smps1 { 90 vreg_s1a_1p1: smps1 { 99 regulator-min-microvol 91 regulator-min-microvolt = <1128000>; 100 regulator-max-microvol 92 regulator-max-microvolt = <1128000>; 101 }; 93 }; 102 94 103 vreg_s4a_1p0: smps4 { 95 vreg_s4a_1p0: smps4 { 104 regulator-min-microvol 96 regulator-min-microvolt = <824000>; 105 regulator-max-microvol 97 regulator-max-microvolt = <1120000>; 106 }; 98 }; 107 99 108 vreg_s5a_2p0: smps5 { 100 vreg_s5a_2p0: smps5 { 109 regulator-min-microvol 101 regulator-min-microvolt = <1744000>; 110 regulator-max-microvol 102 regulator-max-microvolt = <2040000>; 111 }; 103 }; 112 104 113 vreg_l1a_1p2: ldo1 { 105 vreg_l1a_1p2: ldo1 { 114 regulator-min-microvol 106 regulator-min-microvolt = <1178000>; 115 regulator-max-microvol 107 regulator-max-microvolt = <1256000>; 116 regulator-initial-mode 108 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 117 }; 109 }; 118 110 119 vreg_l2a_1p0: ldo2 { 111 vreg_l2a_1p0: ldo2 { 120 regulator-min-microvol 112 regulator-min-microvolt = <944000>; 121 regulator-max-microvol 113 regulator-max-microvolt = <1056000>; 122 regulator-initial-mode 114 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 123 }; 115 }; 124 116 125 vreg_l3a_1p0: ldo3 { 117 vreg_l3a_1p0: ldo3 { 126 regulator-min-microvol 118 regulator-min-microvolt = <968000>; 127 regulator-max-microvol 119 regulator-max-microvolt = <1064000>; 128 regulator-initial-mode 120 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 129 }; 121 }; 130 122 131 vreg_l4a_0p8: ldo4 { 123 vreg_l4a_0p8: ldo4 { 132 regulator-min-microvol 124 regulator-min-microvolt = <824000>; 133 regulator-max-microvol 125 regulator-max-microvolt = <928000>; 134 regulator-initial-mode 126 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 135 }; 127 }; 136 128 137 vreg_l5a_2p7: ldo5 { 129 vreg_l5a_2p7: ldo5 { 138 regulator-min-microvol 130 regulator-min-microvolt = <2496000>; 139 regulator-max-microvol 131 regulator-max-microvolt = <3000000>; 140 regulator-initial-mode 132 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 141 }; 133 }; 142 134 143 vreg_l6a_0p6: ldo6 { 135 vreg_l6a_0p6: ldo6 { 144 regulator-min-microvol 136 regulator-min-microvolt = <568000>; 145 regulator-max-microvol 137 regulator-max-microvolt = <648000>; 146 regulator-initial-mode 138 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 147 }; 139 }; 148 140 149 vreg_l9a_0p6: ldo9 { 141 vreg_l9a_0p6: ldo9 { 150 regulator-min-microvol 142 regulator-min-microvolt = <488000>; 151 regulator-max-microvol 143 regulator-max-microvolt = <800000>; 152 regulator-initial-mode 144 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 153 }; 145 }; 154 146 155 vreg_l10a_1p8: ldo10 { 147 vreg_l10a_1p8: ldo10 { 156 regulator-min-microvol 148 regulator-min-microvolt = <1800000>; 157 regulator-max-microvol 149 regulator-max-microvolt = <1832000>; 158 regulator-initial-mode 150 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 159 }; 151 }; 160 152 161 vreg_l11a_1p8: ldo11 { 153 vreg_l11a_1p8: ldo11 { 162 regulator-min-microvol 154 regulator-min-microvolt = <1696000>; 163 regulator-max-microvol 155 regulator-max-microvolt = <1904000>; 164 regulator-initial-mode 156 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 165 }; 157 }; 166 158 167 vreg_l12a_1p8: ldo12 { 159 vreg_l12a_1p8: ldo12 { 168 regulator-min-microvol 160 regulator-min-microvolt = <1800000>; 169 regulator-max-microvol 161 regulator-max-microvolt = <1800000>; 170 regulator-initial-mode 162 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 171 }; 163 }; 172 164 173 vreg_l13a_1p8: ldo13 { 165 vreg_l13a_1p8: ldo13 { 174 regulator-min-microvol 166 regulator-min-microvolt = <1696000>; 175 regulator-max-microvol 167 regulator-max-microvolt = <1904000>; 176 regulator-initial-mode 168 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 177 }; 169 }; 178 170 179 vreg_l14a_1p8: ldo14 { 171 vreg_l14a_1p8: ldo14 { 180 regulator-min-microvol 172 regulator-min-microvolt = <1728000>; 181 regulator-max-microvol 173 regulator-max-microvolt = <1832000>; 182 regulator-initial-mode 174 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 183 }; 175 }; 184 176 185 vreg_l15a_1p8: ldo15 { 177 vreg_l15a_1p8: ldo15 { 186 regulator-min-microvol 178 regulator-min-microvolt = <1696000>; 187 regulator-max-microvol 179 regulator-max-microvolt = <1904000>; 188 regulator-initial-mode 180 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 189 }; 181 }; 190 182 191 vreg_l16a_2p7: ldo16 { 183 vreg_l16a_2p7: ldo16 { 192 regulator-min-microvol 184 regulator-min-microvolt = <2496000>; 193 regulator-max-microvol 185 regulator-max-microvolt = <3304000>; 194 regulator-initial-mode 186 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 195 }; 187 }; 196 188 197 vreg_l17a_3p0: ldo17 { 189 vreg_l17a_3p0: ldo17 { 198 regulator-min-microvol 190 regulator-min-microvolt = <2920000>; 199 regulator-max-microvol 191 regulator-max-microvolt = <3232000>; 200 regulator-initial-mode 192 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 201 }; 193 }; 202 194 203 vreg_l18a_2p8: ldo18 { 195 vreg_l18a_2p8: ldo18 { 204 regulator-min-microvol 196 regulator-min-microvolt = <2496000>; 205 regulator-max-microvol 197 regulator-max-microvolt = <3304000>; 206 regulator-initial-mode 198 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 207 }; 199 }; 208 200 209 vreg_l19a_2p9: ldo19 { 201 vreg_l19a_2p9: ldo19 { 210 regulator-min-microvol 202 regulator-min-microvolt = <2960000>; 211 regulator-max-microvol 203 regulator-max-microvolt = <2960000>; 212 regulator-initial-mode 204 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 213 }; 205 }; 214 }; 206 }; 215 207 216 regulators-1 { !! 208 pm6150l-rpmh-regulators { 217 compatible = "qcom,pm6150l-rpm 209 compatible = "qcom,pm6150l-rpmh-regulators"; 218 qcom,pmic-id = "c"; 210 qcom,pmic-id = "c"; 219 211 220 vreg_s8c_1p3: smps8 { 212 vreg_s8c_1p3: smps8 { 221 regulator-min-microvol 213 regulator-min-microvolt = <1120000>; 222 regulator-max-microvol 214 regulator-max-microvolt = <1408000>; 223 }; 215 }; 224 216 225 vreg_l1c_1p8: ldo1 { 217 vreg_l1c_1p8: ldo1 { 226 regulator-min-microvol 218 regulator-min-microvolt = <1616000>; 227 regulator-max-microvol 219 regulator-max-microvolt = <1984000>; 228 regulator-initial-mode 220 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 229 }; 221 }; 230 222 231 vreg_l2c_1p3: ldo2 { 223 vreg_l2c_1p3: ldo2 { 232 regulator-min-microvol 224 regulator-min-microvolt = <1168000>; 233 regulator-max-microvol 225 regulator-max-microvolt = <1304000>; 234 regulator-initial-mode 226 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 235 }; 227 }; 236 228 237 vreg_l3c_1p2: ldo3 { 229 vreg_l3c_1p2: ldo3 { 238 regulator-min-microvol 230 regulator-min-microvolt = <1144000>; 239 regulator-max-microvol 231 regulator-max-microvolt = <1304000>; 240 regulator-initial-mode 232 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 241 }; 233 }; 242 234 243 vreg_l4c_1p8: ldo4 { 235 vreg_l4c_1p8: ldo4 { 244 regulator-min-microvol 236 regulator-min-microvolt = <1648000>; 245 regulator-max-microvol 237 regulator-max-microvolt = <3304000>; 246 regulator-initial-mode 238 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 247 }; 239 }; 248 240 249 vreg_l5c_1p8: ldo5 { 241 vreg_l5c_1p8: ldo5 { 250 regulator-min-microvol 242 regulator-min-microvolt = <1648000>; 251 regulator-max-microvol 243 regulator-max-microvolt = <3304000>; 252 regulator-initial-mode 244 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 253 }; 245 }; 254 246 255 vreg_l6c_2p9: ldo6 { 247 vreg_l6c_2p9: ldo6 { 256 regulator-min-microvol 248 regulator-min-microvolt = <1800000>; 257 regulator-max-microvol 249 regulator-max-microvolt = <2950000>; 258 regulator-initial-mode 250 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 259 }; 251 }; 260 252 261 vreg_l7c_3p0: ldo7 { 253 vreg_l7c_3p0: ldo7 { 262 regulator-min-microvol 254 regulator-min-microvolt = <3000000>; 263 regulator-max-microvol 255 regulator-max-microvolt = <3312000>; 264 regulator-initial-mode 256 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 265 }; 257 }; 266 258 267 vreg_l8c_1p8: ldo8 { 259 vreg_l8c_1p8: ldo8 { 268 regulator-min-microvol 260 regulator-min-microvolt = <1800000>; 269 regulator-max-microvol 261 regulator-max-microvolt = <1904000>; 270 regulator-initial-mode 262 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 271 }; 263 }; 272 264 273 vreg_l9c_2p9: ldo9 { 265 vreg_l9c_2p9: ldo9 { 274 regulator-min-microvol 266 regulator-min-microvolt = <2960000>; 275 regulator-max-microvol 267 regulator-max-microvolt = <2960000>; 276 regulator-initial-mode 268 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 277 }; 269 }; 278 270 279 vreg_l10c_3p3: ldo10 { 271 vreg_l10c_3p3: ldo10 { 280 regulator-min-microvol 272 regulator-min-microvolt = <3000000>; 281 regulator-max-microvol 273 regulator-max-microvolt = <3400000>; 282 regulator-initial-mode 274 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 283 }; 275 }; 284 276 285 vreg_l11c_3p3: ldo11 { 277 vreg_l11c_3p3: ldo11 { 286 regulator-min-microvol 278 regulator-min-microvolt = <3000000>; 287 regulator-max-microvol 279 regulator-max-microvolt = <3400000>; 288 regulator-initial-mode 280 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 289 }; 281 }; 290 282 291 vreg_bob: bob { 283 vreg_bob: bob { 292 regulator-min-microvol 284 regulator-min-microvolt = <3008000>; 293 regulator-max-microvol 285 regulator-max-microvolt = <3960000>; 294 regulator-initial-mode 286 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 295 }; 287 }; 296 }; 288 }; 297 }; 289 }; 298 290 299 &mdss { << 300 status = "okay"; << 301 }; << 302 << 303 &mdss_dsi0 { << 304 status = "okay"; << 305 << 306 vdda-supply = <&vreg_l3c_1p2>; << 307 << 308 panel@0 { << 309 compatible = "visionox,rm69299 << 310 reg = <0>; << 311 << 312 vdda-supply = <&vreg_l8c_1p8>; << 313 vdd3p3-supply = <&vreg_l18a_2p << 314 << 315 pinctrl-names = "default"; << 316 pinctrl-0 = <&disp_pins>; << 317 << 318 reset-gpios = <&pm6150l_gpios << 319 << 320 port { << 321 panel0_in: endpoint { << 322 remote-endpoin << 323 }; << 324 }; << 325 }; << 326 << 327 ports { << 328 port@1 { << 329 endpoint { << 330 remote-endpoin << 331 data-lanes = < << 332 }; << 333 }; << 334 }; << 335 }; << 336 << 337 &mdss_dsi0_phy { << 338 status = "okay"; << 339 vdds-supply = <&vreg_l4a_0p8>; << 340 }; << 341 << 342 &qfprom { 291 &qfprom { 343 vcc-supply = <&vreg_l11a_1p8>; 292 vcc-supply = <&vreg_l11a_1p8>; 344 }; 293 }; 345 294 346 &qspi { 295 &qspi { 347 status = "okay"; 296 status = "okay"; 348 pinctrl-names = "default"; 297 pinctrl-names = "default"; 349 pinctrl-0 = <&qspi_clk>, <&qspi_cs0>, !! 298 pinctrl-0 = <&qspi_clk &qspi_cs0 &qspi_data01>; 350 299 351 flash@0 { 300 flash@0 { 352 compatible = "jedec,spi-nor"; 301 compatible = "jedec,spi-nor"; 353 reg = <0>; 302 reg = <0>; 354 spi-max-frequency = <25000000> 303 spi-max-frequency = <25000000>; 355 spi-tx-bus-width = <2>; 304 spi-tx-bus-width = <2>; 356 spi-rx-bus-width = <2>; 305 spi-rx-bus-width = <2>; 357 }; 306 }; 358 }; 307 }; 359 308 360 &qupv3_id_0 { 309 &qupv3_id_0 { 361 status = "okay"; 310 status = "okay"; 362 }; 311 }; 363 312 364 &qupv3_id_1 { 313 &qupv3_id_1 { 365 status = "okay"; 314 status = "okay"; 366 }; 315 }; 367 316 368 &remoteproc_mpss { 317 &remoteproc_mpss { 369 status = "okay"; 318 status = "okay"; 370 compatible = "qcom,sc7180-mss-pil"; 319 compatible = "qcom,sc7180-mss-pil"; 371 reg = <0 0x04080000 0 0x4040>, <0 0x04 << 372 reg-names = "qdsp6", "rmb"; << 373 << 374 clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, << 375 <&gcc GCC_MSS_Q6_MEMNOC_AXI_C << 376 <&gcc GCC_MSS_NAV_AXI_CLK>, << 377 <&gcc GCC_MSS_SNOC_AXI_CLK>, << 378 <&gcc GCC_MSS_MFAB_AXIS_CLK>, << 379 <&rpmhcc RPMH_CXO_CLK>; << 380 clock-names = "iface", "bus", "nav", " << 381 << 382 iommus = <&apps_smmu 0x461 0x0>, <&app 320 iommus = <&apps_smmu 0x461 0x0>, <&apps_smmu 0x444 0x3>; 383 memory-region = <&mba_mem>, <&mpss_mem !! 321 memory-region = <&mba_mem &mpss_mem>; 384 << 385 resets = <&aoss_reset AOSS_CC_MSS_REST << 386 <&pdc_reset PDC_MODEM_SYNC_RE << 387 reset-names = "mss_restart", "pdc_rese << 388 << 389 qcom,halt-regs = <&tcsr_regs_1 0x3000 << 390 qcom,spare-regs = <&tcsr_regs_2 0xb3e4 << 391 }; << 392 << 393 &scm { << 394 /* TF-A firmware maps memory cached so << 395 dma-coherent; << 396 }; 322 }; 397 323 398 &sdhc_1 { 324 &sdhc_1 { 399 status = "okay"; 325 status = "okay"; 400 326 401 pinctrl-names = "default", "sleep"; 327 pinctrl-names = "default", "sleep"; 402 pinctrl-0 = <&sdc1_on>; 328 pinctrl-0 = <&sdc1_on>; 403 pinctrl-1 = <&sdc1_off>; 329 pinctrl-1 = <&sdc1_off>; 404 vmmc-supply = <&vreg_l19a_2p9>; 330 vmmc-supply = <&vreg_l19a_2p9>; 405 vqmmc-supply = <&vreg_l12a_1p8>; 331 vqmmc-supply = <&vreg_l12a_1p8>; 406 }; 332 }; 407 333 408 &sdhc_2 { 334 &sdhc_2 { 409 status = "okay"; 335 status = "okay"; 410 336 411 pinctrl-names = "default","sleep"; 337 pinctrl-names = "default","sleep"; 412 pinctrl-0 = <&sdc2_on>; 338 pinctrl-0 = <&sdc2_on>; 413 pinctrl-1 = <&sdc2_off>; 339 pinctrl-1 = <&sdc2_off>; 414 vmmc-supply = <&vreg_l9c_2p9>; !! 340 vmmc-supply = <&vreg_l9c_2p9>; 415 vqmmc-supply = <&vreg_l6c_2p9>; 341 vqmmc-supply = <&vreg_l6c_2p9>; 416 342 417 cd-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>; 343 cd-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>; 418 }; 344 }; 419 345 420 &uart3 { 346 &uart3 { 421 status = "okay"; 347 status = "okay"; 422 348 423 /delete-property/interrupts; 349 /delete-property/interrupts; 424 interrupts-extended = <&intc GIC_SPI 6 350 interrupts-extended = <&intc GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>, 425 <&tlmm 41 IRQ_ 351 <&tlmm 41 IRQ_TYPE_EDGE_FALLING>; 426 352 427 pinctrl-names = "default", "sleep"; 353 pinctrl-names = "default", "sleep"; 428 pinctrl-1 = <&qup_uart3_sleep>; 354 pinctrl-1 = <&qup_uart3_sleep>; 429 355 430 bluetooth: bluetooth { !! 356 bluetooth: wcn3990-bt { 431 compatible = "qcom,wcn3990-bt" 357 compatible = "qcom,wcn3990-bt"; 432 vddio-supply = <&vreg_l10a_1p8 358 vddio-supply = <&vreg_l10a_1p8>; 433 vddxo-supply = <&vreg_l1c_1p8> 359 vddxo-supply = <&vreg_l1c_1p8>; 434 vddrf-supply = <&vreg_l2c_1p3> 360 vddrf-supply = <&vreg_l2c_1p3>; 435 vddch0-supply = <&vreg_l10c_3p 361 vddch0-supply = <&vreg_l10c_3p3>; 436 max-speed = <3200000>; 362 max-speed = <3200000>; 437 }; 363 }; 438 }; 364 }; 439 365 440 &uart8 { 366 &uart8 { 441 status = "okay"; 367 status = "okay"; 442 }; 368 }; 443 369 444 &usb_1 { 370 &usb_1 { 445 status = "okay"; 371 status = "okay"; 446 }; 372 }; 447 373 448 &usb_1_dwc3 { 374 &usb_1_dwc3 { 449 dr_mode = "host"; 375 dr_mode = "host"; 450 }; 376 }; 451 377 452 &usb_1_hsphy { 378 &usb_1_hsphy { 453 status = "okay"; 379 status = "okay"; 454 vdd-supply = <&vreg_l4a_0p8>; 380 vdd-supply = <&vreg_l4a_0p8>; 455 vdda-pll-supply = <&vreg_l11a_1p8>; 381 vdda-pll-supply = <&vreg_l11a_1p8>; 456 vdda-phy-dpdm-supply = <&vreg_l17a_3p0 382 vdda-phy-dpdm-supply = <&vreg_l17a_3p0>; 457 qcom,imp-res-offset-value = <8>; 383 qcom,imp-res-offset-value = <8>; 458 qcom,preemphasis-level = <QUSB2_V2_PRE 384 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_15_PERCENT>; 459 qcom,preemphasis-width = <QUSB2_V2_PRE 385 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>; 460 qcom,bias-ctrl-value = <0x22>; 386 qcom,bias-ctrl-value = <0x22>; 461 qcom,charge-ctrl-value = <3>; 387 qcom,charge-ctrl-value = <3>; 462 qcom,hsdisc-trim-value = <0>; 388 qcom,hsdisc-trim-value = <0>; 463 }; 389 }; 464 390 465 &usb_1_qmpphy { 391 &usb_1_qmpphy { 466 status = "okay"; 392 status = "okay"; 467 vdda-phy-supply = <&vreg_l3c_1p2>; 393 vdda-phy-supply = <&vreg_l3c_1p2>; 468 vdda-pll-supply = <&vreg_l4a_0p8>; 394 vdda-pll-supply = <&vreg_l4a_0p8>; 469 }; 395 }; 470 396 471 &venus { 397 &venus { 472 video-firmware { 398 video-firmware { 473 iommus = <&apps_smmu 0x0c42 0x 399 iommus = <&apps_smmu 0x0c42 0x0>; 474 }; 400 }; 475 }; 401 }; 476 402 477 &wifi { 403 &wifi { 478 status = "okay"; 404 status = "okay"; 479 vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6> 405 vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6>; 480 vdd-1.8-xo-supply = <&vreg_l1c_1p8>; 406 vdd-1.8-xo-supply = <&vreg_l1c_1p8>; 481 vdd-1.3-rfa-supply = <&vreg_l2c_1p3>; 407 vdd-1.3-rfa-supply = <&vreg_l2c_1p3>; 482 vdd-3.3-ch0-supply = <&vreg_l10c_3p3>; 408 vdd-3.3-ch0-supply = <&vreg_l10c_3p3>; 483 vdd-3.3-ch1-supply = <&vreg_l11c_3p3>; 409 vdd-3.3-ch1-supply = <&vreg_l11c_3p3>; 484 wifi-firmware { 410 wifi-firmware { 485 iommus = <&apps_smmu 0xc2 0x1> 411 iommus = <&apps_smmu 0xc2 0x1>; 486 }; 412 }; 487 }; 413 }; 488 414 489 /* PINCTRL - additions to nodes defined in sc7 415 /* PINCTRL - additions to nodes defined in sc7180.dtsi */ 490 416 491 &pm6150l_gpios { << 492 disp_pins: disp-state { << 493 pinconf { << 494 pins = "gpio3"; << 495 function = PMIC_GPIO_F << 496 qcom,drive-strength = << 497 power-source = <0>; << 498 bias-disable; << 499 output-low; << 500 }; << 501 }; << 502 }; << 503 << 504 &qspi_clk { 417 &qspi_clk { 505 bias-disable; !! 418 pinconf { >> 419 pins = "gpio63"; >> 420 bias-disable; >> 421 }; 506 }; 422 }; 507 423 508 &qspi_cs0 { 424 &qspi_cs0 { 509 bias-disable; !! 425 pinconf { >> 426 pins = "gpio68"; >> 427 bias-disable; >> 428 }; 510 }; 429 }; 511 430 512 &qspi_data0 { !! 431 &qspi_data01 { 513 bias-pull-up; !! 432 pinconf { 514 }; !! 433 pins = "gpio64", "gpio65"; 515 434 516 &qspi_data1 { !! 435 /* High-Z when no transfers; nice to park the lines */ 517 bias-pull-up; !! 436 bias-pull-up; >> 437 }; 518 }; 438 }; 519 439 520 &qup_i2c2_default { 440 &qup_i2c2_default { 521 drive-strength = <2>; !! 441 pinconf { >> 442 pins = "gpio15", "gpio16"; >> 443 drive-strength = <2>; 522 444 523 /* Has external pullup */ !! 445 /* Has external pullup */ 524 bias-disable; !! 446 bias-disable; >> 447 }; 525 }; 448 }; 526 449 527 &qup_i2c4_default { 450 &qup_i2c4_default { 528 drive-strength = <2>; !! 451 pinconf { >> 452 pins = "gpio115", "gpio116"; >> 453 drive-strength = <2>; 529 454 530 /* Has external pullup */ !! 455 /* Has external pullup */ 531 bias-disable; !! 456 bias-disable; >> 457 }; 532 }; 458 }; 533 459 534 &qup_i2c7_default { 460 &qup_i2c7_default { 535 drive-strength = <2>; !! 461 pinconf { >> 462 pins = "gpio6", "gpio7"; >> 463 drive-strength = <2>; 536 464 537 /* Has external pullup */ !! 465 /* Has external pullup */ 538 bias-disable; !! 466 bias-disable; >> 467 }; 539 }; 468 }; 540 469 541 &qup_i2c9_default { 470 &qup_i2c9_default { 542 drive-strength = <2>; !! 471 pinconf { 543 !! 472 pins = "gpio46", "gpio47"; 544 /* Has external pullup */ !! 473 drive-strength = <2>; 545 bias-disable; << 546 }; << 547 << 548 &qup_uart3_cts { << 549 /* << 550 * Configure a pull-down on CTS to mat << 551 * the Bluetooth module. << 552 */ << 553 bias-pull-down; << 554 }; << 555 474 556 &qup_uart3_rts { !! 475 /* Has external pullup */ 557 /* We'll drive RTS, so no pull */ !! 476 bias-disable; 558 drive-strength = <2>; !! 477 }; 559 bias-disable; << 560 }; << 561 << 562 &qup_uart3_tx { << 563 /* We'll drive TX, so no pull */ << 564 drive-strength = <2>; << 565 bias-disable; << 566 }; 478 }; 567 479 568 &qup_uart3_rx { !! 480 &qup_uart3_default { 569 /* !! 481 pinconf-cts { 570 * Configure a pull-up on RX. This is !! 482 /* 571 * garbage data when the TX pin of the !! 483 * Configure a pull-down on CTS to match the pull of 572 * in tri-state (module powered off or !! 484 * the Bluetooth module. 573 * signal yet). !! 485 */ 574 */ !! 486 pins = "gpio38"; 575 bias-pull-up; !! 487 bias-pull-down; 576 }; !! 488 }; 577 489 578 &qup_uart8_tx { !! 490 pinconf-rts { 579 drive-strength = <2>; !! 491 /* We'll drive RTS, so no pull */ 580 bias-disable; !! 492 pins = "gpio39"; 581 }; !! 493 drive-strength = <2>; >> 494 bias-disable; >> 495 }; 582 496 583 &qup_uart8_rx { !! 497 pinconf-tx { 584 drive-strength = <2>; !! 498 /* We'll drive TX, so no pull */ 585 bias-pull-up; !! 499 pins = "gpio40"; 586 }; !! 500 drive-strength = <2>; >> 501 bias-disable; >> 502 }; 587 503 588 &qup_spi0_spi { !! 504 pinconf-rx { 589 drive-strength = <2>; !! 505 /* 590 bias-disable; !! 506 * Configure a pull-up on RX. This is needed to avoid >> 507 * garbage data when the TX pin of the Bluetooth module is >> 508 * in tri-state (module powered off or not driving the >> 509 * signal yet). >> 510 */ >> 511 pins = "gpio41"; >> 512 bias-pull-up; >> 513 }; 591 }; 514 }; 592 515 593 &qup_spi0_cs { !! 516 &qup_uart8_default { 594 drive-strength = <2>; !! 517 pinconf-tx { 595 bias-disable; !! 518 pins = "gpio44"; 596 }; !! 519 drive-strength = <2>; >> 520 bias-disable; >> 521 }; 597 522 598 &qup_spi6_spi { !! 523 pinconf-rx { 599 drive-strength = <2>; !! 524 pins = "gpio45"; 600 bias-disable; !! 525 drive-strength = <2>; >> 526 bias-pull-up; >> 527 }; 601 }; 528 }; 602 529 603 &qup_spi6_cs { !! 530 &qup_spi0_default { 604 drive-strength = <2>; !! 531 pinconf { 605 bias-disable; !! 532 pins = "gpio34", "gpio35", "gpio36", "gpio37"; >> 533 drive-strength = <2>; >> 534 bias-disable; >> 535 }; 606 }; 536 }; 607 537 608 &qup_spi10_spi { !! 538 &qup_spi6_default { 609 drive-strength = <2>; !! 539 pinconf { 610 bias-disable; !! 540 pins = "gpio59", "gpio60", "gpio61", "gpio62"; >> 541 drive-strength = <2>; >> 542 bias-disable; >> 543 }; 611 }; 544 }; 612 545 613 &qup_spi10_cs { !! 546 &qup_spi10_default { 614 drive-strength = <2>; !! 547 pinconf { 615 bias-disable; !! 548 pins = "gpio86", "gpio87", "gpio88", "gpio89"; >> 549 drive-strength = <2>; >> 550 bias-disable; >> 551 }; 616 }; 552 }; 617 553 618 &tlmm { 554 &tlmm { 619 qup_uart3_sleep: qup-uart3-sleep-state !! 555 qup_uart3_sleep: qup-uart3-sleep { 620 cts-pins { !! 556 pinmux { >> 557 pins = "gpio38", "gpio39", >> 558 "gpio40", "gpio41"; >> 559 function = "gpio"; >> 560 }; >> 561 >> 562 pinconf-cts { 621 /* 563 /* 622 * Configure a pull-do 564 * Configure a pull-down on CTS to match the pull of 623 * the Bluetooth modul 565 * the Bluetooth module. 624 */ 566 */ 625 pins = "gpio38"; 567 pins = "gpio38"; 626 function = "gpio"; << 627 bias-pull-down; 568 bias-pull-down; 628 }; 569 }; 629 570 630 rts-pins { !! 571 pinconf-rts { 631 /* 572 /* 632 * Configure pull-down 573 * Configure pull-down on RTS. As RTS is active low 633 * signal, pull it low 574 * signal, pull it low to indicate the BT SoC that it 634 * can wakeup the syst 575 * can wakeup the system anytime from suspend state by 635 * pulling RX low (by 576 * pulling RX low (by sending wakeup bytes). 636 */ 577 */ 637 pins = "gpio39"; !! 578 pins = "gpio39"; 638 function = "gpio"; !! 579 bias-pull-down; 639 bias-pull-down; << 640 }; 580 }; 641 581 642 tx-pins { !! 582 pinconf-tx { 643 /* 583 /* 644 * Configure pull-up o 584 * Configure pull-up on TX when it isn't actively driven 645 * to prevent BT SoC f 585 * to prevent BT SoC from receiving garbage during sleep. 646 */ 586 */ 647 pins = "gpio40"; 587 pins = "gpio40"; 648 function = "gpio"; << 649 bias-pull-up; 588 bias-pull-up; 650 }; 589 }; 651 590 652 rx-pins { !! 591 pinconf-rx { 653 /* 592 /* 654 * Configure a pull-up 593 * Configure a pull-up on RX. This is needed to avoid 655 * garbage data when t 594 * garbage data when the TX pin of the Bluetooth module 656 * is floating which m 595 * is floating which may cause spurious wakeups. 657 */ 596 */ 658 pins = "gpio41"; 597 pins = "gpio41"; 659 function = "gpio"; << 660 bias-pull-up; << 661 }; << 662 }; << 663 << 664 sdc1_on: sdc1-on-state { << 665 clk-pins { << 666 pins = "sdc1_clk"; << 667 bias-disable; << 668 drive-strength = <16>; << 669 }; << 670 << 671 cmd-pins { << 672 pins = "sdc1_cmd"; << 673 bias-pull-up; << 674 drive-strength = <10>; << 675 }; << 676 << 677 data-pins { << 678 pins = "sdc1_data"; << 679 bias-pull-up; << 680 drive-strength = <10>; << 681 }; << 682 << 683 rclk-pins { << 684 pins = "sdc1_rclk"; << 685 bias-pull-down; << 686 }; << 687 }; << 688 << 689 sdc1_off: sdc1-off-state { << 690 clk-pins { << 691 pins = "sdc1_clk"; << 692 bias-disable; << 693 drive-strength = <2>; << 694 }; << 695 << 696 cmd-pins { << 697 pins = "sdc1_cmd"; << 698 bias-pull-up; << 699 drive-strength = <2>; << 700 }; << 701 << 702 data-pins { << 703 pins = "sdc1_data"; << 704 bias-pull-up; << 705 drive-strength = <2>; << 706 }; << 707 << 708 rclk-pins { << 709 pins = "sdc1_rclk"; << 710 bias-pull-down; << 711 }; << 712 }; << 713 << 714 sdc2_on: sdc2-on-state { << 715 clk-pins { << 716 pins = "sdc2_clk"; << 717 bias-disable; << 718 drive-strength = <16>; << 719 }; << 720 << 721 cmd-pins { << 722 pins = "sdc2_cmd"; << 723 bias-pull-up; << 724 drive-strength = <10>; << 725 }; << 726 << 727 data-pins { << 728 pins = "sdc2_data"; << 729 bias-pull-up; << 730 drive-strength = <10>; << 731 }; << 732 << 733 sd-cd-pins { << 734 pins = "gpio69"; << 735 function = "gpio"; << 736 bias-pull-up; << 737 drive-strength = <2>; << 738 }; << 739 }; << 740 << 741 sdc2_off: sdc2-off-state { << 742 clk-pins { << 743 pins = "sdc2_clk"; << 744 bias-disable; << 745 drive-strength = <2>; << 746 }; << 747 << 748 cmd-pins { << 749 pins = "sdc2_cmd"; << 750 bias-pull-up; << 751 drive-strength = <2>; << 752 }; << 753 << 754 data-pins { << 755 pins = "sdc2_data"; << 756 bias-pull-up; << 757 drive-strength = <2>; << 758 }; << 759 << 760 sd-cd-pins { << 761 pins = "gpio69"; << 762 function = "gpio"; << 763 bias-pull-up; 598 bias-pull-up; 764 drive-strength = <2>; << 765 }; 599 }; 766 }; 600 }; 767 }; 601 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.