1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (c) 2021 MediaTek Inc. 4 */ 5 6 #ifndef __MFD_MT6359P_REGISTERS_H__ 7 #define __MFD_MT6359P_REGISTERS_H__ 8 9 #define MT6359P_CHIP_VER 0x5930 10 11 /* PMIC Registers */ 12 #define MT6359P_HWCID 0x8 13 #define MT6359P_TOP_TRAP 0x50 14 #define MT6359P_TOP_TMA_KEY 0x3a8 15 #define MT6359P_BUCK_VCORE_ELR_NUM 0x152a 16 #define MT6359P_BUCK_VCORE_ELR0 0x152c 17 #define MT6359P_BUCK_VGPU11_SSHUB_CON0 0x15aa 18 #define MT6359P_BUCK_VGPU11_ELR0 0x15b4 19 #define MT6359P_LDO_VSRAM_PROC1_ELR 0x1b44 20 #define MT6359P_LDO_VSRAM_PROC2_ELR 0x1b46 21 #define MT6359P_LDO_VSRAM_OTHERS_ELR 0x1b48 22 #define MT6359P_LDO_VSRAM_MD_ELR 0x1b4a 23 #define MT6359P_LDO_VEMC_ELR_0 0x1b4c 24 #define MT6359P_LDO_VFE28_CON0 0x1b88 25 #define MT6359P_LDO_VFE28_MON 0x1b8c 26 #define MT6359P_LDO_VXO22_CON0 0x1b9a 27 #define MT6359P_LDO_VXO22_MON 0x1b9e 28 #define MT6359P_LDO_VRF18_CON0 0x1bac 29 #define MT6359P_LDO_VRF18_MON 0x1bb0 30 #define MT6359P_LDO_VRF12_CON0 0x1bbe 31 #define MT6359P_LDO_VRF12_MON 0x1bc2 32 #define MT6359P_LDO_VEFUSE_CON0 0x1bd0 33 #define MT6359P_LDO_VEFUSE_MON 0x1bd4 34 #define MT6359P_LDO_VCN33_1_CON0 0x1be2 35 #define MT6359P_LDO_VCN33_1_MON 0x1be6 36 #define MT6359P_LDO_VCN33_1_MULTI_SW 0x1bf4 37 #define MT6359P_LDO_VCN33_2_CON0 0x1c08 38 #define MT6359P_LDO_VCN33_2_MON 0x1c0c 39 #define MT6359P_LDO_VCN33_2_MULTI_SW 0x1c1a 40 #define MT6359P_LDO_VCN13_CON0 0x1c1c 41 #define MT6359P_LDO_VCN13_MON 0x1c20 42 #define MT6359P_LDO_VCN18_CON0 0x1c2e 43 #define MT6359P_LDO_VCN18_MON 0x1c32 44 #define MT6359P_LDO_VA09_CON0 0x1c40 45 #define MT6359P_LDO_VA09_MON 0x1c44 46 #define MT6359P_LDO_VCAMIO_CON0 0x1c52 47 #define MT6359P_LDO_VCAMIO_MON 0x1c56 48 #define MT6359P_LDO_VA12_CON0 0x1c64 49 #define MT6359P_LDO_VA12_MON 0x1c68 50 #define MT6359P_LDO_VAUX18_CON0 0x1c88 51 #define MT6359P_LDO_VAUX18_MON 0x1c8c 52 #define MT6359P_LDO_VAUD18_CON0 0x1c9a 53 #define MT6359P_LDO_VAUD18_MON 0x1c9e 54 #define MT6359P_LDO_VIO18_CON0 0x1cac 55 #define MT6359P_LDO_VIO18_MON 0x1cb0 56 #define MT6359P_LDO_VEMC_CON0 0x1cbe 57 #define MT6359P_LDO_VEMC_MON 0x1cc2 58 #define MT6359P_LDO_VSIM1_CON0 0x1cd0 59 #define MT6359P_LDO_VSIM1_MON 0x1cd4 60 #define MT6359P_LDO_VSIM2_CON0 0x1ce2 61 #define MT6359P_LDO_VSIM2_MON 0x1ce6 62 #define MT6359P_LDO_VUSB_CON0 0x1d08 63 #define MT6359P_LDO_VUSB_MON 0x1d0c 64 #define MT6359P_LDO_VUSB_MULTI_SW 0x1d1a 65 #define MT6359P_LDO_VRFCK_CON0 0x1d1c 66 #define MT6359P_LDO_VRFCK_MON 0x1d20 67 #define MT6359P_LDO_VBBCK_CON0 0x1d2e 68 #define MT6359P_LDO_VBBCK_MON 0x1d32 69 #define MT6359P_LDO_VBIF28_CON0 0x1d40 70 #define MT6359P_LDO_VBIF28_MON 0x1d44 71 #define MT6359P_LDO_VIBR_CON0 0x1d52 72 #define MT6359P_LDO_VIBR_MON 0x1d56 73 #define MT6359P_LDO_VIO28_CON0 0x1d64 74 #define MT6359P_LDO_VIO28_MON 0x1d68 75 #define MT6359P_LDO_VM18_CON0 0x1d88 76 #define MT6359P_LDO_VM18_MON 0x1d8c 77 #define MT6359P_LDO_VUFS_CON0 0x1d9a 78 #define MT6359P_LDO_VUFS_MON 0x1d9e 79 #define MT6359P_LDO_VSRAM_PROC1_CON0 0x1e88 80 #define MT6359P_LDO_VSRAM_PROC1_MON 0x1e8c 81 #define MT6359P_LDO_VSRAM_PROC1_VOSEL1 0x1e90 82 #define MT6359P_LDO_VSRAM_PROC2_CON0 0x1ea8 83 #define MT6359P_LDO_VSRAM_PROC2_MON 0x1eac 84 #define MT6359P_LDO_VSRAM_PROC2_VOSEL1 0x1eb0 85 #define MT6359P_LDO_VSRAM_OTHERS_CON0 0x1f08 86 #define MT6359P_LDO_VSRAM_OTHERS_MON 0x1f0c 87 #define MT6359P_LDO_VSRAM_OTHERS_VOSEL1 0x1f10 88 #define MT6359P_LDO_VSRAM_OTHERS_SSHUB 0x1f28 89 #define MT6359P_LDO_VSRAM_MD_CON0 0x1f2e 90 #define MT6359P_LDO_VSRAM_MD_MON 0x1f32 91 #define MT6359P_LDO_VSRAM_MD_VOSEL1 0x1f36 92 #define MT6359P_VFE28_ANA_CON0 0x1f88 93 #define MT6359P_VAUX18_ANA_CON0 0x1f8c 94 #define MT6359P_VUSB_ANA_CON0 0x1f90 95 #define MT6359P_VBIF28_ANA_CON0 0x1f94 96 #define MT6359P_VCN33_1_ANA_CON0 0x1f98 97 #define MT6359P_VCN33_2_ANA_CON0 0x1f9c 98 #define MT6359P_VEMC_ANA_CON0 0x1fa0 99 #define MT6359P_VSIM1_ANA_CON0 0x1fa2 100 #define MT6359P_VSIM2_ANA_CON0 0x1fa6 101 #define MT6359P_VIO28_ANA_CON0 0x1faa 102 #define MT6359P_VIBR_ANA_CON0 0x1fae 103 #define MT6359P_VFE28_ELR_4 0x1fc0 104 #define MT6359P_VRF18_ANA_CON0 0x2008 105 #define MT6359P_VEFUSE_ANA_CON0 0x200c 106 #define MT6359P_VCN18_ANA_CON0 0x2010 107 #define MT6359P_VCAMIO_ANA_CON0 0x2014 108 #define MT6359P_VAUD18_ANA_CON0 0x2018 109 #define MT6359P_VIO18_ANA_CON0 0x201c 110 #define MT6359P_VM18_ANA_CON0 0x2020 111 #define MT6359P_VUFS_ANA_CON0 0x2024 112 #define MT6359P_VRF12_ANA_CON0 0x202a 113 #define MT6359P_VCN13_ANA_CON0 0x202e 114 #define MT6359P_VA09_ANA_CON0 0x2032 115 #define MT6359P_VRF18_ELR_3 0x204e 116 #define MT6359P_VXO22_ANA_CON0 0x2088 117 #define MT6359P_VRFCK_ANA_CON0 0x208c 118 #define MT6359P_VBBCK_ANA_CON0 0x2096 119 120 #define MT6359P_RG_BUCK_VCORE_VOSEL_ADDR MT6359P_BUCK_VCORE_ELR0 121 #define MT6359P_RG_BUCK_VGPU11_SSHUB_EN_ADDR MT6359P_BUCK_VGPU11_SSHUB_CON0 122 #define MT6359P_RG_BUCK_VGPU11_VOSEL_ADDR MT6359P_BUCK_VGPU11_ELR0 123 #define MT6359P_RG_BUCK_VGPU11_SSHUB_VOSEL_ADDR MT6359P_BUCK_VGPU11_SSHUB_CON0 124 #define MT6359P_RG_BUCK_VGPU11_SSHUB_VOSEL_MASK 0x7F 125 #define MT6359P_RG_BUCK_VGPU11_SSHUB_VOSEL_SHIFT 4 126 #define MT6359P_RG_LDO_VSRAM_PROC1_VOSEL_ADDR MT6359P_LDO_VSRAM_PROC1_ELR 127 #define MT6359P_RG_LDO_VSRAM_PROC2_VOSEL_ADDR MT6359P_LDO_VSRAM_PROC2_ELR 128 #define MT6359P_RG_LDO_VSRAM_OTHERS_VOSEL_ADDR MT6359P_LDO_VSRAM_OTHERS_ELR 129 #define MT6359P_RG_LDO_VSRAM_MD_VOSEL_ADDR MT6359P_LDO_VSRAM_MD_ELR 130 #define MT6359P_RG_LDO_VEMC_VOSEL_0_ADDR MT6359P_LDO_VEMC_ELR_0 131 #define MT6359P_RG_LDO_VEMC_VOSEL_0_MASK 0xF 132 #define MT6359P_RG_LDO_VEMC_VOSEL_0_SHIFT 0 133 #define MT6359P_RG_LDO_VFE28_EN_ADDR MT6359P_LDO_VFE28_CON0 134 #define MT6359P_DA_VFE28_B_EN_ADDR MT6359P_LDO_VFE28_MON 135 #define MT6359P_RG_LDO_VXO22_EN_ADDR MT6359P_LDO_VXO22_CON0 136 #define MT6359P_RG_LDO_VXO22_EN_SHIFT 0 137 #define MT6359P_DA_VXO22_B_EN_ADDR MT6359P_LDO_VXO22_MON 138 #define MT6359P_RG_LDO_VRF18_EN_ADDR MT6359P_LDO_VRF18_CON0 139 #define MT6359P_RG_LDO_VRF18_EN_SHIFT 0 140 #define MT6359P_DA_VRF18_B_EN_ADDR MT6359P_LDO_VRF18_MON 141 #define MT6359P_RG_LDO_VRF12_EN_ADDR MT6359P_LDO_VRF12_CON0 142 #define MT6359P_RG_LDO_VRF12_EN_SHIFT 0 143 #define MT6359P_DA_VRF12_B_EN_ADDR MT6359P_LDO_VRF12_MON 144 #define MT6359P_RG_LDO_VEFUSE_EN_ADDR MT6359P_LDO_VEFUSE_CON0 145 #define MT6359P_RG_LDO_VEFUSE_EN_SHIFT 0 146 #define MT6359P_DA_VEFUSE_B_EN_ADDR MT6359P_LDO_VEFUSE_MON 147 #define MT6359P_RG_LDO_VCN33_1_EN_0_ADDR MT6359P_LDO_VCN33_1_CON0 148 #define MT6359P_DA_VCN33_1_B_EN_ADDR MT6359P_LDO_VCN33_1_MON 149 #define MT6359P_RG_LDO_VCN33_1_EN_1_ADDR MT6359P_LDO_VCN33_1_MULTI_SW 150 #define MT6359P_RG_LDO_VCN33_1_EN_1_SHIFT 15 151 #define MT6359P_RG_LDO_VCN33_2_EN_0_ADDR MT6359P_LDO_VCN33_2_CON0 152 #define MT6359P_RG_LDO_VCN33_2_EN_0_SHIFT 0 153 #define MT6359P_DA_VCN33_2_B_EN_ADDR MT6359P_LDO_VCN33_2_MON 154 #define MT6359P_RG_LDO_VCN33_2_EN_1_ADDR MT6359P_LDO_VCN33_2_MULTI_SW 155 #define MT6359P_RG_LDO_VCN13_EN_ADDR MT6359P_LDO_VCN13_CON0 156 #define MT6359P_RG_LDO_VCN13_EN_SHIFT 0 157 #define MT6359P_DA_VCN13_B_EN_ADDR MT6359P_LDO_VCN13_MON 158 #define MT6359P_RG_LDO_VCN18_EN_ADDR MT6359P_LDO_VCN18_CON0 159 #define MT6359P_DA_VCN18_B_EN_ADDR MT6359P_LDO_VCN18_MON 160 #define MT6359P_RG_LDO_VA09_EN_ADDR MT6359P_LDO_VA09_CON0 161 #define MT6359P_RG_LDO_VA09_EN_SHIFT 0 162 #define MT6359P_DA_VA09_B_EN_ADDR MT6359P_LDO_VA09_MON 163 #define MT6359P_RG_LDO_VCAMIO_EN_ADDR MT6359P_LDO_VCAMIO_CON0 164 #define MT6359P_RG_LDO_VCAMIO_EN_SHIFT 0 165 #define MT6359P_DA_VCAMIO_B_EN_ADDR MT6359P_LDO_VCAMIO_MON 166 #define MT6359P_RG_LDO_VA12_EN_ADDR MT6359P_LDO_VA12_CON0 167 #define MT6359P_RG_LDO_VA12_EN_SHIFT 0 168 #define MT6359P_DA_VA12_B_EN_ADDR MT6359P_LDO_VA12_MON 169 #define MT6359P_RG_LDO_VAUX18_EN_ADDR MT6359P_LDO_VAUX18_CON0 170 #define MT6359P_DA_VAUX18_B_EN_ADDR MT6359P_LDO_VAUX18_MON 171 #define MT6359P_RG_LDO_VAUD18_EN_ADDR MT6359P_LDO_VAUD18_CON0 172 #define MT6359P_DA_VAUD18_B_EN_ADDR MT6359P_LDO_VAUD18_MON 173 #define MT6359P_RG_LDO_VIO18_EN_ADDR MT6359P_LDO_VIO18_CON0 174 #define MT6359P_RG_LDO_VIO18_EN_SHIFT 0 175 #define MT6359P_DA_VIO18_B_EN_ADDR MT6359P_LDO_VIO18_MON 176 #define MT6359P_RG_LDO_VEMC_EN_ADDR MT6359P_LDO_VEMC_CON0 177 #define MT6359P_RG_LDO_VEMC_EN_SHIFT 0 178 #define MT6359P_DA_VEMC_B_EN_ADDR MT6359P_LDO_VEMC_MON 179 #define MT6359P_RG_LDO_VSIM1_EN_ADDR MT6359P_LDO_VSIM1_CON0 180 #define MT6359P_RG_LDO_VSIM1_EN_SHIFT 0 181 #define MT6359P_DA_VSIM1_B_EN_ADDR MT6359P_LDO_VSIM1_MON 182 #define MT6359P_RG_LDO_VSIM2_EN_ADDR MT6359P_LDO_VSIM2_CON0 183 #define MT6359P_RG_LDO_VSIM2_EN_SHIFT 0 184 #define MT6359P_DA_VSIM2_B_EN_ADDR MT6359P_LDO_VSIM2_MON 185 #define MT6359P_RG_LDO_VUSB_EN_0_ADDR MT6359P_LDO_VUSB_CON0 186 #define MT6359P_DA_VUSB_B_EN_ADDR MT6359P_LDO_VUSB_MON 187 #define MT6359P_RG_LDO_VUSB_EN_1_ADDR MT6359P_LDO_VUSB_MULTI_SW 188 #define MT6359P_RG_LDO_VRFCK_EN_ADDR MT6359P_LDO_VRFCK_CON0 189 #define MT6359P_RG_LDO_VRFCK_EN_SHIFT 0 190 #define MT6359P_DA_VRFCK_B_EN_ADDR MT6359P_LDO_VRFCK_MON 191 #define MT6359P_RG_LDO_VBBCK_EN_ADDR MT6359P_LDO_VBBCK_CON0 192 #define MT6359P_RG_LDO_VBBCK_EN_SHIFT 0 193 #define MT6359P_DA_VBBCK_B_EN_ADDR MT6359P_LDO_VBBCK_MON 194 #define MT6359P_RG_LDO_VBIF28_EN_ADDR MT6359P_LDO_VBIF28_CON0 195 #define MT6359P_DA_VBIF28_B_EN_ADDR MT6359P_LDO_VBIF28_MON 196 #define MT6359P_RG_LDO_VIBR_EN_ADDR MT6359P_LDO_VIBR_CON0 197 #define MT6359P_RG_LDO_VIBR_EN_SHIFT 0 198 #define MT6359P_DA_VIBR_B_EN_ADDR MT6359P_LDO_VIBR_MON 199 #define MT6359P_RG_LDO_VIO28_EN_ADDR MT6359P_LDO_VIO28_CON0 200 #define MT6359P_RG_LDO_VIO28_EN_SHIFT 0 201 #define MT6359P_DA_VIO28_B_EN_ADDR MT6359P_LDO_VIO28_MON 202 #define MT6359P_RG_LDO_VM18_EN_ADDR MT6359P_LDO_VM18_CON0 203 #define MT6359P_RG_LDO_VM18_EN_SHIFT 0 204 #define MT6359P_DA_VM18_B_EN_ADDR MT6359P_LDO_VM18_MON 205 #define MT6359P_RG_LDO_VUFS_EN_ADDR MT6359P_LDO_VUFS_CON0 206 #define MT6359P_RG_LDO_VUFS_EN_SHIFT 0 207 #define MT6359P_DA_VUFS_B_EN_ADDR MT6359P_LDO_VUFS_MON 208 #define MT6359P_RG_LDO_VSRAM_PROC1_EN_ADDR MT6359P_LDO_VSRAM_PROC1_CON0 209 #define MT6359P_DA_VSRAM_PROC1_B_EN_ADDR MT6359P_LDO_VSRAM_PROC1_MON 210 #define MT6359P_DA_VSRAM_PROC1_VOSEL_ADDR MT6359P_LDO_VSRAM_PROC1_VOSEL1 211 #define MT6359P_RG_LDO_VSRAM_PROC2_EN_ADDR MT6359P_LDO_VSRAM_PROC2_CON0 212 #define MT6359P_DA_VSRAM_PROC2_B_EN_ADDR MT6359P_LDO_VSRAM_PROC2_MON 213 #define MT6359P_DA_VSRAM_PROC2_VOSEL_ADDR MT6359P_LDO_VSRAM_PROC2_VOSEL1 214 #define MT6359P_RG_LDO_VSRAM_OTHERS_EN_ADDR MT6359P_LDO_VSRAM_OTHERS_CON0 215 #define MT6359P_DA_VSRAM_OTHERS_B_EN_ADDR MT6359P_LDO_VSRAM_OTHERS_MON 216 #define MT6359P_DA_VSRAM_OTHERS_VOSEL_ADDR MT6359P_LDO_VSRAM_OTHERS_VOSEL1 217 #define MT6359P_RG_LDO_VSRAM_OTHERS_SSHUB_EN_ADDR MT6359P_LDO_VSRAM_OTHERS_SSHUB 218 #define MT6359P_RG_LDO_VSRAM_OTHERS_SSHUB_VOSEL_ADDR MT6359P_LDO_VSRAM_OTHERS_SSHUB 219 #define MT6359P_RG_LDO_VSRAM_MD_EN_ADDR MT6359P_LDO_VSRAM_MD_CON0 220 #define MT6359P_DA_VSRAM_MD_B_EN_ADDR MT6359P_LDO_VSRAM_MD_MON 221 #define MT6359P_DA_VSRAM_MD_VOSEL_ADDR MT6359P_LDO_VSRAM_MD_VOSEL1 222 #define MT6359P_RG_VCN33_1_VOSEL_ADDR MT6359P_VCN33_1_ANA_CON0 223 #define MT6359P_RG_VCN33_2_VOSEL_ADDR MT6359P_VCN33_2_ANA_CON0 224 #define MT6359P_RG_VEMC_VOSEL_ADDR MT6359P_VEMC_ANA_CON0 225 #define MT6359P_RG_VSIM1_VOSEL_ADDR MT6359P_VSIM1_ANA_CON0 226 #define MT6359P_RG_VSIM2_VOSEL_ADDR MT6359P_VSIM2_ANA_CON0 227 #define MT6359P_RG_VIO28_VOSEL_ADDR MT6359P_VIO28_ANA_CON0 228 #define MT6359P_RG_VIBR_VOSEL_ADDR MT6359P_VIBR_ANA_CON0 229 #define MT6359P_RG_VRF18_VOSEL_ADDR MT6359P_VRF18_ANA_CON0 230 #define MT6359P_RG_VEFUSE_VOSEL_ADDR MT6359P_VEFUSE_ANA_CON0 231 #define MT6359P_RG_VCAMIO_VOSEL_ADDR MT6359P_VCAMIO_ANA_CON0 232 #define MT6359P_RG_VIO18_VOSEL_ADDR MT6359P_VIO18_ANA_CON0 233 #define MT6359P_RG_VM18_VOSEL_ADDR MT6359P_VM18_ANA_CON0 234 #define MT6359P_RG_VUFS_VOSEL_ADDR MT6359P_VUFS_ANA_CON0 235 #define MT6359P_RG_VRF12_VOSEL_ADDR MT6359P_VRF12_ANA_CON0 236 #define MT6359P_RG_VCN13_VOSEL_ADDR MT6359P_VCN13_ANA_CON0 237 #define MT6359P_RG_VA09_VOSEL_ADDR MT6359P_VRF18_ELR_3 238 #define MT6359P_RG_VA12_VOSEL_ADDR MT6359P_VFE28_ELR_4 239 #define MT6359P_RG_VXO22_VOSEL_ADDR MT6359P_VXO22_ANA_CON0 240 #define MT6359P_RG_VRFCK_VOSEL_ADDR MT6359P_VRFCK_ANA_CON0 241 #define MT6359P_RG_VBBCK_VOSEL_ADDR MT6359P_VBBCK_ANA_CON0 242 #define MT6359P_RG_VBBCK_VOSEL_MASK 0xF 243 #define MT6359P_RG_VBBCK_VOSEL_SHIFT 4 244 #define MT6359P_VM_MODE_ADDR MT6359P_TOP_TRAP 245 #define MT6359P_TMA_KEY_ADDR MT6359P_TOP_TMA_KEY 246 247 #define TMA_KEY 0x9CA6 248 249 #endif /* __MFD_MT6359P_REGISTERS_H__ */ 250