Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003  * Copyright (c) 2021, AngeloGioacchino Del Regno
0004  *                     <angelogioacchino.delregno@somainline.org>
0005  * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
0006  */
0007 
0008 #include <dt-bindings/input/input.h>
0009 #include <dt-bindings/leds/common.h>
0010 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
0011 #include "msm8998.dtsi"
0012 #include "pm8005.dtsi"
0013 #include "pm8998.dtsi"
0014 #include "pmi8998.dtsi"
0015 
0016 / {
0017         /* required for bootloader to select correct board */
0018         qcom,msm-id = <0x124 0x20000>, <0x124 0x20001>; /* 8998v2, v2.1 */
0019         qcom,board-id = <8 0>;
0020 
0021         clocks {
0022                 div1_mclk: divclk1 {
0023                         compatible = "gpio-gate-clock";
0024                         pinctrl-0 = <&audio_mclk_pin>;
0025                         pinctrl-names = "default";
0026                         clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
0027                         #clock-cells = <0>;
0028                         enable-gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>;
0029                 };
0030         };
0031 
0032         board_vbat: vbat-regulator {
0033                 compatible = "regulator-fixed";
0034                 regulator-name = "VBAT";
0035 
0036                 regulator-min-microvolt = <4000000>;
0037                 regulator-max-microvolt = <4000000>;
0038                 regulator-always-on;
0039                 regulator-boot-on;
0040         };
0041 
0042         cam0_vdig_vreg: cam0-vdig {
0043                 compatible = "regulator-fixed";
0044                 regulator-name = "cam0_vdig";
0045                 startup-delay-us = <0>;
0046                 enable-active-high;
0047                 gpio = <&tlmm 21 GPIO_ACTIVE_HIGH>;
0048                 pinctrl-names = "default";
0049                 pinctrl-0 = <&cam0_vdig_default>;
0050         };
0051 
0052         cam1_vdig_vreg: cam1-vdig {
0053                 compatible = "regulator-fixed";
0054                 regulator-name = "cam1_vdig";
0055                 startup-delay-us = <0>;
0056                 enable-active-high;
0057                 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
0058                 pinctrl-names = "default";
0059                 pinctrl-0 = <&cam1_vdig_default>;
0060                 vin-supply = <&vreg_s3a_1p35>;
0061         };
0062 
0063         cam_vio_vreg: cam-vio-vreg {
0064                 compatible = "regulator-fixed";
0065                 regulator-name = "cam_vio_vreg";
0066                 startup-delay-us = <0>;
0067                 enable-active-high;
0068                 gpio = <&pmi8998_gpio 1 GPIO_ACTIVE_HIGH>;
0069                 pinctrl-names = "default";
0070                 pinctrl-0 = <&cam_vio_default>;
0071                 vin-supply = <&vreg_lvs1a_1p8>;
0072         };
0073 
0074         touch_vddio_vreg: touch-vddio-vreg {
0075                 compatible = "regulator-fixed";
0076                 regulator-name = "touch_vddio_vreg";
0077                 startup-delay-us = <10000>;
0078                 gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>;
0079                 pinctrl-names = "default";
0080                 pinctrl-0 = <&ts_vddio_en>;
0081         };
0082 
0083         vph_pwr: vph-pwr-regulator {
0084                 compatible = "regulator-fixed";
0085                 regulator-name = "vph_pwr";
0086                 regulator-always-on;
0087                 regulator-boot-on;
0088         };
0089 
0090         extcon_usb: extcon-usb {
0091                 compatible = "linux,extcon-usb-gpio";
0092                 id-gpio = <&tlmm 38 GPIO_ACTIVE_HIGH>;
0093                 vbus-gpio = <&tlmm 128 GPIO_ACTIVE_HIGH>;
0094                 pinctrl-names = "default";
0095                 pinctrl-0 = <&usb_extcon_active &usb_vbus_active>;
0096         };
0097 
0098         gpio-keys {
0099                 compatible = "gpio-keys";
0100                 label = "Side buttons";
0101                 pinctrl-names = "default";
0102                 pinctrl-0 = <&vol_down_pin_a>, <&cam_focus_pin_a>,
0103                             <&cam_snapshot_pin_a>;
0104                 button-vol-down {
0105                         label = "Volume Down";
0106                         gpios = <&pm8998_gpio 5 GPIO_ACTIVE_LOW>;
0107                         linux,input-type = <EV_KEY>;
0108                         linux,code = <KEY_VOLUMEDOWN>;
0109                         gpio-key,wakeup;
0110                         debounce-interval = <15>;
0111                 };
0112 
0113                 button-camera-snapshot {
0114                         label = "Camera Snapshot";
0115                         gpios = <&pm8998_gpio 7 GPIO_ACTIVE_LOW>;
0116                         linux,input-type = <EV_KEY>;
0117                         linux,code = <KEY_CAMERA>;
0118                         debounce-interval = <15>;
0119                 };
0120 
0121                 button-camera-focus {
0122                         label = "Camera Focus";
0123                         gpios = <&pm8998_gpio 8 GPIO_ACTIVE_LOW>;
0124                         linux,input-type = <EV_KEY>;
0125                         linux,code = <KEY_CAMERA_FOCUS>;
0126                         debounce-interval = <15>;
0127                 };
0128         };
0129 
0130         gpio-hall-sensor {
0131                 compatible = "gpio-keys";
0132                 label = "Hall sensors";
0133                 pinctrl-names = "default";
0134                 pinctrl-0 = <&hall_sensor0_default>;
0135 
0136                 event-hall-sensor0 {
0137                         label = "Cover Hall Sensor";
0138                         gpios = <&tlmm 124 GPIO_ACTIVE_LOW>;
0139                         linux,input-type = <EV_SW>;
0140                         linux,code = <SW_LID>;
0141                         gpio-key,wakeup;
0142                         debounce-interval = <30>;
0143                 };
0144         };
0145 
0146         reserved-memory {
0147                 #address-cells = <2>;
0148                 #size-cells = <2>;
0149                 ranges;
0150 
0151                 hyp_mem: memory@85800000 {
0152                         reg = <0x0 0x85800000 0x0 0x3700000>;
0153                         no-map;
0154                 };
0155 
0156                 cont_splash_mem: memory@9d400000 {
0157                         reg = <0x0 0x9d400000 0x0 0x2400000>;
0158                         no-map;
0159                 };
0160 
0161                 zap_shader_region: memory@f6400000 {
0162                         compatible = "shared-dma-pool";
0163                         reg = <0x0 0xf6400000 0x0 0x2000>;
0164                         no-map;
0165                 };
0166 
0167                 adsp_region: memory@fe000000 {
0168                         reg = <0x0 0xfe000000 0x0 0x800000>;
0169                         no-map;
0170                 };
0171 
0172                 qseecom_region: memory@fe800000 {
0173                         reg = <0x0 0xfe800000 0x0 0x1400000>;
0174                         no-map;
0175                 };
0176 
0177                 ramoops@ffc00000 {
0178                         compatible = "ramoops";
0179                         reg = <0x0 0xffc00000 0x0 0x100000>;
0180                         record-size = <0x10000>;
0181                         console-size = <0x60000>;
0182                         ftrace-size = <0x10000>;
0183                         pmsg-size = <0x20000>;
0184                         ecc-size = <16>;
0185                 };
0186         };
0187 
0188         vibrator {
0189                 compatible = "gpio-vibrator";
0190                 enable-gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>;
0191                 pinctrl-names = "default";
0192                 pinctrl-0 = <&vib_default>;
0193         };
0194 };
0195 
0196 &blsp1_i2c5 {
0197         status = "okay";
0198         clock-frequency = <355000>;
0199 
0200         touchscreen@2c {
0201                 compatible = "syna,rmi4-i2c";
0202                 reg = <0x2c>;
0203                 #address-cells = <1>;
0204                 #size-cells = <0>;
0205                 interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>;
0206 
0207                 pinctrl-names = "default";
0208                 pinctrl-0 = <&ts_int_n>;
0209 
0210                 vdd-supply = <&vreg_l28_3p0>;
0211                 vio-supply = <&touch_vddio_vreg>;
0212 
0213                 syna,reset-delay-ms = <220>;
0214                 syna,startup-delay-ms = <1000>;
0215 
0216                 rmi4-f01@1 {
0217                         reg = <0x01>;
0218                         syna,nosleep-mode = <1>;
0219                 };
0220 
0221                 rmi4-f11@11 {
0222                         reg = <0x11>;
0223                         syna,sensor-type = <1>;
0224                 };
0225         };
0226 };
0227 
0228 &blsp1_i2c5_sleep {
0229         bias-disable;
0230 };
0231 
0232 &blsp1_uart3 {
0233         status = "okay";
0234 
0235         bluetooth {
0236                 compatible = "qcom,wcn3990-bt";
0237 
0238                 vddio-supply = <&vreg_s4a_1p8>;
0239                 vddxo-supply = <&vreg_l7a_1p8>;
0240                 vddrf-supply = <&vreg_l17a_1p3>;
0241                 vddch0-supply = <&vreg_l25a_3p3>;
0242                 max-speed = <3200000>;
0243 
0244                 clocks = <&rpmcc RPM_SMD_RF_CLK2_PIN>;
0245         };
0246 };
0247 
0248 &blsp2_uart1 {
0249         status = "okay";
0250 };
0251 
0252 &blsp2_i2c2 {
0253         status = "okay";
0254 
0255         proximity@29 {
0256                 compatible = "st,vl53l0x";
0257                 reg = <0x29>;
0258 
0259                 interrupt-parent = <&tlmm>;
0260                 interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
0261 
0262                 reset-gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
0263                 vdd-supply = <&cam_vio_vreg>;
0264 
0265                 pinctrl-names = "default";
0266                 pinctrl-0 = <&tof_int &tof_reset>;
0267         };
0268 };
0269 
0270 &ibb {
0271         regulator-min-microamp = <800000>;
0272         regulator-max-microamp = <800000>;
0273         regulator-enable-ramp-delay = <200>;
0274         regulator-over-current-protection;
0275         regulator-pull-down;
0276         regulator-ramp-delay = <1>;
0277         regulator-settling-time-up-us = <600>;
0278         regulator-settling-time-down-us = <1000>;
0279         regulator-soft-start;
0280         qcom,discharge-resistor-kohms = <300>;
0281 };
0282 
0283 &lab {
0284         regulator-min-microamp = <200000>;
0285         regulator-max-microamp = <200000>;
0286         regulator-enable-ramp-delay = <500>;
0287         regulator-over-current-protection;
0288         regulator-pull-down;
0289         regulator-ramp-delay = <1>;
0290         regulator-settling-time-up-us = <50000>;
0291         regulator-settling-time-down-us = <3000>;
0292         regulator-soft-start;
0293 };
0294 
0295 &pm8005_regulators {
0296         /* VDD_GFX supply */
0297         pm8005_s1: s1 {
0298                 regulator-min-microvolt = <524000>;
0299                 regulator-max-microvolt = <1088000>;
0300                 regulator-enable-ramp-delay = <500>;
0301                 /* Hack until we rig up the gpu consumer */
0302                 regulator-always-on;
0303         };
0304 };
0305 
0306 &pm8998_gpio {
0307         vol_down_pin_a: vol-down-active-state {
0308                 pins = "gpio5";
0309                 function = PMIC_GPIO_FUNC_NORMAL;
0310                 bias-pull-up;
0311                 input-enable;
0312                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
0313         };
0314 
0315         cam_focus_pin_a: cam-focus-btn-active-state {
0316                 pins = "gpio7";
0317                 function = PMIC_GPIO_FUNC_NORMAL;
0318                 bias-pull-up;
0319                 input-enable;
0320                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
0321         };
0322 
0323         cam_snapshot_pin_a: cam-snapshot-btn-active-state {
0324                 pins = "gpio8";
0325                 function = PMIC_GPIO_FUNC_NORMAL;
0326                 bias-pull-up;
0327                 input-enable;
0328                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
0329         };
0330 
0331         audio_mclk_pin: audio-mclk-pin-active-state {
0332                 pins = "gpio13";
0333                 function = "func2";
0334                 power-source = <0>;
0335         };
0336 };
0337 
0338 &pmi8998_gpio {
0339         cam_vio_default: cam-vio-active-state {
0340                 pins = "gpio1";
0341                 function = PMIC_GPIO_FUNC_NORMAL;
0342                 bias-disable;
0343                 drive-push-pull;
0344                 output-low;
0345                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
0346                 power-source = <1>;
0347         };
0348 
0349         vib_default: vib-en-state {
0350                 pins = "gpio5";
0351                 function = PMIC_GPIO_FUNC_NORMAL;
0352                 bias-disable;
0353                 drive-push-pull;
0354                 output-low;
0355                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
0356                 power-source = <0>;
0357         };
0358 };
0359 
0360 &pm8998_pon {
0361         resin {
0362                 compatible = "qcom,pm8941-resin";
0363                 interrupts = <GIC_SPI 0x8 1 IRQ_TYPE_EDGE_BOTH>;
0364                 debounce = <15625>;
0365                 bias-pull-up;
0366                 linux,code = <KEY_VOLUMEUP>;
0367         };
0368 };
0369 
0370 &qusb2phy {
0371         status = "okay";
0372 
0373         vdda-pll-supply = <&vreg_l12a_1p8>;
0374         vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
0375 };
0376 
0377 &rpm_requests {
0378         pm8998-regulators {
0379                 compatible = "qcom,rpm-pm8998-regulators";
0380 
0381                 vdd_s1-supply = <&vph_pwr>;
0382                 vdd_s2-supply = <&vph_pwr>;
0383                 vdd_s3-supply = <&vph_pwr>;
0384                 vdd_s4-supply = <&vph_pwr>;
0385                 vdd_s5-supply = <&vph_pwr>;
0386                 vdd_s6-supply = <&vph_pwr>;
0387                 vdd_s7-supply = <&vph_pwr>;
0388                 vdd_s8-supply = <&vph_pwr>;
0389                 vdd_s9-supply = <&vph_pwr>;
0390                 vdd_s10-supply = <&vph_pwr>;
0391                 vdd_s11-supply = <&vph_pwr>;
0392                 vdd_s12-supply = <&vph_pwr>;
0393                 vdd_s13-supply = <&vph_pwr>;
0394                 vdd_l1_l27-supply = <&vreg_s7a_1p025>;
0395                 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
0396                 vdd_l3_l11-supply = <&vreg_s7a_1p025>;
0397                 vdd_l4_l5-supply = <&vreg_s7a_1p025>;
0398                 vdd_l6-supply = <&vreg_s5a_2p04>;
0399                 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
0400                 vdd_l9-supply = <&vreg_bob>;
0401                 vdd_l10_l23_l25-supply = <&vreg_bob>;
0402                 vdd_l13_l19_l21-supply = <&vreg_bob>;
0403                 vdd_l16_l28-supply = <&vreg_bob>;
0404                 vdd_l18_l22-supply = <&vreg_bob>;
0405                 vdd_l20_l24-supply = <&vreg_bob>;
0406                 vdd_l26-supply = <&vreg_s3a_1p35>;
0407                 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
0408 
0409                 vreg_s3a_1p35: s3 {
0410                         regulator-min-microvolt = <1352000>;
0411                         regulator-max-microvolt = <1352000>;
0412                 };
0413                 vreg_s4a_1p8: s4 {
0414                         regulator-min-microvolt = <1800000>;
0415                         regulator-max-microvolt = <1800000>;
0416                         regulator-system-load = <100000>;
0417                         regulator-allow-set-load;
0418                 };
0419                 vreg_s5a_2p04: s5 {
0420                         regulator-min-microvolt = <1904000>;
0421                         regulator-max-microvolt = <2032000>;
0422                 };
0423                 vreg_s7a_1p025: s7 {
0424                         regulator-min-microvolt = <900000>;
0425                         regulator-max-microvolt = <1028000>;
0426                 };
0427                 vreg_l1a_0p875: l1 {
0428                         regulator-min-microvolt = <880000>;
0429                         regulator-max-microvolt = <880000>;
0430                         regulator-system-load = <73400>;
0431                         regulator-allow-set-load;
0432                 };
0433                 vreg_l2a_1p2: l2 {
0434                         regulator-min-microvolt = <1200000>;
0435                         regulator-max-microvolt = <1200000>;
0436                         regulator-system-load = <12560>;
0437                         regulator-allow-set-load;
0438                 };
0439                 vreg_l3a_1p0: l3 {
0440                         regulator-min-microvolt = <1000000>;
0441                         regulator-max-microvolt = <1000000>;
0442                 };
0443                 vreg_l5a_0p8: l5 {
0444                         regulator-min-microvolt = <800000>;
0445                         regulator-max-microvolt = <800000>;
0446                 };
0447                 vreg_l6a_1p8: l6 {
0448                         regulator-min-microvolt = <1800000>;
0449                         regulator-max-microvolt = <1800000>;
0450                 };
0451                 vreg_l7a_1p8: l7 {
0452                         regulator-min-microvolt = <1800000>;
0453                         regulator-max-microvolt = <1800000>;
0454                 };
0455                 vreg_l8a_1p2: l8 {
0456                         regulator-min-microvolt = <1200000>;
0457                         regulator-max-microvolt = <1200000>;
0458                 };
0459                 vreg_l9a_1p8: l9 {
0460                         regulator-min-microvolt = <1808000>;
0461                         regulator-max-microvolt = <2960000>;
0462                 };
0463                 vreg_l10a_1p8: l10 {
0464                         regulator-min-microvolt = <1808000>;
0465                         regulator-max-microvolt = <2960000>;
0466                 };
0467                 vreg_l11a_1p0: l11 {
0468                         regulator-min-microvolt = <1000000>;
0469                         regulator-max-microvolt = <1000000>;
0470                 };
0471                 vreg_l12a_1p8: l12 {
0472                         regulator-min-microvolt = <1800000>;
0473                         regulator-max-microvolt = <1800000>;
0474                 };
0475                 vreg_l13a_2p95: l13 {
0476                         regulator-min-microvolt = <1808000>;
0477                         regulator-max-microvolt = <2960000>;
0478                         regulator-allow-set-load;
0479                 };
0480                 vreg_l14a_1p85: l14 {
0481                         regulator-min-microvolt = <1848000>;
0482                         regulator-max-microvolt = <1856000>;
0483                         regulator-system-load = <32000>;
0484                         regulator-allow-set-load;
0485                 };
0486                 vreg_l15a_1p8: l15 {
0487                         regulator-min-microvolt = <1800000>;
0488                         regulator-max-microvolt = <1800000>;
0489                 };
0490                 vreg_l16a_2p7: l16 {
0491                         regulator-min-microvolt = <2704000>;
0492                         regulator-max-microvolt = <2704000>;
0493                 };
0494                 vreg_l17a_1p3: l17 {
0495                         regulator-min-microvolt = <1304000>;
0496                         regulator-max-microvolt = <1304000>;
0497                 };
0498                 vreg_l18a_2p85: l18 {};
0499                 vreg_l19a_2p7: l19 {
0500                         regulator-min-microvolt = <2696000>;
0501                         regulator-max-microvolt = <2704000>;
0502                 };
0503                 vreg_l20a_2p95: l20 {
0504                         regulator-min-microvolt = <2960000>;
0505                         regulator-max-microvolt = <2960000>;
0506                         regulator-system-load = <10000>;
0507                         regulator-allow-set-load;
0508                 };
0509                 vreg_l21a_2p95: l21 {
0510                         regulator-min-microvolt = <2960000>;
0511                         regulator-max-microvolt = <2960000>;
0512                         regulator-system-load = <800000>;
0513                         regulator-allow-set-load;
0514                 };
0515                 vreg_l22a_2p85: l22 { };
0516                 vreg_l23a_3p3: l23 {
0517                         regulator-min-microvolt = <3312000>;
0518                         regulator-max-microvolt = <3312000>;
0519                 };
0520                 vreg_l24a_3p075: l24 {
0521                         regulator-min-microvolt = <3088000>;
0522                         regulator-max-microvolt = <3088000>;
0523                 };
0524                 vreg_l25a_3p3: l25 {
0525                         regulator-min-microvolt = <3104000>;
0526                         regulator-max-microvolt = <3312000>;
0527                 };
0528                 vreg_l26a_1p2: l26 {
0529                         regulator-min-microvolt = <1200000>;
0530                         regulator-max-microvolt = <1200000>;
0531                         regulator-allow-set-load;
0532                 };
0533                 vreg_l28_3p0: l28 {
0534                         regulator-min-microvolt = <3000000>;
0535                         regulator-max-microvolt = <3000000>;
0536                 };
0537                 vreg_lvs1a_1p8: lvs1 { };
0538                 vreg_lvs2a_1p8: lvs2 { };
0539         };
0540 
0541         pmi8998-regulators {
0542                 compatible = "qcom,rpm-pmi8998-regulators";
0543 
0544                 vdd_bob-supply = <&vph_pwr>;
0545 
0546                 vreg_bob: bob {
0547                         regulator-min-microvolt = <3312000>;
0548                         regulator-max-microvolt = <3600000>;
0549                 };
0550         };
0551 };
0552 
0553 &sdhc2 {
0554         status = "okay";
0555         cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
0556 
0557         vmmc-supply = <&vreg_l21a_2p95>;
0558         vqmmc-supply = <&vreg_l13a_2p95>;
0559 
0560         pinctrl-names = "default", "sleep";
0561         pinctrl-0 = <&sdc2_on &sdc2_cd>;
0562         pinctrl-1 = <&sdc2_off &sdc2_cd>;
0563 };
0564 
0565 &tlmm {
0566         gpio-reserved-ranges = <0 4>, <81 4>;
0567 
0568         mdp_vsync_n: mdp-vsync-n {
0569                 pins = "gpio10";
0570                 function = "mdp_vsync_a";
0571                 drive-strength = <2>;
0572                 bias-pull-down;
0573         };
0574 
0575         nfc_ven: nfc-ven {
0576                 pins = "gpio12";
0577                 function = "gpio";
0578                 bias-disable;
0579                 drive-strength = <2>;
0580                 output-low;
0581         };
0582 
0583         msm_mclk0_default: msm-mclk0-active {
0584                 pins = "gpio13";
0585                 function = "cam_mclk";
0586                 drive-strength = <2>;
0587                 bias-disable;
0588         };
0589 
0590         msm_mclk1_default: msm-mclk1-active {
0591                 pins = "gpio14";
0592                 function = "cam_mclk";
0593                 drive-strength = <2>;
0594                 bias-disable;
0595         };
0596 
0597         cci0_default: cci0-default {
0598                 pins = "gpio18", "gpio19";
0599                 function = "cci_i2c";
0600                 bias-disable;
0601                 drive-strength = <2>;
0602         };
0603 
0604         cci1_default: cci1-default {
0605                 pins = "gpio19", "gpio20";
0606                 function = "cci_i2c";
0607                 bias-disable;
0608                 drive-strength = <2>;
0609         };
0610 
0611         cam0_vdig_default: cam0-vdig-default {
0612                 pins = "gpio21";
0613                 function = "gpio";
0614                 bias-disable;
0615                 drive-strength = <2>;
0616         };
0617 
0618         tof_int: tof-int {
0619                 pins = "gpio22";
0620                 function = "gpio";
0621                 bias-pull-up;
0622                 drive-strength = <2>;
0623                 input-enable;
0624         };
0625 
0626         cam1_vdig_default: cam1-vdig-default {
0627                 pins = "gpio25";
0628                 function = "gpio";
0629                 bias-disable;
0630                 drive-strength = <2>;
0631         };
0632 
0633         usb_extcon_active: usb-extcon-active {
0634                 pins = "gpio38";
0635                 function = "gpio";
0636                 bias-disable;
0637                 drive-strength = <16>;
0638         };
0639 
0640         tof_reset: tof-reset {
0641                 pins = "gpio27";
0642                 function = "gpio";
0643                 bias-disable;
0644                 drive-strength = <2>;
0645         };
0646 
0647         hall_sensor0_default: acc-cover-open {
0648                 pins = "gpio124";
0649                 function = "gpio";
0650                 bias-disable;
0651                 drive-strength = <2>;
0652                 input-enable;
0653         };
0654 
0655         ts_int_n: ts-int-n {
0656                 pins = "gpio125";
0657                 function = "gpio";
0658                 drive-strength = <8>;
0659                 bias-pull-up;
0660         };
0661 
0662         usb_vbus_active: usb-vbus-active {
0663                 pins = "gpio128";
0664                 function = "gpio";
0665                 bias-disable;
0666                 drive-strength = <2>;
0667                 output-low;
0668         };
0669 
0670         ts_vddio_en: ts-vddio-en-default {
0671                 pins = "gpio133";
0672                 function = "gpio";
0673                 bias-disable;
0674                 drive-strength = <2>;
0675                 output-low;
0676         };
0677 };
0678 
0679 /*
0680  * WARNING:
0681  * Disable UFS until card quirks are in to avoid unrecoverable hard-brick
0682  * that would happen as soon as the UFS card gets probed as, without the
0683  * required quirks, the bootloader will be erased right after card probe.
0684  */
0685 &ufshc {
0686         status = "disabled";
0687 };
0688 
0689 &ufsphy {
0690         status = "disabled";
0691 };
0692 
0693 &usb3 {
0694         status = "okay";
0695 };
0696 
0697 &usb3_dwc3 {
0698         /* Force to peripheral until we have Type-C hooked up */
0699         dr_mode = "peripheral";
0700         extcon = <&extcon_usb>;
0701 };
0702 
0703 &usb3phy {
0704         status = "okay";
0705 
0706         vdda-phy-supply = <&vreg_l1a_0p875>;
0707         vdda-pll-supply = <&vreg_l2a_1p2>;
0708 };