1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (c) 2023 Collabora Ltd. 4*f126890aSEmmanuel Vadot * Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 5*f126890aSEmmanuel Vadot */ 6*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot&pwrap { 9*f126890aSEmmanuel Vadot pmic: mt6331 { 10*f126890aSEmmanuel Vadot compatible = "mediatek,mt6331"; 11*f126890aSEmmanuel Vadot interrupt-controller; 12*f126890aSEmmanuel Vadot #interrupt-cells = <2>; 13*f126890aSEmmanuel Vadot 14*f126890aSEmmanuel Vadot mt6331regulator: mt6331regulator { 15*f126890aSEmmanuel Vadot compatible = "mediatek,mt6331-regulator"; 16*f126890aSEmmanuel Vadot 17*f126890aSEmmanuel Vadot mt6331_vdvfs11_reg: buck-vdvfs11 { 18*f126890aSEmmanuel Vadot regulator-name = "vdvfs11"; 19*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 20*f126890aSEmmanuel Vadot regulator-max-microvolt = <1493750>; 21*f126890aSEmmanuel Vadot regulator-ramp-delay = <12500>; 22*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <0>; 23*f126890aSEmmanuel Vadot regulator-allowed-modes = <0 1>; 24*f126890aSEmmanuel Vadot regulator-always-on; 25*f126890aSEmmanuel Vadot }; 26*f126890aSEmmanuel Vadot 27*f126890aSEmmanuel Vadot mt6331_vdvfs12_reg: buck-vdvfs12 { 28*f126890aSEmmanuel Vadot regulator-name = "vdvfs12"; 29*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 30*f126890aSEmmanuel Vadot regulator-max-microvolt = <1493750>; 31*f126890aSEmmanuel Vadot regulator-ramp-delay = <12500>; 32*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <0>; 33*f126890aSEmmanuel Vadot regulator-allowed-modes = <0 1>; 34*f126890aSEmmanuel Vadot regulator-always-on; 35*f126890aSEmmanuel Vadot }; 36*f126890aSEmmanuel Vadot 37*f126890aSEmmanuel Vadot mt6331_vdvfs13_reg: buck-vdvfs13 { 38*f126890aSEmmanuel Vadot regulator-name = "vdvfs13"; 39*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 40*f126890aSEmmanuel Vadot regulator-max-microvolt = <1493750>; 41*f126890aSEmmanuel Vadot regulator-ramp-delay = <12500>; 42*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <0>; 43*f126890aSEmmanuel Vadot regulator-allowed-modes = <0 1>; 44*f126890aSEmmanuel Vadot regulator-always-on; 45*f126890aSEmmanuel Vadot }; 46*f126890aSEmmanuel Vadot 47*f126890aSEmmanuel Vadot mt6331_vdvfs14_reg: buck-vdvfs14 { 48*f126890aSEmmanuel Vadot regulator-name = "vdvfs14"; 49*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 50*f126890aSEmmanuel Vadot regulator-max-microvolt = <1493750>; 51*f126890aSEmmanuel Vadot regulator-ramp-delay = <12500>; 52*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <0>; 53*f126890aSEmmanuel Vadot regulator-allowed-modes = <0 1>; 54*f126890aSEmmanuel Vadot regulator-always-on; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot 57*f126890aSEmmanuel Vadot mt6331_vcore2_reg: buck-vcore2 { 58*f126890aSEmmanuel Vadot regulator-name = "vcore2"; 59*f126890aSEmmanuel Vadot regulator-min-microvolt = <700000>; 60*f126890aSEmmanuel Vadot regulator-max-microvolt = <1493750>; 61*f126890aSEmmanuel Vadot regulator-ramp-delay = <12500>; 62*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <0>; 63*f126890aSEmmanuel Vadot regulator-allowed-modes = <0 1>; 64*f126890aSEmmanuel Vadot regulator-always-on; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot mt6331_vio18_reg: buck-vio18 { 68*f126890aSEmmanuel Vadot regulator-name = "vio18"; 69*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 70*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 71*f126890aSEmmanuel Vadot regulator-ramp-delay = <12500>; 72*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <0>; 73*f126890aSEmmanuel Vadot regulator-allowed-modes = <0 1>; 74*f126890aSEmmanuel Vadot regulator-always-on; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot mt6331_vtcxo1_reg: ldo-vtcxo1 { 78*f126890aSEmmanuel Vadot regulator-name = "vtcxo1"; 79*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 80*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 81*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 82*f126890aSEmmanuel Vadot regulator-always-on; 83*f126890aSEmmanuel Vadot regulator-boot-on; 84*f126890aSEmmanuel Vadot }; 85*f126890aSEmmanuel Vadot 86*f126890aSEmmanuel Vadot mt6331_vtcxo2_reg: ldo-vtcxo2 { 87*f126890aSEmmanuel Vadot regulator-name = "vtcxo2"; 88*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 89*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 90*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 91*f126890aSEmmanuel Vadot regulator-always-on; 92*f126890aSEmmanuel Vadot regulator-boot-on; 93*f126890aSEmmanuel Vadot }; 94*f126890aSEmmanuel Vadot 95*f126890aSEmmanuel Vadot mt6331_avdd32_aud_reg: ldo-avdd32aud { 96*f126890aSEmmanuel Vadot regulator-name = "avdd32_aud"; 97*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 98*f126890aSEmmanuel Vadot regulator-max-microvolt = <3200000>; 99*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 100*f126890aSEmmanuel Vadot regulator-always-on; 101*f126890aSEmmanuel Vadot regulator-boot-on; 102*f126890aSEmmanuel Vadot }; 103*f126890aSEmmanuel Vadot 104*f126890aSEmmanuel Vadot mt6331_vauxa32_reg: ldo-vauxa32 { 105*f126890aSEmmanuel Vadot regulator-name = "vauxa32"; 106*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 107*f126890aSEmmanuel Vadot regulator-max-microvolt = <3200000>; 108*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 109*f126890aSEmmanuel Vadot }; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot mt6331_vcama_reg: ldo-vcama { 112*f126890aSEmmanuel Vadot regulator-name = "vcama"; 113*f126890aSEmmanuel Vadot regulator-min-microvolt = <1500000>; 114*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 115*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 116*f126890aSEmmanuel Vadot }; 117*f126890aSEmmanuel Vadot 118*f126890aSEmmanuel Vadot mt6331_vio28_reg: ldo-vio28 { 119*f126890aSEmmanuel Vadot regulator-name = "vio28"; 120*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 121*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 122*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 123*f126890aSEmmanuel Vadot regulator-always-on; 124*f126890aSEmmanuel Vadot regulator-boot-on; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot 127*f126890aSEmmanuel Vadot mt6331_vcamaf_reg: ldo-vcamaf { 128*f126890aSEmmanuel Vadot regulator-name = "vcam_af"; 129*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 130*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 131*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 132*f126890aSEmmanuel Vadot }; 133*f126890aSEmmanuel Vadot 134*f126890aSEmmanuel Vadot mt6331_vmc_reg: ldo-vmc { 135*f126890aSEmmanuel Vadot regulator-name = "vmc"; 136*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 137*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 138*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 139*f126890aSEmmanuel Vadot }; 140*f126890aSEmmanuel Vadot 141*f126890aSEmmanuel Vadot mt6331_vmch_reg: ldo-vmch { 142*f126890aSEmmanuel Vadot regulator-name = "vmch"; 143*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 144*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 145*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 146*f126890aSEmmanuel Vadot }; 147*f126890aSEmmanuel Vadot 148*f126890aSEmmanuel Vadot mt6331_vemc33_reg: ldo-vemc33 { 149*f126890aSEmmanuel Vadot regulator-name = "vemc33"; 150*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 151*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 152*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 153*f126890aSEmmanuel Vadot regulator-always-on; 154*f126890aSEmmanuel Vadot }; 155*f126890aSEmmanuel Vadot 156*f126890aSEmmanuel Vadot mt6331_vgp1_reg: ldo-vgp1 { 157*f126890aSEmmanuel Vadot regulator-name = "vgp1"; 158*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 159*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 160*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 161*f126890aSEmmanuel Vadot regulator-always-on; 162*f126890aSEmmanuel Vadot }; 163*f126890aSEmmanuel Vadot 164*f126890aSEmmanuel Vadot mt6331_vsim1_reg: ldo-vsim1 { 165*f126890aSEmmanuel Vadot regulator-name = "vsim1"; 166*f126890aSEmmanuel Vadot regulator-min-microvolt = <1700000>; 167*f126890aSEmmanuel Vadot regulator-max-microvolt = <3100000>; 168*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 169*f126890aSEmmanuel Vadot regulator-always-on; 170*f126890aSEmmanuel Vadot }; 171*f126890aSEmmanuel Vadot 172*f126890aSEmmanuel Vadot mt6331_vsim2_reg: ldo-vsim2 { 173*f126890aSEmmanuel Vadot regulator-name = "vsim2"; 174*f126890aSEmmanuel Vadot regulator-min-microvolt = <1700000>; 175*f126890aSEmmanuel Vadot regulator-max-microvolt = <3100000>; 176*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 177*f126890aSEmmanuel Vadot }; 178*f126890aSEmmanuel Vadot 179*f126890aSEmmanuel Vadot mt6331_vmipi_reg: ldo-vmipi { 180*f126890aSEmmanuel Vadot regulator-name = "vmipi"; 181*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 182*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 183*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 184*f126890aSEmmanuel Vadot regulator-always-on; 185*f126890aSEmmanuel Vadot }; 186*f126890aSEmmanuel Vadot 187*f126890aSEmmanuel Vadot mt6331_vibr_reg: ldo-vibr { 188*f126890aSEmmanuel Vadot regulator-name = "vibr"; 189*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 190*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 191*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 192*f126890aSEmmanuel Vadot }; 193*f126890aSEmmanuel Vadot 194*f126890aSEmmanuel Vadot mt6331_vgp4_reg: ldo-vgp4 { 195*f126890aSEmmanuel Vadot regulator-name = "vgp4"; 196*f126890aSEmmanuel Vadot regulator-min-microvolt = <1600000>; 197*f126890aSEmmanuel Vadot regulator-max-microvolt = <2200000>; 198*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 199*f126890aSEmmanuel Vadot regulator-always-on; 200*f126890aSEmmanuel Vadot }; 201*f126890aSEmmanuel Vadot 202*f126890aSEmmanuel Vadot mt6331_vcamd_reg: ldo-vcamd { 203*f126890aSEmmanuel Vadot regulator-name = "vcamd"; 204*f126890aSEmmanuel Vadot regulator-min-microvolt = <900000>; 205*f126890aSEmmanuel Vadot regulator-max-microvolt = <1500000>; 206*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 207*f126890aSEmmanuel Vadot regulator-always-on; 208*f126890aSEmmanuel Vadot }; 209*f126890aSEmmanuel Vadot 210*f126890aSEmmanuel Vadot mt6331_vusb10_reg: ldo-vusb10 { 211*f126890aSEmmanuel Vadot regulator-name = "vusb"; 212*f126890aSEmmanuel Vadot regulator-min-microvolt = <1000000>; 213*f126890aSEmmanuel Vadot regulator-max-microvolt = <1300000>; 214*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 215*f126890aSEmmanuel Vadot regulator-always-on; 216*f126890aSEmmanuel Vadot regulator-boot-on; 217*f126890aSEmmanuel Vadot }; 218*f126890aSEmmanuel Vadot 219*f126890aSEmmanuel Vadot mt6331_vcamio_reg: ldo-vcamio { 220*f126890aSEmmanuel Vadot regulator-name = "vcam_io"; 221*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 222*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 223*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 224*f126890aSEmmanuel Vadot }; 225*f126890aSEmmanuel Vadot 226*f126890aSEmmanuel Vadot mt6331_vsram_reg: ldo-vsram { 227*f126890aSEmmanuel Vadot regulator-name = "vsram"; 228*f126890aSEmmanuel Vadot regulator-min-microvolt = <1012500>; 229*f126890aSEmmanuel Vadot regulator-max-microvolt = <1012500>; 230*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 231*f126890aSEmmanuel Vadot regulator-always-on; 232*f126890aSEmmanuel Vadot regulator-boot-on; 233*f126890aSEmmanuel Vadot }; 234*f126890aSEmmanuel Vadot 235*f126890aSEmmanuel Vadot mt6331_vgp2_reg: ldo-vgp2 { 236*f126890aSEmmanuel Vadot regulator-name = "vgp2"; 237*f126890aSEmmanuel Vadot regulator-min-microvolt = <1100000>; 238*f126890aSEmmanuel Vadot regulator-max-microvolt = <1500000>; 239*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 240*f126890aSEmmanuel Vadot regulator-always-on; 241*f126890aSEmmanuel Vadot regulator-boot-on; 242*f126890aSEmmanuel Vadot }; 243*f126890aSEmmanuel Vadot 244*f126890aSEmmanuel Vadot mt6331_vgp3_reg: ldo-vgp3 { 245*f126890aSEmmanuel Vadot regulator-name = "vgp3"; 246*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 247*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 248*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 249*f126890aSEmmanuel Vadot regulator-always-on; 250*f126890aSEmmanuel Vadot }; 251*f126890aSEmmanuel Vadot 252*f126890aSEmmanuel Vadot mt6331_vrtc_reg: ldo-vrtc { 253*f126890aSEmmanuel Vadot regulator-name = "vrtc"; 254*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 255*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 256*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 257*f126890aSEmmanuel Vadot regulator-always-on; 258*f126890aSEmmanuel Vadot }; 259*f126890aSEmmanuel Vadot 260*f126890aSEmmanuel Vadot mt6331_vdig18_reg: ldo-vdig18 { 261*f126890aSEmmanuel Vadot regulator-name = "dvdd18_dig"; 262*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 263*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 264*f126890aSEmmanuel Vadot regulator-ramp-delay = <0>; 265*f126890aSEmmanuel Vadot regulator-always-on; 266*f126890aSEmmanuel Vadot }; 267*f126890aSEmmanuel Vadot }; 268*f126890aSEmmanuel Vadot 269*f126890aSEmmanuel Vadot mt6331rtc: mt6331rtc { 270*f126890aSEmmanuel Vadot compatible = "mediatek,mt6331-rtc"; 271*f126890aSEmmanuel Vadot }; 272*f126890aSEmmanuel Vadot 273*f126890aSEmmanuel Vadot mt6331keys: mt6331keys { 274*f126890aSEmmanuel Vadot compatible = "mediatek,mt6331-keys"; 275*f126890aSEmmanuel Vadot power { 276*f126890aSEmmanuel Vadot linux,keycodes = <KEY_POWER>; 277*f126890aSEmmanuel Vadot wakeup-source; 278*f126890aSEmmanuel Vadot }; 279*f126890aSEmmanuel Vadot home { 280*f126890aSEmmanuel Vadot linux,keycodes = <KEY_HOME>; 281*f126890aSEmmanuel Vadot }; 282*f126890aSEmmanuel Vadot }; 283*f126890aSEmmanuel Vadot }; 284*f126890aSEmmanuel Vadot}; 285