Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include "qcom-msm8974.dtsi"
0003 #include "qcom-pm8841.dtsi"
0004 #include "qcom-pm8941.dtsi"
0005 
0006 / {
0007         model = "Qualcomm APQ8074 Dragonboard";
0008         compatible = "qcom,apq8074-dragonboard", "qcom,apq8074";
0009 
0010         aliases {
0011                 serial0 = &blsp1_uart2;
0012                 usid0 = &pm8941_0;
0013                 usid4 = &pm8841_0;
0014         };
0015 
0016         chosen {
0017                 stdout-path = "serial0:115200n8";
0018         };
0019 };
0020 
0021 &blsp1_uart2 {
0022         status = "okay";
0023 };
0024 
0025 &blsp2_i2c5 {
0026         status = "okay";
0027         clock-frequency = <200000>;
0028 
0029         eeprom: eeprom@52 {
0030                 compatible = "atmel,24c128";
0031                 reg = <0x52>;
0032                 pagesize = <32>;
0033                 read-only;
0034         };
0035 };
0036 
0037 &otg {
0038         status = "okay";
0039 
0040         phys = <&usb_hs2_phy>;
0041         phy-select = <&tcsr 0xb000 1>;
0042         extcon = <&smbb>, <&usb_id>;
0043         vbus-supply = <&chg_otg>;
0044         hnp-disable;
0045         srp-disable;
0046         adp-disable;
0047 
0048         ulpi {
0049                 phy@b {
0050                         status = "okay";
0051                         v3p3-supply = <&pm8941_l24>;
0052                         v1p8-supply = <&pm8941_l6>;
0053                         extcon = <&smbb>;
0054                         qcom,init-seq = /bits/ 8 <0x1 0x63>;
0055                 };
0056         };
0057 };
0058 
0059 &rpm_requests {
0060         pm8841-regulators {
0061                 compatible = "qcom,rpm-pm8841-regulators";
0062 
0063                 pm8841_s1: s1 {
0064                         regulator-min-microvolt = <675000>;
0065                         regulator-max-microvolt = <1050000>;
0066                 };
0067 
0068                 pm8841_s2: s2 {
0069                         regulator-min-microvolt = <500000>;
0070                         regulator-max-microvolt = <1050000>;
0071                 };
0072 
0073                 pm8841_s3: s3 {
0074                         regulator-min-microvolt = <500000>;
0075                         regulator-max-microvolt = <1050000>;
0076                 };
0077 
0078                 pm8841_s4: s4 {
0079                         regulator-min-microvolt = <500000>;
0080                         regulator-max-microvolt = <1050000>;
0081                 };
0082         };
0083 
0084         pm8941-regulators {
0085                 compatible = "qcom,rpm-pm8941-regulators";
0086 
0087                 vdd_l1_l3-supply = <&pm8941_s1>;
0088                 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
0089                 vdd_l4_l11-supply = <&pm8941_s1>;
0090                 vdd_l5_l7-supply = <&pm8941_s2>;
0091                 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
0092                 vin_5vs-supply = <&pm8941_5v>;
0093 
0094                 pm8941_s1: s1 {
0095                         regulator-min-microvolt = <1300000>;
0096                         regulator-max-microvolt = <1300000>;
0097                         regulator-always-on;
0098                         regulator-boot-on;
0099                 };
0100 
0101                 pm8941_s2: s2 {
0102                         regulator-min-microvolt = <2150000>;
0103                         regulator-max-microvolt = <2150000>;
0104                         regulator-boot-on;
0105                 };
0106 
0107                 pm8941_s3: s3 {
0108                         regulator-min-microvolt = <1800000>;
0109                         regulator-max-microvolt = <1800000>;
0110                         regulator-always-on;
0111                         regulator-boot-on;
0112                 };
0113 
0114                 pm8941_l1: l1 {
0115                         regulator-min-microvolt = <1225000>;
0116                         regulator-max-microvolt = <1225000>;
0117                         regulator-always-on;
0118                         regulator-boot-on;
0119                 };
0120 
0121                 pm8941_l2: l2 {
0122                         regulator-min-microvolt = <1200000>;
0123                         regulator-max-microvolt = <1200000>;
0124                 };
0125 
0126                 pm8941_l3: l3 {
0127                         regulator-min-microvolt = <1225000>;
0128                         regulator-max-microvolt = <1225000>;
0129                 };
0130 
0131                 pm8941_l4: l4 {
0132                         regulator-min-microvolt = <1225000>;
0133                         regulator-max-microvolt = <1225000>;
0134                 };
0135 
0136                 pm8941_l5: l5 {
0137                         regulator-min-microvolt = <1800000>;
0138                         regulator-max-microvolt = <1800000>;
0139                 };
0140 
0141                 pm8941_l6: l6 {
0142                         regulator-min-microvolt = <1800000>;
0143                         regulator-max-microvolt = <1800000>;
0144                         regulator-boot-on;
0145                 };
0146 
0147                 pm8941_l7: l7 {
0148                         regulator-min-microvolt = <1800000>;
0149                         regulator-max-microvolt = <1800000>;
0150                         regulator-boot-on;
0151                 };
0152 
0153                 pm8941_l8: l8 {
0154                         regulator-min-microvolt = <1800000>;
0155                         regulator-max-microvolt = <1800000>;
0156                 };
0157 
0158                 pm8941_l9: l9 {
0159                         regulator-min-microvolt = <1800000>;
0160                         regulator-max-microvolt = <2950000>;
0161                 };
0162 
0163                 pm8941_l10: l10 {
0164                         regulator-min-microvolt = <1800000>;
0165                         regulator-max-microvolt = <1800000>;
0166                         regulator-always-on;
0167                 };
0168 
0169                 pm8941_l11: l11 {
0170                         regulator-min-microvolt = <1300000>;
0171                         regulator-max-microvolt = <1300000>;
0172                 };
0173 
0174                 pm8941_l12: l12 {
0175                         regulator-min-microvolt = <1800000>;
0176                         regulator-max-microvolt = <1800000>;
0177                         regulator-always-on;
0178                         regulator-boot-on;
0179                 };
0180 
0181                 pm8941_l13: l13 {
0182                         regulator-min-microvolt = <1800000>;
0183                         regulator-max-microvolt = <2950000>;
0184                         regulator-boot-on;
0185                 };
0186 
0187                 pm8941_l14: l14 {
0188                         regulator-min-microvolt = <1800000>;
0189                         regulator-max-microvolt = <1800000>;
0190                 };
0191 
0192                 pm8941_l15: l15 {
0193                         regulator-min-microvolt = <2050000>;
0194                         regulator-max-microvolt = <2050000>;
0195                 };
0196 
0197                 pm8941_l16: l16 {
0198                         regulator-min-microvolt = <2700000>;
0199                         regulator-max-microvolt = <2700000>;
0200                 };
0201 
0202                 pm8941_l17: l17 {
0203                         regulator-min-microvolt = <2700000>;
0204                         regulator-max-microvolt = <2700000>;
0205                 };
0206 
0207                 pm8941_l18: l18 {
0208                         regulator-min-microvolt = <2850000>;
0209                         regulator-max-microvolt = <2850000>;
0210                 };
0211 
0212                 pm8941_l19: l19 {
0213                         regulator-min-microvolt = <3300000>;
0214                         regulator-max-microvolt = <3300000>;
0215                         regulator-always-on;
0216                 };
0217 
0218                 pm8941_l20: l20 {
0219                         regulator-min-microvolt = <2950000>;
0220                         regulator-max-microvolt = <2950000>;
0221                         regulator-system-load = <200000>;
0222                         regulator-allow-set-load;
0223                         regulator-boot-on;
0224                 };
0225 
0226                 pm8941_l21: l21 {
0227                         regulator-min-microvolt = <2950000>;
0228                         regulator-max-microvolt = <2950000>;
0229                         regulator-boot-on;
0230                 };
0231 
0232                 pm8941_l22: l22 {
0233                         regulator-min-microvolt = <3000000>;
0234                         regulator-max-microvolt = <3000000>;
0235                 };
0236 
0237                 pm8941_l23: l23 {
0238                         regulator-min-microvolt = <3000000>;
0239                         regulator-max-microvolt = <3000000>;
0240                 };
0241 
0242                 pm8941_l24: l24 {
0243                         regulator-min-microvolt = <3075000>;
0244                         regulator-max-microvolt = <3075000>;
0245                         regulator-boot-on;
0246                 };
0247         };
0248 };
0249 
0250 &sdhc_1 {
0251         status = "okay";
0252 
0253         vmmc-supply = <&pm8941_l20>;
0254         vqmmc-supply = <&pm8941_s3>;
0255 
0256         pinctrl-names = "default", "sleep";
0257         pinctrl-0 = <&sdc1_on>;
0258         pinctrl-1 = <&sdc1_off>;
0259 };
0260 
0261 &sdhc_2 {
0262         status = "okay";
0263 
0264         cd-gpios = <&tlmm 62 0x1>;
0265         vmmc-supply = <&pm8941_l21>;
0266         vqmmc-supply = <&pm8941_l13>;
0267 
0268         pinctrl-names = "default", "sleep";
0269         pinctrl-0 = <&sdc2_on>;
0270         pinctrl-1 = <&sdc2_off>;
0271 };
0272 
0273 &tlmm {
0274         sdc1_on: sdc1-on {
0275                 clk {
0276                         pins = "sdc1_clk";
0277                         drive-strength = <16>;
0278                         bias-disable;
0279                 };
0280 
0281                 cmd-data {
0282                         pins = "sdc1_cmd", "sdc1_data";
0283                         drive-strength = <10>;
0284                         bias-pull-up;
0285                 };
0286         };
0287 
0288         sdc2_on: sdc2-on {
0289                 clk {
0290                         pins = "sdc2_clk";
0291                         drive-strength = <10>;
0292                         bias-disable;
0293                 };
0294 
0295                 cmd-data {
0296                         pins = "sdc2_cmd", "sdc2_data";
0297                         drive-strength = <6>;
0298                         bias-pull-up;
0299                 };
0300 
0301                 cd {
0302                         pins = "gpio62";
0303                         function = "gpio";
0304                         drive-strength = <2>;
0305                         bias-disable;
0306                 };
0307         };
0308 };