1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Copyright (c) 2020 MediaTek Inc. 4 */ 5#include <dt-bindings/input/input.h> 6 7&pwrap { 8 pmic: pmic { 9 compatible = "mediatek,mt6358"; 10 interrupt-controller; 11 #interrupt-cells = <2>; 12 13 pmic_adc: adc { 14 compatible = "mediatek,mt6358-auxadc"; 15 #io-channel-cells = <1>; 16 }; 17 18 mt6358codec: mt6358codec { 19 compatible = "mediatek,mt6358-sound"; 20 mediatek,dmic-mode = <0>; /* two-wires */ 21 }; 22 23 mt6358regulator: mt6358regulator { 24 compatible = "mediatek,mt6358-regulator"; 25 26 mt6358_vdram1_reg: buck_vdram1 { 27 regulator-name = "vdram1"; 28 regulator-min-microvolt = <500000>; 29 regulator-max-microvolt = <2087500>; 30 regulator-ramp-delay = <12500>; 31 regulator-enable-ramp-delay = <0>; 32 regulator-always-on; 33 regulator-allowed-modes = <0 1>; 34 }; 35 36 mt6358_vcore_reg: buck_vcore { 37 regulator-name = "vcore"; 38 regulator-min-microvolt = <500000>; 39 regulator-max-microvolt = <1293750>; 40 regulator-ramp-delay = <6250>; 41 regulator-enable-ramp-delay = <200>; 42 regulator-always-on; 43 regulator-allowed-modes = <0 1>; 44 }; 45 46 mt6358_vpa_reg: buck_vpa { 47 regulator-name = "vpa"; 48 regulator-min-microvolt = <500000>; 49 regulator-max-microvolt = <3650000>; 50 regulator-ramp-delay = <50000>; 51 regulator-enable-ramp-delay = <250>; 52 regulator-allowed-modes = <0 1>; 53 }; 54 55 mt6358_vproc11_reg: buck_vproc11 { 56 regulator-name = "vproc11"; 57 regulator-min-microvolt = <500000>; 58 regulator-max-microvolt = <1293750>; 59 regulator-ramp-delay = <6250>; 60 regulator-enable-ramp-delay = <200>; 61 regulator-always-on; 62 regulator-allowed-modes = <0 1>; 63 }; 64 65 mt6358_vproc12_reg: buck_vproc12 { 66 regulator-name = "vproc12"; 67 regulator-min-microvolt = <500000>; 68 regulator-max-microvolt = <1293750>; 69 regulator-ramp-delay = <6250>; 70 regulator-enable-ramp-delay = <200>; 71 regulator-always-on; 72 regulator-allowed-modes = <0 1>; 73 }; 74 75 mt6358_vgpu_reg: buck_vgpu { 76 regulator-name = "vgpu"; 77 regulator-min-microvolt = <500000>; 78 regulator-max-microvolt = <1293750>; 79 regulator-ramp-delay = <6250>; 80 regulator-enable-ramp-delay = <200>; 81 regulator-allowed-modes = <0 1>; 82 }; 83 84 mt6358_vs2_reg: buck_vs2 { 85 regulator-name = "vs2"; 86 regulator-min-microvolt = <500000>; 87 regulator-max-microvolt = <2087500>; 88 regulator-ramp-delay = <12500>; 89 regulator-enable-ramp-delay = <0>; 90 regulator-always-on; 91 }; 92 93 mt6358_vmodem_reg: buck_vmodem { 94 regulator-name = "vmodem"; 95 regulator-min-microvolt = <500000>; 96 regulator-max-microvolt = <1293750>; 97 regulator-ramp-delay = <6250>; 98 regulator-enable-ramp-delay = <900>; 99 regulator-always-on; 100 regulator-allowed-modes = <0 1>; 101 }; 102 103 mt6358_vs1_reg: buck_vs1 { 104 regulator-name = "vs1"; 105 regulator-min-microvolt = <1000000>; 106 regulator-max-microvolt = <2587500>; 107 regulator-ramp-delay = <12500>; 108 regulator-enable-ramp-delay = <0>; 109 regulator-always-on; 110 }; 111 112 mt6358_vdram2_reg: ldo_vdram2 { 113 regulator-name = "vdram2"; 114 regulator-min-microvolt = <600000>; 115 regulator-max-microvolt = <1800000>; 116 regulator-enable-ramp-delay = <3300>; 117 }; 118 119 mt6358_vsim1_reg: ldo_vsim1 { 120 regulator-name = "vsim1"; 121 regulator-min-microvolt = <1700000>; 122 regulator-max-microvolt = <3100000>; 123 regulator-enable-ramp-delay = <540>; 124 }; 125 126 mt6358_vibr_reg: ldo_vibr { 127 regulator-name = "vibr"; 128 regulator-min-microvolt = <1200000>; 129 regulator-max-microvolt = <3300000>; 130 regulator-enable-ramp-delay = <60>; 131 }; 132 133 mt6358_vrf12_reg: ldo_vrf12 { 134 regulator-name = "vrf12"; 135 regulator-min-microvolt = <1200000>; 136 regulator-max-microvolt = <1200000>; 137 regulator-enable-ramp-delay = <120>; 138 }; 139 140 mt6358_vio18_reg: ldo_vio18 { 141 regulator-name = "vio18"; 142 regulator-min-microvolt = <1800000>; 143 regulator-max-microvolt = <1800000>; 144 regulator-enable-ramp-delay = <2700>; 145 regulator-always-on; 146 }; 147 148 mt6358_vusb_reg: ldo_vusb { 149 regulator-name = "vusb"; 150 regulator-min-microvolt = <3000000>; 151 regulator-max-microvolt = <3100000>; 152 regulator-enable-ramp-delay = <270>; 153 regulator-always-on; 154 }; 155 156 mt6358_vcamio_reg: ldo_vcamio { 157 regulator-name = "vcamio"; 158 regulator-min-microvolt = <1800000>; 159 regulator-max-microvolt = <1800000>; 160 regulator-enable-ramp-delay = <325>; 161 }; 162 163 mt6358_vcamd_reg: ldo_vcamd { 164 regulator-name = "vcamd"; 165 regulator-min-microvolt = <900000>; 166 regulator-max-microvolt = <1800000>; 167 regulator-enable-ramp-delay = <325>; 168 }; 169 170 mt6358_vcn18_reg: ldo_vcn18 { 171 regulator-name = "vcn18"; 172 regulator-min-microvolt = <1800000>; 173 regulator-max-microvolt = <1800000>; 174 regulator-enable-ramp-delay = <270>; 175 }; 176 177 mt6358_vfe28_reg: ldo_vfe28 { 178 regulator-name = "vfe28"; 179 regulator-min-microvolt = <2800000>; 180 regulator-max-microvolt = <2800000>; 181 regulator-enable-ramp-delay = <270>; 182 }; 183 184 mt6358_vsram_proc11_reg: ldo_vsram_proc11 { 185 regulator-name = "vsram_proc11"; 186 regulator-min-microvolt = <500000>; 187 regulator-max-microvolt = <1293750>; 188 regulator-ramp-delay = <6250>; 189 regulator-enable-ramp-delay = <240>; 190 regulator-always-on; 191 }; 192 193 mt6358_vcn28_reg: ldo_vcn28 { 194 regulator-name = "vcn28"; 195 regulator-min-microvolt = <2800000>; 196 regulator-max-microvolt = <2800000>; 197 regulator-enable-ramp-delay = <270>; 198 }; 199 200 mt6358_vsram_others_reg: ldo_vsram_others { 201 regulator-name = "vsram_others"; 202 regulator-min-microvolt = <500000>; 203 regulator-max-microvolt = <1293750>; 204 regulator-ramp-delay = <6250>; 205 regulator-enable-ramp-delay = <240>; 206 regulator-always-on; 207 }; 208 209 mt6358_vsram_gpu_reg: ldo_vsram_gpu { 210 regulator-name = "vsram_gpu"; 211 regulator-min-microvolt = <500000>; 212 regulator-max-microvolt = <1293750>; 213 regulator-ramp-delay = <6250>; 214 regulator-enable-ramp-delay = <240>; 215 }; 216 217 mt6358_vxo22_reg: ldo_vxo22 { 218 regulator-name = "vxo22"; 219 regulator-min-microvolt = <2200000>; 220 regulator-max-microvolt = <2200000>; 221 regulator-enable-ramp-delay = <120>; 222 regulator-always-on; 223 }; 224 225 mt6358_vefuse_reg: ldo_vefuse { 226 regulator-name = "vefuse"; 227 regulator-min-microvolt = <1700000>; 228 regulator-max-microvolt = <1900000>; 229 regulator-enable-ramp-delay = <270>; 230 }; 231 232 mt6358_vaux18_reg: ldo_vaux18 { 233 regulator-name = "vaux18"; 234 regulator-min-microvolt = <1800000>; 235 regulator-max-microvolt = <1800000>; 236 regulator-enable-ramp-delay = <270>; 237 }; 238 239 mt6358_vmch_reg: ldo_vmch { 240 regulator-name = "vmch"; 241 regulator-min-microvolt = <2900000>; 242 regulator-max-microvolt = <3300000>; 243 regulator-enable-ramp-delay = <60>; 244 }; 245 246 mt6358_vbif28_reg: ldo_vbif28 { 247 regulator-name = "vbif28"; 248 regulator-min-microvolt = <2800000>; 249 regulator-max-microvolt = <2800000>; 250 regulator-enable-ramp-delay = <270>; 251 }; 252 253 mt6358_vsram_proc12_reg: ldo_vsram_proc12 { 254 regulator-name = "vsram_proc12"; 255 regulator-min-microvolt = <500000>; 256 regulator-max-microvolt = <1293750>; 257 regulator-ramp-delay = <6250>; 258 regulator-enable-ramp-delay = <240>; 259 regulator-always-on; 260 }; 261 262 mt6358_vcama1_reg: ldo_vcama1 { 263 regulator-name = "vcama1"; 264 regulator-min-microvolt = <1800000>; 265 regulator-max-microvolt = <3000000>; 266 regulator-enable-ramp-delay = <325>; 267 }; 268 269 mt6358_vemc_reg: ldo_vemc { 270 regulator-name = "vemc"; 271 regulator-min-microvolt = <2900000>; 272 regulator-max-microvolt = <3300000>; 273 regulator-enable-ramp-delay = <60>; 274 }; 275 276 mt6358_vio28_reg: ldo_vio28 { 277 regulator-name = "vio28"; 278 regulator-min-microvolt = <2800000>; 279 regulator-max-microvolt = <2800000>; 280 regulator-enable-ramp-delay = <270>; 281 }; 282 283 mt6358_va12_reg: ldo_va12 { 284 regulator-name = "va12"; 285 regulator-min-microvolt = <1200000>; 286 regulator-max-microvolt = <1200000>; 287 regulator-enable-ramp-delay = <270>; 288 regulator-always-on; 289 }; 290 291 mt6358_vrf18_reg: ldo_vrf18 { 292 regulator-name = "vrf18"; 293 regulator-min-microvolt = <1800000>; 294 regulator-max-microvolt = <1800000>; 295 regulator-enable-ramp-delay = <120>; 296 }; 297 298 mt6358_vcn33_reg: ldo_vcn33 { 299 regulator-name = "vcn33"; 300 regulator-min-microvolt = <3300000>; 301 regulator-max-microvolt = <3500000>; 302 regulator-enable-ramp-delay = <270>; 303 }; 304 305 mt6358_vcama2_reg: ldo_vcama2 { 306 regulator-name = "vcama2"; 307 regulator-min-microvolt = <1800000>; 308 regulator-max-microvolt = <3000000>; 309 regulator-enable-ramp-delay = <325>; 310 }; 311 312 mt6358_vmc_reg: ldo_vmc { 313 regulator-name = "vmc"; 314 regulator-min-microvolt = <1800000>; 315 regulator-max-microvolt = <3300000>; 316 regulator-enable-ramp-delay = <60>; 317 }; 318 319 mt6358_vldo28_reg: ldo_vldo28 { 320 regulator-name = "vldo28"; 321 regulator-min-microvolt = <2800000>; 322 regulator-max-microvolt = <3000000>; 323 regulator-enable-ramp-delay = <270>; 324 }; 325 326 mt6358_vaud28_reg: ldo_vaud28 { 327 regulator-name = "vaud28"; 328 regulator-min-microvolt = <2800000>; 329 regulator-max-microvolt = <2800000>; 330 regulator-enable-ramp-delay = <270>; 331 }; 332 333 mt6358_vsim2_reg: ldo_vsim2 { 334 regulator-name = "vsim2"; 335 regulator-min-microvolt = <1700000>; 336 regulator-max-microvolt = <3100000>; 337 regulator-enable-ramp-delay = <540>; 338 }; 339 }; 340 341 mt6358rtc: rtc { 342 compatible = "mediatek,mt6358-rtc"; 343 }; 344 345 mt6358keys: keys { 346 compatible = "mediatek,mt6358-keys"; 347 power { 348 linux,keycodes = <KEY_POWER>; 349 wakeup-source; 350 }; 351 home { 352 linux,keycodes = <KEY_HOME>; 353 }; 354 }; 355 }; 356}; 357