1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2024 Qualcomm Innovation Cent 3 * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. 4 */ 4 */ 5 5 6 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/regulator/qcom,rpmh-regu 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 9 10 #include "x1e80100.dtsi" 10 #include "x1e80100.dtsi" 11 #include "x1e80100-pmics.dtsi" 11 #include "x1e80100-pmics.dtsi" 12 12 13 / { 13 / { 14 aliases { 14 aliases { 15 serial0 = &uart2; 15 serial0 = &uart2; 16 i2c0 = &i2c0; 16 i2c0 = &i2c0; 17 i2c3 = &i2c3; 17 i2c3 = &i2c3; 18 i2c4 = &i2c4; 18 i2c4 = &i2c4; 19 i2c5 = &i2c5; 19 i2c5 = &i2c5; 20 i2c7 = &i2c7; 20 i2c7 = &i2c7; 21 }; 21 }; 22 22 23 backlight: backlight { 23 backlight: backlight { 24 compatible = "pwm-backlight"; 24 compatible = "pwm-backlight"; 25 pwms = <&pmk8550_pwm 0 5000000 25 pwms = <&pmk8550_pwm 0 5000000>; 26 enable-gpios = <&pmc8380_3_gpi 26 enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>; 27 /* TODO: power-supply? */ 27 /* TODO: power-supply? */ 28 28 29 pinctrl-0 = <&edp_bl_en>, <&ed 29 pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; 30 pinctrl-names = "default"; 30 pinctrl-names = "default"; 31 }; 31 }; 32 32 33 leds { 33 leds { 34 compatible = "gpio-leds"; 34 compatible = "gpio-leds"; 35 35 36 pinctrl-names = "default"; 36 pinctrl-names = "default"; 37 pinctrl-0 = <&cam_indicator_en 37 pinctrl-0 = <&cam_indicator_en>; 38 38 39 led-camera-indicator { 39 led-camera-indicator { 40 label = "white:camera- 40 label = "white:camera-indicator"; 41 function = LED_FUNCTIO 41 function = LED_FUNCTION_INDICATOR; 42 color = <LED_COLOR_ID_ 42 color = <LED_COLOR_ID_WHITE>; 43 gpios = <&tlmm 225 GPI 43 gpios = <&tlmm 225 GPIO_ACTIVE_HIGH>; 44 linux,default-trigger 44 linux,default-trigger = "none"; 45 default-state = "off"; 45 default-state = "off"; 46 /* Reuse as a panic in 46 /* Reuse as a panic indicator until we get a "camera on" trigger */ 47 panic-indicator; 47 panic-indicator; 48 }; 48 }; 49 }; 49 }; 50 50 51 pmic-glink { 51 pmic-glink { 52 compatible = "qcom,x1e80100-pm 52 compatible = "qcom,x1e80100-pmic-glink", 53 "qcom,sm8550-pmic 53 "qcom,sm8550-pmic-glink", 54 "qcom,pmic-glink" 54 "qcom,pmic-glink"; 55 #address-cells = <1>; 55 #address-cells = <1>; 56 #size-cells = <0>; 56 #size-cells = <0>; 57 orientation-gpios = <&tlmm 121 57 orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>, 58 <&tlmm 123 58 <&tlmm 123 GPIO_ACTIVE_HIGH>; 59 59 60 /* Left-side rear port */ 60 /* Left-side rear port */ 61 connector@0 { 61 connector@0 { 62 compatible = "usb-c-co 62 compatible = "usb-c-connector"; 63 reg = <0>; 63 reg = <0>; 64 power-role = "dual"; 64 power-role = "dual"; 65 data-role = "dual"; 65 data-role = "dual"; 66 66 67 ports { 67 ports { 68 #address-cells 68 #address-cells = <1>; 69 #size-cells = 69 #size-cells = <0>; 70 70 71 port@0 { 71 port@0 { 72 reg = 72 reg = <0>; 73 73 74 pmic_g 74 pmic_glink_ss0_hs_in: endpoint { 75 75 remote-endpoint = <&usb_1_ss0_dwc3_hs>; 76 }; 76 }; 77 }; 77 }; 78 78 79 port@1 { 79 port@1 { 80 reg = 80 reg = <1>; 81 81 82 pmic_g 82 pmic_glink_ss0_ss_in: endpoint { 83 83 remote-endpoint = <&usb_1_ss0_qmpphy_out>; 84 }; 84 }; 85 }; 85 }; 86 }; 86 }; 87 }; 87 }; 88 88 89 /* Left-side front port */ 89 /* Left-side front port */ 90 connector@1 { 90 connector@1 { 91 compatible = "usb-c-co 91 compatible = "usb-c-connector"; 92 reg = <1>; 92 reg = <1>; 93 power-role = "dual"; 93 power-role = "dual"; 94 data-role = "dual"; 94 data-role = "dual"; 95 95 96 ports { 96 ports { 97 #address-cells 97 #address-cells = <1>; 98 #size-cells = 98 #size-cells = <0>; 99 99 100 port@0 { 100 port@0 { 101 reg = 101 reg = <0>; 102 102 103 pmic_g 103 pmic_glink_ss1_hs_in: endpoint { 104 104 remote-endpoint = <&usb_1_ss1_dwc3_hs>; 105 }; 105 }; 106 }; 106 }; 107 107 108 port@1 { 108 port@1 { 109 reg = 109 reg = <1>; 110 110 111 pmic_g 111 pmic_glink_ss1_ss_in: endpoint { 112 112 remote-endpoint = <&usb_1_ss1_qmpphy_out>; 113 }; 113 }; 114 }; 114 }; 115 }; 115 }; 116 }; 116 }; 117 }; 117 }; 118 118 119 reserved-memory { 119 reserved-memory { 120 linux,cma { 120 linux,cma { 121 compatible = "shared-d 121 compatible = "shared-dma-pool"; 122 size = <0x0 0x8000000> 122 size = <0x0 0x8000000>; 123 reusable; 123 reusable; 124 linux,cma-default; 124 linux,cma-default; 125 }; 125 }; 126 }; 126 }; 127 127 128 vph_pwr: vph-pwr-regulator { 128 vph_pwr: vph-pwr-regulator { 129 compatible = "regulator-fixed" 129 compatible = "regulator-fixed"; 130 130 131 regulator-name = "vph_pwr"; 131 regulator-name = "vph_pwr"; 132 regulator-min-microvolt = <370 132 regulator-min-microvolt = <3700000>; 133 regulator-max-microvolt = <370 133 regulator-max-microvolt = <3700000>; 134 134 135 regulator-always-on; 135 regulator-always-on; 136 regulator-boot-on; 136 regulator-boot-on; 137 }; 137 }; 138 138 139 vreg_edp_3p3: regulator-edp-3p3 { 139 vreg_edp_3p3: regulator-edp-3p3 { 140 compatible = "regulator-fixed" 140 compatible = "regulator-fixed"; 141 141 142 regulator-name = "VREG_EDP_3P3 142 regulator-name = "VREG_EDP_3P3"; 143 regulator-min-microvolt = <330 143 regulator-min-microvolt = <3300000>; 144 regulator-max-microvolt = <330 144 regulator-max-microvolt = <3300000>; 145 145 146 gpio = <&tlmm 70 GPIO_ACTIVE_H 146 gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>; 147 enable-active-high; 147 enable-active-high; 148 148 149 pinctrl-0 = <&edp_reg_en>; 149 pinctrl-0 = <&edp_reg_en>; 150 pinctrl-names = "default"; 150 pinctrl-names = "default"; 151 151 152 regulator-boot-on; 152 regulator-boot-on; 153 }; 153 }; 154 154 155 vreg_nvme: regulator-nvme { 155 vreg_nvme: regulator-nvme { 156 compatible = "regulator-fixed" 156 compatible = "regulator-fixed"; 157 157 158 regulator-name = "VREG_NVME_3P 158 regulator-name = "VREG_NVME_3P3"; 159 regulator-min-microvolt = <330 159 regulator-min-microvolt = <3300000>; 160 regulator-max-microvolt = <330 160 regulator-max-microvolt = <3300000>; 161 161 162 gpio = <&tlmm 18 GPIO_ACTIVE_H 162 gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>; 163 enable-active-high; 163 enable-active-high; 164 164 165 pinctrl-0 = <&nvme_reg_en>; 165 pinctrl-0 = <&nvme_reg_en>; 166 pinctrl-names = "default"; 166 pinctrl-names = "default"; 167 167 168 regulator-boot-on; 168 regulator-boot-on; 169 }; 169 }; 170 }; 170 }; 171 171 172 &apps_rsc { 172 &apps_rsc { 173 regulators-0 { 173 regulators-0 { 174 compatible = "qcom,pm8550-rpmh 174 compatible = "qcom,pm8550-rpmh-regulators"; 175 qcom,pmic-id = "b"; 175 qcom,pmic-id = "b"; 176 176 177 vdd-bob1-supply = <&vph_pwr>; 177 vdd-bob1-supply = <&vph_pwr>; 178 vdd-bob2-supply = <&vph_pwr>; 178 vdd-bob2-supply = <&vph_pwr>; 179 vdd-l1-l4-l10-supply = <&vreg_ 179 vdd-l1-l4-l10-supply = <&vreg_s4c>; 180 vdd-l2-l13-l14-supply = <&vreg 180 vdd-l2-l13-l14-supply = <&vreg_bob1>; 181 vdd-l5-l16-supply = <&vreg_bob 181 vdd-l5-l16-supply = <&vreg_bob1>; 182 vdd-l6-l7-supply = <&vreg_bob2 182 vdd-l6-l7-supply = <&vreg_bob2>; 183 vdd-l8-l9-supply = <&vreg_bob1 183 vdd-l8-l9-supply = <&vreg_bob1>; 184 vdd-l12-supply = <&vreg_s5j>; 184 vdd-l12-supply = <&vreg_s5j>; 185 vdd-l15-supply = <&vreg_s4c>; 185 vdd-l15-supply = <&vreg_s4c>; 186 vdd-l17-supply = <&vreg_bob2>; 186 vdd-l17-supply = <&vreg_bob2>; 187 187 188 vreg_bob1: bob1 { 188 vreg_bob1: bob1 { 189 regulator-name = "vreg 189 regulator-name = "vreg_bob1"; 190 regulator-min-microvol 190 regulator-min-microvolt = <3008000>; 191 regulator-max-microvol 191 regulator-max-microvolt = <3960000>; 192 regulator-initial-mode 192 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 193 }; 193 }; 194 194 195 vreg_bob2: bob2 { 195 vreg_bob2: bob2 { 196 regulator-name = "vreg 196 regulator-name = "vreg_bob2"; 197 regulator-min-microvol 197 regulator-min-microvolt = <2504000>; 198 regulator-max-microvol 198 regulator-max-microvolt = <3008000>; 199 regulator-initial-mode 199 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 200 }; 200 }; 201 201 202 vreg_l1b: ldo1 { 202 vreg_l1b: ldo1 { 203 regulator-name = "vreg 203 regulator-name = "vreg_l1b"; 204 regulator-min-microvol 204 regulator-min-microvolt = <1800000>; 205 regulator-max-microvol 205 regulator-max-microvolt = <1800000>; 206 regulator-initial-mode 206 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 207 }; 207 }; 208 208 209 vreg_l2b: ldo2 { 209 vreg_l2b: ldo2 { 210 regulator-name = "vreg 210 regulator-name = "vreg_l2b"; 211 regulator-min-microvol 211 regulator-min-microvolt = <3072000>; 212 regulator-max-microvol 212 regulator-max-microvolt = <3072000>; 213 regulator-initial-mode 213 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 214 }; 214 }; 215 215 216 vreg_l4b: ldo4 { 216 vreg_l4b: ldo4 { 217 regulator-name = "vreg 217 regulator-name = "vreg_l4b"; 218 regulator-min-microvol 218 regulator-min-microvolt = <1800000>; 219 regulator-max-microvol 219 regulator-max-microvolt = <1800000>; 220 regulator-initial-mode 220 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 221 }; 221 }; 222 222 223 vreg_l5b: ldo5 { 223 vreg_l5b: ldo5 { 224 regulator-name = "vreg 224 regulator-name = "vreg_l5b"; 225 regulator-min-microvol 225 regulator-min-microvolt = <3000000>; 226 regulator-max-microvol 226 regulator-max-microvolt = <3000000>; 227 regulator-initial-mode 227 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 228 }; 228 }; 229 229 230 vreg_l6b: ldo6 { 230 vreg_l6b: ldo6 { 231 regulator-name = "vreg 231 regulator-name = "vreg_l6b"; 232 regulator-min-microvol 232 regulator-min-microvolt = <1800000>; 233 regulator-max-microvol 233 regulator-max-microvolt = <2960000>; 234 regulator-initial-mode 234 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 235 }; 235 }; 236 236 237 vreg_l7b: ldo7 { 237 vreg_l7b: ldo7 { 238 regulator-name = "vreg 238 regulator-name = "vreg_l7b"; 239 regulator-min-microvol 239 regulator-min-microvolt = <2800000>; 240 regulator-max-microvol 240 regulator-max-microvolt = <2800000>; 241 regulator-initial-mode 241 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 242 }; 242 }; 243 243 244 vreg_l8b: ldo8 { 244 vreg_l8b: ldo8 { 245 regulator-name = "vreg 245 regulator-name = "vreg_l8b"; 246 regulator-min-microvol 246 regulator-min-microvolt = <3072000>; 247 regulator-max-microvol 247 regulator-max-microvolt = <3072000>; 248 regulator-initial-mode 248 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 249 }; 249 }; 250 250 251 vreg_l9b: ldo9 { 251 vreg_l9b: ldo9 { 252 regulator-name = "vreg 252 regulator-name = "vreg_l9b"; 253 regulator-min-microvol 253 regulator-min-microvolt = <2960000>; 254 regulator-max-microvol 254 regulator-max-microvolt = <2960000>; 255 regulator-initial-mode 255 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 256 }; 256 }; 257 257 258 vreg_l10b: ldo10 { 258 vreg_l10b: ldo10 { 259 regulator-name = "vreg 259 regulator-name = "vreg_l10b"; 260 regulator-min-microvol 260 regulator-min-microvolt = <1800000>; 261 regulator-max-microvol 261 regulator-max-microvolt = <1800000>; 262 regulator-initial-mode 262 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 263 }; 263 }; 264 264 265 vreg_l12b: ldo12 { 265 vreg_l12b: ldo12 { 266 regulator-name = "vreg 266 regulator-name = "vreg_l12b"; 267 regulator-min-microvol 267 regulator-min-microvolt = <1200000>; 268 regulator-max-microvol 268 regulator-max-microvolt = <1200000>; 269 regulator-initial-mode 269 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 270 }; 270 }; 271 271 272 vreg_l13b: ldo13 { 272 vreg_l13b: ldo13 { 273 regulator-name = "vreg 273 regulator-name = "vreg_l13b"; 274 regulator-min-microvol 274 regulator-min-microvolt = <3072000>; 275 regulator-max-microvol 275 regulator-max-microvolt = <3072000>; 276 regulator-initial-mode 276 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 277 }; 277 }; 278 278 279 vreg_l14b: ldo14 { 279 vreg_l14b: ldo14 { 280 regulator-name = "vreg 280 regulator-name = "vreg_l14b"; 281 regulator-min-microvol 281 regulator-min-microvolt = <3072000>; 282 regulator-max-microvol 282 regulator-max-microvolt = <3072000>; 283 regulator-initial-mode 283 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 284 }; 284 }; 285 285 286 vreg_l15b: ldo15 { 286 vreg_l15b: ldo15 { 287 regulator-name = "vreg 287 regulator-name = "vreg_l15b"; 288 regulator-min-microvol 288 regulator-min-microvolt = <1800000>; 289 regulator-max-microvol 289 regulator-max-microvolt = <1800000>; 290 regulator-initial-mode 290 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 291 }; 291 }; 292 292 293 vreg_l16b: ldo16 { 293 vreg_l16b: ldo16 { 294 regulator-name = "vreg 294 regulator-name = "vreg_l16b"; 295 regulator-min-microvol 295 regulator-min-microvolt = <2912000>; 296 regulator-max-microvol 296 regulator-max-microvolt = <2912000>; 297 regulator-initial-mode 297 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 298 }; 298 }; 299 299 300 vreg_l17b: ldo17 { 300 vreg_l17b: ldo17 { 301 regulator-name = "vreg 301 regulator-name = "vreg_l17b"; 302 regulator-min-microvol 302 regulator-min-microvolt = <2504000>; 303 regulator-max-microvol 303 regulator-max-microvolt = <2504000>; 304 regulator-initial-mode 304 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 305 }; 305 }; 306 }; 306 }; 307 307 308 regulators-1 { 308 regulators-1 { 309 compatible = "qcom,pm8550ve-rp 309 compatible = "qcom,pm8550ve-rpmh-regulators"; 310 qcom,pmic-id = "c"; 310 qcom,pmic-id = "c"; 311 311 312 vdd-l1-supply = <&vreg_s5j>; 312 vdd-l1-supply = <&vreg_s5j>; 313 vdd-l2-supply = <&vreg_s1f>; 313 vdd-l2-supply = <&vreg_s1f>; 314 vdd-l3-supply = <&vreg_s1f>; 314 vdd-l3-supply = <&vreg_s1f>; 315 vdd-s4-supply = <&vph_pwr>; 315 vdd-s4-supply = <&vph_pwr>; 316 316 317 vreg_s4c: smps4 { 317 vreg_s4c: smps4 { 318 regulator-name = "vreg 318 regulator-name = "vreg_s4c"; 319 regulator-min-microvol 319 regulator-min-microvolt = <1856000>; 320 regulator-max-microvol 320 regulator-max-microvolt = <2000000>; 321 regulator-initial-mode 321 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 322 }; 322 }; 323 323 324 vreg_l1c: ldo1 { 324 vreg_l1c: ldo1 { 325 regulator-name = "vreg 325 regulator-name = "vreg_l1c"; 326 regulator-min-microvol 326 regulator-min-microvolt = <1200000>; 327 regulator-max-microvol 327 regulator-max-microvolt = <1200000>; 328 regulator-initial-mode 328 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 329 }; 329 }; 330 330 331 vreg_l2c: ldo2 { 331 vreg_l2c: ldo2 { 332 regulator-name = "vreg 332 regulator-name = "vreg_l2c"; 333 regulator-min-microvol 333 regulator-min-microvolt = <880000>; 334 regulator-max-microvol 334 regulator-max-microvolt = <920000>; 335 regulator-initial-mode 335 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 336 }; 336 }; 337 337 338 vreg_l3c: ldo3 { 338 vreg_l3c: ldo3 { 339 regulator-name = "vreg 339 regulator-name = "vreg_l3c"; 340 regulator-min-microvol 340 regulator-min-microvolt = <912000>; 341 regulator-max-microvol 341 regulator-max-microvolt = <920000>; 342 regulator-initial-mode 342 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 343 }; 343 }; 344 }; 344 }; 345 345 346 regulators-2 { 346 regulators-2 { 347 compatible = "qcom,pmc8380-rpm 347 compatible = "qcom,pmc8380-rpmh-regulators"; 348 qcom,pmic-id = "d"; 348 qcom,pmic-id = "d"; 349 349 350 vdd-l1-supply = <&vreg_s1f>; 350 vdd-l1-supply = <&vreg_s1f>; 351 vdd-l2-supply = <&vreg_s1f>; 351 vdd-l2-supply = <&vreg_s1f>; 352 vdd-l3-supply = <&vreg_s4c>; 352 vdd-l3-supply = <&vreg_s4c>; 353 vdd-s1-supply = <&vph_pwr>; 353 vdd-s1-supply = <&vph_pwr>; 354 354 355 vreg_l1d: ldo1 { 355 vreg_l1d: ldo1 { 356 regulator-name = "vreg 356 regulator-name = "vreg_l1d"; 357 regulator-min-microvol 357 regulator-min-microvolt = <880000>; 358 regulator-max-microvol 358 regulator-max-microvolt = <920000>; 359 regulator-initial-mode 359 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 360 }; 360 }; 361 361 362 vreg_l2d: ldo2 { 362 vreg_l2d: ldo2 { 363 regulator-name = "vreg 363 regulator-name = "vreg_l2d"; 364 regulator-min-microvol 364 regulator-min-microvolt = <912000>; 365 regulator-max-microvol 365 regulator-max-microvolt = <920000>; 366 regulator-initial-mode 366 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 367 }; 367 }; 368 368 369 vreg_l3d: ldo3 { 369 vreg_l3d: ldo3 { 370 regulator-name = "vreg 370 regulator-name = "vreg_l3d"; 371 regulator-min-microvol 371 regulator-min-microvolt = <1800000>; 372 regulator-max-microvol 372 regulator-max-microvolt = <1800000>; 373 regulator-initial-mode 373 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 374 }; 374 }; 375 }; 375 }; 376 376 377 regulators-3 { 377 regulators-3 { 378 compatible = "qcom,pmc8380-rpm 378 compatible = "qcom,pmc8380-rpmh-regulators"; 379 qcom,pmic-id = "e"; 379 qcom,pmic-id = "e"; 380 380 381 vdd-l2-supply = <&vreg_s1f>; 381 vdd-l2-supply = <&vreg_s1f>; 382 vdd-l3-supply = <&vreg_s5j>; 382 vdd-l3-supply = <&vreg_s5j>; 383 383 384 vreg_l2e: ldo2 { 384 vreg_l2e: ldo2 { 385 regulator-name = "vreg 385 regulator-name = "vreg_l2e"; 386 regulator-min-microvol 386 regulator-min-microvolt = <880000>; 387 regulator-max-microvol 387 regulator-max-microvolt = <920000>; 388 regulator-initial-mode 388 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 389 }; 389 }; 390 390 391 vreg_l3e: ldo3 { 391 vreg_l3e: ldo3 { 392 regulator-name = "vreg 392 regulator-name = "vreg_l3e"; 393 regulator-min-microvol 393 regulator-min-microvolt = <1200000>; 394 regulator-max-microvol 394 regulator-max-microvolt = <1200000>; 395 regulator-initial-mode 395 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 396 }; 396 }; 397 }; 397 }; 398 398 399 regulators-4 { 399 regulators-4 { 400 compatible = "qcom,pmc8380-rpm 400 compatible = "qcom,pmc8380-rpmh-regulators"; 401 qcom,pmic-id = "f"; 401 qcom,pmic-id = "f"; 402 402 403 vdd-l1-supply = <&vreg_s5j>; 403 vdd-l1-supply = <&vreg_s5j>; 404 vdd-l2-supply = <&vreg_s5j>; 404 vdd-l2-supply = <&vreg_s5j>; 405 vdd-l3-supply = <&vreg_s5j>; 405 vdd-l3-supply = <&vreg_s5j>; 406 vdd-s1-supply = <&vph_pwr>; 406 vdd-s1-supply = <&vph_pwr>; 407 407 408 vreg_s1f: smps1 { 408 vreg_s1f: smps1 { 409 regulator-name = "vreg 409 regulator-name = "vreg_s1f"; 410 regulator-min-microvol 410 regulator-min-microvolt = <700000>; 411 regulator-max-microvol 411 regulator-max-microvolt = <1100000>; 412 regulator-initial-mode 412 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 413 }; 413 }; 414 414 415 vreg_l1f: ldo1 { 415 vreg_l1f: ldo1 { 416 regulator-name = "vreg 416 regulator-name = "vreg_l1f"; 417 regulator-min-microvol 417 regulator-min-microvolt = <1024000>; 418 regulator-max-microvol 418 regulator-max-microvolt = <1024000>; 419 regulator-initial-mode 419 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 420 }; 420 }; 421 421 422 vreg_l2f: ldo2 { 422 vreg_l2f: ldo2 { 423 regulator-name = "vreg 423 regulator-name = "vreg_l2f"; 424 regulator-min-microvol 424 regulator-min-microvolt = <1024000>; 425 regulator-max-microvol 425 regulator-max-microvolt = <1024000>; 426 regulator-initial-mode 426 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 427 }; 427 }; 428 428 429 vreg_l3f: ldo3 { 429 vreg_l3f: ldo3 { 430 regulator-name = "vreg 430 regulator-name = "vreg_l3f"; 431 regulator-min-microvol 431 regulator-min-microvolt = <1024000>; 432 regulator-max-microvol 432 regulator-max-microvolt = <1024000>; 433 regulator-initial-mode 433 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 434 }; 434 }; 435 }; 435 }; 436 436 437 regulators-6 { 437 regulators-6 { 438 compatible = "qcom,pm8550ve-rp 438 compatible = "qcom,pm8550ve-rpmh-regulators"; 439 qcom,pmic-id = "i"; 439 qcom,pmic-id = "i"; 440 440 441 vdd-l1-supply = <&vreg_s4c>; 441 vdd-l1-supply = <&vreg_s4c>; 442 vdd-l2-supply = <&vreg_s5j>; 442 vdd-l2-supply = <&vreg_s5j>; 443 vdd-l3-supply = <&vreg_s1f>; 443 vdd-l3-supply = <&vreg_s1f>; 444 vdd-s1-supply = <&vph_pwr>; 444 vdd-s1-supply = <&vph_pwr>; 445 vdd-s2-supply = <&vph_pwr>; 445 vdd-s2-supply = <&vph_pwr>; 446 446 447 vreg_s1i: smps1 { 447 vreg_s1i: smps1 { 448 regulator-name = "vreg 448 regulator-name = "vreg_s1i"; 449 regulator-min-microvol 449 regulator-min-microvolt = <900000>; 450 regulator-max-microvol 450 regulator-max-microvolt = <920000>; 451 regulator-initial-mode 451 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 452 }; 452 }; 453 453 454 vreg_s2i: smps2 { 454 vreg_s2i: smps2 { 455 regulator-name = "vreg 455 regulator-name = "vreg_s2i"; 456 regulator-min-microvol 456 regulator-min-microvolt = <1000000>; 457 regulator-max-microvol 457 regulator-max-microvolt = <1100000>; 458 regulator-initial-mode 458 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 459 }; 459 }; 460 460 461 vreg_l1i: ldo1 { 461 vreg_l1i: ldo1 { 462 regulator-name = "vreg 462 regulator-name = "vreg_l1i"; 463 regulator-min-microvol 463 regulator-min-microvolt = <1800000>; 464 regulator-max-microvol 464 regulator-max-microvolt = <1800000>; 465 regulator-initial-mode 465 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 466 }; 466 }; 467 467 468 vreg_l2i: ldo2 { 468 vreg_l2i: ldo2 { 469 regulator-name = "vreg 469 regulator-name = "vreg_l2i"; 470 regulator-min-microvol 470 regulator-min-microvolt = <1200000>; 471 regulator-max-microvol 471 regulator-max-microvolt = <1200000>; 472 regulator-initial-mode 472 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 473 }; 473 }; 474 474 475 vreg_l3i: ldo3 { 475 vreg_l3i: ldo3 { 476 regulator-name = "vreg 476 regulator-name = "vreg_l3i"; 477 regulator-min-microvol 477 regulator-min-microvolt = <880000>; 478 regulator-max-microvol 478 regulator-max-microvolt = <920000>; 479 regulator-initial-mode 479 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 480 }; 480 }; 481 }; 481 }; 482 482 483 regulators-7 { 483 regulators-7 { 484 compatible = "qcom,pm8550ve-rp 484 compatible = "qcom,pm8550ve-rpmh-regulators"; 485 qcom,pmic-id = "j"; 485 qcom,pmic-id = "j"; 486 486 487 vdd-l1-supply = <&vreg_s1f>; 487 vdd-l1-supply = <&vreg_s1f>; 488 vdd-l2-supply = <&vreg_s5j>; 488 vdd-l2-supply = <&vreg_s5j>; 489 vdd-l3-supply = <&vreg_s1f>; 489 vdd-l3-supply = <&vreg_s1f>; 490 vdd-s5-supply = <&vph_pwr>; 490 vdd-s5-supply = <&vph_pwr>; 491 491 492 vreg_s5j: smps5 { 492 vreg_s5j: smps5 { 493 regulator-name = "vreg 493 regulator-name = "vreg_s5j"; 494 regulator-min-microvol 494 regulator-min-microvolt = <1256000>; 495 regulator-max-microvol 495 regulator-max-microvolt = <1304000>; 496 regulator-initial-mode 496 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 497 }; 497 }; 498 498 499 vreg_l1j: ldo1 { 499 vreg_l1j: ldo1 { 500 regulator-name = "vreg 500 regulator-name = "vreg_l1j"; 501 regulator-min-microvol 501 regulator-min-microvolt = <912000>; 502 regulator-max-microvol 502 regulator-max-microvolt = <920000>; 503 regulator-initial-mode 503 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 504 }; 504 }; 505 505 506 vreg_l2j: ldo2 { 506 vreg_l2j: ldo2 { 507 regulator-name = "vreg 507 regulator-name = "vreg_l2j"; 508 regulator-min-microvol 508 regulator-min-microvolt = <1256000>; 509 regulator-max-microvol 509 regulator-max-microvolt = <1256000>; 510 regulator-initial-mode 510 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 511 }; 511 }; 512 512 513 vreg_l3j: ldo3 { 513 vreg_l3j: ldo3 { 514 regulator-name = "vreg 514 regulator-name = "vreg_l3j"; 515 regulator-min-microvol 515 regulator-min-microvolt = <880000>; 516 regulator-max-microvol 516 regulator-max-microvolt = <920000>; 517 regulator-initial-mode 517 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 518 }; 518 }; 519 }; 519 }; 520 }; 520 }; 521 521 522 &gpu { 522 &gpu { 523 status = "okay"; 523 status = "okay"; 524 524 525 zap-shader { 525 zap-shader { 526 memory-region = <&gpu_microcod 526 memory-region = <&gpu_microcode_mem>; 527 firmware-name = "qcom/x1e80100 527 firmware-name = "qcom/x1e80100/microsoft/qcdxkmsuc8380.mbn"; 528 }; 528 }; 529 }; 529 }; 530 530 531 &i2c0 { 531 &i2c0 { 532 clock-frequency = <100000>; 532 clock-frequency = <100000>; 533 533 534 status = "okay"; 534 status = "okay"; 535 535 536 /* Something @39, @3e, @44 */ 536 /* Something @39, @3e, @44 */ 537 }; 537 }; 538 538 539 &i2c3 { 539 &i2c3 { 540 clock-frequency = <400000>; 540 clock-frequency = <400000>; 541 541 542 status = "okay"; 542 status = "okay"; 543 543 544 /* PS8830 USB retimer @8 */ 544 /* PS8830 USB retimer @8 */ 545 }; 545 }; 546 546 547 &i2c4 { 547 &i2c4 { 548 clock-frequency = <400000>; 548 clock-frequency = <400000>; 549 549 550 status = "okay"; 550 status = "okay"; 551 551 552 /* Something @18, @2c, @2e */ 552 /* Something @18, @2c, @2e */ 553 }; 553 }; 554 554 555 &i2c5 { 555 &i2c5 { 556 clock-frequency = <400000>; 556 clock-frequency = <400000>; 557 557 558 status = "okay"; 558 status = "okay"; 559 559 560 /* Something @4f */ 560 /* Something @4f */ 561 }; 561 }; 562 562 563 &i2c7 { 563 &i2c7 { 564 clock-frequency = <400000>; 564 clock-frequency = <400000>; 565 565 566 status = "okay"; 566 status = "okay"; 567 567 568 /* PS8830 USB retimer @8 */ 568 /* PS8830 USB retimer @8 */ 569 }; 569 }; 570 570 571 571 572 &mdss { 572 &mdss { 573 status = "okay"; 573 status = "okay"; 574 }; 574 }; 575 575 576 &mdss_dp3 { 576 &mdss_dp3 { 577 compatible = "qcom,x1e80100-dp"; 577 compatible = "qcom,x1e80100-dp"; 578 /delete-property/ #sound-dai-cells; 578 /delete-property/ #sound-dai-cells; 579 579 580 status = "okay"; 580 status = "okay"; 581 581 582 aux-bus { 582 aux-bus { 583 panel { 583 panel { 584 compatible = "edp-pane 584 compatible = "edp-panel"; 585 585 586 backlight = <&backligh 586 backlight = <&backlight>; 587 power-supply = <&vreg_ 587 power-supply = <&vreg_edp_3p3>; 588 588 589 port { 589 port { 590 edp_panel_in: 590 edp_panel_in: endpoint { 591 remote 591 remote-endpoint = <&mdss_dp3_out>; 592 }; 592 }; 593 }; 593 }; 594 }; 594 }; 595 }; 595 }; 596 596 597 ports { 597 ports { 598 port@1 { 598 port@1 { 599 reg = <1>; 599 reg = <1>; 600 600 601 mdss_dp3_out: endpoint 601 mdss_dp3_out: endpoint { 602 data-lanes = < 602 data-lanes = <0 1 2 3>; 603 link-frequenci 603 link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 604 604 605 remote-endpoin 605 remote-endpoint = <&edp_panel_in>; 606 }; 606 }; 607 }; 607 }; 608 }; 608 }; 609 }; 609 }; 610 610 611 &mdss_dp3_phy { 611 &mdss_dp3_phy { 612 vdda-phy-supply = <&vreg_l3j>; 612 vdda-phy-supply = <&vreg_l3j>; 613 vdda-pll-supply = <&vreg_l2j>; 613 vdda-pll-supply = <&vreg_l2j>; 614 614 615 status = "okay"; 615 status = "okay"; 616 }; 616 }; 617 617 618 &pcie4 { 618 &pcie4 { 619 status = "okay"; 619 status = "okay"; 620 }; 620 }; 621 621 622 &pcie4_phy { 622 &pcie4_phy { 623 vdda-phy-supply = <&vreg_l3i>; 623 vdda-phy-supply = <&vreg_l3i>; 624 vdda-pll-supply = <&vreg_l3e>; 624 vdda-pll-supply = <&vreg_l3e>; 625 625 626 status = "okay"; 626 status = "okay"; 627 }; 627 }; 628 628 629 &pcie6a { 629 &pcie6a { 630 perst-gpios = <&tlmm 152 GPIO_ACTIVE_L 630 perst-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>; 631 wake-gpios = <&tlmm 154 GPIO_ACTIVE_LO 631 wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>; 632 632 633 vddpe-3v3-supply = <&vreg_nvme>; 633 vddpe-3v3-supply = <&vreg_nvme>; 634 634 635 pinctrl-0 = <&pcie6a_default>; 635 pinctrl-0 = <&pcie6a_default>; 636 pinctrl-names = "default"; 636 pinctrl-names = "default"; 637 637 638 status = "okay"; 638 status = "okay"; 639 }; 639 }; 640 640 641 &pcie6a_phy { 641 &pcie6a_phy { 642 vdda-phy-supply = <&vreg_l1d>; 642 vdda-phy-supply = <&vreg_l1d>; 643 vdda-pll-supply = <&vreg_l2j>; 643 vdda-pll-supply = <&vreg_l2j>; 644 644 645 status = "okay"; 645 status = "okay"; 646 }; 646 }; 647 647 648 &pmc8380_3_gpios { 648 &pmc8380_3_gpios { 649 edp_bl_en: edp-bl-en-state { 649 edp_bl_en: edp-bl-en-state { 650 pins = "gpio4"; 650 pins = "gpio4"; 651 function = "normal"; 651 function = "normal"; 652 power-source = <1>; /* 1.8V */ 652 power-source = <1>; /* 1.8V */ 653 input-disable; 653 input-disable; 654 output-enable; 654 output-enable; 655 }; 655 }; 656 }; 656 }; 657 657 658 &pmk8550_pwm { 658 &pmk8550_pwm { 659 status = "okay"; 659 status = "okay"; 660 }; 660 }; 661 661 662 &pmk8550_gpios { 662 &pmk8550_gpios { 663 edp_bl_pwm: edp-bl-pwm-state { 663 edp_bl_pwm: edp-bl-pwm-state { 664 pins = "gpio5"; 664 pins = "gpio5"; 665 function = "func3"; 665 function = "func3"; 666 }; 666 }; 667 }; 667 }; 668 668 669 &qupv3_0 { 669 &qupv3_0 { 670 status = "okay"; 670 status = "okay"; 671 }; 671 }; 672 672 673 &qupv3_1 { 673 &qupv3_1 { 674 status = "okay"; 674 status = "okay"; 675 }; 675 }; 676 676 677 &qupv3_2 { 677 &qupv3_2 { 678 status = "okay"; 678 status = "okay"; 679 }; 679 }; 680 680 681 &remoteproc_adsp { 681 &remoteproc_adsp { 682 firmware-name = "qcom/x1e80100/microso 682 firmware-name = "qcom/x1e80100/microsoft/Romulus/qcadsp8380.mbn", 683 "qcom/x1e80100/microso 683 "qcom/x1e80100/microsoft/Romulus/adsp_dtb.mbn"; 684 684 685 status = "okay"; 685 status = "okay"; 686 }; 686 }; 687 687 688 &remoteproc_cdsp { 688 &remoteproc_cdsp { 689 firmware-name = "qcom/x1e80100/microso 689 firmware-name = "qcom/x1e80100/microsoft/Romulus/qccdsp8380.mbn", 690 "qcom/x1e80100/microso 690 "qcom/x1e80100/microsoft/Romulus/cdsp_dtb.mbn"; 691 691 692 status = "okay"; 692 status = "okay"; 693 }; 693 }; 694 694 695 &smb2360_0_eusb2_repeater { 695 &smb2360_0_eusb2_repeater { 696 vdd18-supply = <&vreg_l3d>; 696 vdd18-supply = <&vreg_l3d>; 697 vdd3-supply = <&vreg_l2b>; 697 vdd3-supply = <&vreg_l2b>; 698 }; 698 }; 699 699 700 &smb2360_1_eusb2_repeater { 700 &smb2360_1_eusb2_repeater { 701 vdd18-supply = <&vreg_l3d>; 701 vdd18-supply = <&vreg_l3d>; 702 vdd3-supply = <&vreg_l14b>; 702 vdd3-supply = <&vreg_l14b>; 703 }; 703 }; 704 704 705 &tlmm { 705 &tlmm { 706 gpio-reserved-ranges = <44 4>, /* SPI 706 gpio-reserved-ranges = <44 4>, /* SPI (TPM) */ 707 <238 1>; /* UFS 707 <238 1>; /* UFS Reset */ 708 708 709 nvme_reg_en: nvme-reg-en-state { 709 nvme_reg_en: nvme-reg-en-state { 710 pins = "gpio18"; 710 pins = "gpio18"; 711 function = "gpio"; 711 function = "gpio"; 712 drive-strength = <2>; 712 drive-strength = <2>; 713 bias-disable; 713 bias-disable; 714 }; 714 }; 715 715 716 edp_reg_en: edp-reg-en-state { 716 edp_reg_en: edp-reg-en-state { 717 pins = "gpio70"; 717 pins = "gpio70"; 718 function = "gpio"; 718 function = "gpio"; 719 drive-strength = <16>; 719 drive-strength = <16>; 720 bias-disable; 720 bias-disable; 721 }; 721 }; 722 722 723 ssam_state: ssam-state-state { 723 ssam_state: ssam-state-state { 724 pins = "gpio91"; 724 pins = "gpio91"; 725 function = "gpio"; 725 function = "gpio"; 726 bias-disable; 726 bias-disable; 727 }; 727 }; 728 728 729 pcie6a_default: pcie6a-default-state { 729 pcie6a_default: pcie6a-default-state { 730 perst-n-pins { 730 perst-n-pins { 731 pins = "gpio152"; 731 pins = "gpio152"; 732 function = "gpio"; 732 function = "gpio"; 733 drive-strength = <2>; 733 drive-strength = <2>; 734 bias-disable; 734 bias-disable; 735 }; 735 }; 736 736 737 clkreq-n-pins { 737 clkreq-n-pins { 738 pins = "gpio153"; 738 pins = "gpio153"; 739 function = "pcie6a_clk 739 function = "pcie6a_clk"; 740 drive-strength = <2>; 740 drive-strength = <2>; 741 bias-pull-up; 741 bias-pull-up; 742 }; 742 }; 743 743 744 wake-n-pins { 744 wake-n-pins { 745 pins = "gpio154"; 745 pins = "gpio154"; 746 function = "gpio"; 746 function = "gpio"; 747 drive-strength = <2>; 747 drive-strength = <2>; 748 bias-pull-up; 748 bias-pull-up; 749 }; 749 }; 750 }; 750 }; 751 751 752 cam_indicator_en: cam-indicator-en-sta 752 cam_indicator_en: cam-indicator-en-state { 753 pins = "gpio225"; 753 pins = "gpio225"; 754 function = "gpio"; 754 function = "gpio"; 755 drive-strength = <2>; 755 drive-strength = <2>; 756 bias-disable; 756 bias-disable; 757 }; 757 }; 758 }; 758 }; 759 759 760 &uart2 { 760 &uart2 { 761 status = "okay"; 761 status = "okay"; 762 762 763 embedded-controller { 763 embedded-controller { 764 compatible = "microsoft,surfac 764 compatible = "microsoft,surface-sam"; 765 765 766 interrupts-extended = <&tlmm 9 766 interrupts-extended = <&tlmm 91 IRQ_TYPE_EDGE_RISING>; 767 767 768 current-speed = <4000000>; 768 current-speed = <4000000>; 769 769 770 pinctrl-0 = <&ssam_state>; 770 pinctrl-0 = <&ssam_state>; 771 pinctrl-names = "default"; 771 pinctrl-names = "default"; 772 }; 772 }; 773 }; 773 }; 774 774 775 &usb_1_ss0_hsphy { 775 &usb_1_ss0_hsphy { 776 vdd-supply = <&vreg_l3j>; 776 vdd-supply = <&vreg_l3j>; 777 vdda12-supply = <&vreg_l2j>; 777 vdda12-supply = <&vreg_l2j>; 778 778 779 phys = <&smb2360_0_eusb2_repeater>; 779 phys = <&smb2360_0_eusb2_repeater>; 780 780 781 status = "okay"; 781 status = "okay"; 782 }; 782 }; 783 783 784 &usb_1_ss0_qmpphy { 784 &usb_1_ss0_qmpphy { 785 vdda-phy-supply = <&vreg_l3e>; 785 vdda-phy-supply = <&vreg_l3e>; 786 vdda-pll-supply = <&vreg_l1j>; 786 vdda-pll-supply = <&vreg_l1j>; 787 787 788 status = "okay"; 788 status = "okay"; 789 }; 789 }; 790 790 791 &usb_1_ss0 { 791 &usb_1_ss0 { 792 status = "okay"; 792 status = "okay"; 793 }; 793 }; 794 794 795 &usb_1_ss0_dwc3 { 795 &usb_1_ss0_dwc3 { 796 dr_mode = "host"; 796 dr_mode = "host"; 797 }; 797 }; 798 798 799 &usb_1_ss0_dwc3_hs { 799 &usb_1_ss0_dwc3_hs { 800 remote-endpoint = <&pmic_glink_ss0_hs_ 800 remote-endpoint = <&pmic_glink_ss0_hs_in>; 801 }; 801 }; 802 802 803 &usb_1_ss0_qmpphy_out { 803 &usb_1_ss0_qmpphy_out { 804 remote-endpoint = <&pmic_glink_ss0_ss_ 804 remote-endpoint = <&pmic_glink_ss0_ss_in>; 805 }; 805 }; 806 806 807 &usb_1_ss1_hsphy { 807 &usb_1_ss1_hsphy { 808 vdd-supply = <&vreg_l3j>; 808 vdd-supply = <&vreg_l3j>; 809 vdda12-supply = <&vreg_l2j>; 809 vdda12-supply = <&vreg_l2j>; 810 810 811 phys = <&smb2360_1_eusb2_repeater>; 811 phys = <&smb2360_1_eusb2_repeater>; 812 812 813 status = "okay"; 813 status = "okay"; 814 }; 814 }; 815 815 816 &usb_1_ss1_qmpphy { 816 &usb_1_ss1_qmpphy { 817 vdda-phy-supply = <&vreg_l3e>; 817 vdda-phy-supply = <&vreg_l3e>; 818 vdda-pll-supply = <&vreg_l2d>; 818 vdda-pll-supply = <&vreg_l2d>; 819 819 820 status = "okay"; 820 status = "okay"; 821 }; 821 }; 822 822 823 &usb_1_ss1 { 823 &usb_1_ss1 { 824 status = "okay"; 824 status = "okay"; 825 }; 825 }; 826 826 827 &usb_1_ss1_dwc3 { 827 &usb_1_ss1_dwc3 { 828 dr_mode = "host"; 828 dr_mode = "host"; 829 }; 829 }; 830 830 831 &usb_1_ss1_dwc3_hs { 831 &usb_1_ss1_dwc3_hs { 832 remote-endpoint = <&pmic_glink_ss1_hs_ 832 remote-endpoint = <&pmic_glink_ss1_hs_in>; 833 }; 833 }; 834 834 835 &usb_1_ss1_qmpphy_out { 835 &usb_1_ss1_qmpphy_out { 836 remote-endpoint = <&pmic_glink_ss1_ss_ 836 remote-endpoint = <&pmic_glink_ss1_ss_in>; 837 }; 837 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.