Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003  * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
0004  */
0005 
0006 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
0007 #include "sm8250.dtsi"
0008 #include "pm8150.dtsi"
0009 #include "pm8150b.dtsi"
0010 #include "pm8150l.dtsi"
0011 #include "pm8009.dtsi"
0012 
0013 /delete-node/ &adsp_mem;
0014 /delete-node/ &spss_mem;
0015 /delete-node/ &cdsp_secure_heap;
0016 
0017 / {
0018         qcom,msm-id = <356 0x20001>; /* SM8250 v2.1 */
0019         qcom,board-id = <0x10008 0>;
0020 
0021         chosen {
0022                 #address-cells = <2>;
0023                 #size-cells = <2>;
0024                 ranges;
0025 
0026                 framebuffer: framebuffer@9c000000 {
0027                         compatible = "simple-framebuffer";
0028                         reg = <0 0x9c000000 0 0x2300000>;
0029                         width = <1644>;
0030                         height = <3840>;
0031                         stride = <(1644 * 4)>;
0032                         format = "a8r8g8b8";
0033                         /*
0034                          * That's a lot of clocks, but it's necessary due
0035                          * to unused clk cleanup & no panel driver yet..
0036                          */
0037                         clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
0038                                  <&gcc GCC_DISP_HF_AXI_CLK>,
0039                                  <&gcc GCC_DISP_SF_AXI_CLK>,
0040                                  <&dispcc DISP_CC_MDSS_VSYNC_CLK>,
0041                                  <&dispcc DISP_CC_MDSS_MDP_CLK>,
0042                                  <&dispcc DISP_CC_MDSS_BYTE0_CLK>,
0043                                  <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>,
0044                                  <&dispcc DISP_CC_MDSS_PCLK0_CLK>,
0045                                  <&dispcc DISP_CC_MDSS_ESC0_CLK>;
0046                         power-domains = <&dispcc MDSS_GDSC>;
0047                 };
0048         };
0049 
0050         gpio_keys: gpio-keys {
0051                 compatible = "gpio-keys";
0052 
0053                 /*
0054                  * Camera focus (light press) and camera snapshot (full press)
0055                  * seem not to work properly.. Adding the former one stalls the CPU
0056                  * and the latter kills the volume down key for whatever reason. In any
0057                  * case, they are both on &pm8150b_gpios: camera focus(2), camera snapshot(1).
0058                  */
0059 
0060                 key-vol-down {
0061                         label = "Volume Down";
0062                         linux,code = <KEY_VOLUMEDOWN>;
0063                         gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>;
0064                         debounce-interval = <15>;
0065                         linux,can-disable;
0066                         gpio-key,wakeup;
0067                 };
0068         };
0069 
0070         vph_pwr: vph-pwr-regulator {
0071                 compatible = "regulator-fixed";
0072                 regulator-name = "vph_pwr";
0073                 regulator-min-microvolt = <3700000>;
0074                 regulator-max-microvolt = <3700000>;
0075         };
0076 
0077         /* S6c is really ebi.lvl but it's there for supply map completeness sake. */
0078         vreg_s6c_0p88: smpc6-regulator {
0079                 compatible = "regulator-fixed";
0080                 regulator-name = "vreg_s6c_0p88";
0081 
0082                 regulator-min-microvolt = <880000>;
0083                 regulator-max-microvolt = <880000>;
0084                 regulator-always-on;
0085                 vin-supply = <&vph_pwr>;
0086         };
0087 
0088         reserved-memory {
0089                 adsp_mem: memory@8a100000 {
0090                         reg = <0x0 0x8a100000 0x0 0x2500000>;
0091                         no-map;
0092                 };
0093 
0094                 spss_mem: memory@8c600000 {
0095                         reg = <0x0 0x8c600000 0x0 0x100000>;
0096                         no-map;
0097                 };
0098 
0099                 cdsp_secure_heap: memory@8c700000 {
0100                         reg = <0x0 0x8c700000 0x0 0x4600000>;
0101                         no-map;
0102                 };
0103 
0104                 cont_splash_mem: memory@9c000000 {
0105                         reg = <0x0 0x9c000000 0x0 0x2300000>;
0106                         no-map;
0107                 };
0108 
0109                 ramoops@ffc00000 {
0110                         compatible = "ramoops";
0111                         reg = <0x0 0xffc00000 0x0 0x100000>;
0112                         record-size = <0x1000>;
0113                         console-size = <0x40000>;
0114                         msg-size = <0x20000 0x20000>;
0115                         ecc-size = <16>;
0116                         no-map;
0117                 };
0118         };
0119 };
0120 
0121 &adsp {
0122         status = "okay";
0123 };
0124 
0125 &apps_rsc {
0126         pm8150-rpmh-regulators {
0127                 compatible = "qcom,pm8150-rpmh-regulators";
0128                 qcom,pmic-id = "a";
0129 
0130                 vdd-s1-supply = <&vph_pwr>;
0131                 vdd-s2-supply = <&vph_pwr>;
0132                 vdd-s3-supply = <&vph_pwr>;
0133                 vdd-s4-supply = <&vph_pwr>;
0134                 vdd-s5-supply = <&vph_pwr>;
0135                 vdd-s6-supply = <&vph_pwr>;
0136                 vdd-s7-supply = <&vph_pwr>;
0137                 vdd-s8-supply = <&vph_pwr>;
0138                 vdd-s9-supply = <&vph_pwr>;
0139                 vdd-s10-supply = <&vph_pwr>;
0140                 vdd-l1-l8-l11-supply = <&vreg_s6c_0p88>;
0141                 vdd-l2-l10-supply = <&vreg_bob>;
0142                 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p6>;
0143                 vdd-l6-l9-supply = <&vreg_s8c_1p2>;
0144                 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>;
0145                 vdd-l13-l16-l17-supply = <&vreg_bob>;
0146 
0147                 /* (S1+S2+S3) - cx.lvl (ARC) */
0148 
0149                 vreg_s4a_1p8: smps4 {
0150                         regulator-name = "vreg_s4a_1p8";
0151                         regulator-min-microvolt = <1800000>;
0152                         regulator-max-microvolt = <1920000>;
0153                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0154                 };
0155 
0156                 vreg_s5a_1p9: smps5 {
0157                         regulator-name = "vreg_s5a_1p9";
0158                         regulator-min-microvolt = <1824000>;
0159                         regulator-max-microvolt = <2040000>;
0160                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0161                 };
0162 
0163                 vreg_s6a_0p6: smps6 {
0164                         regulator-name = "vreg_s6a_0p6";
0165                         regulator-min-microvolt = <600000>;
0166                         regulator-max-microvolt = <1128000>;
0167                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0168                 };
0169 
0170                 vreg_l2a_3p1: ldo2 {
0171                         regulator-name = "vreg_l2a_3p1";
0172                         regulator-min-microvolt = <3072000>;
0173                         regulator-max-microvolt = <3072000>;
0174                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0175                 };
0176 
0177                 vreg_l3a_0p9: ldo3 {
0178                         regulator-name = "vreg_l3a_0p9";
0179                         regulator-min-microvolt = <928000>;
0180                         regulator-max-microvolt = <932000>;
0181                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0182                 };
0183 
0184                 /* L4 - lmx.lvl (ARC) */
0185 
0186                 vreg_l5a_0p88: ldo5 {
0187                         regulator-name = "vreg_l5a_0p88";
0188                         regulator-min-microvolt = <880000>;
0189                         regulator-max-microvolt = <880000>;
0190                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0191                 };
0192 
0193                 vreg_l6a_1p2: ldo6 {
0194                         regulator-name = "vreg_l6a_1p2";
0195                         regulator-min-microvolt = <1200000>;
0196                         regulator-max-microvolt = <1200000>;
0197                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0198                 };
0199 
0200                 /* L7 is unused. */
0201 
0202                 vreg_l9a_1p2: ldo9 {
0203                         regulator-name = "vreg_l9a_1p2";
0204                         regulator-min-microvolt = <1200000>;
0205                         regulator-max-microvolt = <1200000>;
0206                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0207                 };
0208 
0209                 /* L10 is unused, L11 - lcx.lvl (ARC) */
0210 
0211                 vreg_l12a_1p8: ldo12 {
0212                         regulator-name = "vreg_l12a_1p8";
0213                         regulator-min-microvolt = <1800000>;
0214                         regulator-max-microvolt = <1800000>;
0215                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0216                 };
0217 
0218                 /* L13 is unused. */
0219 
0220                 vreg_l14a_1p8: ldo14 {
0221                         regulator-name = "vreg_l14a_1p8";
0222                         regulator-min-microvolt = <1800000>;
0223                         regulator-max-microvolt = <1880000>;
0224                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0225                 };
0226 
0227                 /* L15 & L16 are unused. */
0228 
0229                 vreg_l17a_3p0: ldo17 {
0230                         regulator-name = "vreg_l17a_3p0";
0231                         regulator-min-microvolt = <2496000>;
0232                         regulator-max-microvolt = <3008000>;
0233                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0234                 };
0235 
0236                 vreg_l18a_0p9: ldo18 {
0237                         regulator-name = "vreg_l18a_0p9";
0238                         regulator-min-microvolt = <800000>;
0239                         regulator-max-microvolt = <920000>;
0240                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0241                 };
0242         };
0243 
0244         /*
0245          * Remaining regulators that are not yet supported:
0246          * OLEDB: 4925000-8100000
0247          * ab: 4600000-6100000
0248          * ibb: 800000-5400000
0249          */
0250         pm8150l-rpmh-regulators {
0251                 compatible = "qcom,pm8150l-rpmh-regulators";
0252                 qcom,pmic-id = "c";
0253 
0254                 vdd-s1-supply = <&vph_pwr>;
0255                 vdd-s2-supply = <&vph_pwr>;
0256                 vdd-s3-supply = <&vph_pwr>;
0257                 vdd-s4-supply = <&vph_pwr>;
0258                 vdd-s5-supply = <&vph_pwr>;
0259                 vdd-s6-supply = <&vph_pwr>;
0260                 vdd-s7-supply = <&vph_pwr>;
0261                 vdd-s8-supply = <&vph_pwr>;
0262                 vdd-l1-l8-supply = <&vreg_s4a_1p8>;
0263                 vdd-l2-l3-supply = <&vreg_s8c_1p2>;
0264                 vdd-l4-l5-l6-supply = <&vreg_bob>;
0265                 vdd-l7-l11-supply = <&vreg_bob>;
0266                 vdd-l9-l10-supply = <&vreg_bob>;
0267                 vdd-bob-supply = <&vph_pwr>;
0268 
0269                 vreg_bob: bob {
0270                         regulator-name = "vreg_bob";
0271                         regulator-min-microvolt = <3350000>;
0272                         regulator-max-microvolt = <3960000>;
0273                         regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
0274                 };
0275 
0276                 /*
0277                  * S1-S6 are ARCs:
0278                  * (S1+S2) - gfx.lvl,
0279                  * S3 - mx.lvl,
0280                  * (S4+S5) - mmcx.lvl,
0281                  * S6 - ebi.lvl
0282                  */
0283 
0284                 vreg_s7c_0p35: smps7 {
0285                         regulator-name = "vreg_s7c_0p35";
0286                         regulator-min-microvolt = <348000>;
0287                         regulator-max-microvolt = <1000000>;
0288                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0289                 };
0290 
0291                 vreg_s8c_1p2: smps8 {
0292                         regulator-name = "vreg_s8c_1p2";
0293                         regulator-min-microvolt = <1200000>;
0294                         regulator-max-microvolt = <1400000>;
0295                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0296                 };
0297 
0298                 vreg_l1c_1p8: ldo1 {
0299                         regulator-name = "vreg_l1c_1p8";
0300                         regulator-min-microvolt = <1800000>;
0301                         regulator-max-microvolt = <1800000>;
0302                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0303                 };
0304 
0305                 /* L2-4 are unused. */
0306 
0307                 vreg_l5c_1p8: ldo5 {
0308                         regulator-name = "vreg_l5c_1p8";
0309                         regulator-min-microvolt = <1800000>;
0310                         regulator-max-microvolt = <2800000>;
0311                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0312                 };
0313 
0314                 vreg_l6c_2p9: ldo6 {
0315                         regulator-name = "vreg_l6c_2p9";
0316                         regulator-min-microvolt = <1800000>;
0317                         regulator-max-microvolt = <2960000>;
0318                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0319                         regulator-allow-set-load;
0320                 };
0321 
0322                 vreg_l7c_2p85: ldo7 {
0323                         regulator-name = "vreg_l7c_2p85";
0324                         regulator-min-microvolt = <2856000>;
0325                         regulator-max-microvolt = <3104000>;
0326                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0327                 };
0328 
0329                 vreg_l8c_1p8: ldo8 {
0330                         regulator-name = "vreg_l8c_1p8";
0331                         regulator-min-microvolt = <1800000>;
0332                         regulator-max-microvolt = <1800000>;
0333                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0334                 };
0335 
0336                 vreg_l9c_2p9: ldo9 {
0337                         regulator-name = "vreg_l9c_2p9";
0338                         regulator-min-microvolt = <2704000>;
0339                         regulator-max-microvolt = <2960000>;
0340                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0341                         regulator-allow-set-load;
0342                 };
0343 
0344                 vreg_l10c_3p3: ldo10 {
0345                         regulator-name = "vreg_l10c_3p3";
0346                         regulator-min-microvolt = <3296000>;
0347                         regulator-max-microvolt = <3296000>;
0348                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0349                 };
0350 
0351                 vreg_l11c_3p0: ldo11 {
0352                         regulator-name = "vreg_l11c_3p0";
0353                         regulator-min-microvolt = <3000000>;
0354                         regulator-max-microvolt = <3000000>;
0355                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0356                 };
0357         };
0358 
0359         pm8009-rpmh-regulators {
0360                 compatible = "qcom,pm8009-rpmh-regulators";
0361                 qcom,pmic-id = "f";
0362 
0363                 vdd-s1-supply = <&vph_pwr>;
0364                 vdd-s2-supply = <&vreg_bob>;
0365                 vdd-l2-supply = <&vreg_s8c_1p2>;
0366                 vdd-l5-l6-supply = <&vreg_bob>;
0367                 vdd-l7-supply = <&vreg_s4a_1p8>;
0368 
0369                 vreg_s1f_1p2: smps1 {
0370                         regulator-name = "vreg_s1f_1p2";
0371                         regulator-min-microvolt = <1200000>;
0372                         regulator-max-microvolt = <1200000>;
0373                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0374                 };
0375 
0376                 vreg_s2f_0p5: smps2 {
0377                         regulator-name = "vreg_s2f_0p5";
0378                         regulator-min-microvolt = <512000>;
0379                         regulator-max-microvolt = <1100000>;
0380                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0381                 };
0382 
0383                 /* L1 is unused. */
0384 
0385                 vreg_l2f_1p3: ldo2 {
0386                         regulator-name = "vreg_l2f_1p3";
0387                         regulator-min-microvolt = <1304000>;
0388                         regulator-max-microvolt = <1304000>;
0389                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0390                 };
0391 
0392                 /* L3 & L4 are unused. */
0393 
0394                 vreg_l5f_2p8: ldo5 {
0395                         regulator-name = "vreg_l5f_2p85";
0396                         regulator-min-microvolt = <2800000>;
0397                         regulator-max-microvolt = <2800000>;
0398                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0399                 };
0400 
0401                 vreg_l6f_2p8: ldo6 {
0402                         regulator-name = "vreg_l6f_2p8";
0403                         regulator-min-microvolt = <2800000>;
0404                         regulator-max-microvolt = <2800000>;
0405                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0406                 };
0407 
0408                 vreg_l7f_1p8: ldo7 {
0409                         regulator-name = "vreg_l7f_1p8";
0410                         regulator-min-microvolt = <1800000>;
0411                         regulator-max-microvolt = <1800000>;
0412                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
0413                 };
0414         };
0415 };
0416 
0417 &cdsp {
0418         status = "okay";
0419 };
0420 
0421 &gpi_dma0 {
0422         status = "okay";
0423 };
0424 
0425 &gpi_dma1 {
0426         status = "okay";
0427 };
0428 
0429 &gpi_dma2 {
0430         status = "okay";
0431 };
0432 
0433 &i2c1 {
0434         status = "okay";
0435         clock-frequency = <400000>;
0436 
0437         /* NXP PN553 NFC @ 28 */
0438 };
0439 
0440 &i2c2 {
0441         status = "okay";
0442         clock-frequency = <1000000>;
0443 
0444         cs35l41_l: cs35l41@40 {
0445                 compatible = "cirrus,cs35l41";
0446                 reg = <0x40>;
0447                 interrupt-parent = <&tlmm>;
0448                 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
0449                 reset-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
0450                 cirrus,boost-peak-milliamp = <4000>;
0451                 cirrus,boost-ind-nanohenry = <1000>;
0452                 cirrus,boost-cap-microfarad = <15>;
0453                 cirrus,asp-sdout-hiz = <3>;
0454                 cirrus,gpio2-src-select = <2>;
0455                 cirrus,gpio2-output-enable;
0456                 #sound-dai-cells = <1>;
0457         };
0458 
0459         cs35l41_r: cs35l41@41 {
0460                 compatible = "cirrus,cs35l41";
0461                 reg = <0x41>;
0462                 interrupt-parent = <&tlmm>;
0463                 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
0464                 reset-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
0465                 cirrus,boost-peak-milliamp = <4000>;
0466                 cirrus,boost-ind-nanohenry = <1000>;
0467                 cirrus,boost-cap-microfarad = <15>;
0468                 cirrus,asp-sdout-hiz = <3>;
0469                 cirrus,gpio2-src-select = <2>;
0470                 cirrus,gpio2-output-enable;
0471                 #sound-dai-cells = <1>;
0472         };
0473 };
0474 
0475 &i2c5 {
0476         status = "okay";
0477         clock-frequency = <400000>;
0478 
0479         /* Dialog SLG51000 CMIC @ 75 */
0480 };
0481 
0482 &i2c9 {
0483         status = "okay";
0484         clock-frequency = <400000>;
0485 
0486         /* AMS TCS3490 RGB+IR color sensor @ 72 */
0487 };
0488 
0489 &i2c13 {
0490         status = "okay";
0491         clock-frequency = <400000>;
0492 
0493         touchscreen@48 {
0494                 compatible = "samsung,s6sy761";
0495                 reg = <0x48>;
0496                 interrupt-parent = <&tlmm>;
0497                 interrupts = <39 0x2008>;
0498                 /* It's "vddio" downstream but it works anyway! */
0499                 vdd-supply = <&vreg_l1c_1p8>;
0500                 avdd-supply = <&vreg_l10c_3p3>;
0501 
0502                 pinctrl-names = "default";
0503                 pinctrl-0 = <&ts_int_default>;
0504         };
0505 };
0506 
0507 &i2c15 {
0508         status = "okay";
0509         clock-frequency = <400000>;
0510 
0511         /* Qcom SMB1390 @ 10 */
0512         /* Silicon Labs SI4704 FM Radio Receiver @ 11 */
0513         /* Qcom SMB1390_slave @ 18 */
0514         /* HALO HL6111R Qi charger @ 25 */
0515         /* Richwave RTC6226 FM Radio Receiver @ 64 */
0516 };
0517 
0518 &pcie0 {
0519         status = "okay";
0520 };
0521 
0522 &pcie0_phy {
0523         status = "okay";
0524 
0525         vdda-phy-supply = <&vreg_l5a_0p88>;
0526         vdda-pll-supply = <&vreg_l9a_1p2>;
0527 };
0528 
0529 &pcie2 {
0530         status = "okay";
0531 
0532         pinctrl-0 = <&pcie2_default_state &mdm2ap_default &ap2mdm_default>;
0533 };
0534 
0535 &pcie2_phy {
0536         status = "okay";
0537 
0538         vdda-phy-supply = <&vreg_l5a_0p88>;
0539         vdda-pll-supply = <&vreg_l9a_1p2>;
0540 };
0541 
0542 &pon_pwrkey {
0543         status = "okay";
0544 };
0545 
0546 &pon_resin {
0547         status = "okay";
0548 
0549         linux,code = <KEY_VOLUMEUP>;
0550 };
0551 
0552 &qupv3_id_0 {
0553         status = "okay";
0554 };
0555 
0556 &qupv3_id_1 {
0557         status = "okay";
0558 };
0559 
0560 &qupv3_id_2 {
0561         status = "okay";
0562 };
0563 
0564 &sdhc_2 {
0565         status = "okay";
0566 
0567         cd-gpios = <&tlmm 77 GPIO_ACTIVE_HIGH>;
0568         pinctrl-names = "default", "sleep";
0569         pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
0570         pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>;
0571         vmmc-supply = <&vreg_l9c_2p9>;
0572         vqmmc-supply = <&vreg_l6c_2p9>;
0573         bus-width = <4>;
0574         no-sdio;
0575         no-emmc;
0576 };
0577 
0578 &slpi {
0579         status = "okay";
0580 };
0581 
0582 &tlmm {
0583         gpio-reserved-ranges = <40 4>, <52 4>;
0584 
0585         sdc2_default_state: sdc2-default {
0586                 clk {
0587                         pins = "sdc2_clk";
0588                         drive-strength = <16>;
0589                         bias-disable;
0590                 };
0591 
0592                 cmd {
0593                         pins = "sdc2_cmd";
0594                         drive-strength = <16>;
0595                         bias-pull-up;
0596                 };
0597 
0598                 data {
0599                         pins = "sdc2_data";
0600                         drive-strength = <16>;
0601                         bias-pull-up;
0602                 };
0603         };
0604 
0605         mdm2ap_default: mdm2ap-default {
0606                 pins = "gpio1", "gpio3";
0607                 function = "gpio";
0608                 drive-strength = <8>;
0609                 bias-disable;
0610         };
0611 
0612         ts_int_default: ts-int-default {
0613                 pins = "gpio39";
0614                 function = "gpio";
0615                 drive-strength = <2>;
0616                 bias-disabled;
0617                 input-enable;
0618         };
0619 
0620         ap2mdm_default: ap2mdm-default {
0621                 pins = "gpio56", "gpio57";
0622                 function = "gpio";
0623                 drive-strength = <16>;
0624                 bias-disable;
0625         };
0626 
0627         sdc2_card_det_n: sd-card-det-n {
0628                 pins = "gpio77";
0629                 function = "gpio";
0630                 bias-pull-up;
0631                 drive-strength = <2>;
0632         };
0633 };
0634 
0635 &uart12 {
0636         status = "okay";
0637 };
0638 
0639 /* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */
0640 &ufs_mem_hc { status = "disabled"; };
0641 &ufs_mem_phy { status = "disabled"; };
0642 
0643 &usb_1 {
0644         status = "okay";
0645 };
0646 
0647 &usb_1_dwc3 {
0648         dr_mode = "peripheral";
0649 };
0650 
0651 &usb_1_hsphy {
0652         status = "okay";
0653 
0654         vdda-pll-supply = <&vreg_l5a_0p88>;
0655         vdda18-supply = <&vreg_l12a_1p8>;
0656         vdda33-supply = <&vreg_l2a_3p1>;
0657 };
0658 
0659 &usb_1_qmpphy {
0660         status = "okay";
0661 
0662         vdda-phy-supply = <&vreg_l9a_1p2>;
0663         vdda-pll-supply = <&vreg_l18a_0p9>;
0664 };