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