-
Notifications
You must be signed in to change notification settings - Fork 0
PMIC CIDs
#define MT3615_CID_CODE 0x1500#define MT6311_E1_CID_CODE 0x10
#define MT6311_E2_CID_CODE 0x20
#define MT6311_E3_CID_CODE 0x30#define PMIC6311_E1_CID_CODE 0x0110
#define PMIC6311_E2_CID_CODE 0x0120
#define PMIC6311_E3_CID_CODE 0x0130#define PMIC6320_E1_CID_CODE 0x1020
#define PMIC6320_E2_CID_CODE 0x2020https://github.com/mt8173-dev/android_kernel_amazon_sloane/blob/7cdf75e7ac0ba7009ff98fe71b291b118f634e77/drivers/misc/mediatek/ldvt/mt8135/pmic/pmic.c https://github.com/toffyjan/android_Ticwatch_S_mooneye/blob/4f2a73b26f3821afc452cdce660cdbc73daf4e4a/arch/arm/mach-mt2601/include/mach/pmic_mt6320_sw.h
#define MT6323_CID_CODE 0x23
#define MT6391_CID_CODE 0x91
#define MT6397_CID_CODE 0x97#define MT6323_CID_CODE 0x23
#define MT6358_CID_CODE 0x20
#define MT6391_CID_CODE 0x91
#define MT6397_CID_CODE 0x97#define MT6323_CID_CODE 0x23
#define MT6391_CID_CODE 0x91
#define MT6397_CID_CODE 0x97
#define MT6392_CID_CODE 0x92#define PMIC6323_E1_CID_CODE 0x1023
#define PMIC6323_E2_CID_CODE 0x2023#define PMIC6326_E1_CID_CODE 0x0000
#define PMIC6326_E2_CID_CODE 0x0009
#define PMIC6326_E3_CID_CODE 0x000A
#define PMIC6326_E4_CID_CODE 0x000B#define MT6328_HW_CID_E1 0x2810
#define MT6328_HW_CID_E2 0x2820
#define MT6328_HW_CID_E3 0x2830
#define MT6328_SW_CID_E1 0x2810
#define MT6328_SW_CID_E2 0x2820
#define MT6328_SW_CID_E3 0x2830#define PMIC6328_E1_CID_CODE 0x2810
#define PMIC6328_E2_CID_CODE 0x2820
#define PMIC6328_E3_CID_CODE 0x2830
#define PMIC6329_E1_CID_CODE 0x0029#define PMIC6355_E1_CID_CODE 0x5510
#define PMIC6355_E2_CID_CODE 0x5520
#define PMIC6355_E3_CID_CODE 0x5530
#define PMIC6355_E4_CID_CODE 0x5540
#define PMIC6355_E5_CID_CODE 0x5550
#define PMIC6355_E6_CID_CODE 0x5560#define MT6357_CID_CODE 0x5700
#define MT6358_CID_CODE 0x5800
#define MT6359_CID_CODE 0x5900
#define MT6390_CID_CODE 0x9000#define PMIC6358_E1_CID_CODE 0x5810
#define PMIC6358_E2_CID_CODE 0x5820
#define PMIC6358_E3_CID_CODE 0x5830
#define PMIC6358_E4_CID_CODE 0x5840
#define PMIC6358_E5_CID_CODE 0x5850
#define PMIC6358_E6_CID_CODE 0x5860https://github.com/svoboda18/lk/blob/37ec8bcbc4361c0e267617f517d154656804c17a/platform/mt6768/include/platform/mt_pmic.h https://github.com/Android-Boot-Manager/droidboot_device_volla_mimameid/blob/29c81f084d61da631cd94f27b8305032010d71fe/platform/mt6768/include/platform/mt_pmic.h
#define PMIC6351_E1_CID_CODE 0x5110
#define PMIC6351_E2_CID_CODE 0x5120
#define PMIC6351_E3_CID_CODE 0x5130#define PMIC6331_E1_CID_CODE 0x3110
#define PMIC6331_E2_CID_CODE 0x3120
#define PMIC6331_E3_CID_CODE 0x3130
#define PMIC6332_E1_CID_CODE 0x3210
#define PMIC6332_E2_CID_CODE 0x3220
#define PMIC6332_E3_CID_CODE 0x3230#define MT6357_CID_CODE 0x5700
#define MT6358_CID_CODE 0x5800
#define MT6359_CID_CODE 0x5900
#define MT6366_CID_CODE 0x6600
#define MT6390_CID_CODE 0x9000#define PMIC6397_E1_CID_CODE 0x1097enum {
PMIC6391_E1_CID_CODE = 0x1091,
PMIC6391_E2_CID_CODE = 0x2091,
PMIC6397_E1_CID_CODE = 0x1097,
PMIC6397_E2_CID_CODE = 0x2097,
PMIC6397_E3_CID_CODE = 0x3097,
PMIC6397_E4_CID_CODE = 0x4097
};#define PMIC6392_E1_CID_CODE 0x1092enum chip_id {
MT6323_CHIP_ID = 0x23,
MT6328_CHIP_ID = 0x30,
MT6331_CHIP_ID = 0x20,
MT6332_CHIP_ID = 0x20,
MT6357_CHIP_ID = 0x57,
MT6358_CHIP_ID = 0x58,
MT6359_CHIP_ID = 0x59,
MT6366_CHIP_ID = 0x66,
MT6391_CHIP_ID = 0x91,
MT6397_CHIP_ID = 0x97,
};
static const struct chip_data mt6323_core = {
.cid_addr = MT6323_CID,
.cid_shift = 0,
.cells = mt6323_devs,
.cell_size = ARRAY_SIZE(mt6323_devs),
.irq_init = mt6397_irq_init,
};
static const struct chip_data mt6328_core = {
.cid_addr = MT6328_HWCID,
.cid_shift = 0,
.cells = mt6328_devs,
.cell_size = ARRAY_SIZE(mt6328_devs),
.irq_init = mt6397_irq_init,
};
static const struct chip_data mt6357_core = {
.cid_addr = MT6357_SWCID,
.cid_shift = 8,
.cells = mt6357_devs,
.cell_size = ARRAY_SIZE(mt6357_devs),
.irq_init = mt6358_irq_init,
};
static const struct chip_data mt6331_mt6332_core = {
.cid_addr = MT6331_HWCID,
.cid_shift = 0,
.cells = mt6331_mt6332_devs,
.cell_size = ARRAY_SIZE(mt6331_mt6332_devs),
.irq_init = mt6397_irq_init,
};
static const struct chip_data mt6358_core = {
.cid_addr = MT6358_SWCID,
.cid_shift = 8,
.cells = mt6358_devs,
.cell_size = ARRAY_SIZE(mt6358_devs),
.irq_init = mt6358_irq_init,
};
static const struct chip_data mt6359_core = {
.cid_addr = MT6359_SWCID,
.cid_shift = 8,
.cells = mt6359_devs,
.cell_size = ARRAY_SIZE(mt6359_devs),
.irq_init = mt6358_irq_init,
};
static const struct chip_data mt6397_core = {
.cid_addr = MT6397_CID,
.cid_shift = 0,
.cells = mt6397_devs,
.cell_size = ARRAY_SIZE(mt6397_devs),
.irq_init = mt6397_irq_init,
};https://github.com/torvalds/linux/blob/a75cb869a8ccc88b0bc7a44e1597d9c7995c56e5/include/linux/mfd/mt6397/core.h https://github.com/torvalds/linux/blob/a75cb869a8ccc88b0bc7a44e1597d9c7995c56e5/drivers/mfd/mt6397-core.c