1*c66ec88fSEmmanuel VadotMediatek MT6397 Regulator 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: "mediatek,mt6397-regulator" 5*c66ec88fSEmmanuel Vadot- mt6397regulator: List of regulators provided by this controller. It is named 6*c66ec88fSEmmanuel Vadot according to its regulator type, buck_<name> and ldo_<name>. 7*c66ec88fSEmmanuel Vadot The definition for each of these nodes is defined using the standard binding 8*c66ec88fSEmmanuel Vadot for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel VadotThe valid names for regulators are:: 11*c66ec88fSEmmanuel VadotBUCK: 12*c66ec88fSEmmanuel Vadot buck_vpca15, buck_vpca7, buck_vsramca15, buck_vsramca7, buck_vcore, buck_vgpu, 13*c66ec88fSEmmanuel Vadot buck_vdrm, buck_vio18 14*c66ec88fSEmmanuel VadotLDO: 15*c66ec88fSEmmanuel Vadot ldo_vtcxo, ldo_va28, ldo_vcama, ldo_vio28, ldo_vusb, ldo_vmc, ldo_vmch, 16*c66ec88fSEmmanuel Vadot ldo_vemc3v3, ldo_vgp1, ldo_vgp2, ldo_vgp3, ldo_vgp4, ldo_vgp5, ldo_vgp6, 17*c66ec88fSEmmanuel Vadot ldo_vibr 18*c66ec88fSEmmanuel Vadot 19*c66ec88fSEmmanuel VadotBUCK regulators can set regulator-initial-mode and regulator-allowed-modes to 20*c66ec88fSEmmanuel Vadotvalues specified in dt-bindings/regulator/mediatek,mt6397-regulator.h 21*c66ec88fSEmmanuel Vadot 22*c66ec88fSEmmanuel VadotExample: 23*c66ec88fSEmmanuel Vadot pmic { 24*c66ec88fSEmmanuel Vadot compatible = "mediatek,mt6397"; 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel Vadot mt6397regulator: mt6397regulator { 27*c66ec88fSEmmanuel Vadot compatible = "mediatek,mt6397-regulator"; 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot mt6397_vpca15_reg: buck_vpca15 { 30*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vpca15"; 31*c66ec88fSEmmanuel Vadot regulator-name = "vpca15"; 32*c66ec88fSEmmanuel Vadot regulator-min-microvolt = < 850000>; 33*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 34*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 35*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <200>; 36*c66ec88fSEmmanuel Vadot }; 37*c66ec88fSEmmanuel Vadot 38*c66ec88fSEmmanuel Vadot mt6397_vpca7_reg: buck_vpca7 { 39*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vpca7"; 40*c66ec88fSEmmanuel Vadot regulator-name = "vpca7"; 41*c66ec88fSEmmanuel Vadot regulator-min-microvolt = < 850000>; 42*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 43*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 44*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <115>; 45*c66ec88fSEmmanuel Vadot }; 46*c66ec88fSEmmanuel Vadot 47*c66ec88fSEmmanuel Vadot mt6397_vsramca15_reg: buck_vsramca15 { 48*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vsramca15"; 49*c66ec88fSEmmanuel Vadot regulator-name = "vsramca15"; 50*c66ec88fSEmmanuel Vadot regulator-min-microvolt = < 850000>; 51*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 52*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 53*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <115>; 54*c66ec88fSEmmanuel Vadot 55*c66ec88fSEmmanuel Vadot }; 56*c66ec88fSEmmanuel Vadot 57*c66ec88fSEmmanuel Vadot mt6397_vsramca7_reg: buck_vsramca7 { 58*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vsramca7"; 59*c66ec88fSEmmanuel Vadot regulator-name = "vsramca7"; 60*c66ec88fSEmmanuel Vadot regulator-min-microvolt = < 850000>; 61*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 62*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 63*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <115>; 64*c66ec88fSEmmanuel Vadot 65*c66ec88fSEmmanuel Vadot }; 66*c66ec88fSEmmanuel Vadot 67*c66ec88fSEmmanuel Vadot mt6397_vcore_reg: buck_vcore { 68*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vcore"; 69*c66ec88fSEmmanuel Vadot regulator-name = "vcore"; 70*c66ec88fSEmmanuel Vadot regulator-min-microvolt = < 850000>; 71*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 72*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 73*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <115>; 74*c66ec88fSEmmanuel Vadot }; 75*c66ec88fSEmmanuel Vadot 76*c66ec88fSEmmanuel Vadot mt6397_vgpu_reg: buck_vgpu { 77*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vgpu"; 78*c66ec88fSEmmanuel Vadot regulator-name = "vgpu"; 79*c66ec88fSEmmanuel Vadot regulator-min-microvolt = < 700000>; 80*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 81*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 82*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <115>; 83*c66ec88fSEmmanuel Vadot }; 84*c66ec88fSEmmanuel Vadot 85*c66ec88fSEmmanuel Vadot mt6397_vdrm_reg: buck_vdrm { 86*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vdrm"; 87*c66ec88fSEmmanuel Vadot regulator-name = "vdrm"; 88*c66ec88fSEmmanuel Vadot regulator-min-microvolt = < 800000>; 89*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1400000>; 90*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 91*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <500>; 92*c66ec88fSEmmanuel Vadot }; 93*c66ec88fSEmmanuel Vadot 94*c66ec88fSEmmanuel Vadot mt6397_vio18_reg: buck_vio18 { 95*c66ec88fSEmmanuel Vadot regulator-compatible = "buck_vio18"; 96*c66ec88fSEmmanuel Vadot regulator-name = "vio18"; 97*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1500000>; 98*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <2120000>; 99*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <12500>; 100*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <500>; 101*c66ec88fSEmmanuel Vadot }; 102*c66ec88fSEmmanuel Vadot 103*c66ec88fSEmmanuel Vadot mt6397_vtcxo_reg: ldo_vtcxo { 104*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vtcxo"; 105*c66ec88fSEmmanuel Vadot regulator-name = "vtcxo"; 106*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <2800000>; 107*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <2800000>; 108*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <90>; 109*c66ec88fSEmmanuel Vadot }; 110*c66ec88fSEmmanuel Vadot 111*c66ec88fSEmmanuel Vadot mt6397_va28_reg: ldo_va28 { 112*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_va28"; 113*c66ec88fSEmmanuel Vadot regulator-name = "va28"; 114*c66ec88fSEmmanuel Vadot /* fixed output 2.8 V */ 115*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 116*c66ec88fSEmmanuel Vadot }; 117*c66ec88fSEmmanuel Vadot 118*c66ec88fSEmmanuel Vadot mt6397_vcama_reg: ldo_vcama { 119*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vcama"; 120*c66ec88fSEmmanuel Vadot regulator-name = "vcama"; 121*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1500000>; 122*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <2800000>; 123*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 124*c66ec88fSEmmanuel Vadot }; 125*c66ec88fSEmmanuel Vadot 126*c66ec88fSEmmanuel Vadot mt6397_vio28_reg: ldo_vio28 { 127*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vio28"; 128*c66ec88fSEmmanuel Vadot regulator-name = "vio28"; 129*c66ec88fSEmmanuel Vadot /* fixed output 2.8 V */ 130*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <240>; 131*c66ec88fSEmmanuel Vadot }; 132*c66ec88fSEmmanuel Vadot 133*c66ec88fSEmmanuel Vadot mt6397_usb_reg: ldo_vusb { 134*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vusb"; 135*c66ec88fSEmmanuel Vadot regulator-name = "vusb"; 136*c66ec88fSEmmanuel Vadot /* fixed output 3.3 V */ 137*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 138*c66ec88fSEmmanuel Vadot }; 139*c66ec88fSEmmanuel Vadot 140*c66ec88fSEmmanuel Vadot mt6397_vmc_reg: ldo_vmc { 141*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vmc"; 142*c66ec88fSEmmanuel Vadot regulator-name = "vmc"; 143*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 144*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 145*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 146*c66ec88fSEmmanuel Vadot }; 147*c66ec88fSEmmanuel Vadot 148*c66ec88fSEmmanuel Vadot mt6397_vmch_reg: ldo_vmch { 149*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vmch"; 150*c66ec88fSEmmanuel Vadot regulator-name = "vmch"; 151*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 152*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 153*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 154*c66ec88fSEmmanuel Vadot }; 155*c66ec88fSEmmanuel Vadot 156*c66ec88fSEmmanuel Vadot mt6397_vemc_3v3_reg: ldo_vemc3v3 { 157*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vemc3v3"; 158*c66ec88fSEmmanuel Vadot regulator-name = "vemc_3v3"; 159*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 160*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 161*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 162*c66ec88fSEmmanuel Vadot }; 163*c66ec88fSEmmanuel Vadot 164*c66ec88fSEmmanuel Vadot mt6397_vgp1_reg: ldo_vgp1 { 165*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vgp1"; 166*c66ec88fSEmmanuel Vadot regulator-name = "vcamd"; 167*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1220000>; 168*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 169*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <240>; 170*c66ec88fSEmmanuel Vadot }; 171*c66ec88fSEmmanuel Vadot 172*c66ec88fSEmmanuel Vadot mt6397_vgp2_reg: ldo_vgp2 { 173*c66ec88fSEmmanuel Vadot egulator-compatible = "ldo_vgp2"; 174*c66ec88fSEmmanuel Vadot regulator-name = "vcamio"; 175*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1000000>; 176*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 177*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 178*c66ec88fSEmmanuel Vadot }; 179*c66ec88fSEmmanuel Vadot 180*c66ec88fSEmmanuel Vadot mt6397_vgp3_reg: ldo_vgp3 { 181*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vgp3"; 182*c66ec88fSEmmanuel Vadot regulator-name = "vcamaf"; 183*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 184*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 185*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 186*c66ec88fSEmmanuel Vadot }; 187*c66ec88fSEmmanuel Vadot 188*c66ec88fSEmmanuel Vadot mt6397_vgp4_reg: ldo_vgp4 { 189*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vgp4"; 190*c66ec88fSEmmanuel Vadot regulator-name = "vgp4"; 191*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 192*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 193*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 194*c66ec88fSEmmanuel Vadot }; 195*c66ec88fSEmmanuel Vadot 196*c66ec88fSEmmanuel Vadot mt6397_vgp5_reg: ldo_vgp5 { 197*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vgp5"; 198*c66ec88fSEmmanuel Vadot regulator-name = "vgp5"; 199*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 200*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 201*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 202*c66ec88fSEmmanuel Vadot }; 203*c66ec88fSEmmanuel Vadot 204*c66ec88fSEmmanuel Vadot mt6397_vgp6_reg: ldo_vgp6 { 205*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vgp6"; 206*c66ec88fSEmmanuel Vadot regulator-name = "vgp6"; 207*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 208*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 209*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 210*c66ec88fSEmmanuel Vadot }; 211*c66ec88fSEmmanuel Vadot 212*c66ec88fSEmmanuel Vadot mt6397_vibr_reg: ldo_vibr { 213*c66ec88fSEmmanuel Vadot regulator-compatible = "ldo_vibr"; 214*c66ec88fSEmmanuel Vadot regulator-name = "vibr"; 215*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1200000>; 216*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 217*c66ec88fSEmmanuel Vadot regulator-enable-ramp-delay = <218>; 218*c66ec88fSEmmanuel Vadot }; 219*c66ec88fSEmmanuel Vadot }; 220*c66ec88fSEmmanuel Vadot }; 221