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