1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* 2 /* 3 * Copyright (c) 2020 MediaTek Inc. 3 * Copyright (c) 2020 MediaTek Inc. 4 * Copyright (c) 2023 BayLibre Inc. 4 * Copyright (c) 2023 BayLibre Inc. 5 */ 5 */ 6 6 7 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/input.h> 8 8 9 &pwrap { 9 &pwrap { 10 mt6357_pmic: pmic { 10 mt6357_pmic: pmic { 11 compatible = "mediatek,mt6357" 11 compatible = "mediatek,mt6357"; 12 12 13 pmic_adc: adc { 13 pmic_adc: adc { 14 compatible = "mediatek 14 compatible = "mediatek,mt6357-auxadc"; 15 #io-channel-cells = <1 15 #io-channel-cells = <1>; 16 }; 16 }; 17 17 18 regulators { 18 regulators { 19 mt6357_vproc_reg: buck 19 mt6357_vproc_reg: buck-vproc { 20 regulator-name 20 regulator-name = "vproc"; 21 regulator-min- 21 regulator-min-microvolt = <518750>; 22 regulator-max- 22 regulator-max-microvolt = <1312500>; 23 regulator-ramp 23 regulator-ramp-delay = <6250>; 24 regulator-enab 24 regulator-enable-ramp-delay = <220>; 25 regulator-alwa 25 regulator-always-on; 26 }; 26 }; 27 27 28 mt6357_vcore_reg: buck 28 mt6357_vcore_reg: buck-vcore { 29 regulator-name 29 regulator-name = "vcore"; 30 regulator-min- 30 regulator-min-microvolt = <518750>; 31 regulator-max- 31 regulator-max-microvolt = <1312500>; 32 regulator-ramp 32 regulator-ramp-delay = <6250>; 33 regulator-enab 33 regulator-enable-ramp-delay = <220>; 34 regulator-alwa 34 regulator-always-on; 35 }; 35 }; 36 36 37 mt6357_vmodem_reg: buc 37 mt6357_vmodem_reg: buck-vmodem { 38 regulator-name 38 regulator-name = "vmodem"; 39 regulator-min- 39 regulator-min-microvolt = <500000>; 40 regulator-max- 40 regulator-max-microvolt = <1193750>; 41 regulator-ramp 41 regulator-ramp-delay = <6250>; 42 regulator-enab 42 regulator-enable-ramp-delay = <220>; 43 }; 43 }; 44 44 45 mt6357_vs1_reg: buck-v 45 mt6357_vs1_reg: buck-vs1 { 46 regulator-name 46 regulator-name = "vs1"; 47 regulator-min- 47 regulator-min-microvolt = <1200000>; 48 regulator-max- 48 regulator-max-microvolt = <2200000>; 49 regulator-ramp 49 regulator-ramp-delay = <12500>; 50 regulator-enab 50 regulator-enable-ramp-delay = <220>; 51 regulator-alwa 51 regulator-always-on; 52 }; 52 }; 53 53 54 mt6357_vpa_reg: buck-v 54 mt6357_vpa_reg: buck-vpa { 55 regulator-name 55 regulator-name = "vpa"; 56 regulator-min- 56 regulator-min-microvolt = <500000>; 57 regulator-max- 57 regulator-max-microvolt = <3650000>; 58 regulator-ramp 58 regulator-ramp-delay = <50000>; 59 regulator-enab 59 regulator-enable-ramp-delay = <220>; 60 }; 60 }; 61 61 62 mt6357_vfe28_reg: ldo- 62 mt6357_vfe28_reg: ldo-vfe28 { 63 compatible = " 63 compatible = "regulator-fixed"; 64 regulator-name 64 regulator-name = "vfe28"; 65 regulator-min- 65 regulator-min-microvolt = <2800000>; 66 regulator-max- 66 regulator-max-microvolt = <2800000>; 67 regulator-enab 67 regulator-enable-ramp-delay = <264>; 68 }; 68 }; 69 69 70 mt6357_vxo22_reg: ldo- 70 mt6357_vxo22_reg: ldo-vxo22 { 71 regulator-name 71 regulator-name = "vxo22"; 72 regulator-min- 72 regulator-min-microvolt = <2200000>; 73 regulator-max- 73 regulator-max-microvolt = <2400000>; 74 regulator-enab 74 regulator-enable-ramp-delay = <110>; 75 }; 75 }; 76 76 77 mt6357_vrf18_reg: ldo- 77 mt6357_vrf18_reg: ldo-vrf18 { 78 compatible = " 78 compatible = "regulator-fixed"; 79 regulator-name 79 regulator-name = "vrf18"; 80 regulator-min- 80 regulator-min-microvolt = <1800000>; 81 regulator-max- 81 regulator-max-microvolt = <1800000>; 82 regulator-enab 82 regulator-enable-ramp-delay = <110>; 83 }; 83 }; 84 84 85 mt6357_vrf12_reg: ldo- 85 mt6357_vrf12_reg: ldo-vrf12 { 86 compatible = " 86 compatible = "regulator-fixed"; 87 regulator-name 87 regulator-name = "vrf12"; 88 regulator-min- 88 regulator-min-microvolt = <1200000>; 89 regulator-max- 89 regulator-max-microvolt = <1200000>; 90 regulator-enab 90 regulator-enable-ramp-delay = <110>; 91 }; 91 }; 92 92 93 mt6357_vefuse_reg: ldo 93 mt6357_vefuse_reg: ldo-vefuse { 94 regulator-name 94 regulator-name = "vefuse"; 95 regulator-min- 95 regulator-min-microvolt = <1200000>; 96 regulator-max- 96 regulator-max-microvolt = <3300000>; 97 regulator-enab 97 regulator-enable-ramp-delay = <264>; 98 }; 98 }; 99 99 100 mt6357_vcn33_bt_reg: l 100 mt6357_vcn33_bt_reg: ldo-vcn33-bt { 101 regulator-name 101 regulator-name = "vcn33-bt"; 102 regulator-min- 102 regulator-min-microvolt = <3300000>; 103 regulator-max- 103 regulator-max-microvolt = <3500000>; 104 regulator-enab 104 regulator-enable-ramp-delay = <264>; 105 }; 105 }; 106 106 107 mt6357_vcn33_wifi_reg: 107 mt6357_vcn33_wifi_reg: ldo-vcn33-wifi { 108 regulator-name 108 regulator-name = "vcn33-wifi"; 109 regulator-min- 109 regulator-min-microvolt = <3300000>; 110 regulator-max- 110 regulator-max-microvolt = <3500000>; 111 regulator-enab 111 regulator-enable-ramp-delay = <264>; 112 }; 112 }; 113 113 114 mt6357_vcn28_reg: ldo- 114 mt6357_vcn28_reg: ldo-vcn28 { 115 compatible = " 115 compatible = "regulator-fixed"; 116 regulator-name 116 regulator-name = "vcn28"; 117 regulator-min- 117 regulator-min-microvolt = <2800000>; 118 regulator-max- 118 regulator-max-microvolt = <2800000>; 119 regulator-enab 119 regulator-enable-ramp-delay = <264>; 120 }; 120 }; 121 121 122 mt6357_vcn18_reg: ldo- 122 mt6357_vcn18_reg: ldo-vcn18 { 123 compatible = " 123 compatible = "regulator-fixed"; 124 regulator-name 124 regulator-name = "vcn18"; 125 regulator-min- 125 regulator-min-microvolt = <1800000>; 126 regulator-max- 126 regulator-max-microvolt = <1800000>; 127 regulator-enab 127 regulator-enable-ramp-delay = <264>; 128 }; 128 }; 129 129 130 mt6357_vcama_reg: ldo- 130 mt6357_vcama_reg: ldo-vcama { 131 regulator-name 131 regulator-name = "vcama"; 132 regulator-min- 132 regulator-min-microvolt = <2500000>; 133 regulator-max- 133 regulator-max-microvolt = <2800000>; 134 regulator-enab 134 regulator-enable-ramp-delay = <264>; 135 }; 135 }; 136 136 137 mt6357_vcamd_reg: ldo- 137 mt6357_vcamd_reg: ldo-vcamd { 138 regulator-name 138 regulator-name = "vcamd"; 139 regulator-min- 139 regulator-min-microvolt = <1000000>; 140 regulator-max- 140 regulator-max-microvolt = <1800000>; 141 regulator-enab 141 regulator-enable-ramp-delay = <264>; 142 }; 142 }; 143 143 144 mt6357_vcamio_reg: ldo 144 mt6357_vcamio_reg: ldo-vcamio18 { 145 compatible = " 145 compatible = "regulator-fixed"; 146 regulator-name 146 regulator-name = "vcamio"; 147 regulator-min- 147 regulator-min-microvolt = <1800000>; 148 regulator-max- 148 regulator-max-microvolt = <1800000>; 149 regulator-enab 149 regulator-enable-ramp-delay = <264>; 150 }; 150 }; 151 151 152 mt6357_vldo28_reg: ldo 152 mt6357_vldo28_reg: ldo-vldo28 { 153 regulator-name 153 regulator-name = "vldo28"; 154 regulator-min- 154 regulator-min-microvolt = <2800000>; 155 regulator-max- 155 regulator-max-microvolt = <3000000>; 156 regulator-enab 156 regulator-enable-ramp-delay = <264>; 157 }; 157 }; 158 158 159 mt6357_vsram_others_re 159 mt6357_vsram_others_reg: ldo-vsram-others { 160 regulator-name 160 regulator-name = "vsram-others"; 161 regulator-min- 161 regulator-min-microvolt = <518750>; 162 regulator-max- 162 regulator-max-microvolt = <1312500>; 163 regulator-ramp 163 regulator-ramp-delay = <6250>; 164 regulator-enab 164 regulator-enable-ramp-delay = <110>; 165 regulator-alwa 165 regulator-always-on; 166 }; 166 }; 167 167 168 mt6357_vsram_proc_reg: 168 mt6357_vsram_proc_reg: ldo-vsram-proc { 169 regulator-name 169 regulator-name = "vsram-proc"; 170 regulator-min- 170 regulator-min-microvolt = <518750>; 171 regulator-max- 171 regulator-max-microvolt = <1312500>; 172 regulator-ramp 172 regulator-ramp-delay = <6250>; 173 regulator-enab 173 regulator-enable-ramp-delay = <110>; 174 regulator-alwa 174 regulator-always-on; 175 }; 175 }; 176 176 177 mt6357_vaux18_reg: ldo 177 mt6357_vaux18_reg: ldo-vaux18 { 178 compatible = " 178 compatible = "regulator-fixed"; 179 regulator-name 179 regulator-name = "vaux18"; 180 regulator-min- 180 regulator-min-microvolt = <1800000>; 181 regulator-max- 181 regulator-max-microvolt = <1800000>; 182 regulator-enab 182 regulator-enable-ramp-delay = <264>; 183 }; 183 }; 184 184 185 mt6357_vaud28_reg: ldo 185 mt6357_vaud28_reg: ldo-vaud28 { 186 compatible = " 186 compatible = "regulator-fixed"; 187 regulator-name 187 regulator-name = "vaud28"; 188 regulator-min- 188 regulator-min-microvolt = <2800000>; 189 regulator-max- 189 regulator-max-microvolt = <2800000>; 190 regulator-enab 190 regulator-enable-ramp-delay = <264>; 191 }; 191 }; 192 192 193 mt6357_vio28_reg: ldo- 193 mt6357_vio28_reg: ldo-vio28 { 194 compatible = " 194 compatible = "regulator-fixed"; 195 regulator-name 195 regulator-name = "vio28"; 196 regulator-min- 196 regulator-min-microvolt = <2800000>; 197 regulator-max- 197 regulator-max-microvolt = <2800000>; 198 regulator-enab 198 regulator-enable-ramp-delay = <264>; 199 }; 199 }; 200 200 201 mt6357_vio18_reg: ldo- 201 mt6357_vio18_reg: ldo-vio18 { 202 compatible = " 202 compatible = "regulator-fixed"; 203 regulator-name 203 regulator-name = "vio18"; 204 regulator-min- 204 regulator-min-microvolt = <1800000>; 205 regulator-max- 205 regulator-max-microvolt = <1800000>; 206 regulator-enab 206 regulator-enable-ramp-delay = <264>; 207 regulator-alwa 207 regulator-always-on; 208 }; 208 }; 209 209 210 mt6357_vdram_reg: ldo- 210 mt6357_vdram_reg: ldo-vdram { 211 regulator-name 211 regulator-name = "vdram"; 212 regulator-min- 212 regulator-min-microvolt = <1100000>; 213 regulator-max- 213 regulator-max-microvolt = <1200000>; 214 regulator-enab 214 regulator-enable-ramp-delay = <3300>; 215 }; 215 }; 216 216 217 mt6357_vmc_reg: ldo-vm 217 mt6357_vmc_reg: ldo-vmc { 218 regulator-name 218 regulator-name = "vmc"; 219 regulator-min- 219 regulator-min-microvolt = <1800000>; 220 regulator-max- 220 regulator-max-microvolt = <3300000>; 221 regulator-enab 221 regulator-enable-ramp-delay = <44>; 222 }; 222 }; 223 223 224 mt6357_vmch_reg: ldo-v 224 mt6357_vmch_reg: ldo-vmch { 225 regulator-name 225 regulator-name = "vmch"; 226 regulator-min- 226 regulator-min-microvolt = <2900000>; 227 regulator-max- 227 regulator-max-microvolt = <3300000>; 228 regulator-enab 228 regulator-enable-ramp-delay = <44>; 229 }; 229 }; 230 230 231 mt6357_vemc_reg: ldo-v 231 mt6357_vemc_reg: ldo-vemc { 232 regulator-name 232 regulator-name = "vemc"; 233 regulator-min- 233 regulator-min-microvolt = <2900000>; 234 regulator-max- 234 regulator-max-microvolt = <3300000>; 235 regulator-enab 235 regulator-enable-ramp-delay = <44>; 236 regulator-alwa 236 regulator-always-on; 237 }; 237 }; 238 238 239 mt6357_vsim1_reg: ldo- 239 mt6357_vsim1_reg: ldo-vsim1 { 240 regulator-name 240 regulator-name = "vsim1"; 241 regulator-min- 241 regulator-min-microvolt = <1700000>; 242 regulator-max- 242 regulator-max-microvolt = <3100000>; 243 regulator-enab 243 regulator-enable-ramp-delay = <264>; 244 }; 244 }; 245 245 246 mt6357_vsim2_reg: ldo- 246 mt6357_vsim2_reg: ldo-vsim2 { 247 regulator-name 247 regulator-name = "vsim2"; 248 regulator-min- 248 regulator-min-microvolt = <1700000>; 249 regulator-max- 249 regulator-max-microvolt = <3100000>; 250 regulator-enab 250 regulator-enable-ramp-delay = <264>; 251 }; 251 }; 252 252 253 mt6357_vibr_reg: ldo-v 253 mt6357_vibr_reg: ldo-vibr { 254 regulator-name 254 regulator-name = "vibr"; 255 regulator-min- 255 regulator-min-microvolt = <1200000>; 256 regulator-max- 256 regulator-max-microvolt = <3300000>; 257 regulator-enab 257 regulator-enable-ramp-delay = <44>; 258 }; 258 }; 259 259 260 mt6357_vusb33_reg: ldo 260 mt6357_vusb33_reg: ldo-vusb33 { 261 regulator-name 261 regulator-name = "vusb33"; 262 regulator-min- 262 regulator-min-microvolt = <3000000>; 263 regulator-max- 263 regulator-max-microvolt = <3100000>; 264 regulator-enab 264 regulator-enable-ramp-delay = <264>; 265 }; 265 }; 266 }; 266 }; 267 267 268 rtc { 268 rtc { 269 compatible = "mediatek 269 compatible = "mediatek,mt6357-rtc"; 270 }; 270 }; 271 271 272 keys { 272 keys { 273 compatible = "mediatek 273 compatible = "mediatek,mt6357-keys"; 274 274 275 key-power { 275 key-power { 276 linux,keycodes 276 linux,keycodes = <KEY_POWER>; 277 wakeup-source; 277 wakeup-source; 278 }; 278 }; 279 279 280 key-home { 280 key-home { 281 linux,keycodes 281 linux,keycodes = <KEY_HOME>; 282 wakeup-source; 282 wakeup-source; 283 }; 283 }; 284 284 285 }; 285 }; 286 }; 286 }; 287 }; 287 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.