| 1 |
// SPDX-License-Identifier: GPL-2.0-only |
| 2 |
/* |
| 3 |
* msm8939-pm8916.dtsi describes common properties (e.g. regulator connections) |
| 4 |
* that apply to most devices that make use of the MSM8939 SoC and PM8916 PMIC. |
| 5 |
* Many regulators have a fixed purpose in the original reference design and |
| 6 |
* were rarely re-used for different purposes. Devices that deviate from the |
| 7 |
* typical reference design should not make use of this include and instead add |
| 8 |
* the necessary properties in the board-specific device tree. |
| 9 |
*/ |
| 10 |
|
| 11 |
#include "msm8939.dtsi" |
| 12 |
#include "pm8916.dtsi" |
| 13 |
|
| 14 |
&camss { |
| 15 |
vdda-supply = <&pm8916_l2>; |
| 16 |
}; |
| 17 |
|
| 18 |
&mdss_dsi0 { |
| 19 |
vdda-supply = <&pm8916_l2>; |
| 20 |
vddio-supply = <&pm8916_l6>; |
| 21 |
}; |
| 22 |
|
| 23 |
&mdss_dsi0_phy { |
| 24 |
vddio-supply = <&pm8916_l6>; |
| 25 |
}; |
| 26 |
|
| 27 |
&mdss_dsi1 { |
| 28 |
vdda-supply = <&pm8916_l2>; |
| 29 |
vddio-supply = <&pm8916_l6>; |
| 30 |
}; |
| 31 |
|
| 32 |
&mdss_dsi1_phy { |
| 33 |
vddio-supply = <&pm8916_l6>; |
| 34 |
}; |
| 35 |
|
| 36 |
&mpss { |
| 37 |
pll-supply = <&pm8916_l7>; |
| 38 |
}; |
| 39 |
|
| 40 |
&pm8916_codec { |
| 41 |
vdd-cdc-io-supply = <&pm8916_l5>; |
| 42 |
vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>; |
| 43 |
vdd-micbias-supply = <&pm8916_l13>; |
| 44 |
}; |
| 45 |
|
| 46 |
&rpm_requests { |
| 47 |
pm8916_rpm_regulators: regulators { |
| 48 |
compatible = "qcom,rpm-pm8916-regulators"; |
| 49 |
vdd_l1_l2_l3-supply = <&pm8916_s3>; |
| 50 |
vdd_l4_l5_l6-supply = <&pm8916_s4>; |
| 51 |
vdd_l7-supply = <&pm8916_s4>; |
| 52 |
|
| 53 |
/* pm8916_s1 is managed by rpmpd (MSM8939_VDDMDCX) */ |
| 54 |
/* pm8916_s2 is managed by rpmpd (MSM8939_VDDCX) */ |
| 55 |
pm8916_s3: s3 { |
| 56 |
regulator-min-microvolt = <1250000>; |
| 57 |
regulator-max-microvolt = <1350000>; |
| 58 |
regulator-always-on; /* Needed for L2 */ |
| 59 |
}; |
| 60 |
pm8916_s4: s4 { |
| 61 |
regulator-min-microvolt = <1850000>; |
| 62 |
regulator-max-microvolt = <2150000>; |
| 63 |
regulator-always-on; /* Needed for L5/L7 */ |
| 64 |
}; |
| 65 |
|
| 66 |
/* |
| 67 |
* Some of the regulators are unused or managed by another |
| 68 |
* processor (e.g. the modem). We should still define nodes for |
| 69 |
* them to ensure the vote from the application processor can be |
| 70 |
* dropped in case the regulators are already on during boot. |
| 71 |
* |
| 72 |
* The labels for these nodes are omitted on purpose because |
| 73 |
* boards should configure a proper voltage before using them. |
| 74 |
*/ |
| 75 |
l1 {}; |
| 76 |
|
| 77 |
pm8916_l2: l2 { |
| 78 |
regulator-min-microvolt = <1200000>; |
| 79 |
regulator-max-microvolt = <1200000>; |
| 80 |
regulator-always-on; /* Needed for LPDDR RAM */ |
| 81 |
}; |
| 82 |
|
| 83 |
/* pm8916_l3 is managed by rpmpd (MSM8939_VDDMX) */ |
| 84 |
|
| 85 |
l4 {}; |
| 86 |
|
| 87 |
pm8916_l5: l5 { |
| 88 |
regulator-min-microvolt = <1800000>; |
| 89 |
regulator-max-microvolt = <1800000>; |
| 90 |
regulator-always-on; /* Needed for most digital I/O */ |
| 91 |
}; |
| 92 |
|
| 93 |
pm8916_l6: l6 { |
| 94 |
regulator-min-microvolt = <1800000>; |
| 95 |
regulator-max-microvolt = <1800000>; |
| 96 |
}; |
| 97 |
|
| 98 |
pm8916_l7: l7 { |
| 99 |
regulator-min-microvolt = <1800000>; |
| 100 |
regulator-max-microvolt = <1800000>; |
| 101 |
regulator-always-on; /* Needed for CPU PLL */ |
| 102 |
}; |
| 103 |
|
| 104 |
pm8916_l8: l8 { |
| 105 |
regulator-min-microvolt = <2900000>; |
| 106 |
regulator-max-microvolt = <2900000>; |
| 107 |
}; |
| 108 |
|
| 109 |
pm8916_l9: l9 { |
| 110 |
regulator-min-microvolt = <3300000>; |
| 111 |
regulator-max-microvolt = <3300000>; |
| 112 |
}; |
| 113 |
|
| 114 |
l10 {}; |
| 115 |
|
| 116 |
pm8916_l11: l11 { |
| 117 |
regulator-min-microvolt = <2950000>; |
| 118 |
regulator-max-microvolt = <2950000>; |
| 119 |
regulator-allow-set-load; |
| 120 |
regulator-system-load = <200000>; |
| 121 |
}; |
| 122 |
|
| 123 |
pm8916_l12: l12 { |
| 124 |
regulator-min-microvolt = <1800000>; |
| 125 |
regulator-max-microvolt = <2950000>; |
| 126 |
}; |
| 127 |
|
| 128 |
pm8916_l13: l13 { |
| 129 |
regulator-min-microvolt = <3075000>; |
| 130 |
regulator-max-microvolt = <3075000>; |
| 131 |
}; |
| 132 |
|
| 133 |
l14 {}; |
| 134 |
l15 {}; |
| 135 |
l16 {}; |
| 136 |
l17 {}; |
| 137 |
l18 {}; |
| 138 |
}; |
| 139 |
}; |
| 140 |
|
| 141 |
&sdhc_1 { |
| 142 |
vmmc-supply = <&pm8916_l8>; |
| 143 |
vqmmc-supply = <&pm8916_l5>; |
| 144 |
}; |
| 145 |
|
| 146 |
&sdhc_2 { |
| 147 |
vmmc-supply = <&pm8916_l11>; |
| 148 |
vqmmc-supply = <&pm8916_l12>; |
| 149 |
}; |
| 150 |
|
| 151 |
&usb_hs_phy { |
| 152 |
v1p8-supply = <&pm8916_l7>; |
| 153 |
v3p3-supply = <&pm8916_l13>; |
| 154 |
}; |
| 155 |
|
| 156 |
&wcnss { |
| 157 |
vddpx-supply = <&pm8916_l7>; |
| 158 |
}; |
| 159 |
|
| 160 |
&wcnss_iris { |
| 161 |
vddxo-supply = <&pm8916_l7>; |
| 162 |
vddrfa-supply = <&pm8916_s3>; |
| 163 |
vddpa-supply = <&pm8916_l9>; |
| 164 |
vdddig-supply = <&pm8916_l5>; |
| 165 |
}; |