| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Registers definition for DA9063 modules |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Michal Hajduk, Dialog Semiconductor |
|---|
| 7 | 8 | * Author: Krystian Garbaciak, Dialog Semiconductor |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 10 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 11 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 12 | | - * option) any later version. |
|---|
| 13 | | - * |
|---|
| 14 | 9 | */ |
|---|
| 15 | 10 | |
|---|
| 16 | 11 | #ifndef _DA9063_REG_H |
|---|
| .. | .. |
|---|
| 297 | 292 | #define DA9063_BB_REG_GP_ID_19 0x134 |
|---|
| 298 | 293 | |
|---|
| 299 | 294 | /* Chip ID and variant */ |
|---|
| 300 | | -#define DA9063_REG_CHIP_ID 0x181 |
|---|
| 301 | | -#define DA9063_REG_CHIP_VARIANT 0x182 |
|---|
| 295 | +#define DA9063_REG_DEVICE_ID 0x181 |
|---|
| 296 | +#define DA9063_REG_VARIANT_ID 0x182 |
|---|
| 297 | +#define DA9063_REG_CUSTOMER_ID 0x183 |
|---|
| 298 | +#define DA9063_REG_CONFIG_ID 0x184 |
|---|
| 302 | 299 | |
|---|
| 303 | 300 | /* |
|---|
| 304 | 301 | * PMIC registers bits |
|---|
| .. | .. |
|---|
| 934 | 931 | #define DA9063_RTC_CLOCK 0x40 |
|---|
| 935 | 932 | #define DA9063_OUT_32K_EN 0x80 |
|---|
| 936 | 933 | |
|---|
| 937 | | -/* DA9063_REG_CHIP_VARIANT */ |
|---|
| 938 | | -#define DA9063_CHIP_VARIANT_SHIFT 4 |
|---|
| 939 | | - |
|---|
| 940 | 934 | /* DA9063_REG_BUCK_ILIM_A (addr=0x9A) */ |
|---|
| 941 | 935 | #define DA9063_BIO_ILIM_MASK 0x0F |
|---|
| 942 | 936 | #define DA9063_BMEM_ILIM_MASK 0xF0 |
|---|
| .. | .. |
|---|
| 1043 | 1037 | #define DA9063_NONKEY_PIN_AUTODOWN 0x02 |
|---|
| 1044 | 1038 | #define DA9063_NONKEY_PIN_AUTOFLPRT 0x03 |
|---|
| 1045 | 1039 | |
|---|
| 1040 | +/* DA9063_REG_CONFIG_J (addr=0x10F) */ |
|---|
| 1041 | +#define DA9063_TWOWIRE_TO 0x40 |
|---|
| 1042 | + |
|---|
| 1046 | 1043 | /* DA9063_REG_MON_REG_5 (addr=0x116) */ |
|---|
| 1047 | 1044 | #define DA9063_MON_A8_IDX_MASK 0x07 |
|---|
| 1048 | 1045 | #define DA9063_MON_A8_IDX_NONE 0x00 |
|---|
| .. | .. |
|---|
| 1070 | 1067 | #define DA9063_MON_A10_IDX_LDO9 0x04 |
|---|
| 1071 | 1068 | #define DA9063_MON_A10_IDX_LDO10 0x05 |
|---|
| 1072 | 1069 | |
|---|
| 1070 | +/* DA9063_REG_VARIANT_ID (addr=0x182) */ |
|---|
| 1071 | +#define DA9063_VARIANT_ID_VRC_SHIFT 0 |
|---|
| 1072 | +#define DA9063_VARIANT_ID_VRC_MASK 0x0F |
|---|
| 1073 | +#define DA9063_VARIANT_ID_MRC_SHIFT 4 |
|---|
| 1074 | +#define DA9063_VARIANT_ID_MRC_MASK 0xF0 |
|---|
| 1075 | + |
|---|
| 1073 | 1076 | #endif /* _DA9063_REG_H */ |
|---|