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