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