|
| 1 | +// SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 | +/* |
| 3 | + * Copyright (c) 2020 MediaTek Inc. |
| 4 | + * Copyright (c) 2023 BayLibre Inc. |
| 5 | + */ |
| 6 | + |
| 7 | +#include <dt-bindings/input/input.h> |
| 8 | + |
| 9 | +&pwrap { |
| 10 | + mt6357_pmic: pmic { |
| 11 | + compatible = "mediatek,mt6357"; |
| 12 | + |
| 13 | + regulators { |
| 14 | + mt6357_vproc_reg: buck-vproc { |
| 15 | + regulator-name = "vproc"; |
| 16 | + regulator-min-microvolt = <518750>; |
| 17 | + regulator-max-microvolt = <1312500>; |
| 18 | + regulator-ramp-delay = <6250>; |
| 19 | + regulator-enable-ramp-delay = <220>; |
| 20 | + regulator-always-on; |
| 21 | + }; |
| 22 | + |
| 23 | + mt6357_vcore_reg: buck-vcore { |
| 24 | + regulator-name = "vcore"; |
| 25 | + regulator-min-microvolt = <518750>; |
| 26 | + regulator-max-microvolt = <1312500>; |
| 27 | + regulator-ramp-delay = <6250>; |
| 28 | + regulator-enable-ramp-delay = <220>; |
| 29 | + regulator-always-on; |
| 30 | + }; |
| 31 | + |
| 32 | + mt6357_vmodem_reg: buck-vmodem { |
| 33 | + regulator-name = "vmodem"; |
| 34 | + regulator-min-microvolt = <500000>; |
| 35 | + regulator-max-microvolt = <1193750>; |
| 36 | + regulator-ramp-delay = <6250>; |
| 37 | + regulator-enable-ramp-delay = <220>; |
| 38 | + }; |
| 39 | + |
| 40 | + mt6357_vs1_reg: buck-vs1 { |
| 41 | + regulator-name = "vs1"; |
| 42 | + regulator-min-microvolt = <1200000>; |
| 43 | + regulator-max-microvolt = <2200000>; |
| 44 | + regulator-ramp-delay = <12500>; |
| 45 | + regulator-enable-ramp-delay = <220>; |
| 46 | + regulator-always-on; |
| 47 | + }; |
| 48 | + |
| 49 | + mt6357_vpa_reg: buck-vpa { |
| 50 | + regulator-name = "vpa"; |
| 51 | + regulator-min-microvolt = <500000>; |
| 52 | + regulator-max-microvolt = <3650000>; |
| 53 | + regulator-ramp-delay = <50000>; |
| 54 | + regulator-enable-ramp-delay = <220>; |
| 55 | + }; |
| 56 | + |
| 57 | + mt6357_vfe28_reg: ldo-vfe28 { |
| 58 | + compatible = "regulator-fixed"; |
| 59 | + regulator-name = "vfe28"; |
| 60 | + regulator-min-microvolt = <2800000>; |
| 61 | + regulator-max-microvolt = <2800000>; |
| 62 | + regulator-enable-ramp-delay = <264>; |
| 63 | + }; |
| 64 | + |
| 65 | + mt6357_vxo22_reg: ldo-vxo22 { |
| 66 | + regulator-name = "vxo22"; |
| 67 | + regulator-min-microvolt = <2200000>; |
| 68 | + regulator-max-microvolt = <2400000>; |
| 69 | + regulator-enable-ramp-delay = <110>; |
| 70 | + }; |
| 71 | + |
| 72 | + mt6357_vrf18_reg: ldo-vrf18 { |
| 73 | + compatible = "regulator-fixed"; |
| 74 | + regulator-name = "vrf18"; |
| 75 | + regulator-min-microvolt = <1800000>; |
| 76 | + regulator-max-microvolt = <1800000>; |
| 77 | + regulator-enable-ramp-delay = <110>; |
| 78 | + }; |
| 79 | + |
| 80 | + mt6357_vrf12_reg: ldo-vrf12 { |
| 81 | + compatible = "regulator-fixed"; |
| 82 | + regulator-name = "vrf12"; |
| 83 | + regulator-min-microvolt = <1200000>; |
| 84 | + regulator-max-microvolt = <1200000>; |
| 85 | + regulator-enable-ramp-delay = <110>; |
| 86 | + }; |
| 87 | + |
| 88 | + mt6357_vefuse_reg: ldo-vefuse { |
| 89 | + regulator-name = "vefuse"; |
| 90 | + regulator-min-microvolt = <1200000>; |
| 91 | + regulator-max-microvolt = <3300000>; |
| 92 | + regulator-enable-ramp-delay = <264>; |
| 93 | + }; |
| 94 | + |
| 95 | + mt6357_vcn33_bt_reg: ldo-vcn33-bt { |
| 96 | + regulator-name = "vcn33-bt"; |
| 97 | + regulator-min-microvolt = <3300000>; |
| 98 | + regulator-max-microvolt = <3500000>; |
| 99 | + regulator-enable-ramp-delay = <264>; |
| 100 | + }; |
| 101 | + |
| 102 | + mt6357_vcn33_wifi_reg: ldo-vcn33-wifi { |
| 103 | + regulator-name = "vcn33-wifi"; |
| 104 | + regulator-min-microvolt = <3300000>; |
| 105 | + regulator-max-microvolt = <3500000>; |
| 106 | + regulator-enable-ramp-delay = <264>; |
| 107 | + }; |
| 108 | + |
| 109 | + mt6357_vcn28_reg: ldo-vcn28 { |
| 110 | + compatible = "regulator-fixed"; |
| 111 | + regulator-name = "vcn28"; |
| 112 | + regulator-min-microvolt = <2800000>; |
| 113 | + regulator-max-microvolt = <2800000>; |
| 114 | + regulator-enable-ramp-delay = <264>; |
| 115 | + }; |
| 116 | + |
| 117 | + mt6357_vcn18_reg: ldo-vcn18 { |
| 118 | + compatible = "regulator-fixed"; |
| 119 | + regulator-name = "vcn18"; |
| 120 | + regulator-min-microvolt = <1800000>; |
| 121 | + regulator-max-microvolt = <1800000>; |
| 122 | + regulator-enable-ramp-delay = <264>; |
| 123 | + }; |
| 124 | + |
| 125 | + mt6357_vcama_reg: ldo-vcama { |
| 126 | + regulator-name = "vcama"; |
| 127 | + regulator-min-microvolt = <2500000>; |
| 128 | + regulator-max-microvolt = <2800000>; |
| 129 | + regulator-enable-ramp-delay = <264>; |
| 130 | + }; |
| 131 | + |
| 132 | + mt6357_vcamd_reg: ldo-vcamd { |
| 133 | + regulator-name = "vcamd"; |
| 134 | + regulator-min-microvolt = <1000000>; |
| 135 | + regulator-max-microvolt = <1800000>; |
| 136 | + regulator-enable-ramp-delay = <264>; |
| 137 | + }; |
| 138 | + |
| 139 | + mt6357_vcamio_reg: ldo-vcamio18 { |
| 140 | + compatible = "regulator-fixed"; |
| 141 | + regulator-name = "vcamio"; |
| 142 | + regulator-min-microvolt = <1800000>; |
| 143 | + regulator-max-microvolt = <1800000>; |
| 144 | + regulator-enable-ramp-delay = <264>; |
| 145 | + }; |
| 146 | + |
| 147 | + mt6357_vldo28_reg: ldo-vldo28 { |
| 148 | + regulator-name = "vldo28"; |
| 149 | + regulator-min-microvolt = <2800000>; |
| 150 | + regulator-max-microvolt = <3000000>; |
| 151 | + regulator-enable-ramp-delay = <264>; |
| 152 | + }; |
| 153 | + |
| 154 | + mt6357_vsram_others_reg: ldo-vsram-others { |
| 155 | + regulator-name = "vsram-others"; |
| 156 | + regulator-min-microvolt = <518750>; |
| 157 | + regulator-max-microvolt = <1312500>; |
| 158 | + regulator-ramp-delay = <6250>; |
| 159 | + regulator-enable-ramp-delay = <110>; |
| 160 | + regulator-always-on; |
| 161 | + }; |
| 162 | + |
| 163 | + mt6357_vsram_proc_reg: ldo-vsram-proc { |
| 164 | + regulator-name = "vsram-proc"; |
| 165 | + regulator-min-microvolt = <518750>; |
| 166 | + regulator-max-microvolt = <1312500>; |
| 167 | + regulator-ramp-delay = <6250>; |
| 168 | + regulator-enable-ramp-delay = <110>; |
| 169 | + regulator-always-on; |
| 170 | + }; |
| 171 | + |
| 172 | + mt6357_vaux18_reg: ldo-vaux18 { |
| 173 | + compatible = "regulator-fixed"; |
| 174 | + regulator-name = "vaux18"; |
| 175 | + regulator-min-microvolt = <1800000>; |
| 176 | + regulator-max-microvolt = <1800000>; |
| 177 | + regulator-enable-ramp-delay = <264>; |
| 178 | + }; |
| 179 | + |
| 180 | + mt6357_vaud28_reg: ldo-vaud28 { |
| 181 | + compatible = "regulator-fixed"; |
| 182 | + regulator-name = "vaud28"; |
| 183 | + regulator-min-microvolt = <2800000>; |
| 184 | + regulator-max-microvolt = <2800000>; |
| 185 | + regulator-enable-ramp-delay = <264>; |
| 186 | + }; |
| 187 | + |
| 188 | + mt6357_vio28_reg: ldo-vio28 { |
| 189 | + compatible = "regulator-fixed"; |
| 190 | + regulator-name = "vio28"; |
| 191 | + regulator-min-microvolt = <2800000>; |
| 192 | + regulator-max-microvolt = <2800000>; |
| 193 | + regulator-enable-ramp-delay = <264>; |
| 194 | + }; |
| 195 | + |
| 196 | + mt6357_vio18_reg: ldo-vio18 { |
| 197 | + compatible = "regulator-fixed"; |
| 198 | + regulator-name = "vio18"; |
| 199 | + regulator-min-microvolt = <1800000>; |
| 200 | + regulator-max-microvolt = <1800000>; |
| 201 | + regulator-enable-ramp-delay = <264>; |
| 202 | + regulator-always-on; |
| 203 | + }; |
| 204 | + |
| 205 | + mt6357_vdram_reg: ldo-vdram { |
| 206 | + regulator-name = "vdram"; |
| 207 | + regulator-min-microvolt = <1100000>; |
| 208 | + regulator-max-microvolt = <1200000>; |
| 209 | + regulator-enable-ramp-delay = <3300>; |
| 210 | + }; |
| 211 | + |
| 212 | + mt6357_vmc_reg: ldo-vmc { |
| 213 | + regulator-name = "vmc"; |
| 214 | + regulator-min-microvolt = <1800000>; |
| 215 | + regulator-max-microvolt = <3300000>; |
| 216 | + regulator-enable-ramp-delay = <44>; |
| 217 | + }; |
| 218 | + |
| 219 | + mt6357_vmch_reg: ldo-vmch { |
| 220 | + regulator-name = "vmch"; |
| 221 | + regulator-min-microvolt = <2900000>; |
| 222 | + regulator-max-microvolt = <3300000>; |
| 223 | + regulator-enable-ramp-delay = <44>; |
| 224 | + }; |
| 225 | + |
| 226 | + mt6357_vemc_reg: ldo-vemc { |
| 227 | + regulator-name = "vemc"; |
| 228 | + regulator-min-microvolt = <2900000>; |
| 229 | + regulator-max-microvolt = <3300000>; |
| 230 | + regulator-enable-ramp-delay = <44>; |
| 231 | + regulator-always-on; |
| 232 | + }; |
| 233 | + |
| 234 | + mt6357_vsim1_reg: ldo-vsim1 { |
| 235 | + regulator-name = "vsim1"; |
| 236 | + regulator-min-microvolt = <1700000>; |
| 237 | + regulator-max-microvolt = <3100000>; |
| 238 | + regulator-enable-ramp-delay = <264>; |
| 239 | + }; |
| 240 | + |
| 241 | + mt6357_vsim2_reg: ldo-vsim2 { |
| 242 | + regulator-name = "vsim2"; |
| 243 | + regulator-min-microvolt = <1700000>; |
| 244 | + regulator-max-microvolt = <3100000>; |
| 245 | + regulator-enable-ramp-delay = <264>; |
| 246 | + }; |
| 247 | + |
| 248 | + mt6357_vibr_reg: ldo-vibr { |
| 249 | + regulator-name = "vibr"; |
| 250 | + regulator-min-microvolt = <1200000>; |
| 251 | + regulator-max-microvolt = <3300000>; |
| 252 | + regulator-enable-ramp-delay = <44>; |
| 253 | + }; |
| 254 | + |
| 255 | + mt6357_vusb33_reg: ldo-vusb33 { |
| 256 | + regulator-name = "vusb33"; |
| 257 | + regulator-min-microvolt = <3000000>; |
| 258 | + regulator-max-microvolt = <3100000>; |
| 259 | + regulator-enable-ramp-delay = <264>; |
| 260 | + }; |
| 261 | + }; |
| 262 | + |
| 263 | + rtc { |
| 264 | + compatible = "mediatek,mt6357-rtc"; |
| 265 | + }; |
| 266 | + |
| 267 | + keys { |
| 268 | + compatible = "mediatek,mt6357-keys"; |
| 269 | + |
| 270 | + key-power { |
| 271 | + linux,keycodes = <KEY_POWER>; |
| 272 | + wakeup-source; |
| 273 | + }; |
| 274 | + |
| 275 | + key-home { |
| 276 | + linux,keycodes = <KEY_HOME>; |
| 277 | + wakeup-source; |
| 278 | + }; |
| 279 | + |
| 280 | + }; |
| 281 | + }; |
| 282 | +}; |
0 commit comments