hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/mfd/da9063/registers.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0+ */
12 /*
23 * Registers definition for DA9063 modules
34 *
....@@ -5,12 +6,6 @@
56 *
67 * Author: Michal Hajduk, Dialog Semiconductor
78 * 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
- *
149 */
1510
1611 #ifndef _DA9063_REG_H
....@@ -297,8 +292,10 @@
297292 #define DA9063_BB_REG_GP_ID_19 0x134
298293
299294 /* 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
302299
303300 /*
304301 * PMIC registers bits
....@@ -934,9 +931,6 @@
934931 #define DA9063_RTC_CLOCK 0x40
935932 #define DA9063_OUT_32K_EN 0x80
936933
937
-/* DA9063_REG_CHIP_VARIANT */
938
-#define DA9063_CHIP_VARIANT_SHIFT 4
939
-
940934 /* DA9063_REG_BUCK_ILIM_A (addr=0x9A) */
941935 #define DA9063_BIO_ILIM_MASK 0x0F
942936 #define DA9063_BMEM_ILIM_MASK 0xF0
....@@ -1043,6 +1037,9 @@
10431037 #define DA9063_NONKEY_PIN_AUTODOWN 0x02
10441038 #define DA9063_NONKEY_PIN_AUTOFLPRT 0x03
10451039
1040
+/* DA9063_REG_CONFIG_J (addr=0x10F) */
1041
+#define DA9063_TWOWIRE_TO 0x40
1042
+
10461043 /* DA9063_REG_MON_REG_5 (addr=0x116) */
10471044 #define DA9063_MON_A8_IDX_MASK 0x07
10481045 #define DA9063_MON_A8_IDX_NONE 0x00
....@@ -1070,4 +1067,10 @@
10701067 #define DA9063_MON_A10_IDX_LDO9 0x04
10711068 #define DA9063_MON_A10_IDX_LDO10 0x05
10721069
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
+
10731076 #endif /* _DA9063_REG_H */