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