1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2021, The Linux Foundation. A 3 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022, Linaro Limited 4 * Copyright (c) 2022, Linaro Limited 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include <dt-bindings/iio/qcom,spmi-adc7-pm835 << 10 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> >> 10 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> >> 11 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> >> 12 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 11 #include <dt-bindings/input/gpio-keys.h> 13 #include <dt-bindings/input/gpio-keys.h> 12 #include <dt-bindings/input/input.h> 14 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/leds/common.h> 15 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/regulator/qcom,rpmh-regu 16 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 15 17 16 #include "sc8280xp.dtsi" 18 #include "sc8280xp.dtsi" 17 #include "sc8280xp-pmics.dtsi" 19 #include "sc8280xp-pmics.dtsi" 18 20 19 / { 21 / { 20 model = "Lenovo ThinkPad X13s"; 22 model = "Lenovo ThinkPad X13s"; 21 compatible = "lenovo,thinkpad-x13s", " 23 compatible = "lenovo,thinkpad-x13s", "qcom,sc8280xp"; 22 24 23 aliases { 25 aliases { 24 i2c4 = &i2c4; 26 i2c4 = &i2c4; 25 i2c21 = &i2c21; 27 i2c21 = &i2c21; 26 serial1 = &uart2; 28 serial1 = &uart2; 27 }; 29 }; 28 30 29 wcd938x: audio-codec { 31 wcd938x: audio-codec { 30 compatible = "qcom,wcd9380-cod 32 compatible = "qcom,wcd9380-codec"; 31 33 32 pinctrl-names = "default"; 34 pinctrl-names = "default"; 33 pinctrl-0 = <&wcd_default>; 35 pinctrl-0 = <&wcd_default>; 34 36 35 reset-gpios = <&tlmm 106 GPIO_ 37 reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; 36 38 37 vdd-buck-supply = <&vreg_s10b> 39 vdd-buck-supply = <&vreg_s10b>; 38 vdd-rxtx-supply = <&vreg_s10b> 40 vdd-rxtx-supply = <&vreg_s10b>; 39 vdd-io-supply = <&vreg_s10b>; 41 vdd-io-supply = <&vreg_s10b>; 40 vdd-mic-bias-supply = <&vreg_b 42 vdd-mic-bias-supply = <&vreg_bob>; 41 43 42 qcom,micbias1-microvolt = <180 44 qcom,micbias1-microvolt = <1800000>; 43 qcom,micbias2-microvolt = <180 45 qcom,micbias2-microvolt = <1800000>; 44 qcom,micbias3-microvolt = <180 46 qcom,micbias3-microvolt = <1800000>; 45 qcom,micbias4-microvolt = <180 47 qcom,micbias4-microvolt = <1800000>; 46 qcom,mbhc-buttons-vthreshold-m 48 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 47 qcom,mbhc-headset-vthreshold-m 49 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 48 qcom,mbhc-headphone-vthreshold 50 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; 49 qcom,rx-device = <&wcd_rx>; 51 qcom,rx-device = <&wcd_rx>; 50 qcom,tx-device = <&wcd_tx>; 52 qcom,tx-device = <&wcd_tx>; 51 53 52 #sound-dai-cells = <1>; 54 #sound-dai-cells = <1>; 53 }; 55 }; 54 56 55 backlight: backlight { 57 backlight: backlight { 56 compatible = "pwm-backlight"; 58 compatible = "pwm-backlight"; 57 pwms = <&pmc8280c_lpg 3 100000 59 pwms = <&pmc8280c_lpg 3 1000000>; 58 enable-gpios = <&pmc8280_1_gpi 60 enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>; 59 power-supply = <&vreg_edp_bl>; 61 power-supply = <&vreg_edp_bl>; 60 62 61 pinctrl-names = "default"; 63 pinctrl-names = "default"; 62 pinctrl-0 = <&edp_bl_en>, <&ed 64 pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; 63 }; 65 }; 64 66 65 gpio-keys { 67 gpio-keys { 66 compatible = "gpio-keys"; 68 compatible = "gpio-keys"; 67 69 68 pinctrl-names = "default"; 70 pinctrl-names = "default"; 69 pinctrl-0 = <&hall_int_n_defau 71 pinctrl-0 = <&hall_int_n_default>; 70 72 71 switch-lid { 73 switch-lid { 72 gpios = <&tlmm 107 GPI 74 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 73 linux,input-type = <EV 75 linux,input-type = <EV_SW>; 74 linux,code = <SW_LID>; 76 linux,code = <SW_LID>; 75 wakeup-source; 77 wakeup-source; 76 wakeup-event-action = 78 wakeup-event-action = <EV_ACT_DEASSERTED>; 77 }; 79 }; 78 }; 80 }; 79 81 80 leds { 82 leds { 81 compatible = "gpio-leds"; 83 compatible = "gpio-leds"; 82 84 83 pinctrl-names = "default"; 85 pinctrl-names = "default"; 84 pinctrl-0 = <&cam_indicator_en 86 pinctrl-0 = <&cam_indicator_en>; 85 87 86 led-camera-indicator { 88 led-camera-indicator { 87 label = "white:camera- 89 label = "white:camera-indicator"; 88 function = LED_FUNCTIO 90 function = LED_FUNCTION_INDICATOR; 89 color = <LED_COLOR_ID_ 91 color = <LED_COLOR_ID_WHITE>; 90 gpios = <&tlmm 28 GPIO 92 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>; 91 linux,default-trigger 93 linux,default-trigger = "none"; 92 default-state = "off"; 94 default-state = "off"; 93 /* Reuse as a panic in 95 /* Reuse as a panic indicator until we get a "camera on" trigger */ 94 panic-indicator; 96 panic-indicator; 95 }; 97 }; 96 }; 98 }; 97 99 98 pmic-glink { 100 pmic-glink { 99 compatible = "qcom,sc8280xp-pm 101 compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink"; 100 102 101 #address-cells = <1>; 103 #address-cells = <1>; 102 #size-cells = <0>; 104 #size-cells = <0>; 103 orientation-gpios = <&tlmm 166 << 104 <&tlmm 49 << 105 105 106 connector@0 { 106 connector@0 { 107 compatible = "usb-c-co 107 compatible = "usb-c-connector"; 108 reg = <0>; 108 reg = <0>; 109 power-role = "dual"; 109 power-role = "dual"; 110 data-role = "dual"; 110 data-role = "dual"; 111 111 112 ports { 112 ports { 113 #address-cells 113 #address-cells = <1>; 114 #size-cells = 114 #size-cells = <0>; 115 115 116 port@0 { 116 port@0 { 117 reg = 117 reg = <0>; 118 118 119 pmic_g 119 pmic_glink_con0_hs: endpoint { 120 !! 120 remote-endpoint = <&usb_0_role_switch>; 121 }; 121 }; 122 }; 122 }; 123 123 124 port@1 { 124 port@1 { 125 reg = 125 reg = <1>; 126 126 127 pmic_g 127 pmic_glink_con0_ss: endpoint { 128 128 remote-endpoint = <&usb_0_qmpphy_out>; 129 }; 129 }; 130 }; 130 }; 131 131 132 port@2 { 132 port@2 { 133 reg = 133 reg = <2>; 134 134 135 pmic_g 135 pmic_glink_con0_sbu: endpoint { 136 136 remote-endpoint = <&usb0_sbu_mux>; 137 }; 137 }; 138 }; 138 }; 139 }; 139 }; 140 }; 140 }; 141 141 142 connector@1 { 142 connector@1 { 143 compatible = "usb-c-co 143 compatible = "usb-c-connector"; 144 reg = <1>; 144 reg = <1>; 145 power-role = "dual"; 145 power-role = "dual"; 146 data-role = "dual"; 146 data-role = "dual"; 147 147 148 ports { 148 ports { 149 #address-cells 149 #address-cells = <1>; 150 #size-cells = 150 #size-cells = <0>; 151 port@0 { 151 port@0 { 152 reg = 152 reg = <0>; 153 153 154 pmic_g 154 pmic_glink_con1_hs: endpoint { 155 !! 155 remote-endpoint = <&usb_1_role_switch>; 156 }; 156 }; 157 }; 157 }; 158 158 159 port@1 { 159 port@1 { 160 reg = 160 reg = <1>; 161 161 162 pmic_g 162 pmic_glink_con1_ss: endpoint { 163 163 remote-endpoint = <&usb_1_qmpphy_out>; 164 }; 164 }; 165 }; 165 }; 166 166 167 port@2 { 167 port@2 { 168 reg = 168 reg = <2>; 169 169 170 pmic_g 170 pmic_glink_con1_sbu: endpoint { 171 171 remote-endpoint = <&usb1_sbu_mux>; 172 }; 172 }; 173 }; 173 }; 174 }; 174 }; 175 }; 175 }; 176 }; 176 }; 177 177 178 vreg_edp_3p3: regulator-edp-3p3 { 178 vreg_edp_3p3: regulator-edp-3p3 { 179 compatible = "regulator-fixed" 179 compatible = "regulator-fixed"; 180 180 181 regulator-name = "VCC3LCD"; 181 regulator-name = "VCC3LCD"; 182 regulator-min-microvolt = <330 182 regulator-min-microvolt = <3300000>; 183 regulator-max-microvolt = <330 183 regulator-max-microvolt = <3300000>; 184 184 185 gpio = <&tlmm 25 GPIO_ACTIVE_H 185 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>; 186 enable-active-high; 186 enable-active-high; 187 187 188 pinctrl-names = "default"; 188 pinctrl-names = "default"; 189 pinctrl-0 = <&edp_reg_en>; 189 pinctrl-0 = <&edp_reg_en>; 190 190 191 regulator-boot-on; 191 regulator-boot-on; 192 }; 192 }; 193 193 194 vreg_edp_bl: regulator-edp-bl { 194 vreg_edp_bl: regulator-edp-bl { 195 compatible = "regulator-fixed" 195 compatible = "regulator-fixed"; 196 196 197 regulator-name = "VBL9"; 197 regulator-name = "VBL9"; 198 regulator-min-microvolt = <360 198 regulator-min-microvolt = <3600000>; 199 regulator-max-microvolt = <360 199 regulator-max-microvolt = <3600000>; 200 200 201 gpio = <&pmc8280_1_gpios 9 GPI 201 gpio = <&pmc8280_1_gpios 9 GPIO_ACTIVE_HIGH>; 202 enable-active-high; 202 enable-active-high; 203 203 204 pinctrl-names = "default"; 204 pinctrl-names = "default"; 205 pinctrl-0 = <&edp_bl_reg_en>; 205 pinctrl-0 = <&edp_bl_reg_en>; 206 206 207 regulator-boot-on; 207 regulator-boot-on; 208 }; 208 }; 209 209 210 vreg_misc_3p3: regulator-misc-3p3 { 210 vreg_misc_3p3: regulator-misc-3p3 { 211 compatible = "regulator-fixed" 211 compatible = "regulator-fixed"; 212 212 213 regulator-name = "VCC3B"; 213 regulator-name = "VCC3B"; 214 regulator-min-microvolt = <330 214 regulator-min-microvolt = <3300000>; 215 regulator-max-microvolt = <330 215 regulator-max-microvolt = <3300000>; 216 216 217 gpio = <&pmc8280_1_gpios 1 GPI 217 gpio = <&pmc8280_1_gpios 1 GPIO_ACTIVE_HIGH>; 218 enable-active-high; 218 enable-active-high; 219 219 220 pinctrl-names = "default"; 220 pinctrl-names = "default"; 221 pinctrl-0 = <&misc_3p3_reg_en> 221 pinctrl-0 = <&misc_3p3_reg_en>; 222 222 223 regulator-boot-on; 223 regulator-boot-on; 224 regulator-always-on; 224 regulator-always-on; 225 }; 225 }; 226 226 227 vreg_nvme: regulator-nvme { 227 vreg_nvme: regulator-nvme { 228 compatible = "regulator-fixed" 228 compatible = "regulator-fixed"; 229 229 230 regulator-name = "VCC3_SSD"; 230 regulator-name = "VCC3_SSD"; 231 regulator-min-microvolt = <330 231 regulator-min-microvolt = <3300000>; 232 regulator-max-microvolt = <330 232 regulator-max-microvolt = <3300000>; 233 233 234 gpio = <&tlmm 135 GPIO_ACTIVE_ 234 gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>; 235 enable-active-high; 235 enable-active-high; 236 236 237 pinctrl-names = "default"; 237 pinctrl-names = "default"; 238 pinctrl-0 = <&nvme_reg_en>; 238 pinctrl-0 = <&nvme_reg_en>; 239 239 240 regulator-boot-on; 240 regulator-boot-on; 241 }; 241 }; 242 242 243 vreg_vph_pwr: regulator-vph-pwr { 243 vreg_vph_pwr: regulator-vph-pwr { 244 compatible = "regulator-fixed" 244 compatible = "regulator-fixed"; 245 245 246 regulator-name = "VPH_VCC3R9"; 246 regulator-name = "VPH_VCC3R9"; 247 regulator-min-microvolt = <390 247 regulator-min-microvolt = <3900000>; 248 regulator-max-microvolt = <390 248 regulator-max-microvolt = <3900000>; 249 249 250 regulator-always-on; 250 regulator-always-on; 251 }; 251 }; 252 252 253 vreg_wlan: regulator-wlan { 253 vreg_wlan: regulator-wlan { 254 compatible = "regulator-fixed" 254 compatible = "regulator-fixed"; 255 255 256 regulator-name = "VCC_WLAN_3R9 256 regulator-name = "VCC_WLAN_3R9"; 257 regulator-min-microvolt = <390 257 regulator-min-microvolt = <3900000>; 258 regulator-max-microvolt = <390 258 regulator-max-microvolt = <3900000>; 259 259 260 gpio = <&pmr735a_gpios 1 GPIO_ 260 gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>; 261 enable-active-high; 261 enable-active-high; 262 262 263 pinctrl-names = "default"; 263 pinctrl-names = "default"; 264 pinctrl-0 = <&hastings_reg_en> 264 pinctrl-0 = <&hastings_reg_en>; 265 265 266 regulator-boot-on; 266 regulator-boot-on; 267 }; 267 }; 268 268 269 vreg_wwan: regulator-wwan { 269 vreg_wwan: regulator-wwan { 270 compatible = "regulator-fixed" 270 compatible = "regulator-fixed"; 271 271 272 regulator-name = "VCC3B_WAN"; 272 regulator-name = "VCC3B_WAN"; 273 regulator-min-microvolt = <330 273 regulator-min-microvolt = <3300000>; 274 regulator-max-microvolt = <330 274 regulator-max-microvolt = <3300000>; 275 275 276 gpio = <&pmc8280_2_gpios 1 GPI 276 gpio = <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>; 277 enable-active-high; 277 enable-active-high; 278 278 279 pinctrl-names = "default"; 279 pinctrl-names = "default"; 280 pinctrl-0 = <&wwan_sw_en>; 280 pinctrl-0 = <&wwan_sw_en>; 281 281 282 regulator-boot-on; 282 regulator-boot-on; 283 }; 283 }; 284 284 285 reserved-memory { 285 reserved-memory { 286 gpu_mem: gpu-mem@8bf00000 { 286 gpu_mem: gpu-mem@8bf00000 { 287 reg = <0 0x8bf00000 0 287 reg = <0 0x8bf00000 0 0x2000>; 288 no-map; 288 no-map; 289 }; 289 }; 290 290 291 linux,cma { 291 linux,cma { 292 compatible = "shared-d 292 compatible = "shared-dma-pool"; 293 size = <0x0 0x8000000> 293 size = <0x0 0x8000000>; 294 reusable; 294 reusable; 295 linux,cma-default; 295 linux,cma-default; 296 }; 296 }; 297 }; 297 }; 298 298 299 thermal-zones { 299 thermal-zones { 300 pm8008-thermal { << 301 polling-delay-passive << 302 polling-delay = <0>; << 303 << 304 thermal-sensors = <&pm << 305 << 306 trips { << 307 trip0 { << 308 temper << 309 hyster << 310 type = << 311 }; << 312 << 313 trip1 { << 314 temper << 315 hyster << 316 type = << 317 }; << 318 }; << 319 }; << 320 << 321 skin-temp-thermal { 300 skin-temp-thermal { 322 polling-delay-passive 301 polling-delay-passive = <250>; 323 !! 302 polling-delay = <0>; 324 thermal-sensors = <&pm 303 thermal-sensors = <&pmk8280_adc_tm 5>; 325 304 326 trips { 305 trips { 327 skin_temp_aler 306 skin_temp_alert0: trip-point0 { 328 temper 307 temperature = <55000>; 329 hyster 308 hysteresis = <1000>; 330 type = 309 type = "passive"; 331 }; 310 }; 332 311 333 skin_temp_aler 312 skin_temp_alert1: trip-point1 { 334 temper 313 temperature = <58000>; 335 hyster 314 hysteresis = <1000>; 336 type = 315 type = "passive"; 337 }; 316 }; 338 317 339 skin-temp-crit 318 skin-temp-crit { 340 temper 319 temperature = <73000>; 341 hyster 320 hysteresis = <1000>; 342 type = 321 type = "critical"; 343 }; 322 }; 344 }; 323 }; 345 324 346 cooling-maps { 325 cooling-maps { 347 map0 { 326 map0 { 348 trip = 327 trip = <&skin_temp_alert0>; 349 coolin 328 cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 350 329 <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 351 330 <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 352 331 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 353 }; 332 }; 354 333 355 map1 { 334 map1 { 356 trip = 335 trip = <&skin_temp_alert1>; 357 coolin 336 cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 358 337 <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 359 338 <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 360 339 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 361 }; 340 }; 362 }; 341 }; 363 }; 342 }; 364 }; 343 }; 365 344 366 usb0-sbu-mux { 345 usb0-sbu-mux { 367 compatible = "pericom,pi3usb10 346 compatible = "pericom,pi3usb102", "gpio-sbu-mux"; 368 347 369 enable-gpios = <&tlmm 101 GPIO 348 enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>; 370 select-gpios = <&tlmm 164 GPIO 349 select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>; 371 350 372 pinctrl-names = "default"; 351 pinctrl-names = "default"; 373 pinctrl-0 = <&usb0_sbu_default 352 pinctrl-0 = <&usb0_sbu_default>; 374 353 375 mode-switch; 354 mode-switch; 376 orientation-switch; 355 orientation-switch; 377 356 378 port { 357 port { 379 usb0_sbu_mux: endpoint 358 usb0_sbu_mux: endpoint { 380 remote-endpoin 359 remote-endpoint = <&pmic_glink_con0_sbu>; 381 }; 360 }; 382 }; 361 }; 383 }; 362 }; 384 363 385 usb1-sbu-mux { 364 usb1-sbu-mux { 386 compatible = "pericom,pi3usb10 365 compatible = "pericom,pi3usb102", "gpio-sbu-mux"; 387 366 388 enable-gpios = <&tlmm 48 GPIO_ 367 enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>; 389 select-gpios = <&tlmm 47 GPIO_ 368 select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; 390 369 391 pinctrl-names = "default"; 370 pinctrl-names = "default"; 392 pinctrl-0 = <&usb1_sbu_default 371 pinctrl-0 = <&usb1_sbu_default>; 393 372 394 mode-switch; 373 mode-switch; 395 orientation-switch; 374 orientation-switch; 396 375 397 port { 376 port { 398 usb1_sbu_mux: endpoint 377 usb1_sbu_mux: endpoint { 399 remote-endpoin 378 remote-endpoint = <&pmic_glink_con1_sbu>; 400 }; 379 }; 401 }; 380 }; 402 }; 381 }; 403 }; 382 }; 404 383 405 &apps_rsc { 384 &apps_rsc { 406 regulators-0 { 385 regulators-0 { 407 compatible = "qcom,pm8350-rpmh 386 compatible = "qcom,pm8350-rpmh-regulators"; 408 qcom,pmic-id = "b"; 387 qcom,pmic-id = "b"; 409 388 410 vdd-l1-l4-supply = <&vreg_s12b 389 vdd-l1-l4-supply = <&vreg_s12b>; 411 vdd-l2-l7-supply = <&vreg_bob> 390 vdd-l2-l7-supply = <&vreg_bob>; 412 vdd-l3-l5-supply = <&vreg_s11b 391 vdd-l3-l5-supply = <&vreg_s11b>; 413 vdd-l6-l9-l10-supply = <&vreg_ 392 vdd-l6-l9-l10-supply = <&vreg_s12b>; 414 vdd-l8-supply = <&vreg_s12b>; 393 vdd-l8-supply = <&vreg_s12b>; 415 394 416 vreg_s10b: smps10 { 395 vreg_s10b: smps10 { 417 regulator-name = "vreg 396 regulator-name = "vreg_s10b"; 418 regulator-min-microvol 397 regulator-min-microvolt = <1800000>; 419 regulator-max-microvol 398 regulator-max-microvolt = <1800000>; 420 regulator-initial-mode 399 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 421 regulator-always-on; 400 regulator-always-on; 422 }; 401 }; 423 402 424 vreg_s11b: smps11 { 403 vreg_s11b: smps11 { 425 regulator-name = "vreg 404 regulator-name = "vreg_s11b"; 426 regulator-min-microvol 405 regulator-min-microvolt = <1272000>; 427 regulator-max-microvol 406 regulator-max-microvolt = <1272000>; 428 regulator-initial-mode 407 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 429 regulator-always-on; 408 regulator-always-on; 430 }; 409 }; 431 410 432 vreg_s12b: smps12 { 411 vreg_s12b: smps12 { 433 regulator-name = "vreg 412 regulator-name = "vreg_s12b"; 434 regulator-min-microvol 413 regulator-min-microvolt = <984000>; 435 regulator-max-microvol 414 regulator-max-microvolt = <984000>; 436 regulator-initial-mode 415 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 437 regulator-always-on; 416 regulator-always-on; 438 }; 417 }; 439 418 440 vreg_l1b: ldo1 { << 441 regulator-name = "vreg << 442 regulator-min-microvol << 443 regulator-max-microvol << 444 regulator-initial-mode << 445 }; << 446 << 447 vreg_l3b: ldo3 { 419 vreg_l3b: ldo3 { 448 regulator-name = "vreg 420 regulator-name = "vreg_l3b"; 449 regulator-min-microvol 421 regulator-min-microvolt = <1200000>; 450 regulator-max-microvol 422 regulator-max-microvolt = <1200000>; 451 regulator-initial-mode 423 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 452 regulator-boot-on; 424 regulator-boot-on; 453 }; 425 }; 454 426 455 vreg_l4b: ldo4 { 427 vreg_l4b: ldo4 { 456 regulator-name = "vreg 428 regulator-name = "vreg_l4b"; 457 regulator-min-microvol 429 regulator-min-microvolt = <912000>; 458 regulator-max-microvol 430 regulator-max-microvolt = <912000>; 459 regulator-initial-mode 431 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 460 }; 432 }; 461 433 462 vreg_l6b: ldo6 { 434 vreg_l6b: ldo6 { 463 regulator-name = "vreg 435 regulator-name = "vreg_l6b"; 464 regulator-min-microvol 436 regulator-min-microvolt = <880000>; 465 regulator-max-microvol 437 regulator-max-microvolt = <880000>; 466 regulator-initial-mode 438 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 467 regulator-boot-on; 439 regulator-boot-on; 468 }; 440 }; 469 }; 441 }; 470 442 471 regulators-1 { 443 regulators-1 { 472 compatible = "qcom,pm8350c-rpm 444 compatible = "qcom,pm8350c-rpmh-regulators"; 473 qcom,pmic-id = "c"; 445 qcom,pmic-id = "c"; 474 446 475 vdd-bob-supply = <&vreg_vph_pw 447 vdd-bob-supply = <&vreg_vph_pwr>; 476 vdd-l1-l12-supply = <&vreg_s1c 448 vdd-l1-l12-supply = <&vreg_s1c>; 477 vdd-l2-l8-supply = <&vreg_s1c> 449 vdd-l2-l8-supply = <&vreg_s1c>; 478 vdd-l3-l4-l5-l7-l13-supply = < 450 vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>; 479 vdd-l6-l9-l11-supply = <&vreg_ 451 vdd-l6-l9-l11-supply = <&vreg_bob>; 480 vdd-l10-supply = <&vreg_s11b>; 452 vdd-l10-supply = <&vreg_s11b>; 481 453 482 vreg_s1c: smps1 { 454 vreg_s1c: smps1 { 483 regulator-name = "vreg 455 regulator-name = "vreg_s1c"; 484 regulator-min-microvol 456 regulator-min-microvolt = <1880000>; 485 regulator-max-microvol 457 regulator-max-microvolt = <1900000>; 486 regulator-initial-mode 458 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 487 regulator-always-on; 459 regulator-always-on; 488 }; 460 }; 489 461 490 vreg_l1c: ldo1 { 462 vreg_l1c: ldo1 { 491 regulator-name = "vreg 463 regulator-name = "vreg_l1c"; 492 regulator-min-microvol 464 regulator-min-microvolt = <1800000>; 493 regulator-max-microvol 465 regulator-max-microvolt = <1800000>; 494 regulator-initial-mode 466 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 495 }; 467 }; 496 468 497 vreg_l8c: ldo8 { << 498 regulator-name = "vreg << 499 regulator-min-microvol << 500 regulator-max-microvol << 501 regulator-initial-mode << 502 }; << 503 << 504 vreg_l12c: ldo12 { 469 vreg_l12c: ldo12 { 505 regulator-name = "vreg 470 regulator-name = "vreg_l12c"; 506 regulator-min-microvol 471 regulator-min-microvolt = <1800000>; 507 regulator-max-microvol 472 regulator-max-microvolt = <1800000>; 508 regulator-initial-mode 473 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 509 }; 474 }; 510 475 511 vreg_l13c: ldo13 { 476 vreg_l13c: ldo13 { 512 regulator-name = "vreg 477 regulator-name = "vreg_l13c"; 513 regulator-min-microvol 478 regulator-min-microvolt = <3072000>; 514 regulator-max-microvol 479 regulator-max-microvolt = <3072000>; 515 regulator-initial-mode 480 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 516 }; 481 }; 517 482 518 vreg_bob: bob { 483 vreg_bob: bob { 519 regulator-name = "vreg 484 regulator-name = "vreg_bob"; 520 regulator-min-microvol 485 regulator-min-microvolt = <3008000>; 521 regulator-max-microvol 486 regulator-max-microvolt = <3960000>; 522 regulator-initial-mode 487 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 523 regulator-always-on; 488 regulator-always-on; 524 }; 489 }; 525 }; 490 }; 526 491 527 regulators-2 { 492 regulators-2 { 528 compatible = "qcom,pm8350-rpmh 493 compatible = "qcom,pm8350-rpmh-regulators"; 529 qcom,pmic-id = "d"; 494 qcom,pmic-id = "d"; 530 495 531 vdd-l1-l4-supply = <&vreg_s11b 496 vdd-l1-l4-supply = <&vreg_s11b>; 532 vdd-l2-l7-supply = <&vreg_bob> 497 vdd-l2-l7-supply = <&vreg_bob>; 533 vdd-l3-l5-supply = <&vreg_s11b 498 vdd-l3-l5-supply = <&vreg_s11b>; 534 vdd-l6-l9-l10-supply = <&vreg_ 499 vdd-l6-l9-l10-supply = <&vreg_s12b>; 535 vdd-l8-supply = <&vreg_s12b>; 500 vdd-l8-supply = <&vreg_s12b>; 536 501 537 vreg_l2d: ldo2 { << 538 regulator-name = "vreg << 539 regulator-min-microvol << 540 regulator-max-microvol << 541 regulator-initial-mode << 542 }; << 543 << 544 vreg_l3d: ldo3 { 502 vreg_l3d: ldo3 { 545 regulator-name = "vreg 503 regulator-name = "vreg_l3d"; 546 regulator-min-microvol 504 regulator-min-microvolt = <1200000>; 547 regulator-max-microvol 505 regulator-max-microvolt = <1200000>; 548 regulator-initial-mode 506 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 549 }; 507 }; 550 508 551 vreg_l4d: ldo4 { 509 vreg_l4d: ldo4 { 552 regulator-name = "vreg 510 regulator-name = "vreg_l4d"; 553 regulator-min-microvol 511 regulator-min-microvolt = <1200000>; 554 regulator-max-microvol 512 regulator-max-microvolt = <1200000>; 555 regulator-initial-mode 513 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 556 }; 514 }; 557 515 558 vreg_l6d: ldo6 { 516 vreg_l6d: ldo6 { 559 regulator-name = "vreg 517 regulator-name = "vreg_l6d"; 560 regulator-min-microvol 518 regulator-min-microvolt = <880000>; 561 regulator-max-microvol 519 regulator-max-microvolt = <880000>; 562 regulator-initial-mode 520 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 563 }; 521 }; 564 522 565 vreg_l7d: ldo7 { 523 vreg_l7d: ldo7 { 566 regulator-name = "vreg 524 regulator-name = "vreg_l7d"; 567 regulator-min-microvol 525 regulator-min-microvolt = <3072000>; 568 regulator-max-microvol 526 regulator-max-microvolt = <3072000>; 569 regulator-initial-mode 527 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 570 }; 528 }; 571 529 572 vreg_l8d: ldo8 { << 573 regulator-name = "vreg << 574 regulator-min-microvol << 575 regulator-max-microvol << 576 regulator-initial-mode << 577 }; << 578 << 579 vreg_l9d: ldo9 { 530 vreg_l9d: ldo9 { 580 regulator-name = "vreg 531 regulator-name = "vreg_l9d"; 581 regulator-min-microvol 532 regulator-min-microvolt = <912000>; 582 regulator-max-microvol 533 regulator-max-microvolt = <912000>; 583 regulator-initial-mode 534 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 584 }; 535 }; 585 << 586 vreg_l10d: ldo10 { << 587 regulator-name = "vreg << 588 regulator-min-microvol << 589 regulator-max-microvol << 590 regulator-initial-mode << 591 }; << 592 }; << 593 }; << 594 << 595 &camss { << 596 vdda-phy-supply = <&vreg_l6d>; << 597 vdda-pll-supply = <&vreg_l4d>; << 598 << 599 status = "okay"; << 600 << 601 ports { << 602 port@0 { << 603 csiphy0_lanes01_ep: en << 604 reg = <0>; << 605 clock-lanes = << 606 data-lanes = < << 607 remote-endpoin << 608 }; << 609 }; << 610 }; << 611 }; << 612 << 613 &cci2 { << 614 status = "okay"; << 615 }; << 616 << 617 &cci2_i2c1 { << 618 camera@10 { << 619 compatible = "ovti,ov5675"; << 620 reg = <0x10>; << 621 << 622 reset-gpios = <&tlmm 15 GPIO_A << 623 pinctrl-names = "default"; << 624 pinctrl-0 = <&cam_rgb_default> << 625 << 626 clocks = <&camcc CAMCC_MCLK3_C << 627 << 628 orientation = <0>; /* Fro << 629 << 630 avdd-supply = <&vreg_l6q>; << 631 dvdd-supply = <&vreg_l2q>; << 632 dovdd-supply = <&vreg_l7q>; << 633 << 634 port { << 635 ov5675_ep: endpoint { << 636 clock-lanes = << 637 data-lanes = < << 638 link-frequenci << 639 remote-endpoin << 640 }; << 641 }; << 642 << 643 }; 536 }; 644 }; 537 }; 645 538 646 &dispcc0 { 539 &dispcc0 { 647 status = "okay"; 540 status = "okay"; 648 }; 541 }; 649 542 650 &gpu { 543 &gpu { 651 status = "okay"; 544 status = "okay"; 652 545 653 zap-shader { 546 zap-shader { 654 memory-region = <&gpu_mem>; 547 memory-region = <&gpu_mem>; 655 firmware-name = "qcom/sc8280xp 548 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn"; 656 }; 549 }; 657 }; 550 }; 658 551 659 &mdss0 { 552 &mdss0 { 660 status = "okay"; 553 status = "okay"; 661 }; 554 }; 662 555 663 &mdss0_dp0 { 556 &mdss0_dp0 { 664 status = "okay"; 557 status = "okay"; 665 }; 558 }; 666 559 667 &mdss0_dp0_out { 560 &mdss0_dp0_out { 668 data-lanes = <0 1>; 561 data-lanes = <0 1>; 669 remote-endpoint = <&usb_0_qmpphy_dp_in 562 remote-endpoint = <&usb_0_qmpphy_dp_in>; 670 }; 563 }; 671 564 672 &mdss0_dp1 { 565 &mdss0_dp1 { 673 status = "okay"; 566 status = "okay"; 674 }; 567 }; 675 568 676 &mdss0_dp1_out { 569 &mdss0_dp1_out { 677 data-lanes = <0 1>; 570 data-lanes = <0 1>; 678 remote-endpoint = <&usb_1_qmpphy_dp_in 571 remote-endpoint = <&usb_1_qmpphy_dp_in>; 679 }; 572 }; 680 573 681 &mdss0_dp3 { 574 &mdss0_dp3 { 682 compatible = "qcom,sc8280xp-edp"; 575 compatible = "qcom,sc8280xp-edp"; 683 /delete-property/ #sound-dai-cells; << 684 576 685 data-lanes = <0 1 2 3>; 577 data-lanes = <0 1 2 3>; 686 578 687 status = "okay"; 579 status = "okay"; 688 580 689 aux-bus { 581 aux-bus { 690 panel { 582 panel { 691 compatible = "edp-pane 583 compatible = "edp-panel"; 692 584 693 backlight = <&backligh 585 backlight = <&backlight>; 694 power-supply = <&vreg_ 586 power-supply = <&vreg_edp_3p3>; 695 587 696 port { 588 port { 697 edp_panel_in: 589 edp_panel_in: endpoint { 698 remote 590 remote-endpoint = <&mdss0_dp3_out>; 699 }; 591 }; 700 }; 592 }; 701 }; 593 }; 702 }; 594 }; 703 595 704 ports { 596 ports { 705 port@1 { 597 port@1 { 706 reg = <1>; 598 reg = <1>; 707 mdss0_dp3_out: endpoin 599 mdss0_dp3_out: endpoint { 708 remote-endpoin 600 remote-endpoint = <&edp_panel_in>; 709 }; 601 }; 710 }; 602 }; 711 }; 603 }; 712 }; 604 }; 713 605 714 &mdss0_dp3_phy { 606 &mdss0_dp3_phy { 715 compatible = "qcom,sc8280xp-edp-phy"; 607 compatible = "qcom,sc8280xp-edp-phy"; 716 vdda-phy-supply = <&vreg_l6b>; 608 vdda-phy-supply = <&vreg_l6b>; 717 vdda-pll-supply = <&vreg_l3b>; 609 vdda-pll-supply = <&vreg_l3b>; 718 610 719 status = "okay"; 611 status = "okay"; 720 }; 612 }; 721 613 722 &i2c4 { 614 &i2c4 { 723 clock-frequency = <400000>; 615 clock-frequency = <400000>; 724 616 725 pinctrl-names = "default"; 617 pinctrl-names = "default"; 726 pinctrl-0 = <&i2c4_default>; 618 pinctrl-0 = <&i2c4_default>; 727 619 728 status = "okay"; 620 status = "okay"; 729 621 >> 622 /* FIXME: verify */ 730 touchscreen@10 { 623 touchscreen@10 { 731 compatible = "elan,ekth5015m", !! 624 compatible = "hid-over-i2c"; 732 reg = <0x10>; 625 reg = <0x10>; 733 626 >> 627 hid-descr-addr = <0x1>; 734 interrupts-extended = <&tlmm 1 628 interrupts-extended = <&tlmm 175 IRQ_TYPE_LEVEL_LOW>; 735 reset-gpios = <&tlmm 99 (GPIO_ !! 629 vdd-supply = <&vreg_misc_3p3>; 736 no-reset-on-power-off; !! 630 vddl-supply = <&vreg_s10b>; 737 << 738 vcc33-supply = <&vreg_misc_3p3 << 739 vccio-supply = <&vreg_misc_3p3 << 740 631 741 pinctrl-names = "default"; 632 pinctrl-names = "default"; 742 pinctrl-0 = <&ts0_default>; 633 pinctrl-0 = <&ts0_default>; 743 }; 634 }; 744 }; 635 }; 745 636 746 &i2c11 { << 747 clock-frequency = <400000>; << 748 << 749 pinctrl-names = "default"; << 750 pinctrl-0 = <&i2c11_default>; << 751 << 752 status = "okay"; << 753 << 754 pm8008: pmic@c { << 755 compatible = "qcom,pm8008"; << 756 reg = <0xc>; << 757 << 758 interrupts-extended = <&tlmm 4 << 759 reset-gpios = <&tlmm 42 GPIO_A << 760 << 761 vdd-l1-l2-supply = <&vreg_s11b << 762 vdd-l3-l4-supply = <&vreg_bob> << 763 vdd-l5-supply = <&vreg_bob>; << 764 vdd-l6-supply = <&vreg_bob>; << 765 vdd-l7-supply = <&vreg_bob>; << 766 << 767 pinctrl-names = "default"; << 768 pinctrl-0 = <&pm8008_default>; << 769 << 770 gpio-controller; << 771 #gpio-cells = <2>; << 772 gpio-ranges = <&pm8008 0 0 2>; << 773 << 774 interrupt-controller; << 775 #interrupt-cells = <2>; << 776 << 777 #thermal-sensor-cells = <0>; << 778 << 779 regulators { << 780 vreg_l1q: ldo1 { << 781 regulator-name << 782 regulator-min- << 783 regulator-max- << 784 }; << 785 << 786 vreg_l2q: ldo2 { << 787 regulator-name << 788 regulator-min- << 789 regulator-max- << 790 }; << 791 << 792 vreg_l3q: ldo3 { << 793 regulator-name << 794 regulator-min- << 795 regulator-max- << 796 }; << 797 << 798 vreg_l4q: ldo4 { << 799 regulator-name << 800 regulator-min- << 801 regulator-max- << 802 }; << 803 << 804 vreg_l5q: ldo5 { << 805 regulator-name << 806 regulator-min- << 807 regulator-max- << 808 }; << 809 << 810 vreg_l6q: ldo6 { << 811 regulator-name << 812 regulator-min- << 813 regulator-max- << 814 }; << 815 << 816 vreg_l7q: ldo7 { << 817 regulator-name << 818 regulator-min- << 819 regulator-max- << 820 }; << 821 }; << 822 }; << 823 }; << 824 << 825 &i2c21 { 637 &i2c21 { 826 clock-frequency = <400000>; 638 clock-frequency = <400000>; 827 639 828 pinctrl-names = "default"; 640 pinctrl-names = "default"; 829 pinctrl-0 = <&i2c21_default>, <&tpad_d 641 pinctrl-0 = <&i2c21_default>, <&tpad_default>; 830 642 831 status = "okay"; 643 status = "okay"; 832 644 833 touchpad@15 { 645 touchpad@15 { 834 compatible = "hid-over-i2c"; 646 compatible = "hid-over-i2c"; 835 reg = <0x15>; 647 reg = <0x15>; 836 648 837 hid-descr-addr = <0x1>; 649 hid-descr-addr = <0x1>; 838 interrupts-extended = <&tlmm 1 650 interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>; 839 vdd-supply = <&vreg_misc_3p3>; 651 vdd-supply = <&vreg_misc_3p3>; 840 vddl-supply = <&vreg_s10b>; 652 vddl-supply = <&vreg_s10b>; 841 653 842 wakeup-source; 654 wakeup-source; 843 }; 655 }; 844 656 845 touchpad@2c { 657 touchpad@2c { 846 compatible = "hid-over-i2c"; 658 compatible = "hid-over-i2c"; 847 reg = <0x2c>; 659 reg = <0x2c>; 848 660 849 hid-descr-addr = <0x20>; 661 hid-descr-addr = <0x20>; 850 interrupts-extended = <&tlmm 1 662 interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>; 851 vdd-supply = <&vreg_misc_3p3>; 663 vdd-supply = <&vreg_misc_3p3>; 852 vddl-supply = <&vreg_s10b>; 664 vddl-supply = <&vreg_s10b>; 853 665 854 wakeup-source; 666 wakeup-source; 855 }; 667 }; 856 668 857 keyboard@68 { 669 keyboard@68 { 858 compatible = "hid-over-i2c"; 670 compatible = "hid-over-i2c"; 859 reg = <0x68>; 671 reg = <0x68>; 860 672 861 hid-descr-addr = <0x1>; 673 hid-descr-addr = <0x1>; 862 interrupts-extended = <&tlmm 1 674 interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>; 863 vdd-supply = <&vreg_misc_3p3>; 675 vdd-supply = <&vreg_misc_3p3>; 864 vddl-supply = <&vreg_s10b>; 676 vddl-supply = <&vreg_s10b>; 865 677 866 pinctrl-names = "default"; 678 pinctrl-names = "default"; 867 pinctrl-0 = <&kybd_default>; 679 pinctrl-0 = <&kybd_default>; 868 680 869 wakeup-source; 681 wakeup-source; 870 }; 682 }; 871 }; 683 }; 872 684 873 &pcie2a { 685 &pcie2a { 874 perst-gpios = <&tlmm 143 GPIO_ACTIVE_L 686 perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; 875 wake-gpios = <&tlmm 145 GPIO_ACTIVE_LO 687 wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; 876 688 877 vddpe-3v3-supply = <&vreg_nvme>; 689 vddpe-3v3-supply = <&vreg_nvme>; 878 690 879 pinctrl-names = "default"; 691 pinctrl-names = "default"; 880 pinctrl-0 = <&pcie2a_default>; 692 pinctrl-0 = <&pcie2a_default>; 881 693 882 status = "okay"; 694 status = "okay"; 883 }; 695 }; 884 696 885 &pcie2a_phy { 697 &pcie2a_phy { 886 vdda-phy-supply = <&vreg_l6d>; 698 vdda-phy-supply = <&vreg_l6d>; 887 vdda-pll-supply = <&vreg_l4d>; 699 vdda-pll-supply = <&vreg_l4d>; 888 700 889 status = "okay"; 701 status = "okay"; 890 }; 702 }; 891 703 892 &pcie3a { 704 &pcie3a { 893 perst-gpios = <&tlmm 151 GPIO_ACTIVE_L 705 perst-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>; 894 wake-gpios = <&tlmm 148 GPIO_ACTIVE_LO 706 wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; 895 707 896 vddpe-3v3-supply = <&vreg_wwan>; 708 vddpe-3v3-supply = <&vreg_wwan>; 897 709 898 pinctrl-names = "default"; 710 pinctrl-names = "default"; 899 pinctrl-0 = <&pcie3a_default>; 711 pinctrl-0 = <&pcie3a_default>; 900 712 901 status = "okay"; 713 status = "okay"; 902 }; 714 }; 903 715 904 &pcie3a_phy { 716 &pcie3a_phy { 905 vdda-phy-supply = <&vreg_l6d>; 717 vdda-phy-supply = <&vreg_l6d>; 906 vdda-pll-supply = <&vreg_l4d>; 718 vdda-pll-supply = <&vreg_l4d>; 907 719 908 status = "okay"; 720 status = "okay"; 909 }; 721 }; 910 722 911 &pcie4 { 723 &pcie4 { 912 max-link-speed = <2>; 724 max-link-speed = <2>; 913 725 914 perst-gpios = <&tlmm 141 GPIO_ACTIVE_L 726 perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>; 915 wake-gpios = <&tlmm 139 GPIO_ACTIVE_LO 727 wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>; 916 728 917 vddpe-3v3-supply = <&vreg_wlan>; 729 vddpe-3v3-supply = <&vreg_wlan>; 918 730 919 pinctrl-names = "default"; 731 pinctrl-names = "default"; 920 pinctrl-0 = <&pcie4_default>; 732 pinctrl-0 = <&pcie4_default>; 921 733 922 status = "okay"; 734 status = "okay"; 923 }; << 924 735 925 &pcie4_port0 { !! 736 pcie@0 { 926 wifi@0 { !! 737 device_type = "pci"; 927 compatible = "pci17cb,1103"; !! 738 reg = <0x0 0x0 0x0 0x0 0x0>; 928 reg = <0x10000 0x0 0x0 0x0 0x0 !! 739 #address-cells = <3>; >> 740 #size-cells = <2>; >> 741 ranges; >> 742 >> 743 bus-range = <0x01 0xff>; >> 744 >> 745 wifi@0 { >> 746 compatible = "pci17cb,1103"; >> 747 reg = <0x10000 0x0 0x0 0x0 0x0>; 929 748 930 qcom,ath11k-calibration-varian !! 749 qcom,ath11k-calibration-variant = "LE_X13S"; >> 750 }; 931 }; 751 }; 932 }; 752 }; 933 753 934 &pcie4_phy { 754 &pcie4_phy { 935 vdda-phy-supply = <&vreg_l6d>; 755 vdda-phy-supply = <&vreg_l6d>; 936 vdda-pll-supply = <&vreg_l4d>; 756 vdda-pll-supply = <&vreg_l4d>; 937 757 938 status = "okay"; 758 status = "okay"; 939 }; 759 }; 940 760 941 &pmc8280c_lpg { 761 &pmc8280c_lpg { 942 status = "okay"; 762 status = "okay"; 943 }; 763 }; 944 764 945 &pmk8280_adc_tm { 765 &pmk8280_adc_tm { 946 status = "okay"; 766 status = "okay"; 947 767 948 sys-therm@0 { 768 sys-therm@0 { 949 reg = <0>; 769 reg = <0>; 950 io-channels = <&pmk8280_vadc P 770 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; 951 qcom,hw-settle-time-us = <200> 771 qcom,hw-settle-time-us = <200>; 952 qcom,avg-samples = <2>; 772 qcom,avg-samples = <2>; 953 qcom,ratiometric; 773 qcom,ratiometric; 954 }; 774 }; 955 775 956 sys-therm@1 { 776 sys-therm@1 { 957 reg = <1>; 777 reg = <1>; 958 io-channels = <&pmk8280_vadc P 778 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; 959 qcom,hw-settle-time-us = <200> 779 qcom,hw-settle-time-us = <200>; 960 qcom,avg-samples = <2>; 780 qcom,avg-samples = <2>; 961 qcom,ratiometric; 781 qcom,ratiometric; 962 }; 782 }; 963 783 964 sys-therm@2 { 784 sys-therm@2 { 965 reg = <2>; 785 reg = <2>; 966 io-channels = <&pmk8280_vadc P 786 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; 967 qcom,hw-settle-time-us = <200> 787 qcom,hw-settle-time-us = <200>; 968 qcom,avg-samples = <2>; 788 qcom,avg-samples = <2>; 969 qcom,ratiometric; 789 qcom,ratiometric; 970 }; 790 }; 971 791 972 sys-therm@3 { 792 sys-therm@3 { 973 reg = <3>; 793 reg = <3>; 974 io-channels = <&pmk8280_vadc P 794 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; 975 qcom,hw-settle-time-us = <200> 795 qcom,hw-settle-time-us = <200>; 976 qcom,avg-samples = <2>; 796 qcom,avg-samples = <2>; 977 qcom,ratiometric; 797 qcom,ratiometric; 978 }; 798 }; 979 799 980 sys-therm@4 { 800 sys-therm@4 { 981 reg = <4>; 801 reg = <4>; 982 io-channels = <&pmk8280_vadc P 802 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(3)>; 983 qcom,hw-settle-time-us = <200> 803 qcom,hw-settle-time-us = <200>; 984 qcom,avg-samples = <2>; 804 qcom,avg-samples = <2>; 985 qcom,ratiometric; 805 qcom,ratiometric; 986 }; 806 }; 987 807 988 sys-therm@5 { 808 sys-therm@5 { 989 reg = <5>; 809 reg = <5>; 990 io-channels = <&pmk8280_vadc P 810 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(3)>; 991 qcom,hw-settle-time-us = <200> 811 qcom,hw-settle-time-us = <200>; 992 qcom,avg-samples = <2>; 812 qcom,avg-samples = <2>; 993 qcom,ratiometric; 813 qcom,ratiometric; 994 }; 814 }; 995 815 996 sys-therm@6 { 816 sys-therm@6 { 997 reg = <6>; 817 reg = <6>; 998 io-channels = <&pmk8280_vadc P 818 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(3)>; 999 qcom,hw-settle-time-us = <200> 819 qcom,hw-settle-time-us = <200>; 1000 qcom,avg-samples = <2>; 820 qcom,avg-samples = <2>; 1001 qcom,ratiometric; 821 qcom,ratiometric; 1002 }; 822 }; 1003 823 1004 sys-therm@7 { 824 sys-therm@7 { 1005 reg = <7>; 825 reg = <7>; 1006 io-channels = <&pmk8280_vadc 826 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(3)>; 1007 qcom,hw-settle-time-us = <200 827 qcom,hw-settle-time-us = <200>; 1008 qcom,avg-samples = <2>; 828 qcom,avg-samples = <2>; 1009 qcom,ratiometric; 829 qcom,ratiometric; 1010 }; 830 }; 1011 }; 831 }; 1012 832 1013 &pmk8280_pon_pwrkey { 833 &pmk8280_pon_pwrkey { 1014 status = "okay"; 834 status = "okay"; 1015 }; 835 }; 1016 836 1017 &pmk8280_pon_resin { 837 &pmk8280_pon_resin { 1018 status = "okay"; 838 status = "okay"; 1019 }; 839 }; 1020 840 1021 &pmk8280_rtc { 841 &pmk8280_rtc { 1022 nvmem-cells = <&rtc_offset>; 842 nvmem-cells = <&rtc_offset>; 1023 nvmem-cell-names = "offset"; 843 nvmem-cell-names = "offset"; 1024 844 1025 status = "okay"; 845 status = "okay"; 1026 }; 846 }; 1027 847 1028 &pmk8280_sdam_6 { 848 &pmk8280_sdam_6 { 1029 status = "okay"; 849 status = "okay"; 1030 850 1031 rtc_offset: rtc-offset@bc { 851 rtc_offset: rtc-offset@bc { 1032 reg = <0xbc 0x4>; 852 reg = <0xbc 0x4>; 1033 }; 853 }; 1034 }; 854 }; 1035 855 1036 &pmk8280_vadc { 856 &pmk8280_vadc { >> 857 status = "okay"; >> 858 >> 859 channel@3 { >> 860 reg = <PMK8350_ADC7_DIE_TEMP>; >> 861 qcom,pre-scaling = <1 1>; >> 862 label = "pmk8350_die_temp"; >> 863 }; >> 864 >> 865 channel@44 { >> 866 reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>; >> 867 qcom,hw-settle-time = <200>; >> 868 qcom,ratiometric; >> 869 label = "pmk8350_xo_therm"; >> 870 }; >> 871 >> 872 channel@103 { >> 873 reg = <PM8350_ADC7_DIE_TEMP(1)>; >> 874 qcom,pre-scaling = <1 1>; >> 875 label = "pmc8280_1_die_temp"; >> 876 }; >> 877 1037 channel@144 { 878 channel@144 { 1038 reg = <PM8350_ADC7_AMUX_THM1_ 879 reg = <PM8350_ADC7_AMUX_THM1_100K_PU(1)>; 1039 qcom,hw-settle-time = <200>; 880 qcom,hw-settle-time = <200>; 1040 qcom,ratiometric; 881 qcom,ratiometric; 1041 label = "sys_therm1"; 882 label = "sys_therm1"; 1042 }; 883 }; 1043 884 1044 channel@145 { 885 channel@145 { 1045 reg = <PM8350_ADC7_AMUX_THM2_ 886 reg = <PM8350_ADC7_AMUX_THM2_100K_PU(1)>; 1046 qcom,hw-settle-time = <200>; 887 qcom,hw-settle-time = <200>; 1047 qcom,ratiometric; 888 qcom,ratiometric; 1048 label = "sys_therm2"; 889 label = "sys_therm2"; 1049 }; 890 }; 1050 891 1051 channel@146 { 892 channel@146 { 1052 reg = <PM8350_ADC7_AMUX_THM3_ 893 reg = <PM8350_ADC7_AMUX_THM3_100K_PU(1)>; 1053 qcom,hw-settle-time = <200>; 894 qcom,hw-settle-time = <200>; 1054 qcom,ratiometric; 895 qcom,ratiometric; 1055 label = "sys_therm3"; 896 label = "sys_therm3"; 1056 }; 897 }; 1057 898 1058 channel@147 { 899 channel@147 { 1059 reg = <PM8350_ADC7_AMUX_THM4_ 900 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>; 1060 qcom,hw-settle-time = <200>; 901 qcom,hw-settle-time = <200>; 1061 qcom,ratiometric; 902 qcom,ratiometric; 1062 label = "sys_therm4"; 903 label = "sys_therm4"; 1063 }; 904 }; 1064 905 >> 906 channel@303 { >> 907 reg = <PM8350_ADC7_DIE_TEMP(3)>; >> 908 qcom,pre-scaling = <1 1>; >> 909 label = "pmc8280_2_die_temp"; >> 910 }; >> 911 1065 channel@344 { 912 channel@344 { 1066 reg = <PM8350_ADC7_AMUX_THM1_ 913 reg = <PM8350_ADC7_AMUX_THM1_100K_PU(3)>; 1067 qcom,hw-settle-time = <200>; 914 qcom,hw-settle-time = <200>; 1068 qcom,ratiometric; 915 qcom,ratiometric; 1069 label = "sys_therm5"; 916 label = "sys_therm5"; 1070 }; 917 }; 1071 918 1072 channel@345 { 919 channel@345 { 1073 reg = <PM8350_ADC7_AMUX_THM2_ 920 reg = <PM8350_ADC7_AMUX_THM2_100K_PU(3)>; 1074 qcom,hw-settle-time = <200>; 921 qcom,hw-settle-time = <200>; 1075 qcom,ratiometric; 922 qcom,ratiometric; 1076 label = "sys_therm6"; 923 label = "sys_therm6"; 1077 }; 924 }; 1078 925 1079 channel@346 { 926 channel@346 { 1080 reg = <PM8350_ADC7_AMUX_THM3_ 927 reg = <PM8350_ADC7_AMUX_THM3_100K_PU(3)>; 1081 qcom,hw-settle-time = <200>; 928 qcom,hw-settle-time = <200>; 1082 qcom,ratiometric; 929 qcom,ratiometric; 1083 label = "sys_therm7"; 930 label = "sys_therm7"; 1084 }; 931 }; 1085 932 1086 channel@347 { 933 channel@347 { 1087 reg = <PM8350_ADC7_AMUX_THM4_ 934 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(3)>; 1088 qcom,hw-settle-time = <200>; 935 qcom,hw-settle-time = <200>; 1089 qcom,ratiometric; 936 qcom,ratiometric; 1090 label = "sys_therm8"; 937 label = "sys_therm8"; 1091 }; 938 }; >> 939 >> 940 channel@403 { >> 941 reg = <PMR735A_ADC7_DIE_TEMP>; >> 942 qcom,pre-scaling = <1 1>; >> 943 label = "pmr735a_die_temp"; >> 944 }; 1092 }; 945 }; 1093 946 1094 &qup0 { 947 &qup0 { 1095 status = "okay"; 948 status = "okay"; 1096 }; 949 }; 1097 950 1098 &qup1 { 951 &qup1 { 1099 status = "okay"; 952 status = "okay"; 1100 }; 953 }; 1101 954 1102 &qup2 { 955 &qup2 { 1103 status = "okay"; 956 status = "okay"; 1104 }; 957 }; 1105 958 1106 &remoteproc_adsp { 959 &remoteproc_adsp { 1107 firmware-name = "qcom/sc8280xp/LENOVO 960 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcadsp8280.mbn"; 1108 961 1109 status = "okay"; 962 status = "okay"; 1110 }; 963 }; 1111 964 1112 &remoteproc_nsp0 { 965 &remoteproc_nsp0 { 1113 firmware-name = "qcom/sc8280xp/LENOVO 966 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qccdsp8280.mbn"; 1114 967 1115 status = "okay"; 968 status = "okay"; 1116 }; 969 }; 1117 970 1118 &rxmacro { 971 &rxmacro { 1119 status = "okay"; 972 status = "okay"; 1120 }; 973 }; 1121 974 1122 &sound { 975 &sound { 1123 compatible = "qcom,sc8280xp-sndcard"; 976 compatible = "qcom,sc8280xp-sndcard"; 1124 model = "SC8280XP-LENOVO-X13S"; 977 model = "SC8280XP-LENOVO-X13S"; 1125 audio-routing = 978 audio-routing = 1126 "SpkrLeft IN", "WSA_SPK1 OUT" 979 "SpkrLeft IN", "WSA_SPK1 OUT", 1127 "SpkrRight IN", "WSA_SPK2 OUT 980 "SpkrRight IN", "WSA_SPK2 OUT", 1128 "IN1_HPHL", "HPHL_OUT", 981 "IN1_HPHL", "HPHL_OUT", 1129 "IN2_HPHR", "HPHR_OUT", 982 "IN2_HPHR", "HPHR_OUT", 1130 "AMIC2", "MIC BIAS2", 983 "AMIC2", "MIC BIAS2", 1131 "VA DMIC0", "MIC BIAS1", 984 "VA DMIC0", "MIC BIAS1", 1132 "VA DMIC1", "MIC BIAS1", 985 "VA DMIC1", "MIC BIAS1", 1133 "VA DMIC2", "MIC BIAS3", 986 "VA DMIC2", "MIC BIAS3", 1134 "VA DMIC0", "VA MIC BIAS1", 987 "VA DMIC0", "VA MIC BIAS1", 1135 "VA DMIC1", "VA MIC BIAS1", 988 "VA DMIC1", "VA MIC BIAS1", 1136 "VA DMIC2", "VA MIC BIAS3", 989 "VA DMIC2", "VA MIC BIAS3", 1137 "TX SWR_ADC1", "ADC2_OUTPUT"; 990 "TX SWR_ADC1", "ADC2_OUTPUT"; 1138 991 1139 wcd-playback-dai-link { 992 wcd-playback-dai-link { 1140 link-name = "WCD Playback"; 993 link-name = "WCD Playback"; 1141 cpu { 994 cpu { 1142 sound-dai = <&q6apmbe 995 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 1143 }; 996 }; 1144 997 1145 codec { 998 codec { 1146 sound-dai = <&wcd938x 999 sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>; 1147 }; 1000 }; 1148 1001 1149 platform { 1002 platform { 1150 sound-dai = <&q6apm>; 1003 sound-dai = <&q6apm>; 1151 }; 1004 }; 1152 }; 1005 }; 1153 1006 1154 wcd-capture-dai-link { 1007 wcd-capture-dai-link { 1155 link-name = "WCD Capture"; 1008 link-name = "WCD Capture"; 1156 cpu { 1009 cpu { 1157 sound-dai = <&q6apmbe 1010 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 1158 }; 1011 }; 1159 1012 1160 codec { 1013 codec { 1161 sound-dai = <&wcd938x 1014 sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>; 1162 }; 1015 }; 1163 1016 1164 platform { 1017 platform { 1165 sound-dai = <&q6apm>; 1018 sound-dai = <&q6apm>; 1166 }; 1019 }; 1167 }; 1020 }; 1168 1021 1169 wsa-dai-link { 1022 wsa-dai-link { 1170 link-name = "WSA Playback"; 1023 link-name = "WSA Playback"; 1171 cpu { 1024 cpu { 1172 sound-dai = <&q6apmbe 1025 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 1173 }; 1026 }; 1174 1027 1175 codec { 1028 codec { 1176 sound-dai = <&left_sp 1029 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>; 1177 }; 1030 }; 1178 1031 1179 platform { 1032 platform { 1180 sound-dai = <&q6apm>; 1033 sound-dai = <&q6apm>; 1181 }; 1034 }; 1182 }; 1035 }; 1183 1036 1184 va-dai-link { 1037 va-dai-link { 1185 link-name = "VA Capture"; 1038 link-name = "VA Capture"; 1186 cpu { 1039 cpu { 1187 sound-dai = <&q6apmbe 1040 sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; 1188 }; 1041 }; 1189 1042 1190 platform { 1043 platform { 1191 sound-dai = <&q6apm>; 1044 sound-dai = <&q6apm>; 1192 }; 1045 }; 1193 1046 1194 codec { 1047 codec { 1195 sound-dai = <&vamacro 1048 sound-dai = <&vamacro 0>; 1196 }; 1049 }; 1197 }; 1050 }; 1198 }; 1051 }; 1199 1052 1200 &swr0 { 1053 &swr0 { 1201 status = "okay"; 1054 status = "okay"; 1202 1055 1203 left_spkr: wsa8830-left@0,1 { 1056 left_spkr: wsa8830-left@0,1 { 1204 compatible = "sdw10217020200" 1057 compatible = "sdw10217020200"; 1205 reg = <0 1>; 1058 reg = <0 1>; 1206 pinctrl-names = "default"; 1059 pinctrl-names = "default"; 1207 pinctrl-0 = <&spkr_1_sd_n_def 1060 pinctrl-0 = <&spkr_1_sd_n_default>; 1208 powerdown-gpios = <&tlmm 178 1061 powerdown-gpios = <&tlmm 178 GPIO_ACTIVE_LOW>; 1209 #thermal-sensor-cells = <0>; 1062 #thermal-sensor-cells = <0>; 1210 sound-name-prefix = "SpkrLeft 1063 sound-name-prefix = "SpkrLeft"; 1211 #sound-dai-cells = <0>; 1064 #sound-dai-cells = <0>; 1212 vdd-supply = <&vreg_s10b>; 1065 vdd-supply = <&vreg_s10b>; 1213 }; 1066 }; 1214 1067 1215 right_spkr: wsa8830-right@0,2 { 1068 right_spkr: wsa8830-right@0,2 { 1216 compatible = "sdw10217020200" 1069 compatible = "sdw10217020200"; 1217 reg = <0 2>; 1070 reg = <0 2>; 1218 pinctrl-names = "default"; 1071 pinctrl-names = "default"; 1219 pinctrl-0 = <&spkr_2_sd_n_def 1072 pinctrl-0 = <&spkr_2_sd_n_default>; 1220 powerdown-gpios = <&tlmm 179 1073 powerdown-gpios = <&tlmm 179 GPIO_ACTIVE_LOW>; 1221 #thermal-sensor-cells = <0>; 1074 #thermal-sensor-cells = <0>; 1222 sound-name-prefix = "SpkrRigh 1075 sound-name-prefix = "SpkrRight"; 1223 #sound-dai-cells = <0>; 1076 #sound-dai-cells = <0>; 1224 vdd-supply = <&vreg_s10b>; 1077 vdd-supply = <&vreg_s10b>; 1225 }; 1078 }; 1226 }; 1079 }; 1227 1080 1228 &swr1 { 1081 &swr1 { 1229 status = "okay"; 1082 status = "okay"; 1230 1083 1231 wcd_rx: wcd9380-rx@0,4 { 1084 wcd_rx: wcd9380-rx@0,4 { 1232 compatible = "sdw20217010d00" 1085 compatible = "sdw20217010d00"; 1233 reg = <0 4>; 1086 reg = <0 4>; 1234 qcom,rx-port-mapping = <1 2 3 1087 qcom,rx-port-mapping = <1 2 3 4 5>; 1235 }; 1088 }; 1236 }; 1089 }; 1237 1090 1238 &swr2 { 1091 &swr2 { 1239 status = "okay"; 1092 status = "okay"; 1240 1093 1241 wcd_tx: wcd9380-tx@0,3 { 1094 wcd_tx: wcd9380-tx@0,3 { 1242 compatible = "sdw20217010d00" 1095 compatible = "sdw20217010d00"; 1243 reg = <0 3>; 1096 reg = <0 3>; 1244 qcom,tx-port-mapping = <1 1 2 1097 qcom,tx-port-mapping = <1 1 2 3>; 1245 }; 1098 }; 1246 }; 1099 }; 1247 1100 1248 &txmacro { 1101 &txmacro { 1249 status = "okay"; 1102 status = "okay"; 1250 }; 1103 }; 1251 1104 1252 &uart2 { 1105 &uart2 { 1253 pinctrl-0 = <&uart2_default>; 1106 pinctrl-0 = <&uart2_default>; 1254 pinctrl-names = "default"; 1107 pinctrl-names = "default"; 1255 1108 1256 status = "okay"; 1109 status = "okay"; 1257 1110 1258 bluetooth { 1111 bluetooth { 1259 compatible = "qcom,wcn6855-bt 1112 compatible = "qcom,wcn6855-bt"; 1260 1113 1261 vddio-supply = <&vreg_s10b>; 1114 vddio-supply = <&vreg_s10b>; 1262 vddbtcxmx-supply = <&vreg_s12 1115 vddbtcxmx-supply = <&vreg_s12b>; 1263 vddrfacmn-supply = <&vreg_s12 1116 vddrfacmn-supply = <&vreg_s12b>; 1264 vddrfa0p8-supply = <&vreg_s12 1117 vddrfa0p8-supply = <&vreg_s12b>; 1265 vddrfa1p2-supply = <&vreg_s11 1118 vddrfa1p2-supply = <&vreg_s11b>; 1266 vddrfa1p7-supply = <&vreg_s1c 1119 vddrfa1p7-supply = <&vreg_s1c>; 1267 1120 1268 max-speed = <3200000>; 1121 max-speed = <3200000>; 1269 1122 1270 enable-gpios = <&tlmm 133 GPI 1123 enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>; 1271 swctrl-gpios = <&tlmm 132 GPI 1124 swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>; 1272 1125 1273 pinctrl-0 = <&bt_default>; 1126 pinctrl-0 = <&bt_default>; 1274 pinctrl-names = "default"; 1127 pinctrl-names = "default"; 1275 }; 1128 }; 1276 }; 1129 }; 1277 1130 1278 &usb_0 { 1131 &usb_0 { 1279 status = "okay"; 1132 status = "okay"; 1280 }; 1133 }; 1281 1134 1282 &usb_0_dwc3 { 1135 &usb_0_dwc3 { 1283 dr_mode = "host"; 1136 dr_mode = "host"; 1284 }; 1137 }; 1285 1138 1286 &usb_0_dwc3_hs { << 1287 remote-endpoint = <&pmic_glink_con0_h << 1288 }; << 1289 << 1290 &usb_0_hsphy { 1139 &usb_0_hsphy { 1291 vdda-pll-supply = <&vreg_l9d>; 1140 vdda-pll-supply = <&vreg_l9d>; 1292 vdda18-supply = <&vreg_l1c>; 1141 vdda18-supply = <&vreg_l1c>; 1293 vdda33-supply = <&vreg_l7d>; 1142 vdda33-supply = <&vreg_l7d>; 1294 1143 1295 status = "okay"; 1144 status = "okay"; 1296 }; 1145 }; 1297 1146 1298 &usb_0_qmpphy { 1147 &usb_0_qmpphy { 1299 vdda-phy-supply = <&vreg_l9d>; 1148 vdda-phy-supply = <&vreg_l9d>; 1300 vdda-pll-supply = <&vreg_l4d>; 1149 vdda-pll-supply = <&vreg_l4d>; 1301 1150 1302 orientation-switch; 1151 orientation-switch; 1303 1152 1304 status = "okay"; 1153 status = "okay"; 1305 }; 1154 }; 1306 1155 1307 &usb_0_qmpphy_dp_in { 1156 &usb_0_qmpphy_dp_in { 1308 remote-endpoint = <&mdss0_dp0_out>; 1157 remote-endpoint = <&mdss0_dp0_out>; 1309 }; 1158 }; 1310 1159 1311 &usb_0_qmpphy_out { 1160 &usb_0_qmpphy_out { 1312 remote-endpoint = <&pmic_glink_con0_s 1161 remote-endpoint = <&pmic_glink_con0_ss>; 1313 }; 1162 }; 1314 1163 >> 1164 &usb_0_role_switch { >> 1165 remote-endpoint = <&pmic_glink_con0_hs>; >> 1166 }; >> 1167 1315 &usb_1 { 1168 &usb_1 { 1316 status = "okay"; 1169 status = "okay"; 1317 }; 1170 }; 1318 1171 1319 &usb_1_dwc3 { 1172 &usb_1_dwc3 { 1320 dr_mode = "host"; 1173 dr_mode = "host"; 1321 }; 1174 }; 1322 1175 1323 &usb_1_dwc3_hs { << 1324 remote-endpoint = <&pmic_glink_con1_h << 1325 }; << 1326 << 1327 &usb_1_hsphy { 1176 &usb_1_hsphy { 1328 vdda-pll-supply = <&vreg_l4b>; 1177 vdda-pll-supply = <&vreg_l4b>; 1329 vdda18-supply = <&vreg_l1c>; 1178 vdda18-supply = <&vreg_l1c>; 1330 vdda33-supply = <&vreg_l13c>; 1179 vdda33-supply = <&vreg_l13c>; 1331 1180 1332 status = "okay"; 1181 status = "okay"; 1333 }; 1182 }; 1334 1183 1335 &usb_1_qmpphy { 1184 &usb_1_qmpphy { 1336 vdda-phy-supply = <&vreg_l4b>; 1185 vdda-phy-supply = <&vreg_l4b>; 1337 vdda-pll-supply = <&vreg_l3b>; 1186 vdda-pll-supply = <&vreg_l3b>; 1338 1187 1339 orientation-switch; 1188 orientation-switch; 1340 1189 1341 status = "okay"; 1190 status = "okay"; 1342 }; 1191 }; 1343 1192 1344 &usb_1_qmpphy_dp_in { 1193 &usb_1_qmpphy_dp_in { 1345 remote-endpoint = <&mdss0_dp1_out>; 1194 remote-endpoint = <&mdss0_dp1_out>; 1346 }; 1195 }; 1347 1196 1348 &usb_1_qmpphy_out { 1197 &usb_1_qmpphy_out { 1349 remote-endpoint = <&pmic_glink_con1_s 1198 remote-endpoint = <&pmic_glink_con1_ss>; 1350 }; 1199 }; 1351 1200 1352 &usb_2 { !! 1201 &usb_1_role_switch { 1353 status = "okay"; !! 1202 remote-endpoint = <&pmic_glink_con1_hs>; 1354 }; << 1355 << 1356 &usb_2_hsphy0 { << 1357 vdda-pll-supply = <&vreg_l1b>; << 1358 vdda18-supply = <&vreg_l1c>; << 1359 vdda33-supply = <&vreg_l7d>; << 1360 << 1361 status = "okay"; << 1362 }; << 1363 << 1364 &usb_2_hsphy1 { << 1365 vdda-pll-supply = <&vreg_l8d>; << 1366 vdda18-supply = <&vreg_l1c>; << 1367 vdda33-supply = <&vreg_l7d>; << 1368 << 1369 status = "okay"; << 1370 }; << 1371 << 1372 &usb_2_hsphy2 { << 1373 vdda-pll-supply = <&vreg_l10d>; << 1374 vdda18-supply = <&vreg_l8c>; << 1375 vdda33-supply = <&vreg_l2d>; << 1376 << 1377 status = "okay"; << 1378 }; << 1379 << 1380 &usb_2_hsphy3 { << 1381 vdda-pll-supply = <&vreg_l10d>; << 1382 vdda18-supply = <&vreg_l8c>; << 1383 vdda33-supply = <&vreg_l2d>; << 1384 << 1385 status = "okay"; << 1386 }; << 1387 << 1388 &usb_2_qmpphy0 { << 1389 vdda-phy-supply = <&vreg_l1b>; << 1390 vdda-pll-supply = <&vreg_l4d>; << 1391 << 1392 status = "okay"; << 1393 }; << 1394 << 1395 &usb_2_qmpphy1 { << 1396 vdda-phy-supply = <&vreg_l8d>; << 1397 vdda-pll-supply = <&vreg_l4d>; << 1398 << 1399 status = "okay"; << 1400 }; 1203 }; 1401 1204 1402 &vamacro { 1205 &vamacro { 1403 pinctrl-0 = <&dmic01_default>, <&dmic !! 1206 pinctrl-0 = <&dmic01_default>, <&dmic02_default>; 1404 pinctrl-names = "default"; 1207 pinctrl-names = "default"; 1405 1208 1406 vdd-micb-supply = <&vreg_s10b>; 1209 vdd-micb-supply = <&vreg_s10b>; 1407 1210 1408 qcom,dmic-sample-rate = <4800000>; 1211 qcom,dmic-sample-rate = <4800000>; 1409 1212 1410 status = "okay"; 1213 status = "okay"; 1411 }; 1214 }; 1412 1215 1413 &wsamacro { 1216 &wsamacro { 1414 status = "okay"; 1217 status = "okay"; 1415 }; 1218 }; 1416 1219 1417 &xo_board_clk { 1220 &xo_board_clk { 1418 clock-frequency = <38400000>; 1221 clock-frequency = <38400000>; 1419 }; 1222 }; 1420 1223 1421 /* PINCTRL */ 1224 /* PINCTRL */ 1422 1225 1423 &lpass_tlmm { 1226 &lpass_tlmm { 1424 status = "okay"; 1227 status = "okay"; 1425 }; 1228 }; 1426 1229 1427 &pmc8280_1_gpios { 1230 &pmc8280_1_gpios { 1428 edp_bl_en: edp-bl-en-state { 1231 edp_bl_en: edp-bl-en-state { 1429 pins = "gpio8"; 1232 pins = "gpio8"; 1430 function = "normal"; 1233 function = "normal"; 1431 }; 1234 }; 1432 1235 1433 edp_bl_reg_en: edp-bl-reg-en-state { 1236 edp_bl_reg_en: edp-bl-reg-en-state { 1434 pins = "gpio9"; 1237 pins = "gpio9"; 1435 function = "normal"; 1238 function = "normal"; 1436 }; 1239 }; 1437 1240 1438 misc_3p3_reg_en: misc-3p3-reg-en-stat 1241 misc_3p3_reg_en: misc-3p3-reg-en-state { 1439 pins = "gpio1"; 1242 pins = "gpio1"; 1440 function = "normal"; 1243 function = "normal"; 1441 }; 1244 }; 1442 }; 1245 }; 1443 1246 1444 &pmc8280_2_gpios { 1247 &pmc8280_2_gpios { 1445 wwan_sw_en: wwan-sw-en-state { 1248 wwan_sw_en: wwan-sw-en-state { 1446 pins = "gpio1"; 1249 pins = "gpio1"; 1447 function = "normal"; 1250 function = "normal"; 1448 }; 1251 }; 1449 }; 1252 }; 1450 1253 1451 &pmc8280c_gpios { 1254 &pmc8280c_gpios { 1452 edp_bl_pwm: edp-bl-pwm-state { 1255 edp_bl_pwm: edp-bl-pwm-state { 1453 pins = "gpio8"; 1256 pins = "gpio8"; 1454 function = "func1"; 1257 function = "func1"; 1455 }; 1258 }; 1456 }; 1259 }; 1457 1260 1458 &pmr735a_gpios { 1261 &pmr735a_gpios { 1459 hastings_reg_en: hastings-reg-en-stat 1262 hastings_reg_en: hastings-reg-en-state { 1460 pins = "gpio1"; 1263 pins = "gpio1"; 1461 function = "normal"; 1264 function = "normal"; 1462 }; 1265 }; 1463 }; 1266 }; 1464 1267 1465 &tlmm { 1268 &tlmm { 1466 gpio-reserved-ranges = <70 2>, <74 6> 1269 gpio-reserved-ranges = <70 2>, <74 6>, <125 2>, <128 2>, <154 4>; 1467 1270 1468 bt_default: bt-default-state { 1271 bt_default: bt-default-state { 1469 hstp-bt-en-pins { 1272 hstp-bt-en-pins { 1470 pins = "gpio133"; 1273 pins = "gpio133"; 1471 function = "gpio"; 1274 function = "gpio"; 1472 drive-strength = <16> 1275 drive-strength = <16>; 1473 bias-disable; 1276 bias-disable; 1474 }; 1277 }; 1475 1278 1476 hstp-sw-ctrl-pins { 1279 hstp-sw-ctrl-pins { 1477 pins = "gpio132"; 1280 pins = "gpio132"; 1478 function = "gpio"; 1281 function = "gpio"; 1479 bias-pull-down; 1282 bias-pull-down; 1480 }; 1283 }; 1481 }; 1284 }; 1482 1285 1483 cam_indicator_en: cam-indicator-en-st 1286 cam_indicator_en: cam-indicator-en-state { 1484 pins = "gpio28"; 1287 pins = "gpio28"; 1485 function = "gpio"; 1288 function = "gpio"; 1486 drive-strength = <2>; 1289 drive-strength = <2>; 1487 bias-disable; 1290 bias-disable; 1488 }; 1291 }; 1489 1292 1490 cam_rgb_default: cam-rgb-default-stat << 1491 mclk-pins { << 1492 pins = "gpio17"; << 1493 function = "cam_mclk" << 1494 drive-strength = <16> << 1495 bias-disable; << 1496 }; << 1497 << 1498 sc-rgb-xshut-n-pins { << 1499 pins = "gpio15"; << 1500 function = "gpio"; << 1501 drive-strength = <2>; << 1502 bias-disable; << 1503 }; << 1504 }; << 1505 << 1506 edp_reg_en: edp-reg-en-state { 1293 edp_reg_en: edp-reg-en-state { 1507 pins = "gpio25"; 1294 pins = "gpio25"; 1508 function = "gpio"; 1295 function = "gpio"; 1509 drive-strength = <16>; 1296 drive-strength = <16>; 1510 bias-disable; 1297 bias-disable; 1511 }; 1298 }; 1512 1299 1513 hall_int_n_default: hall-int-n-state 1300 hall_int_n_default: hall-int-n-state { 1514 pins = "gpio107"; 1301 pins = "gpio107"; 1515 function = "gpio"; 1302 function = "gpio"; 1516 bias-disable; 1303 bias-disable; 1517 }; 1304 }; 1518 1305 1519 i2c4_default: i2c4-default-state { 1306 i2c4_default: i2c4-default-state { 1520 pins = "gpio171", "gpio172"; 1307 pins = "gpio171", "gpio172"; 1521 function = "qup4"; 1308 function = "qup4"; 1522 drive-strength = <16>; 1309 drive-strength = <16>; 1523 bias-disable; 1310 bias-disable; 1524 }; 1311 }; 1525 1312 1526 i2c11_default: i2c11-default-state { << 1527 pins = "gpio18", "gpio19"; << 1528 function = "qup11"; << 1529 drive-strength = <16>; << 1530 bias-disable; << 1531 }; << 1532 << 1533 i2c21_default: i2c21-default-state { 1313 i2c21_default: i2c21-default-state { 1534 pins = "gpio81", "gpio82"; 1314 pins = "gpio81", "gpio82"; 1535 function = "qup21"; 1315 function = "qup21"; 1536 drive-strength = <16>; 1316 drive-strength = <16>; 1537 bias-disable; 1317 bias-disable; 1538 }; 1318 }; 1539 1319 1540 kybd_default: kybd-default-state { 1320 kybd_default: kybd-default-state { 1541 disable-pins { 1321 disable-pins { 1542 pins = "gpio102"; 1322 pins = "gpio102"; 1543 function = "gpio"; 1323 function = "gpio"; 1544 output-low; 1324 output-low; 1545 }; 1325 }; 1546 1326 1547 int-n-pins { 1327 int-n-pins { 1548 pins = "gpio104"; 1328 pins = "gpio104"; 1549 function = "gpio"; 1329 function = "gpio"; 1550 bias-disable; 1330 bias-disable; 1551 }; 1331 }; 1552 1332 1553 reset-pins { 1333 reset-pins { 1554 pins = "gpio105"; 1334 pins = "gpio105"; 1555 function = "gpio"; 1335 function = "gpio"; 1556 bias-disable; 1336 bias-disable; 1557 }; 1337 }; 1558 }; 1338 }; 1559 1339 1560 nvme_reg_en: nvme-reg-en-state { 1340 nvme_reg_en: nvme-reg-en-state { 1561 pins = "gpio135"; 1341 pins = "gpio135"; 1562 function = "gpio"; 1342 function = "gpio"; 1563 drive-strength = <2>; 1343 drive-strength = <2>; 1564 bias-disable; 1344 bias-disable; 1565 }; 1345 }; 1566 1346 1567 pcie2a_default: pcie2a-default-state 1347 pcie2a_default: pcie2a-default-state { 1568 clkreq-n-pins { 1348 clkreq-n-pins { 1569 pins = "gpio142"; 1349 pins = "gpio142"; 1570 function = "pcie2a_cl 1350 function = "pcie2a_clkreq"; 1571 drive-strength = <2>; 1351 drive-strength = <2>; 1572 bias-pull-up; 1352 bias-pull-up; 1573 }; 1353 }; 1574 1354 1575 perst-n-pins { 1355 perst-n-pins { 1576 pins = "gpio143"; 1356 pins = "gpio143"; 1577 function = "gpio"; 1357 function = "gpio"; 1578 drive-strength = <2>; 1358 drive-strength = <2>; 1579 bias-disable; !! 1359 bias-pull-down; 1580 }; 1360 }; 1581 1361 1582 wake-n-pins { 1362 wake-n-pins { 1583 pins = "gpio145"; !! 1363 pins = "gpio145"; 1584 function = "gpio"; !! 1364 function = "gpio"; 1585 drive-strength = <2>; !! 1365 drive-strength = <2>; 1586 bias-pull-up; !! 1366 bias-pull-up; 1587 }; !! 1367 }; 1588 }; 1368 }; 1589 1369 1590 pcie3a_default: pcie3a-default-state 1370 pcie3a_default: pcie3a-default-state { 1591 clkreq-n-pins { 1371 clkreq-n-pins { 1592 pins = "gpio150"; 1372 pins = "gpio150"; 1593 function = "pcie3a_cl 1373 function = "pcie3a_clkreq"; 1594 drive-strength = <2>; 1374 drive-strength = <2>; 1595 bias-pull-up; 1375 bias-pull-up; 1596 }; 1376 }; 1597 1377 1598 perst-n-pins { 1378 perst-n-pins { 1599 pins = "gpio151"; 1379 pins = "gpio151"; 1600 function = "gpio"; 1380 function = "gpio"; 1601 drive-strength = <2>; 1381 drive-strength = <2>; 1602 bias-disable; !! 1382 bias-pull-down; 1603 }; 1383 }; 1604 1384 1605 wake-n-pins { 1385 wake-n-pins { 1606 pins = "gpio148"; 1386 pins = "gpio148"; 1607 function = "gpio"; 1387 function = "gpio"; 1608 drive-strength = <2>; 1388 drive-strength = <2>; 1609 bias-pull-up; 1389 bias-pull-up; 1610 }; 1390 }; 1611 }; 1391 }; 1612 1392 1613 pcie4_default: pcie4-default-state { 1393 pcie4_default: pcie4-default-state { 1614 clkreq-n-pins { 1394 clkreq-n-pins { 1615 pins = "gpio140"; 1395 pins = "gpio140"; 1616 function = "pcie4_clk 1396 function = "pcie4_clkreq"; 1617 drive-strength = <2>; 1397 drive-strength = <2>; 1618 bias-pull-up; 1398 bias-pull-up; 1619 }; 1399 }; 1620 1400 1621 perst-n-pins { 1401 perst-n-pins { 1622 pins = "gpio141"; 1402 pins = "gpio141"; 1623 function = "gpio"; 1403 function = "gpio"; 1624 drive-strength = <2>; 1404 drive-strength = <2>; 1625 bias-disable; !! 1405 bias-pull-down; 1626 }; 1406 }; 1627 1407 1628 wake-n-pins { 1408 wake-n-pins { 1629 pins = "gpio139"; 1409 pins = "gpio139"; 1630 function = "gpio"; 1410 function = "gpio"; 1631 drive-strength = <2>; 1411 drive-strength = <2>; 1632 bias-pull-up; 1412 bias-pull-up; 1633 }; 1413 }; 1634 }; 1414 }; 1635 1415 1636 pm8008_default: pm8008-default-state << 1637 int-pins { << 1638 pins = "gpio41"; << 1639 function = "gpio"; << 1640 drive-strength = <2>; << 1641 bias-pull-down; << 1642 }; << 1643 << 1644 reset-n-pins { << 1645 pins = "gpio42"; << 1646 function = "gpio"; << 1647 drive-strength = <2>; << 1648 bias-disable; << 1649 }; << 1650 }; << 1651 << 1652 spkr_1_sd_n_default: spkr-1-sd-n-defa 1416 spkr_1_sd_n_default: spkr-1-sd-n-default-state { 1653 perst-n-pins { 1417 perst-n-pins { 1654 pins = "gpio178"; 1418 pins = "gpio178"; 1655 function = "gpio"; 1419 function = "gpio"; 1656 drive-strength = <16> 1420 drive-strength = <16>; 1657 bias-disable; 1421 bias-disable; 1658 output-high; 1422 output-high; 1659 }; 1423 }; 1660 }; 1424 }; 1661 1425 1662 spkr_2_sd_n_default: spkr-2-sd-n-defa 1426 spkr_2_sd_n_default: spkr-2-sd-n-default-state { 1663 perst-n-pins { 1427 perst-n-pins { 1664 pins = "gpio179"; 1428 pins = "gpio179"; 1665 function = "gpio"; 1429 function = "gpio"; 1666 drive-strength = <16> 1430 drive-strength = <16>; 1667 bias-disable; 1431 bias-disable; 1668 output-high; 1432 output-high; 1669 }; 1433 }; 1670 }; 1434 }; 1671 1435 1672 tpad_default: tpad-default-state { 1436 tpad_default: tpad-default-state { 1673 int-n-pins { 1437 int-n-pins { 1674 pins = "gpio182"; 1438 pins = "gpio182"; 1675 function = "gpio"; 1439 function = "gpio"; 1676 bias-disable; 1440 bias-disable; 1677 }; 1441 }; 1678 }; 1442 }; 1679 1443 1680 ts0_default: ts0-default-state { 1444 ts0_default: ts0-default-state { 1681 int-n-pins { 1445 int-n-pins { 1682 pins = "gpio175"; 1446 pins = "gpio175"; 1683 function = "gpio"; 1447 function = "gpio"; 1684 bias-disable; 1448 bias-disable; 1685 }; 1449 }; 1686 1450 1687 reset-n-pins { 1451 reset-n-pins { 1688 pins = "gpio99"; 1452 pins = "gpio99"; 1689 function = "gpio"; 1453 function = "gpio"; 1690 drive-strength = <2>; !! 1454 output-high; 1691 bias-disable; !! 1455 drive-strength = <16>; 1692 }; 1456 }; 1693 }; 1457 }; 1694 1458 1695 uart2_default: uart2-default-state { 1459 uart2_default: uart2-default-state { 1696 cts-pins { 1460 cts-pins { 1697 pins = "gpio121"; 1461 pins = "gpio121"; 1698 function = "qup2"; 1462 function = "qup2"; 1699 bias-bus-hold; 1463 bias-bus-hold; 1700 }; 1464 }; 1701 1465 1702 rts-pins { 1466 rts-pins { 1703 pins = "gpio122"; 1467 pins = "gpio122"; 1704 function = "qup2"; 1468 function = "qup2"; 1705 drive-strength = <2>; 1469 drive-strength = <2>; 1706 bias-disable; 1470 bias-disable; 1707 }; 1471 }; 1708 1472 1709 rx-pins { 1473 rx-pins { 1710 pins = "gpio124"; 1474 pins = "gpio124"; 1711 function = "qup2"; 1475 function = "qup2"; 1712 bias-pull-up; 1476 bias-pull-up; 1713 }; 1477 }; 1714 1478 1715 tx-pins { 1479 tx-pins { 1716 pins = "gpio123"; 1480 pins = "gpio123"; 1717 function = "qup2"; 1481 function = "qup2"; 1718 drive-strength = <2>; 1482 drive-strength = <2>; 1719 bias-disable; 1483 bias-disable; 1720 }; 1484 }; 1721 }; 1485 }; 1722 1486 1723 usb0_sbu_default: usb0-sbu-state { 1487 usb0_sbu_default: usb0-sbu-state { 1724 oe-n-pins { 1488 oe-n-pins { 1725 pins = "gpio101"; 1489 pins = "gpio101"; 1726 function = "gpio"; 1490 function = "gpio"; 1727 bias-disable; 1491 bias-disable; 1728 drive-strength = <16> 1492 drive-strength = <16>; 1729 output-high; 1493 output-high; 1730 }; 1494 }; 1731 1495 1732 sel-pins { 1496 sel-pins { 1733 pins = "gpio164"; 1497 pins = "gpio164"; 1734 function = "gpio"; 1498 function = "gpio"; 1735 bias-disable; 1499 bias-disable; 1736 drive-strength = <16> 1500 drive-strength = <16>; 1737 }; 1501 }; 1738 }; 1502 }; 1739 1503 1740 usb1_sbu_default: usb1-sbu-state { 1504 usb1_sbu_default: usb1-sbu-state { 1741 oe-n-pins { 1505 oe-n-pins { 1742 pins = "gpio48"; 1506 pins = "gpio48"; 1743 function = "gpio"; 1507 function = "gpio"; 1744 bias-disable; 1508 bias-disable; 1745 drive-strength = <16> 1509 drive-strength = <16>; 1746 output-high; 1510 output-high; 1747 }; 1511 }; 1748 1512 1749 sel-pins { 1513 sel-pins { 1750 pins = "gpio47"; 1514 pins = "gpio47"; 1751 function = "gpio"; 1515 function = "gpio"; 1752 bias-disable; 1516 bias-disable; 1753 drive-strength = <16> 1517 drive-strength = <16>; 1754 }; 1518 }; 1755 }; 1519 }; 1756 1520 1757 wcd_default: wcd-default-state { 1521 wcd_default: wcd-default-state { 1758 reset-pins { 1522 reset-pins { 1759 pins = "gpio106"; 1523 pins = "gpio106"; 1760 function = "gpio"; 1524 function = "gpio"; 1761 bias-disable; 1525 bias-disable; 1762 }; 1526 }; 1763 }; 1527 }; 1764 }; 1528 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.