1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (c) 2017-2018 MediaTek Inc. 4*f126890aSEmmanuel Vadot * Author: John Crispin <john@phrozen.org> 5*f126890aSEmmanuel Vadot * Sean Wang <sean.wang@mediatek.com> 6*f126890aSEmmanuel Vadot * 7*f126890aSEmmanuel Vadot */ 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadot&pwrap { 10*f126890aSEmmanuel Vadot pmic: mt6323 { 11*f126890aSEmmanuel Vadot compatible = "mediatek,mt6323"; 12*f126890aSEmmanuel Vadot interrupt-parent = <&pio>; 13*f126890aSEmmanuel Vadot interrupts = <150 IRQ_TYPE_LEVEL_HIGH>; 14*f126890aSEmmanuel Vadot interrupt-controller; 15*f126890aSEmmanuel Vadot #interrupt-cells = <2>; 16*f126890aSEmmanuel Vadot 17*f126890aSEmmanuel Vadot mt6323_leds: leds { 18*f126890aSEmmanuel Vadot compatible = "mediatek,mt6323-led"; 19*f126890aSEmmanuel Vadot #address-cells = <1>; 20*f126890aSEmmanuel Vadot #size-cells = <0>; 21*f126890aSEmmanuel Vadot status = "disabled"; 22*f126890aSEmmanuel Vadot }; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot mt6323regulator: mt6323regulator { 25*f126890aSEmmanuel Vadot compatible = "mediatek,mt6323-regulator"; 26*f126890aSEmmanuel Vadot 27*f126890aSEmmanuel Vadot mt6323_vproc_reg: buck_vproc { 28*f126890aSEmmanuel Vadot regulator-name = "vproc"; 29*f126890aSEmmanuel Vadot regulator-min-microvolt = < 700000>; 30*f126890aSEmmanuel Vadot regulator-max-microvolt = <1350000>; 31*f126890aSEmmanuel Vadot regulator-ramp-delay = <12500>; 32*f126890aSEmmanuel Vadot regulator-always-on; 33*f126890aSEmmanuel Vadot regulator-boot-on; 34*f126890aSEmmanuel Vadot }; 35*f126890aSEmmanuel Vadot 36*f126890aSEmmanuel Vadot mt6323_vsys_reg: buck_vsys { 37*f126890aSEmmanuel Vadot regulator-name = "vsys"; 38*f126890aSEmmanuel Vadot regulator-min-microvolt = <1400000>; 39*f126890aSEmmanuel Vadot regulator-max-microvolt = <2987500>; 40*f126890aSEmmanuel Vadot regulator-ramp-delay = <25000>; 41*f126890aSEmmanuel Vadot regulator-always-on; 42*f126890aSEmmanuel Vadot regulator-boot-on; 43*f126890aSEmmanuel Vadot }; 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot mt6323_vpa_reg: buck_vpa { 46*f126890aSEmmanuel Vadot regulator-name = "vpa"; 47*f126890aSEmmanuel Vadot regulator-min-microvolt = < 500000>; 48*f126890aSEmmanuel Vadot regulator-max-microvolt = <3650000>; 49*f126890aSEmmanuel Vadot }; 50*f126890aSEmmanuel Vadot 51*f126890aSEmmanuel Vadot mt6323_vtcxo_reg: ldo_vtcxo { 52*f126890aSEmmanuel Vadot regulator-name = "vtcxo"; 53*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 54*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 55*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <90>; 56*f126890aSEmmanuel Vadot regulator-always-on; 57*f126890aSEmmanuel Vadot regulator-boot-on; 58*f126890aSEmmanuel Vadot }; 59*f126890aSEmmanuel Vadot 60*f126890aSEmmanuel Vadot mt6323_vcn28_reg: ldo_vcn28 { 61*f126890aSEmmanuel Vadot regulator-name = "vcn28"; 62*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 63*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 64*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <185>; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot mt6323_vcn33_bt_reg: ldo_vcn33_bt { 68*f126890aSEmmanuel Vadot regulator-name = "vcn33_bt"; 69*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 70*f126890aSEmmanuel Vadot regulator-max-microvolt = <3600000>; 71*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <185>; 72*f126890aSEmmanuel Vadot }; 73*f126890aSEmmanuel Vadot 74*f126890aSEmmanuel Vadot mt6323_vcn33_wifi_reg: ldo_vcn33_wifi { 75*f126890aSEmmanuel Vadot regulator-name = "vcn33_wifi"; 76*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 77*f126890aSEmmanuel Vadot regulator-max-microvolt = <3600000>; 78*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <185>; 79*f126890aSEmmanuel Vadot }; 80*f126890aSEmmanuel Vadot 81*f126890aSEmmanuel Vadot mt6323_va_reg: ldo_va { 82*f126890aSEmmanuel Vadot regulator-name = "va"; 83*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 84*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 85*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 86*f126890aSEmmanuel Vadot regulator-always-on; 87*f126890aSEmmanuel Vadot regulator-boot-on; 88*f126890aSEmmanuel Vadot }; 89*f126890aSEmmanuel Vadot 90*f126890aSEmmanuel Vadot mt6323_vcama_reg: ldo_vcama { 91*f126890aSEmmanuel Vadot regulator-name = "vcama"; 92*f126890aSEmmanuel Vadot regulator-min-microvolt = <1500000>; 93*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 94*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 95*f126890aSEmmanuel Vadot }; 96*f126890aSEmmanuel Vadot 97*f126890aSEmmanuel Vadot mt6323_vio28_reg: ldo_vio28 { 98*f126890aSEmmanuel Vadot regulator-name = "vio28"; 99*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 100*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 101*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 102*f126890aSEmmanuel Vadot regulator-always-on; 103*f126890aSEmmanuel Vadot regulator-boot-on; 104*f126890aSEmmanuel Vadot }; 105*f126890aSEmmanuel Vadot 106*f126890aSEmmanuel Vadot mt6323_vusb_reg: ldo_vusb { 107*f126890aSEmmanuel Vadot regulator-name = "vusb"; 108*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 109*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 110*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 111*f126890aSEmmanuel Vadot regulator-boot-on; 112*f126890aSEmmanuel Vadot }; 113*f126890aSEmmanuel Vadot 114*f126890aSEmmanuel Vadot mt6323_vmc_reg: ldo_vmc { 115*f126890aSEmmanuel Vadot regulator-name = "vmc"; 116*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 117*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 118*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <36>; 119*f126890aSEmmanuel Vadot regulator-boot-on; 120*f126890aSEmmanuel Vadot }; 121*f126890aSEmmanuel Vadot 122*f126890aSEmmanuel Vadot mt6323_vmch_reg: ldo_vmch { 123*f126890aSEmmanuel Vadot regulator-name = "vmch"; 124*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 125*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 126*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <36>; 127*f126890aSEmmanuel Vadot regulator-boot-on; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot 130*f126890aSEmmanuel Vadot mt6323_vemc3v3_reg: ldo_vemc3v3 { 131*f126890aSEmmanuel Vadot regulator-name = "vemc3v3"; 132*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 133*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 134*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <36>; 135*f126890aSEmmanuel Vadot regulator-boot-on; 136*f126890aSEmmanuel Vadot }; 137*f126890aSEmmanuel Vadot 138*f126890aSEmmanuel Vadot mt6323_vgp1_reg: ldo_vgp1 { 139*f126890aSEmmanuel Vadot regulator-name = "vgp1"; 140*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 141*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 142*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 143*f126890aSEmmanuel Vadot }; 144*f126890aSEmmanuel Vadot 145*f126890aSEmmanuel Vadot mt6323_vgp2_reg: ldo_vgp2 { 146*f126890aSEmmanuel Vadot regulator-name = "vgp2"; 147*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 148*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 149*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 150*f126890aSEmmanuel Vadot }; 151*f126890aSEmmanuel Vadot 152*f126890aSEmmanuel Vadot mt6323_vgp3_reg: ldo_vgp3 { 153*f126890aSEmmanuel Vadot regulator-name = "vgp3"; 154*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 155*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 156*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 157*f126890aSEmmanuel Vadot }; 158*f126890aSEmmanuel Vadot 159*f126890aSEmmanuel Vadot mt6323_vcn18_reg: ldo_vcn18 { 160*f126890aSEmmanuel Vadot regulator-name = "vcn18"; 161*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 162*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 163*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 164*f126890aSEmmanuel Vadot }; 165*f126890aSEmmanuel Vadot 166*f126890aSEmmanuel Vadot mt6323_vsim1_reg: ldo_vsim1 { 167*f126890aSEmmanuel Vadot regulator-name = "vsim1"; 168*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 169*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 170*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 171*f126890aSEmmanuel Vadot }; 172*f126890aSEmmanuel Vadot 173*f126890aSEmmanuel Vadot mt6323_vsim2_reg: ldo_vsim2 { 174*f126890aSEmmanuel Vadot regulator-name = "vsim2"; 175*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 176*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 177*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 178*f126890aSEmmanuel Vadot }; 179*f126890aSEmmanuel Vadot 180*f126890aSEmmanuel Vadot mt6323_vrtc_reg: ldo_vrtc { 181*f126890aSEmmanuel Vadot regulator-name = "vrtc"; 182*f126890aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 183*f126890aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 184*f126890aSEmmanuel Vadot regulator-always-on; 185*f126890aSEmmanuel Vadot regulator-boot-on; 186*f126890aSEmmanuel Vadot }; 187*f126890aSEmmanuel Vadot 188*f126890aSEmmanuel Vadot mt6323_vcamaf_reg: ldo_vcamaf { 189*f126890aSEmmanuel Vadot regulator-name = "vcamaf"; 190*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 191*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 192*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 193*f126890aSEmmanuel Vadot }; 194*f126890aSEmmanuel Vadot 195*f126890aSEmmanuel Vadot mt6323_vibr_reg: ldo_vibr { 196*f126890aSEmmanuel Vadot regulator-name = "vibr"; 197*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 198*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 199*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <36>; 200*f126890aSEmmanuel Vadot }; 201*f126890aSEmmanuel Vadot 202*f126890aSEmmanuel Vadot mt6323_vrf18_reg: ldo_vrf18 { 203*f126890aSEmmanuel Vadot regulator-name = "vrf18"; 204*f126890aSEmmanuel Vadot regulator-min-microvolt = <1825000>; 205*f126890aSEmmanuel Vadot regulator-max-microvolt = <1825000>; 206*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <187>; 207*f126890aSEmmanuel Vadot }; 208*f126890aSEmmanuel Vadot 209*f126890aSEmmanuel Vadot mt6323_vm_reg: ldo_vm { 210*f126890aSEmmanuel Vadot regulator-name = "vm"; 211*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 212*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 213*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 214*f126890aSEmmanuel Vadot regulator-always-on; 215*f126890aSEmmanuel Vadot regulator-boot-on; 216*f126890aSEmmanuel Vadot }; 217*f126890aSEmmanuel Vadot 218*f126890aSEmmanuel Vadot mt6323_vio18_reg: ldo_vio18 { 219*f126890aSEmmanuel Vadot regulator-name = "vio18"; 220*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 221*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 222*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 223*f126890aSEmmanuel Vadot regulator-always-on; 224*f126890aSEmmanuel Vadot regulator-boot-on; 225*f126890aSEmmanuel Vadot }; 226*f126890aSEmmanuel Vadot 227*f126890aSEmmanuel Vadot mt6323_vcamd_reg: ldo_vcamd { 228*f126890aSEmmanuel Vadot regulator-name = "vcamd"; 229*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 230*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 231*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 232*f126890aSEmmanuel Vadot }; 233*f126890aSEmmanuel Vadot 234*f126890aSEmmanuel Vadot mt6323_vcamio_reg: ldo_vcamio { 235*f126890aSEmmanuel Vadot regulator-name = "vcamio"; 236*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 237*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 238*f126890aSEmmanuel Vadot regulator-enable-ramp-delay = <216>; 239*f126890aSEmmanuel Vadot }; 240*f126890aSEmmanuel Vadot }; 241*f126890aSEmmanuel Vadot 242*f126890aSEmmanuel Vadot mt6323keys: mt6323keys { 243*f126890aSEmmanuel Vadot compatible = "mediatek,mt6323-keys"; 244*f126890aSEmmanuel Vadot mediatek,long-press-mode = <1>; 245*f126890aSEmmanuel Vadot power-off-time-sec = <0>; 246*f126890aSEmmanuel Vadot 247*f126890aSEmmanuel Vadot power { 248*f126890aSEmmanuel Vadot linux,keycodes = <116>; 249*f126890aSEmmanuel Vadot wakeup-source; 250*f126890aSEmmanuel Vadot }; 251*f126890aSEmmanuel Vadot 252*f126890aSEmmanuel Vadot home { 253*f126890aSEmmanuel Vadot linux,keycodes = <114>; 254*f126890aSEmmanuel Vadot }; 255*f126890aSEmmanuel Vadot }; 256*f126890aSEmmanuel Vadot 257*f126890aSEmmanuel Vadot codec: mt6397codec { 258*f126890aSEmmanuel Vadot compatible = "mediatek,mt6397-codec"; 259*f126890aSEmmanuel Vadot }; 260*f126890aSEmmanuel Vadot 261*f126890aSEmmanuel Vadot power-controller { 262*f126890aSEmmanuel Vadot compatible = "mediatek,mt6323-pwrc"; 263*f126890aSEmmanuel Vadot }; 264*f126890aSEmmanuel Vadot 265*f126890aSEmmanuel Vadot rtc { 266*f126890aSEmmanuel Vadot compatible = "mediatek,mt6323-rtc"; 267*f126890aSEmmanuel Vadot }; 268*f126890aSEmmanuel Vadot }; 269*f126890aSEmmanuel Vadot}; 270