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