1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* !! 2 // Copyright (c) 2018, Linaro Limited 3 * Copyright (c) 2018, Linaro Limited << 4 */ << 5 3 6 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/gpio/gpio.h> 7 #include "qcs404.dtsi" 5 #include "qcs404.dtsi" 8 #include "pms405.dtsi" 6 #include "pms405.dtsi" 9 #include <dt-bindings/gpio/gpio.h> << 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h << 11 7 12 / { 8 / { 13 aliases { 9 aliases { 14 serial0 = &blsp1_uart2; 10 serial0 = &blsp1_uart2; 15 serial1 = &blsp1_uart3; 11 serial1 = &blsp1_uart3; 16 }; 12 }; 17 13 18 chosen { 14 chosen { 19 stdout-path = "serial0"; 15 stdout-path = "serial0"; 20 }; 16 }; 21 17 22 vph_pwr: vph-pwr-regulator { 18 vph_pwr: vph-pwr-regulator { 23 compatible = "regulator-fixed" 19 compatible = "regulator-fixed"; 24 regulator-name = "vph_pwr"; 20 regulator-name = "vph_pwr"; 25 regulator-always-on; 21 regulator-always-on; 26 regulator-boot-on; 22 regulator-boot-on; 27 }; 23 }; 28 24 29 vdd_ch0_3p3: 25 vdd_ch0_3p3: 30 vdd_esmps3_3p3: vdd-esmps3-3p3-regulat 26 vdd_esmps3_3p3: vdd-esmps3-3p3-regulator { 31 compatible = "regulator-fixed" 27 compatible = "regulator-fixed"; 32 regulator-name = "eSMPS3_3P3"; 28 regulator-name = "eSMPS3_3P3"; 33 29 34 regulator-min-microvolt = <330 30 regulator-min-microvolt = <3300000>; 35 regulator-max-microvolt = <330 31 regulator-max-microvolt = <3300000>; 36 regulator-always-on; 32 regulator-always-on; 37 }; 33 }; 38 << 39 usb3_vbus_reg: regulator-usb3-vbus { << 40 compatible = "regulator-fixed" << 41 regulator-name = "VBUS_BOOST_5 << 42 regulator-min-microvolt = <500 << 43 regulator-max-microvolt = <500 << 44 gpio = <&pms405_gpios 3 GPIO_A << 45 pinctrl-names = "default"; << 46 pinctrl-0 = <&usb_vbus_boost_p << 47 vin-supply = <&vph_pwr>; << 48 enable-active-high; << 49 << 50 /* TODO: Drop this when introd << 51 regulator-always-on; << 52 }; << 53 }; 34 }; 54 35 55 &blsp1_uart3 { 36 &blsp1_uart3 { 56 status = "okay"; 37 status = "okay"; 57 38 58 bluetooth { 39 bluetooth { 59 compatible = "qcom,wcn3990-bt" 40 compatible = "qcom,wcn3990-bt"; 60 vddio-supply = <&vreg_l6_1p8>; 41 vddio-supply = <&vreg_l6_1p8>; 61 vddxo-supply = <&vreg_l5_1p8>; 42 vddxo-supply = <&vreg_l5_1p8>; 62 vddrf-supply = <&vreg_l1_1p3>; 43 vddrf-supply = <&vreg_l1_1p3>; 63 vddch0-supply = <&vdd_ch0_3p3> 44 vddch0-supply = <&vdd_ch0_3p3>; 64 45 65 local-bd-address = [ 00 00 00 !! 46 local-bd-address = [ 02 00 00 00 5a ad ]; 66 47 67 max-speed = <3200000>; 48 max-speed = <3200000>; 68 }; 49 }; 69 }; 50 }; 70 51 71 &blsp1_dma { 52 &blsp1_dma { 72 qcom,controlled-remotely; 53 qcom,controlled-remotely; 73 }; 54 }; 74 55 75 &blsp2_dma { 56 &blsp2_dma { 76 qcom,controlled-remotely; 57 qcom,controlled-remotely; 77 }; 58 }; 78 59 79 &gcc { 60 &gcc { 80 protected-clocks = <GCC_BIMC_CDSP_CLK> 61 protected-clocks = <GCC_BIMC_CDSP_CLK>, 81 <GCC_CDSP_CFG_AHB_C 62 <GCC_CDSP_CFG_AHB_CLK>, 82 <GCC_CDSP_BIMC_CLK_ 63 <GCC_CDSP_BIMC_CLK_SRC>, 83 <GCC_CDSP_TBU_CLK>, 64 <GCC_CDSP_TBU_CLK>, 84 <141>, /* GCC_WCSS_ 65 <141>, /* GCC_WCSS_Q6_AHB_CLK */ 85 <142>; /* GCC_WCSS_ 66 <142>; /* GCC_WCSS_Q6_AXIM_CLK */ 86 }; 67 }; 87 68 88 &pms405_spmi_regulators { 69 &pms405_spmi_regulators { 89 vdd_s3-supply = <&vph_pwr>; 70 vdd_s3-supply = <&vph_pwr>; 90 71 91 pms405_s3: s3 { 72 pms405_s3: s3 { 92 regulator-always-on; 73 regulator-always-on; 93 regulator-boot-on; 74 regulator-boot-on; 94 regulator-name = "vdd_apc"; 75 regulator-name = "vdd_apc"; 95 regulator-initial-mode = <1>; << 96 regulator-min-microvolt = <104 76 regulator-min-microvolt = <1048000>; 97 regulator-max-microvolt = <138 77 regulator-max-microvolt = <1384000>; 98 }; 78 }; 99 }; 79 }; 100 80 101 &pcie { 81 &pcie { 102 status = "okay"; !! 82 status = "ok"; 103 83 104 perst-gpios = <&tlmm 43 GPIO_ACTIVE_LO !! 84 perst-gpio = <&tlmm 43 GPIO_ACTIVE_LOW>; 105 85 106 pinctrl-names = "default"; 86 pinctrl-names = "default"; 107 pinctrl-0 = <&perst_state>; 87 pinctrl-0 = <&perst_state>; 108 }; 88 }; 109 89 110 &pcie_phy { 90 &pcie_phy { 111 status = "okay"; !! 91 status = "ok"; 112 92 113 vdda-vp-supply = <&vreg_l3_1p05>; 93 vdda-vp-supply = <&vreg_l3_1p05>; 114 vdda-vph-supply = <&vreg_l5_1p8>; 94 vdda-vph-supply = <&vreg_l5_1p8>; 115 }; 95 }; 116 96 117 &remoteproc_adsp { 97 &remoteproc_adsp { 118 status = "okay"; !! 98 status = "ok"; 119 }; 99 }; 120 100 121 &remoteproc_cdsp { 101 &remoteproc_cdsp { 122 status = "okay"; !! 102 status = "ok"; 123 }; 103 }; 124 104 125 &remoteproc_wcss { 105 &remoteproc_wcss { 126 status = "okay"; !! 106 status = "ok"; 127 }; 107 }; 128 108 129 &rpm_requests { 109 &rpm_requests { 130 regulators { !! 110 pms405-regulators { 131 compatible = "qcom,rpm-pms405- 111 compatible = "qcom,rpm-pms405-regulators"; 132 112 133 vdd_s1-supply = <&vph_pwr>; 113 vdd_s1-supply = <&vph_pwr>; 134 vdd_s2-supply = <&vph_pwr>; 114 vdd_s2-supply = <&vph_pwr>; 135 vdd_s3-supply = <&vph_pwr>; 115 vdd_s3-supply = <&vph_pwr>; 136 vdd_s4-supply = <&vph_pwr>; 116 vdd_s4-supply = <&vph_pwr>; 137 vdd_s5-supply = <&vph_pwr>; 117 vdd_s5-supply = <&vph_pwr>; 138 vdd_l1_l2-supply = <&vreg_s5_1 118 vdd_l1_l2-supply = <&vreg_s5_1p35>; 139 vdd_l3_l8-supply = <&vreg_s5_1 119 vdd_l3_l8-supply = <&vreg_s5_1p35>; 140 vdd_l4-supply = <&vreg_s5_1p35 120 vdd_l4-supply = <&vreg_s5_1p35>; 141 vdd_l5_l6-supply = <&vreg_s4_1 121 vdd_l5_l6-supply = <&vreg_s4_1p8>; 142 vdd_l7-supply = <&vph_pwr>; 122 vdd_l7-supply = <&vph_pwr>; 143 vdd_l9-supply = <&vreg_s5_1p35 123 vdd_l9-supply = <&vreg_s5_1p35>; 144 vdd_l10_l11_l12_l13-supply = < 124 vdd_l10_l11_l12_l13-supply = <&vph_pwr>; 145 125 146 vreg_s4_1p8: s4 { 126 vreg_s4_1p8: s4 { 147 regulator-min-microvol 127 regulator-min-microvolt = <1728000>; 148 regulator-max-microvol 128 regulator-max-microvolt = <1920000>; 149 }; 129 }; 150 130 151 vreg_s5_1p35: s5 { 131 vreg_s5_1p35: s5 { 152 regulator-min-microvol 132 regulator-min-microvolt = <1352000>; 153 regulator-max-microvol 133 regulator-max-microvolt = <1352000>; 154 }; 134 }; 155 135 156 vreg_l1_1p3: l1 { 136 vreg_l1_1p3: l1 { 157 regulator-min-microvol 137 regulator-min-microvolt = <1240000>; 158 regulator-max-microvol 138 regulator-max-microvolt = <1352000>; 159 }; 139 }; 160 140 161 vreg_l2_1p275: l2 { 141 vreg_l2_1p275: l2 { 162 regulator-min-microvol 142 regulator-min-microvolt = <1048000>; 163 regulator-max-microvol 143 regulator-max-microvolt = <1280000>; 164 }; 144 }; 165 145 166 vreg_l3_1p05: l3 { 146 vreg_l3_1p05: l3 { 167 regulator-min-microvol 147 regulator-min-microvolt = <1048000>; 168 regulator-max-microvol 148 regulator-max-microvolt = <1160000>; 169 }; 149 }; 170 150 171 vreg_l4_1p2: l4 { 151 vreg_l4_1p2: l4 { 172 regulator-min-microvol 152 regulator-min-microvolt = <1144000>; 173 regulator-max-microvol 153 regulator-max-microvolt = <1256000>; 174 }; 154 }; 175 155 176 vreg_l5_1p8: l5 { 156 vreg_l5_1p8: l5 { 177 regulator-min-microvol 157 regulator-min-microvolt = <1800000>; 178 regulator-max-microvol 158 regulator-max-microvolt = <1800000>; 179 }; 159 }; 180 160 181 vreg_l6_1p8: l6 { 161 vreg_l6_1p8: l6 { 182 regulator-min-microvol 162 regulator-min-microvolt = <1800000>; 183 regulator-max-microvol 163 regulator-max-microvolt = <1800000>; 184 regulator-always-on; 164 regulator-always-on; 185 }; 165 }; 186 166 187 vreg_l7_1p8: l7 { 167 vreg_l7_1p8: l7 { 188 regulator-min-microvol 168 regulator-min-microvolt = <1616000>; 189 regulator-max-microvol 169 regulator-max-microvolt = <3000000>; 190 }; 170 }; 191 171 192 vreg_l8_1p2: l8 { 172 vreg_l8_1p2: l8 { 193 regulator-min-microvol 173 regulator-min-microvolt = <1136000>; 194 regulator-max-microvol 174 regulator-max-microvolt = <1352000>; 195 }; 175 }; 196 176 197 vreg_l10_3p3: l10 { 177 vreg_l10_3p3: l10 { 198 regulator-min-microvol 178 regulator-min-microvolt = <2936000>; 199 regulator-max-microvol 179 regulator-max-microvolt = <3088000>; 200 }; 180 }; 201 181 202 vreg_l11_sdc2: l11 { 182 vreg_l11_sdc2: l11 { 203 regulator-min-microvol 183 regulator-min-microvolt = <2696000>; 204 regulator-max-microvol 184 regulator-max-microvolt = <3304000>; 205 }; 185 }; 206 186 207 vreg_l12_3p3: l12 { 187 vreg_l12_3p3: l12 { 208 regulator-min-microvol !! 188 regulator-min-microvolt = <2968000>; 209 regulator-max-microvol 189 regulator-max-microvolt = <3300000>; 210 }; 190 }; 211 191 212 vreg_l13_3p3: l13 { 192 vreg_l13_3p3: l13 { 213 regulator-min-microvol 193 regulator-min-microvolt = <3000000>; 214 regulator-max-microvol 194 regulator-max-microvolt = <3300000>; 215 }; 195 }; 216 }; 196 }; 217 }; 197 }; 218 198 219 &sdcc1 { 199 &sdcc1 { 220 status = "okay"; !! 200 status = "ok"; 221 201 222 supports-cqe; << 223 mmc-ddr-1_8v; 202 mmc-ddr-1_8v; 224 mmc-hs400-1_8v; 203 mmc-hs400-1_8v; 225 bus-width = <8>; 204 bus-width = <8>; 226 non-removable; 205 non-removable; 227 206 228 pinctrl-names = "default", "sleep"; 207 pinctrl-names = "default", "sleep"; 229 pinctrl-0 = <&sdc1_on>; 208 pinctrl-0 = <&sdc1_on>; 230 pinctrl-1 = <&sdc1_off>; 209 pinctrl-1 = <&sdc1_off>; 231 }; 210 }; 232 211 233 &tlmm { 212 &tlmm { 234 perst_state: perst-state { !! 213 perst_state: perst { 235 pins = "gpio43"; 214 pins = "gpio43"; 236 function = "gpio"; 215 function = "gpio"; 237 216 238 drive-strength = <2>; 217 drive-strength = <2>; 239 bias-disable; 218 bias-disable; 240 output-low; 219 output-low; 241 }; 220 }; 242 221 243 sdc1_on: sdc1-on-state { !! 222 sdc1_on: sdc1-on { 244 clk-pins { !! 223 clk { 245 pins = "sdc1_clk"; 224 pins = "sdc1_clk"; 246 bias-disable; 225 bias-disable; 247 drive-strength = <16>; 226 drive-strength = <16>; 248 }; 227 }; 249 228 250 cmd-pins { !! 229 cmd { 251 pins = "sdc1_cmd"; 230 pins = "sdc1_cmd"; 252 bias-pull-up; 231 bias-pull-up; 253 drive-strength = <10>; 232 drive-strength = <10>; 254 }; 233 }; 255 234 256 data-pins { !! 235 data { 257 pins = "sdc1_data"; 236 pins = "sdc1_data"; 258 bias-pull-up; 237 bias-pull-up; 259 drive-strength = <10>; 238 drive-strength = <10>; 260 }; 239 }; 261 240 262 rclk-pins { !! 241 rclk { 263 pins = "sdc1_rclk"; 242 pins = "sdc1_rclk"; 264 bias-pull-down; 243 bias-pull-down; 265 }; 244 }; 266 }; 245 }; 267 246 268 sdc1_off: sdc1-off-state { !! 247 sdc1_off: sdc1-off { 269 clk-pins { !! 248 clk { 270 pins = "sdc1_clk"; 249 pins = "sdc1_clk"; 271 bias-disable; 250 bias-disable; 272 drive-strength = <2>; 251 drive-strength = <2>; 273 }; 252 }; 274 253 275 cmd-pins { !! 254 cmd { 276 pins = "sdc1_cmd"; 255 pins = "sdc1_cmd"; 277 bias-pull-up; 256 bias-pull-up; 278 drive-strength = <2>; 257 drive-strength = <2>; 279 }; 258 }; 280 259 281 data-pins { !! 260 data { 282 pins = "sdc1_data"; 261 pins = "sdc1_data"; 283 bias-pull-up; 262 bias-pull-up; 284 drive-strength = <2>; 263 drive-strength = <2>; 285 }; 264 }; 286 265 287 rclk-pins { !! 266 rclk { 288 pins = "sdc1_rclk"; 267 pins = "sdc1_rclk"; 289 bias-pull-down; 268 bias-pull-down; 290 }; 269 }; 291 }; 270 }; 292 << 293 usb3_id_pin: usb3-id-state { << 294 pins = "gpio116"; << 295 function = "gpio"; << 296 << 297 drive-strength = <2>; << 298 bias-pull-up; << 299 }; << 300 }; << 301 << 302 &pms405_gpios { << 303 usb_vbus_boost_pin: usb-vbus-boost-sta << 304 pinconf { << 305 pins = "gpio3"; << 306 function = PMIC_GPIO_F << 307 output-low; << 308 power-source = <1>; << 309 }; << 310 }; << 311 usb3_vbus_pin: usb3-vbus-state { << 312 pinconf { << 313 pins = "gpio12"; << 314 function = PMIC_GPIO_F << 315 input-enable; << 316 bias-pull-down; << 317 power-source = <1>; << 318 }; << 319 }; << 320 }; << 321 << 322 &usb2 { << 323 status = "okay"; << 324 }; << 325 << 326 &usb2_phy_sec { << 327 vdd-supply = <&vreg_l4_1p2>; << 328 vdda1p8-supply = <&vreg_l5_1p8>; << 329 vdda3p3-supply = <&vreg_l12_3p3>; << 330 status = "okay"; << 331 }; << 332 << 333 &usb3 { << 334 status = "okay"; << 335 << 336 }; << 337 << 338 &usb3_dwc3 { << 339 dr_mode = "host"; << 340 }; << 341 << 342 &usb2_phy_prim { << 343 vdd-supply = <&vreg_l4_1p2>; << 344 vdda1p8-supply = <&vreg_l5_1p8>; << 345 vdda3p3-supply = <&vreg_l12_3p3>; << 346 status = "okay"; << 347 }; << 348 << 349 &usb3_phy { << 350 vdd-supply = <&vreg_l3_1p05>; << 351 vdda1p8-supply = <&vreg_l5_1p8>; << 352 status = "okay"; << 353 }; 271 }; 354 272 355 &wifi { 273 &wifi { 356 status = "okay"; 274 status = "okay"; 357 vdd-0.8-cx-mx-supply = <&vreg_l2_1p275 << 358 vdd-1.8-xo-supply = <&vreg_l5_1p8>; << 359 vdd-1.3-rfa-supply = <&vreg_l1_1p3>; << 360 }; 275 }; 361 276 362 /* PINCTRL - additions to nodes defined in qcs 277 /* PINCTRL - additions to nodes defined in qcs404.dtsi */ 363 278 364 &blsp1_uart2_default { 279 &blsp1_uart2_default { 365 rx-pins { !! 280 rx { 366 drive-strength = <2>; 281 drive-strength = <2>; 367 bias-disable; 282 bias-disable; 368 }; 283 }; 369 284 370 tx-pins { !! 285 tx { 371 drive-strength = <2>; 286 drive-strength = <2>; 372 bias-disable; 287 bias-disable; 373 }; 288 }; 374 }; 289 }; 375 290 376 &blsp1_uart3_default { 291 &blsp1_uart3_default { 377 cts-pins { !! 292 cts { >> 293 pins = "gpio84"; 378 bias-disable; 294 bias-disable; 379 }; 295 }; 380 296 381 rts-tx-pins { !! 297 rts-tx { >> 298 pins = "gpio85", "gpio82"; 382 drive-strength = <2>; 299 drive-strength = <2>; 383 bias-disable; 300 bias-disable; 384 }; 301 }; 385 302 386 rx-pins { !! 303 rx { >> 304 pins = "gpio83"; 387 bias-pull-up; 305 bias-pull-up; 388 }; 306 }; 389 }; 307 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.