1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2017-2019, The Linux Foundati 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2020-2023, Linaro Limited 4 * Copyright (c) 2020-2023, Linaro Limited 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include <dt-bindings/firmware/qcom,scm.h> << 10 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/gpio-keys.h> 10 #include <dt-bindings/input/gpio-keys.h> 12 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/regulator/qcom,rpmh-regu 12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 14 #include "sc8180x.dtsi" 13 #include "sc8180x.dtsi" 15 #include "sc8180x-pmics.dtsi" 14 #include "sc8180x-pmics.dtsi" 16 15 17 / { 16 / { 18 model = "Qualcomm SC8180x Primus"; 17 model = "Qualcomm SC8180x Primus"; 19 compatible = "qcom,sc8180x-primus", "q 18 compatible = "qcom,sc8180x-primus", "qcom,sc8180x"; 20 19 21 aliases { 20 aliases { 22 serial0 = &uart12; 21 serial0 = &uart12; 23 serial1 = &uart13; 22 serial1 = &uart13; 24 }; 23 }; 25 24 26 backlight: backlight { 25 backlight: backlight { 27 compatible = "pwm-backlight"; 26 compatible = "pwm-backlight"; 28 pwms = <&pmc8180c_lpg 4 100000 27 pwms = <&pmc8180c_lpg 4 1000000>; 29 enable-gpios = <&pmc8180c_gpio 28 enable-gpios = <&pmc8180c_gpios 8 GPIO_ACTIVE_HIGH>; 30 29 31 pinctrl-names = "default"; 30 pinctrl-names = "default"; 32 pinctrl-0 = <&bl_pwm_default>; 31 pinctrl-0 = <&bl_pwm_default>; 33 }; 32 }; 34 33 35 chosen { 34 chosen { 36 stdout-path = "serial0:115200n 35 stdout-path = "serial0:115200n8"; 37 }; 36 }; 38 37 39 gpio-keys { 38 gpio-keys { 40 compatible = "gpio-keys"; 39 compatible = "gpio-keys"; 41 40 42 pinctrl-names = "default"; 41 pinctrl-names = "default"; 43 pinctrl-0 = <&hall_int_active_ 42 pinctrl-0 = <&hall_int_active_state>; 44 43 45 lid-switch { 44 lid-switch { 46 gpios = <&tlmm 121 GPI !! 45 gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>; 47 linux,input-type = <EV 46 linux,input-type = <EV_SW>; 48 linux,code = <SW_LID>; 47 linux,code = <SW_LID>; 49 wakeup-source; 48 wakeup-source; 50 wakeup-event-action = 49 wakeup-event-action = <EV_ACT_DEASSERTED>; 51 }; 50 }; 52 }; 51 }; 53 52 54 pmic-glink { << 55 compatible = "qcom,sc8180x-pmi << 56 << 57 #address-cells = <1>; << 58 #size-cells = <0>; << 59 << 60 connector@0 { << 61 compatible = "usb-c-co << 62 reg = <0>; << 63 power-role = "dual"; << 64 data-role = "dual"; << 65 << 66 ports { << 67 #address-cells << 68 #size-cells = << 69 << 70 port@0 { << 71 reg = << 72 << 73 pmic_g << 74 << 75 }; << 76 }; << 77 << 78 port@1 { << 79 reg = << 80 << 81 pmic_g << 82 << 83 }; << 84 }; << 85 << 86 port@2 { << 87 reg = << 88 << 89 pmic_g << 90 << 91 }; << 92 }; << 93 }; << 94 }; << 95 << 96 connector@1 { << 97 compatible = "usb-c-co << 98 reg = <1>; << 99 power-role = "dual"; << 100 data-role = "dual"; << 101 << 102 ports { << 103 #address-cells << 104 #size-cells = << 105 port@0 { << 106 reg = << 107 << 108 pmic_g << 109 << 110 }; << 111 }; << 112 << 113 port@1 { << 114 reg = << 115 << 116 pmic_g << 117 << 118 }; << 119 }; << 120 << 121 port@2 { << 122 reg = << 123 << 124 pmic_g << 125 << 126 }; << 127 }; << 128 }; << 129 }; << 130 }; << 131 << 132 reserved-memory { 53 reserved-memory { 133 rmtfs_mem: rmtfs-region@855000 54 rmtfs_mem: rmtfs-region@85500000 { 134 compatible = "qcom,rmt 55 compatible = "qcom,rmtfs-mem"; 135 reg = <0x0 0x85500000 56 reg = <0x0 0x85500000 0x0 0x200000>; 136 no-map; 57 no-map; 137 58 138 qcom,client-id = <1>; 59 qcom,client-id = <1>; 139 qcom,vmid = <QCOM_SCM_ !! 60 qcom,vmid = <15>; 140 }; 61 }; 141 62 142 wlan_mem: wlan-region@8bc00000 63 wlan_mem: wlan-region@8bc00000 { 143 reg = <0x0 0x8bc00000 64 reg = <0x0 0x8bc00000 0x0 0x180000>; 144 no-map; 65 no-map; 145 }; 66 }; 146 67 147 adsp_mem: adsp-region@96e00000 68 adsp_mem: adsp-region@96e00000 { 148 reg = <0x0 0x96e00000 69 reg = <0x0 0x96e00000 0x0 0x1c00000>; 149 no-map; 70 no-map; 150 }; 71 }; 151 72 152 mpss_mem: mpss-region@8d800000 73 mpss_mem: mpss-region@8d800000 { 153 reg = <0x0 0x8d800000 74 reg = <0x0 0x8d800000 0x0 0x9600000>; 154 no-map; 75 no-map; 155 }; 76 }; 156 77 157 gpu_mem: gpu-region@98a00000 { 78 gpu_mem: gpu-region@98a00000 { 158 reg = <0x0 0x98a00000 79 reg = <0x0 0x98a00000 0x0 0x2000>; 159 no-map; 80 no-map; 160 }; 81 }; 161 82 162 reserved-region@9a500000 { 83 reserved-region@9a500000 { 163 reg = <0x0 0x9a500000 84 reg = <0x0 0x9a500000 0x0 0x600000>; 164 no-map; 85 no-map; 165 }; 86 }; 166 }; 87 }; 167 88 168 vreg_nvme_0p9: nvme-0p9-regulator { 89 vreg_nvme_0p9: nvme-0p9-regulator { 169 compatible = "regulator-fixed" 90 compatible = "regulator-fixed"; 170 regulator-name = "vreg_nvme_0p 91 regulator-name = "vreg_nvme_0p9"; 171 92 172 regulator-min-microvolt = <900 93 regulator-min-microvolt = <900000>; 173 regulator-max-microvolt = <900 94 regulator-max-microvolt = <900000>; 174 95 175 regulator-always-on; 96 regulator-always-on; 176 }; 97 }; 177 98 178 vreg_nvme_3p3: nvme-3p3-regulator { 99 vreg_nvme_3p3: nvme-3p3-regulator { 179 compatible = "regulator-fixed" 100 compatible = "regulator-fixed"; 180 regulator-name = "vreg_nvme_3p 101 regulator-name = "vreg_nvme_3p3"; 181 102 182 regulator-min-microvolt = <330 103 regulator-min-microvolt = <3300000>; 183 regulator-max-microvolt = <330 104 regulator-max-microvolt = <3300000>; 184 105 185 gpio = <&pmc8180c_gpios 11 0>; 106 gpio = <&pmc8180c_gpios 11 0>; 186 enable-active-high; 107 enable-active-high; 187 108 188 regulator-always-on; 109 regulator-always-on; 189 }; 110 }; 190 111 191 vdd_kb_tp_3v3: vdd-kb-tp-3v3-regulator 112 vdd_kb_tp_3v3: vdd-kb-tp-3v3-regulator { 192 compatible = "regulator-fixed" 113 compatible = "regulator-fixed"; 193 regulator-name = "vdd_kb_tp_3v 114 regulator-name = "vdd_kb_tp_3v3"; 194 regulator-min-microvolt = <330 115 regulator-min-microvolt = <3300000>; 195 regulator-max-microvolt = <330 116 regulator-max-microvolt = <3300000>; 196 117 197 gpio = <&tlmm 4 GPIO_ACTIVE_HI 118 gpio = <&tlmm 4 GPIO_ACTIVE_HIGH>; 198 enable-active-high; 119 enable-active-high; 199 120 200 regulator-always-on; 121 regulator-always-on; 201 122 202 pinctrl-names = "default"; 123 pinctrl-names = "default"; 203 pinctrl-0 = <&kb_tp_3v3_en_act 124 pinctrl-0 = <&kb_tp_3v3_en_active_state>; 204 }; 125 }; 205 126 206 vph_pwr: vph-pwr-regulator { 127 vph_pwr: vph-pwr-regulator { 207 compatible = "regulator-fixed" 128 compatible = "regulator-fixed"; 208 regulator-name = "vph_pwr"; 129 regulator-name = "vph_pwr"; 209 regulator-min-microvolt = <370 130 regulator-min-microvolt = <3700000>; 210 regulator-max-microvolt = <370 131 regulator-max-microvolt = <3700000>; 211 }; 132 }; 212 133 213 vreg_s4a_1p8: pm8150-s4 { 134 vreg_s4a_1p8: pm8150-s4 { 214 compatible = "regulator-fixed" 135 compatible = "regulator-fixed"; 215 regulator-name = "vreg_s4a_1p8 136 regulator-name = "vreg_s4a_1p8"; 216 137 217 regulator-min-microvolt = <180 138 regulator-min-microvolt = <1800000>; 218 regulator-max-microvolt = <180 139 regulator-max-microvolt = <1800000>; 219 140 220 regulator-always-on; 141 regulator-always-on; 221 regulator-boot-on; 142 regulator-boot-on; 222 143 223 vin-supply = <&vph_pwr>; 144 vin-supply = <&vph_pwr>; 224 }; 145 }; 225 << 226 vreg_usb2_host_en: regulator-usb2-host << 227 compatible = "regulator-fixed" << 228 regulator-name = "usb2_host_en << 229 << 230 regulator-min-microvolt = <500 << 231 regulator-max-microvolt = <500 << 232 << 233 gpio = <&pmc8180_1_gpios 9 GPI << 234 enable-active-high; << 235 << 236 regulator-always-on; << 237 }; << 238 << 239 vreg_usb3_host_en: regulator-usb3-host << 240 compatible = "regulator-fixed" << 241 regulator-name = "usb3_host_en << 242 << 243 regulator-min-microvolt = <500 << 244 regulator-max-microvolt = <500 << 245 << 246 gpio = <&pmc8180_2_gpios 9 GPI << 247 enable-active-high; << 248 << 249 regulator-always-on; << 250 }; << 251 << 252 usbprim-sbu-mux { << 253 compatible = "pericom,pi3usb10 << 254 << 255 enable-gpios = <&tlmm 152 GPIO << 256 select-gpios = <&tlmm 100 GPIO << 257 << 258 pinctrl-names = "default"; << 259 pinctrl-0 = <&usbprim_sbu_defa << 260 << 261 mode-switch; << 262 orientation-switch; << 263 << 264 port { << 265 usbprim_sbu_mux: endpo << 266 remote-endpoin << 267 }; << 268 }; << 269 }; << 270 << 271 usbsec-sbu-mux { << 272 compatible = "pericom,pi3usb10 << 273 << 274 enable-gpios = <&tlmm 188 GPIO << 275 select-gpios = <&tlmm 187 GPIO << 276 << 277 pinctrl-names = "default"; << 278 pinctrl-0 = <&usbsec_sbu_defau << 279 << 280 mode-switch; << 281 orientation-switch; << 282 << 283 port { << 284 usbsec_sbu_mux: endpoi << 285 remote-endpoin << 286 }; << 287 }; << 288 }; << 289 }; 146 }; 290 147 291 &apps_rsc { 148 &apps_rsc { 292 regulators-0 { 149 regulators-0 { 293 compatible = "qcom,pmc8180-rpm 150 compatible = "qcom,pmc8180-rpmh-regulators"; 294 qcom,pmic-id = "a"; 151 qcom,pmic-id = "a"; 295 152 296 vdd-s5-supply = <&vph_pwr>; 153 vdd-s5-supply = <&vph_pwr>; 297 vdd-l7-l12-l14-l15-supply = <& 154 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>; 298 155 299 vreg_s5a_2p0: smps5 { 156 vreg_s5a_2p0: smps5 { 300 regulator-min-microvol 157 regulator-min-microvolt = <2040000>; 301 regulator-max-microvol 158 regulator-max-microvolt = <2100000>; 302 }; 159 }; 303 160 304 vreg_l7a_1p8: ldo7 { 161 vreg_l7a_1p8: ldo7 { 305 regulator-min-microvol 162 regulator-min-microvolt = <1800000>; 306 regulator-max-microvol 163 regulator-max-microvolt = <1800000>; 307 regulator-initial-mode 164 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 308 }; 165 }; 309 166 310 vreg_l9a_1p3: ldo9 { 167 vreg_l9a_1p3: ldo9 { 311 regulator-min-microvol 168 regulator-min-microvolt = <1296000>; 312 regulator-max-microvol 169 regulator-max-microvolt = <1304000>; 313 regulator-initial-mode 170 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 314 }; 171 }; 315 172 316 vreg_l12a_1p8: ldo12 { 173 vreg_l12a_1p8: ldo12 { 317 regulator-min-microvol 174 regulator-min-microvolt = <1800000>; 318 regulator-max-microvol 175 regulator-max-microvolt = <1800000>; 319 regulator-initial-mode 176 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 320 }; 177 }; 321 }; 178 }; 322 179 323 regulators-1 { 180 regulators-1 { 324 compatible = "qcom,pmc8180c-rp 181 compatible = "qcom,pmc8180c-rpmh-regulators"; 325 qcom,pmic-id = "c"; 182 qcom,pmic-id = "c"; 326 183 327 vdd-s6-supply = <&vph_pwr>; 184 vdd-s6-supply = <&vph_pwr>; 328 vdd-s8-supply = <&vph_pwr>; 185 vdd-s8-supply = <&vph_pwr>; 329 vdd-l2-l3-supply = <&vreg_s6c_ 186 vdd-l2-l3-supply = <&vreg_s6c_1p35>; 330 vdd-bob-supply = <&vph_pwr>; 187 vdd-bob-supply = <&vph_pwr>; 331 188 332 vreg_s6c_1p35: smps6 { 189 vreg_s6c_1p35: smps6 { 333 regulator-min-microvol 190 regulator-min-microvolt = <1350000>; 334 regulator-max-microvol 191 regulator-max-microvolt = <1372000>; 335 regulator-initial-mode 192 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 336 }; 193 }; 337 194 338 vreg_s8c_1p8: smps8 { 195 vreg_s8c_1p8: smps8 { 339 regulator-min-microvol 196 regulator-min-microvolt = <1800000>; 340 regulator-max-microvol 197 regulator-max-microvolt = <1800000>; 341 regulator-initial-mode 198 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 342 regulator-always-on; 199 regulator-always-on; 343 }; 200 }; 344 201 345 vreg_l3c_1p2: ldo3 { 202 vreg_l3c_1p2: ldo3 { 346 regulator-min-microvol 203 regulator-min-microvolt = <1200000>; 347 regulator-max-microvol 204 regulator-max-microvolt = <1200000>; 348 regulator-initial-mode 205 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 349 }; 206 }; 350 207 351 vreg_l4c_3p3: ldo4 { 208 vreg_l4c_3p3: ldo4 { 352 regulator-min-microvol 209 regulator-min-microvolt = <3008000>; 353 regulator-max-microvol 210 regulator-max-microvolt = <3008000>; 354 regulator-initial-mode 211 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 355 }; 212 }; 356 213 357 vreg_l10c_3p3: ldo10 { 214 vreg_l10c_3p3: ldo10 { 358 regulator-min-microvol 215 regulator-min-microvolt = <3000000>; 359 regulator-max-microvol 216 regulator-max-microvolt = <3312000>; 360 regulator-initial-mode 217 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 361 }; 218 }; 362 219 363 vreg_l11c_3p3: ldo11 { 220 vreg_l11c_3p3: ldo11 { 364 regulator-min-microvol 221 regulator-min-microvolt = <3296000>; 365 regulator-max-microvol 222 regulator-max-microvolt = <3304000>; 366 regulator-initial-mode 223 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 367 }; 224 }; 368 225 369 vreg_bob: bob { 226 vreg_bob: bob { 370 regulator-min-microvol 227 regulator-min-microvolt = <3296000>; 371 regulator-max-microvol 228 regulator-max-microvolt = <3350000>; 372 regulator-initial-mode 229 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 373 }; 230 }; 374 }; 231 }; 375 232 376 regulators-2 { 233 regulators-2 { 377 compatible = "qcom,pmc8180-rpm 234 compatible = "qcom,pmc8180-rpmh-regulators"; 378 qcom,pmic-id = "e"; 235 qcom,pmic-id = "e"; 379 236 380 vdd-s4-supply = <&vph_pwr>; 237 vdd-s4-supply = <&vph_pwr>; 381 vdd-s5-supply = <&vph_pwr>; 238 vdd-s5-supply = <&vph_pwr>; 382 vdd-l2-l10-supply = <&vreg_bob 239 vdd-l2-l10-supply = <&vreg_bob>; 383 vdd-l3-l4-l5-l18-supply = <&vr 240 vdd-l3-l4-l5-l18-supply = <&vreg_s4e_0p98>; 384 vdd-l7-l12-l14-l15-supply = <& 241 vdd-l7-l12-l14-l15-supply = <&vreg_s5e_2p05>; 385 vdd-l13-l16-l17-supply = <&vre 242 vdd-l13-l16-l17-supply = <&vreg_bob>; 386 243 387 vreg_s4e_0p98: smps4 { 244 vreg_s4e_0p98: smps4 { 388 regulator-min-microvol 245 regulator-min-microvolt = <992000>; 389 regulator-max-microvol 246 regulator-max-microvolt = <992000>; 390 regulator-initial-mode 247 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 391 }; 248 }; 392 249 393 vreg_s5e_2p05: smps5 { 250 vreg_s5e_2p05: smps5 { 394 regulator-min-microvol 251 regulator-min-microvolt = <2040000>; 395 regulator-max-microvol 252 regulator-max-microvolt = <2040000>; 396 regulator-initial-mode 253 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 397 }; 254 }; 398 255 399 vreg_l1e_0p75: ldo1 { 256 vreg_l1e_0p75: ldo1 { 400 regulator-min-microvol 257 regulator-min-microvolt = <752000>; 401 regulator-max-microvol 258 regulator-max-microvolt = <752000>; 402 regulator-initial-mode 259 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 403 }; 260 }; 404 261 405 vreg_l5e_0p88: ldo5 { 262 vreg_l5e_0p88: ldo5 { 406 regulator-min-microvol 263 regulator-min-microvolt = <880000>; 407 regulator-max-microvol 264 regulator-max-microvolt = <880000>; 408 regulator-initial-mode 265 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 409 }; 266 }; 410 267 411 vreg_l7e_1p8: ldo7 { 268 vreg_l7e_1p8: ldo7 { 412 regulator-min-microvol 269 regulator-min-microvolt = <1800000>; 413 regulator-max-microvol 270 regulator-max-microvolt = <1800000>; 414 regulator-initial-mode 271 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 415 regulator-allowed-mode << 416 << 417 regulator-allow-set-lo << 418 }; 272 }; 419 273 420 vreg_l10e_2p9: ldo10 { 274 vreg_l10e_2p9: ldo10 { 421 regulator-min-microvol 275 regulator-min-microvolt = <2904000>; 422 regulator-max-microvol 276 regulator-max-microvolt = <2904000>; 423 regulator-initial-mode 277 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 424 regulator-allowed-mode << 425 << 426 regulator-allow-set-lo << 427 }; 278 }; 428 279 429 vreg_l12e: ldo12 { 280 vreg_l12e: ldo12 { 430 regulator-min-microvol 281 regulator-min-microvolt = <1800000>; 431 regulator-max-microvol 282 regulator-max-microvolt = <1800000>; 432 regulator-initial-mode 283 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 433 }; 284 }; 434 285 435 vreg_l16e_3p0: ldo16 { 286 vreg_l16e_3p0: ldo16 { 436 regulator-min-microvol 287 regulator-min-microvolt = <3072000>; 437 regulator-max-microvol 288 regulator-max-microvolt = <3072000>; 438 regulator-initial-mode 289 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 439 }; 290 }; 440 }; 291 }; 441 }; 292 }; 442 293 443 &gpu { 294 &gpu { 444 status = "okay"; 295 status = "okay"; 445 296 446 zap-shader { 297 zap-shader { 447 memory-region = <&gpu_mem>; 298 memory-region = <&gpu_mem>; 448 firmware-name = "qcom/sc8180x/ 299 firmware-name = "qcom/sc8180x/qcdxkmsuc8180.mbn"; 449 }; 300 }; 450 }; 301 }; 451 302 452 &i2c1 { 303 &i2c1 { 453 clock-frequency = <100000>; 304 clock-frequency = <100000>; 454 305 455 pinctrl-names = "default"; 306 pinctrl-names = "default"; 456 pinctrl-0 = <&ts_i2c_active_state>; 307 pinctrl-0 = <&ts_i2c_active_state>; 457 308 458 status = "okay"; 309 status = "okay"; 459 310 460 touchscreen@10 { 311 touchscreen@10 { 461 compatible = "hid-over-i2c"; 312 compatible = "hid-over-i2c"; 462 reg = <0x10>; 313 reg = <0x10>; 463 hid-descr-addr = <0x1>; 314 hid-descr-addr = <0x1>; 464 315 465 vdd-supply = <&vreg_l4c_3p3>; 316 vdd-supply = <&vreg_l4c_3p3>; 466 vddl-supply = <&vreg_l12e>; 317 vddl-supply = <&vreg_l12e>; 467 318 468 post-power-on-delay-ms = <20>; 319 post-power-on-delay-ms = <20>; 469 320 470 interrupts-extended = <&tlmm 1 321 interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>; 471 322 472 pinctrl-names = "default"; 323 pinctrl-names = "default"; 473 pinctrl-0 = <&ts_active_state> 324 pinctrl-0 = <&ts_active_state>; 474 }; 325 }; 475 }; 326 }; 476 327 477 &i2c7 { 328 &i2c7 { 478 clock-frequency = <100000>; 329 clock-frequency = <100000>; 479 330 480 pinctrl-names = "default"; 331 pinctrl-names = "default"; 481 pinctrl-0 = <&aux_i2c_active_state>; 332 pinctrl-0 = <&aux_i2c_active_state>; 482 333 483 status = "okay"; 334 status = "okay"; 484 335 485 touchpad@15 { 336 touchpad@15 { 486 compatible = "hid-over-i2c"; 337 compatible = "hid-over-i2c"; 487 reg = <0x15>; 338 reg = <0x15>; 488 hid-descr-addr = <0x1>; 339 hid-descr-addr = <0x1>; 489 340 490 interrupts-extended = <&tlmm 2 341 interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>; 491 342 492 pinctrl-names = "default"; 343 pinctrl-names = "default"; 493 pinctrl-0 = <&tp_int_active_st 344 pinctrl-0 = <&tp_int_active_state>; 494 345 495 vdd-supply = <&vdd_kb_tp_3v3>; 346 vdd-supply = <&vdd_kb_tp_3v3>; 496 }; 347 }; 497 348 498 keyboard@3a { 349 keyboard@3a { 499 compatible = "hid-over-i2c"; 350 compatible = "hid-over-i2c"; 500 reg = <0x3a>; 351 reg = <0x3a>; 501 hid-descr-addr = <0x1>; 352 hid-descr-addr = <0x1>; 502 interrupts-extended = <&tlmm 3 353 interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>; 503 354 504 pinctrl-names = "default"; 355 pinctrl-names = "default"; 505 pinctrl-0 = <&kb_int_active_st 356 pinctrl-0 = <&kb_int_active_state>; 506 357 507 vdd-supply = <&vdd_kb_tp_3v3>; 358 vdd-supply = <&vdd_kb_tp_3v3>; 508 }; 359 }; 509 }; 360 }; 510 361 511 &mdss { 362 &mdss { 512 status = "okay"; 363 status = "okay"; 513 }; 364 }; 514 365 515 &mdss_dp0 { << 516 status = "okay"; << 517 }; << 518 << 519 &mdss_dp0_out { << 520 data-lanes = <0 1>; << 521 remote-endpoint = <&usb_prim_qmpphy_dp << 522 }; << 523 << 524 &mdss_dp1 { << 525 status = "okay"; << 526 }; << 527 << 528 &mdss_dp1_out { << 529 data-lanes = <0 1>; << 530 remote-endpoint = <&usb_sec_qmpphy_dp_ << 531 }; << 532 << 533 &mdss_edp { 366 &mdss_edp { 534 data-lanes = <0 1 2 3>; 367 data-lanes = <0 1 2 3>; 535 368 536 pinctrl-names = "default"; 369 pinctrl-names = "default"; 537 pinctrl-0 = <&edp_hpd_active>; 370 pinctrl-0 = <&edp_hpd_active>; 538 371 539 status = "okay"; 372 status = "okay"; 540 373 541 aux-bus { 374 aux-bus { 542 panel { 375 panel { 543 compatible = "edp-pane 376 compatible = "edp-panel"; 544 377 545 backlight = <&backligh 378 backlight = <&backlight>; 546 379 547 port { !! 380 ports { 548 auo_b133han05_ !! 381 port { 549 remote !! 382 auo_b133han05_in: endpoint { >> 383 remote-endpoint = <&mdss_edp_out>; >> 384 }; 550 }; 385 }; 551 }; 386 }; 552 }; 387 }; 553 }; 388 }; 554 389 555 ports { 390 ports { 556 port@1 { 391 port@1 { 557 reg = <1>; 392 reg = <1>; 558 mdss_edp_out: endpoint 393 mdss_edp_out: endpoint { 559 remote-endpoin 394 remote-endpoint = <&auo_b133han05_in>; 560 }; 395 }; 561 }; 396 }; 562 }; 397 }; 563 }; 398 }; 564 399 565 &pcie1 { 400 &pcie1 { 566 perst-gpios = <&tlmm 175 GPIO_ACTIVE_L !! 401 perst-gpio = <&tlmm 175 GPIO_ACTIVE_LOW>; 567 wake-gpios = <&tlmm 177 GPIO_ACTIVE_HI !! 402 wake-gpio = <&tlmm 177 GPIO_ACTIVE_HIGH>; 568 pinctrl-names = "default"; 403 pinctrl-names = "default"; 569 pinctrl-0 = <&pcie2_default_state>; 404 pinctrl-0 = <&pcie2_default_state>; 570 405 571 status = "okay"; 406 status = "okay"; 572 }; 407 }; 573 408 574 &pcie1_phy { 409 &pcie1_phy { 575 vdda-phy-supply = <&vreg_l5e_0p88>; 410 vdda-phy-supply = <&vreg_l5e_0p88>; 576 vdda-pll-supply = <&vreg_l3c_1p2>; 411 vdda-pll-supply = <&vreg_l3c_1p2>; 577 412 578 status = "okay"; 413 status = "okay"; 579 }; 414 }; 580 415 581 &pmc8180_pwrkey { << 582 status = "okay"; << 583 }; << 584 << 585 &pmc8180c_lpg { 416 &pmc8180c_lpg { 586 status = "okay"; 417 status = "okay"; 587 }; 418 }; 588 419 589 &qupv3_id_0 { 420 &qupv3_id_0 { 590 status = "okay"; 421 status = "okay"; 591 }; 422 }; 592 423 593 &qupv3_id_1 { 424 &qupv3_id_1 { 594 status = "okay"; 425 status = "okay"; 595 }; 426 }; 596 427 597 &qupv3_id_2 { 428 &qupv3_id_2 { 598 status = "okay"; 429 status = "okay"; 599 }; 430 }; 600 431 601 &remoteproc_adsp { 432 &remoteproc_adsp { 602 memory-region = <&adsp_mem>; 433 memory-region = <&adsp_mem>; 603 firmware-name = "qcom/sc8180x/qcadsp81 434 firmware-name = "qcom/sc8180x/qcadsp8180.mbn"; 604 435 605 status = "okay"; 436 status = "okay"; 606 }; 437 }; 607 438 608 &remoteproc_mpss { 439 &remoteproc_mpss { 609 memory-region = <&mpss_mem>; 440 memory-region = <&mpss_mem>; 610 firmware-name = "qcom/sc8180x/qcmpss81 441 firmware-name = "qcom/sc8180x/qcmpss8180.mbn"; 611 442 612 status = "okay"; 443 status = "okay"; 613 }; 444 }; 614 445 615 &uart12 { 446 &uart12 { 616 compatible = "qcom,geni-debug-uart"; 447 compatible = "qcom,geni-debug-uart"; 617 status = "okay"; 448 status = "okay"; 618 }; 449 }; 619 450 620 &uart13 { 451 &uart13 { 621 pinctrl-names = "default"; 452 pinctrl-names = "default"; 622 pinctrl-0 = <&uart13_state>; 453 pinctrl-0 = <&uart13_state>; 623 454 624 status = "okay"; 455 status = "okay"; 625 456 626 bluetooth { 457 bluetooth { 627 compatible = "qcom,wcn3998-bt" 458 compatible = "qcom,wcn3998-bt"; 628 459 629 vddio-supply = <&vreg_s4a_1p8> 460 vddio-supply = <&vreg_s4a_1p8>; 630 vddxo-supply = <&vreg_l7a_1p8> 461 vddxo-supply = <&vreg_l7a_1p8>; 631 vddrf-supply = <&vreg_l9a_1p3> 462 vddrf-supply = <&vreg_l9a_1p3>; 632 vddch0-supply = <&vreg_l11c_3p 463 vddch0-supply = <&vreg_l11c_3p3>; 633 max-speed = <3200000>; 464 max-speed = <3200000>; 634 }; 465 }; 635 }; 466 }; 636 467 637 &ufs_mem_hc { 468 &ufs_mem_hc { 638 reset-gpios = <&tlmm 190 GPIO_ACTIVE_L 469 reset-gpios = <&tlmm 190 GPIO_ACTIVE_LOW>; 639 470 640 vcc-supply = <&vreg_l10e_2p9>; 471 vcc-supply = <&vreg_l10e_2p9>; 641 vcc-max-microamp = <155000>; 472 vcc-max-microamp = <155000>; 642 473 643 vccq2-supply = <&vreg_l7e_1p8>; 474 vccq2-supply = <&vreg_l7e_1p8>; 644 vccq2-max-microamp = <425000>; 475 vccq2-max-microamp = <425000>; 645 476 646 status = "okay"; 477 status = "okay"; 647 }; 478 }; 648 479 649 &ufs_mem_phy { 480 &ufs_mem_phy { 650 vdda-phy-supply = <&vreg_l5e_0p88>; 481 vdda-phy-supply = <&vreg_l5e_0p88>; 651 vdda-pll-supply = <&vreg_l3c_1p2>; 482 vdda-pll-supply = <&vreg_l3c_1p2>; 652 483 653 status = "okay"; 484 status = "okay"; 654 }; 485 }; 655 486 656 &usb_mp { << 657 status = "okay"; << 658 }; << 659 << 660 &usb_mp_hsphy0 { << 661 vdda-pll-supply = <&vreg_l5e_0p88>; << 662 vdda18-supply = <&vreg_l12a_1p8>; << 663 vdda33-supply = <&vreg_l16e_3p0>; << 664 << 665 status = "okay"; << 666 }; << 667 << 668 &usb_mp_hsphy1 { << 669 vdda-pll-supply = <&vreg_l5e_0p88>; << 670 vdda18-supply = <&vreg_l12a_1p8>; << 671 vdda33-supply = <&vreg_l16e_3p0>; << 672 << 673 status = "okay"; << 674 }; << 675 << 676 &usb_mp_qmpphy0 { << 677 vdda-phy-supply = <&vreg_l3c_1p2>; << 678 vdda-pll-supply = <&vreg_l5e_0p88>; << 679 << 680 status = "okay"; << 681 }; << 682 << 683 &usb_mp_qmpphy1 { << 684 vdda-phy-supply = <&vreg_l3c_1p2>; << 685 vdda-pll-supply = <&vreg_l5e_0p88>; << 686 << 687 status = "okay"; << 688 }; << 689 << 690 &usb_prim_hsphy { 487 &usb_prim_hsphy { 691 vdda-pll-supply = <&vreg_l5e_0p88>; 488 vdda-pll-supply = <&vreg_l5e_0p88>; 692 vdda18-supply = <&vreg_l12a_1p8>; 489 vdda18-supply = <&vreg_l12a_1p8>; 693 vdda33-supply = <&vreg_l16e_3p0>; 490 vdda33-supply = <&vreg_l16e_3p0>; 694 491 695 status = "okay"; 492 status = "okay"; 696 }; 493 }; 697 494 698 &usb_prim_qmpphy { 495 &usb_prim_qmpphy { 699 vdda-phy-supply = <&vreg_l3c_1p2>; 496 vdda-phy-supply = <&vreg_l3c_1p2>; 700 vdda-pll-supply = <&vreg_l5e_0p88>; 497 vdda-pll-supply = <&vreg_l5e_0p88>; 701 498 702 orientation-switch; << 703 << 704 status = "okay"; 499 status = "okay"; 705 }; 500 }; 706 501 707 &usb_prim { 502 &usb_prim { 708 status = "okay"; 503 status = "okay"; 709 }; 504 }; 710 505 711 &usb_prim_dwc3 { 506 &usb_prim_dwc3 { 712 dr_mode = "host"; 507 dr_mode = "host"; 713 }; 508 }; 714 509 715 &usb_prim_dwc3_hs { << 716 remote-endpoint = <&pmic_glink_con0_hs << 717 }; << 718 << 719 &usb_prim_qmpphy_dp_in { << 720 remote-endpoint = <&mdss_dp0_out>; << 721 }; << 722 << 723 &usb_prim_qmpphy_out { << 724 remote-endpoint = <&pmic_glink_con0_ss << 725 }; << 726 << 727 &usb_sec_hsphy { 510 &usb_sec_hsphy { 728 vdda-pll-supply = <&vreg_l5e_0p88>; 511 vdda-pll-supply = <&vreg_l5e_0p88>; 729 vdda18-supply = <&vreg_l12a_1p8>; 512 vdda18-supply = <&vreg_l12a_1p8>; 730 vdda33-supply = <&vreg_l16e_3p0>; 513 vdda33-supply = <&vreg_l16e_3p0>; 731 514 732 status = "okay"; 515 status = "okay"; 733 }; 516 }; 734 517 735 &usb_sec_qmpphy { 518 &usb_sec_qmpphy { 736 vdda-phy-supply = <&vreg_l3c_1p2>; 519 vdda-phy-supply = <&vreg_l3c_1p2>; 737 vdda-pll-supply = <&vreg_l5e_0p88>; 520 vdda-pll-supply = <&vreg_l5e_0p88>; 738 521 739 orientation-switch; << 740 << 741 status = "okay"; 522 status = "okay"; 742 }; 523 }; 743 524 744 &usb_sec_qmpphy_dp_in { << 745 remote-endpoint = <&mdss_dp1_out>; << 746 }; << 747 << 748 &usb_sec_qmpphy_out { << 749 remote-endpoint = <&pmic_glink_con1_ss << 750 }; << 751 << 752 &usb_sec { 525 &usb_sec { 753 status = "okay"; 526 status = "okay"; 754 }; 527 }; 755 528 756 &usb_sec_dwc3 { 529 &usb_sec_dwc3 { 757 dr_mode = "host"; 530 dr_mode = "host"; 758 }; 531 }; 759 532 760 &usb_sec_dwc3_hs { << 761 remote-endpoint = <&pmic_glink_con1_hs << 762 }; << 763 << 764 &wifi { 533 &wifi { 765 memory-region = <&wlan_mem>; 534 memory-region = <&wlan_mem>; 766 535 767 vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75 536 vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75>; 768 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 537 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 769 vdd-1.3-rfa-supply = <&vreg_l9a_1p3>; 538 vdd-1.3-rfa-supply = <&vreg_l9a_1p3>; 770 vdd-3.3-ch0-supply = <&vreg_l11c_3p3>; 539 vdd-3.3-ch0-supply = <&vreg_l11c_3p3>; 771 vdd-3.3-ch1-supply = <&vreg_l10c_3p3>; 540 vdd-3.3-ch1-supply = <&vreg_l10c_3p3>; 772 541 773 status = "okay"; 542 status = "okay"; 774 }; 543 }; 775 544 776 &xo_board_clk { 545 &xo_board_clk { 777 clock-frequency = <38400000>; 546 clock-frequency = <38400000>; 778 }; 547 }; 779 548 780 /* PINCTRL */ 549 /* PINCTRL */ 781 550 782 &pmc8180c_gpios { 551 &pmc8180c_gpios { 783 bl_pwm_default: bl-pwm-default-state { 552 bl_pwm_default: bl-pwm-default-state { 784 en-pins { 553 en-pins { 785 pins = "gpio8"; 554 pins = "gpio8"; 786 function = "normal"; 555 function = "normal"; 787 }; 556 }; 788 557 789 pwm-pins { 558 pwm-pins { 790 pins = "gpio10"; 559 pins = "gpio10"; 791 function = "func1"; 560 function = "func1"; 792 }; 561 }; 793 }; 562 }; 794 }; 563 }; 795 564 796 &tlmm { 565 &tlmm { 797 gpio-reserved-ranges = <0 4>, <47 4>, 566 gpio-reserved-ranges = <0 4>, <47 4>, <126 4>; 798 567 799 aux_i2c_active_state: aux-i2c-active-s 568 aux_i2c_active_state: aux-i2c-active-state { 800 pins = "gpio98", "gpio99"; 569 pins = "gpio98", "gpio99"; 801 function = "qup7"; 570 function = "qup7"; 802 571 803 bias-disable; 572 bias-disable; 804 drive-strength = <16>; 573 drive-strength = <16>; 805 }; 574 }; 806 575 807 edp_hpd_active: epd-hpd-active-state { 576 edp_hpd_active: epd-hpd-active-state { 808 pins = "gpio10"; 577 pins = "gpio10"; 809 function = "edp_hot"; 578 function = "edp_hot"; 810 }; 579 }; 811 580 812 hall_int_active_state: hall-int-active 581 hall_int_active_state: hall-int-active-state { 813 pins = "gpio121"; 582 pins = "gpio121"; 814 function = "gpio"; 583 function = "gpio"; 815 584 >> 585 input-enable; 816 bias-disable; 586 bias-disable; 817 }; 587 }; 818 588 819 kb_int_active_state: kb-int-active-sta 589 kb_int_active_state: kb-int-active-state { 820 int-n-pins { 590 int-n-pins { 821 pins = "gpio37"; 591 pins = "gpio37"; 822 function = "gpio"; 592 function = "gpio"; 823 593 824 bias-pull-up; 594 bias-pull-up; >> 595 intput-enable; 825 }; 596 }; 826 597 827 kp-disable-pins { 598 kp-disable-pins { 828 pins = "gpio135"; 599 pins = "gpio135"; 829 function = "gpio"; 600 function = "gpio"; 830 601 831 output-high; 602 output-high; 832 }; 603 }; 833 }; 604 }; 834 605 835 kb_tp_3v3_en_active_state: kb-tp-3v3-e 606 kb_tp_3v3_en_active_state: kb-tp-3v3-en-active-state { 836 pins = "gpio4"; 607 pins = "gpio4"; 837 function = "gpio"; 608 function = "gpio"; 838 609 839 bias-disable; 610 bias-disable; 840 }; 611 }; 841 612 842 pcie2_default_state: pcie2-default-sta 613 pcie2_default_state: pcie2-default-state { 843 clkreq-pins { 614 clkreq-pins { 844 pins = "gpio176"; 615 pins = "gpio176"; 845 function = "pci_e2"; 616 function = "pci_e2"; 846 bias-pull-up; 617 bias-pull-up; 847 }; 618 }; 848 619 849 reset-n-pins { 620 reset-n-pins { 850 pins = "gpio175"; 621 pins = "gpio175"; 851 function = "gpio"; 622 function = "gpio"; 852 623 853 drive-strength = <2>; 624 drive-strength = <2>; 854 output-low; 625 output-low; 855 bias-pull-down; 626 bias-pull-down; 856 }; 627 }; 857 628 858 wake-n-pins { 629 wake-n-pins { 859 pins = "gpio177"; 630 pins = "gpio177"; 860 function = "gpio"; 631 function = "gpio"; 861 632 862 drive-strength = <2>; 633 drive-strength = <2>; 863 bias-pull-up; 634 bias-pull-up; 864 }; 635 }; 865 }; 636 }; 866 637 867 usbprim_sbu_default: usbprim-sbu-state << 868 oe-n-pins { << 869 pins = "gpio152"; << 870 function = "gpio"; << 871 bias-disable; << 872 drive-strength = <16>; << 873 output-high; << 874 }; << 875 << 876 sel-pins { << 877 pins = "gpio100"; << 878 function = "gpio"; << 879 bias-disable; << 880 drive-strength = <16>; << 881 }; << 882 }; << 883 << 884 usbsec_sbu_default: usbsec-sbu-state { << 885 oe-n-pins { << 886 pins = "gpio188"; << 887 function = "gpio"; << 888 bias-disable; << 889 drive-strength = <16>; << 890 output-high; << 891 }; << 892 << 893 sel-pins { << 894 pins = "gpio187"; << 895 function = "gpio"; << 896 bias-disable; << 897 drive-strength = <16>; << 898 }; << 899 }; << 900 << 901 tp_int_active_state: tp-int-active-sta 638 tp_int_active_state: tp-int-active-state { 902 tp-int-pins { 639 tp-int-pins { 903 pins = "gpio24"; 640 pins = "gpio24"; 904 function = "gpio"; 641 function = "gpio"; 905 642 906 bias-disable; 643 bias-disable; >> 644 input-enable; 907 }; 645 }; 908 646 909 tp-close-n-pins { 647 tp-close-n-pins { 910 pins = "gpio116"; 648 pins = "gpio116"; 911 function = "gpio"; 649 function = "gpio"; 912 650 913 bias-disable; 651 bias-disable; >> 652 input-enable; 914 }; 653 }; 915 }; 654 }; 916 655 917 ts_active_state: ts-active-state { 656 ts_active_state: ts-active-state { 918 int-n-pins { 657 int-n-pins { 919 pins = "gpio122"; 658 pins = "gpio122"; 920 function = "gpio"; 659 function = "gpio"; 921 660 >> 661 input-enable; 922 bias-disable; 662 bias-disable; 923 }; 663 }; 924 664 925 reset-n-pins { 665 reset-n-pins { 926 pins = "gpio54"; 666 pins = "gpio54"; 927 function = "gpio"; 667 function = "gpio"; 928 668 929 output-high; 669 output-high; 930 }; 670 }; 931 }; 671 }; 932 672 933 ts_i2c_active_state: ts-i2c-active-sta 673 ts_i2c_active_state: ts-i2c-active-state { 934 pins = "gpio114", "gpio115"; 674 pins = "gpio114", "gpio115"; 935 function = "qup1"; 675 function = "qup1"; 936 676 937 /* External pull up */ 677 /* External pull up */ 938 bias-disable; 678 bias-disable; 939 drive-strength = <2>; 679 drive-strength = <2>; 940 }; 680 }; 941 681 942 uart13_state: uart13-state { 682 uart13_state: uart13-state { 943 cts-pins { 683 cts-pins { 944 pins = "gpio43"; 684 pins = "gpio43"; 945 function = "qup13"; 685 function = "qup13"; 946 bias-pull-down; 686 bias-pull-down; 947 }; 687 }; 948 688 949 rts-tx-pins { 689 rts-tx-pins { 950 pins = "gpio44", "gpio 690 pins = "gpio44", "gpio45"; 951 function = "qup13"; 691 function = "qup13"; 952 drive-strength = <2>; 692 drive-strength = <2>; 953 bias-disable; 693 bias-disable; 954 }; 694 }; 955 695 956 rx-pins { 696 rx-pins { 957 pins = "gpio46"; 697 pins = "gpio46"; 958 function = "qup13"; 698 function = "qup13"; 959 bias-pull-up; 699 bias-pull-up; 960 }; 700 }; 961 }; 701 }; 962 }; 702 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.