18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * SLG51000 High PSRR, Multi-Output Regulators
48c2ecf20Sopenharmony_ci * Copyright (C) 2019  Dialog Semiconductor
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Author: Eric Jeong <eric.jeong.opensource@diasemi.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef __SLG51000_REGISTERS_H__
108c2ecf20Sopenharmony_ci#define __SLG51000_REGISTERS_H__
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* Registers */
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_PATN_ID_B0              0x1105
158c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_PATN_ID_B1              0x1106
168c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_PATN_ID_B2              0x1107
178c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_SYS_CONF_A              0x1109
188c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_SYS_CONF_D              0x110c
198c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_MATRIX_CONF_A           0x110d
208c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_MATRIX_CONF_B           0x110e
218c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_REFGEN_CONF_C           0x1111
228c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_UVLO_CONF_A             0x1112
238c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_FAULT_LOG1              0x1115
248c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_EVENT                   0x1116
258c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_STATUS                  0x1117
268c2ecf20Sopenharmony_ci#define SLG51000_SYSCTL_IRQ_MASK                0x1118
278c2ecf20Sopenharmony_ci#define SLG51000_IO_GPIO1_CONF                  0x1500
288c2ecf20Sopenharmony_ci#define SLG51000_IO_GPIO2_CONF                  0x1501
298c2ecf20Sopenharmony_ci#define SLG51000_IO_GPIO3_CONF                  0x1502
308c2ecf20Sopenharmony_ci#define SLG51000_IO_GPIO4_CONF                  0x1503
318c2ecf20Sopenharmony_ci#define SLG51000_IO_GPIO5_CONF                  0x1504
328c2ecf20Sopenharmony_ci#define SLG51000_IO_GPIO6_CONF                  0x1505
338c2ecf20Sopenharmony_ci#define SLG51000_IO_GPIO_STATUS                 0x1506
348c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_0             0x1600
358c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_1             0x1601
368c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_2             0x1602
378c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_3             0x1603
388c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_4             0x1604
398c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_5             0x1605
408c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_6             0x1606
418c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_7             0x1607
428c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_8             0x1608
438c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_9             0x1609
448c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_10            0x160a
458c2ecf20Sopenharmony_ci#define SLG51000_LUTARRAY_LUT_VAL_11            0x160b
468c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_0           0x1700
478c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_1           0x1701
488c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_2           0x1702
498c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_3           0x1703
508c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_4           0x1704
518c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_5           0x1705
528c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_6           0x1706
538c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_7           0x1707
548c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_8           0x1708
558c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_9           0x1709
568c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_10          0x170a
578c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_11          0x170b
588c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_12          0x170c
598c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_13          0x170d
608c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_14          0x170e
618c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_15          0x170f
628c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_16          0x1710
638c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_17          0x1711
648c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_18          0x1712
658c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_19          0x1713
668c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_20          0x1714
678c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_21          0x1715
688c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_22          0x1716
698c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_23          0x1717
708c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_24          0x1718
718c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_25          0x1719
728c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_26          0x171a
738c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_27          0x171b
748c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_28          0x171c
758c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_29          0x171d
768c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_30          0x171e
778c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_31          0x171f
788c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_32          0x1720
798c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_33          0x1721
808c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_34          0x1722
818c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_35          0x1723
828c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_36          0x1724
838c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_37          0x1725
848c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_38          0x1726
858c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_39          0x1727
868c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_40          0x1728
878c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_41          0x1729
888c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_42          0x172a
898c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_43          0x172b
908c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_44          0x172c
918c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_45          0x172d
928c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_46          0x172e
938c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_47          0x172f
948c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_48          0x1730
958c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_49          0x1731
968c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_50          0x1732
978c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_51          0x1733
988c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_52          0x1734
998c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_53          0x1735
1008c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_54          0x1736
1018c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_55          0x1737
1028c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_56          0x1738
1038c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_57          0x1739
1048c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_58          0x173a
1058c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_59          0x173b
1068c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_60          0x173c
1078c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_61          0x173d
1088c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_62          0x173e
1098c2ecf20Sopenharmony_ci#define SLG51000_MUXARRAY_INPUT_SEL_63          0x173f
1108c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_RESOURCE_EN_0           0x1900
1118c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_RESOURCE_EN_1           0x1901
1128c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_RESOURCE_EN_2           0x1902
1138c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_RESOURCE_EN_3           0x1903
1148c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_RESOURCE_EN_4           0x1904
1158c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_RESOURCE_EN_5           0x1905
1168c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP0       0x1906
1178c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN0     0x1907
1188c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP1       0x1908
1198c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN1     0x1909
1208c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP2       0x190a
1218c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN2     0x190b
1228c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP3       0x190c
1238c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN3     0x190d
1248c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP4       0x190e
1258c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN4     0x190f
1268c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP5       0x1910
1278c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN5     0x1911
1288c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_A    0x1912
1298c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_B    0x1913
1308c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_C    0x1914
1318c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_INPUT_SENSE_CONF_A      0x1915
1328c2ecf20Sopenharmony_ci#define SLG51000_PWRSEQ_INPUT_SENSE_CONF_B      0x1916
1338c2ecf20Sopenharmony_ci#define SLG51000_LDO1_VSEL                      0x2000
1348c2ecf20Sopenharmony_ci#define SLG51000_LDO1_MINV                      0x2060
1358c2ecf20Sopenharmony_ci#define SLG51000_LDO1_MAXV                      0x2061
1368c2ecf20Sopenharmony_ci#define SLG51000_LDO1_MISC1                     0x2064
1378c2ecf20Sopenharmony_ci#define SLG51000_LDO1_VSEL_ACTUAL               0x2065
1388c2ecf20Sopenharmony_ci#define SLG51000_LDO1_EVENT                     0x20c0
1398c2ecf20Sopenharmony_ci#define SLG51000_LDO1_STATUS                    0x20c1
1408c2ecf20Sopenharmony_ci#define SLG51000_LDO1_IRQ_MASK                  0x20c2
1418c2ecf20Sopenharmony_ci#define SLG51000_LDO2_VSEL                      0x2200
1428c2ecf20Sopenharmony_ci#define SLG51000_LDO2_MINV                      0x2260
1438c2ecf20Sopenharmony_ci#define SLG51000_LDO2_MAXV                      0x2261
1448c2ecf20Sopenharmony_ci#define SLG51000_LDO2_MISC1                     0x2264
1458c2ecf20Sopenharmony_ci#define SLG51000_LDO2_VSEL_ACTUAL               0x2265
1468c2ecf20Sopenharmony_ci#define SLG51000_LDO2_EVENT                     0x22c0
1478c2ecf20Sopenharmony_ci#define SLG51000_LDO2_STATUS                    0x22c1
1488c2ecf20Sopenharmony_ci#define SLG51000_LDO2_IRQ_MASK                  0x22c2
1498c2ecf20Sopenharmony_ci#define SLG51000_LDO3_VSEL                      0x2300
1508c2ecf20Sopenharmony_ci#define SLG51000_LDO3_MINV                      0x2360
1518c2ecf20Sopenharmony_ci#define SLG51000_LDO3_MAXV                      0x2361
1528c2ecf20Sopenharmony_ci#define SLG51000_LDO3_CONF1                     0x2364
1538c2ecf20Sopenharmony_ci#define SLG51000_LDO3_CONF2                     0x2365
1548c2ecf20Sopenharmony_ci#define SLG51000_LDO3_VSEL_ACTUAL               0x2366
1558c2ecf20Sopenharmony_ci#define SLG51000_LDO3_EVENT                     0x23c0
1568c2ecf20Sopenharmony_ci#define SLG51000_LDO3_STATUS                    0x23c1
1578c2ecf20Sopenharmony_ci#define SLG51000_LDO3_IRQ_MASK                  0x23c2
1588c2ecf20Sopenharmony_ci#define SLG51000_LDO4_VSEL                      0x2500
1598c2ecf20Sopenharmony_ci#define SLG51000_LDO4_MINV                      0x2560
1608c2ecf20Sopenharmony_ci#define SLG51000_LDO4_MAXV                      0x2561
1618c2ecf20Sopenharmony_ci#define SLG51000_LDO4_CONF1                     0x2564
1628c2ecf20Sopenharmony_ci#define SLG51000_LDO4_CONF2                     0x2565
1638c2ecf20Sopenharmony_ci#define SLG51000_LDO4_VSEL_ACTUAL               0x2566
1648c2ecf20Sopenharmony_ci#define SLG51000_LDO4_EVENT                     0x25c0
1658c2ecf20Sopenharmony_ci#define SLG51000_LDO4_STATUS                    0x25c1
1668c2ecf20Sopenharmony_ci#define SLG51000_LDO4_IRQ_MASK                  0x25c2
1678c2ecf20Sopenharmony_ci#define SLG51000_LDO5_VSEL                      0x2700
1688c2ecf20Sopenharmony_ci#define SLG51000_LDO5_MINV                      0x2760
1698c2ecf20Sopenharmony_ci#define SLG51000_LDO5_MAXV                      0x2761
1708c2ecf20Sopenharmony_ci#define SLG51000_LDO5_TRIM2                     0x2763
1718c2ecf20Sopenharmony_ci#define SLG51000_LDO5_CONF1                     0x2765
1728c2ecf20Sopenharmony_ci#define SLG51000_LDO5_CONF2                     0x2766
1738c2ecf20Sopenharmony_ci#define SLG51000_LDO5_VSEL_ACTUAL               0x2767
1748c2ecf20Sopenharmony_ci#define SLG51000_LDO5_EVENT                     0x27c0
1758c2ecf20Sopenharmony_ci#define SLG51000_LDO5_STATUS                    0x27c1
1768c2ecf20Sopenharmony_ci#define SLG51000_LDO5_IRQ_MASK                  0x27c2
1778c2ecf20Sopenharmony_ci#define SLG51000_LDO6_VSEL                      0x2900
1788c2ecf20Sopenharmony_ci#define SLG51000_LDO6_MINV                      0x2960
1798c2ecf20Sopenharmony_ci#define SLG51000_LDO6_MAXV                      0x2961
1808c2ecf20Sopenharmony_ci#define SLG51000_LDO6_TRIM2                     0x2963
1818c2ecf20Sopenharmony_ci#define SLG51000_LDO6_CONF1                     0x2965
1828c2ecf20Sopenharmony_ci#define SLG51000_LDO6_CONF2                     0x2966
1838c2ecf20Sopenharmony_ci#define SLG51000_LDO6_VSEL_ACTUAL               0x2967
1848c2ecf20Sopenharmony_ci#define SLG51000_LDO6_EVENT                     0x29c0
1858c2ecf20Sopenharmony_ci#define SLG51000_LDO6_STATUS                    0x29c1
1868c2ecf20Sopenharmony_ci#define SLG51000_LDO6_IRQ_MASK                  0x29c2
1878c2ecf20Sopenharmony_ci#define SLG51000_LDO7_VSEL                      0x3100
1888c2ecf20Sopenharmony_ci#define SLG51000_LDO7_MINV                      0x3160
1898c2ecf20Sopenharmony_ci#define SLG51000_LDO7_MAXV                      0x3161
1908c2ecf20Sopenharmony_ci#define SLG51000_LDO7_CONF1                     0x3164
1918c2ecf20Sopenharmony_ci#define SLG51000_LDO7_CONF2                     0x3165
1928c2ecf20Sopenharmony_ci#define SLG51000_LDO7_VSEL_ACTUAL               0x3166
1938c2ecf20Sopenharmony_ci#define SLG51000_LDO7_EVENT                     0x31c0
1948c2ecf20Sopenharmony_ci#define SLG51000_LDO7_STATUS                    0x31c1
1958c2ecf20Sopenharmony_ci#define SLG51000_LDO7_IRQ_MASK                  0x31c2
1968c2ecf20Sopenharmony_ci#define SLG51000_OTP_EVENT                      0x782b
1978c2ecf20Sopenharmony_ci#define SLG51000_OTP_IRQ_MASK                   0x782d
1988c2ecf20Sopenharmony_ci#define SLG51000_OTP_LOCK_OTP_PROG              0x78fe
1998c2ecf20Sopenharmony_ci#define SLG51000_OTP_LOCK_CTRL                  0x78ff
2008c2ecf20Sopenharmony_ci#define SLG51000_LOCK_GLOBAL_LOCK_CTRL1         0x8000
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci/* Register Bit Fields */
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_PATTERN_ID_BYTE0 = 0x1105 */
2058c2ecf20Sopenharmony_ci#define SLG51000_PATTERN_ID_BYTE0_SHIFT         0
2068c2ecf20Sopenharmony_ci#define SLG51000_PATTERN_ID_BYTE0_MASK          (0xff << 0)
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_PATTERN_ID_BYTE1 = 0x1106 */
2098c2ecf20Sopenharmony_ci#define SLG51000_PATTERN_ID_BYTE1_SHIFT         0
2108c2ecf20Sopenharmony_ci#define SLG51000_PATTERN_ID_BYTE1_MASK          (0xff << 0)
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_PATTERN_ID_BYTE2 = 0x1107 */
2138c2ecf20Sopenharmony_ci#define SLG51000_PATTERN_ID_BYTE2_SHIFT         0
2148c2ecf20Sopenharmony_ci#define SLG51000_PATTERN_ID_BYTE2_MASK          (0xff << 0)
2158c2ecf20Sopenharmony_ci
2168c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_SYS_CONF_A = 0x1109 */
2178c2ecf20Sopenharmony_ci#define SLG51000_I2C_ADDRESS_SHIFT              0
2188c2ecf20Sopenharmony_ci#define SLG51000_I2C_ADDRESS_MASK               (0x7f << 0)
2198c2ecf20Sopenharmony_ci#define SLG51000_I2C_DISABLE_SHIFT              7
2208c2ecf20Sopenharmony_ci#define SLG51000_I2C_DISABLE_MASK               (0x01 << 7)
2218c2ecf20Sopenharmony_ci
2228c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_SYS_CONF_D = 0x110c */
2238c2ecf20Sopenharmony_ci#define SLG51000_CS_T_DEB_SHIFT                 6
2248c2ecf20Sopenharmony_ci#define SLG51000_CS_T_DEB_MASK                  (0x03 << 6)
2258c2ecf20Sopenharmony_ci#define SLG51000_I2C_CLR_MODE_SHIFT             5
2268c2ecf20Sopenharmony_ci#define SLG51000_I2C_CLR_MODE_MASK              (0x01 << 5)
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_MATRIX_CTRL_CONF_A = 0x110d */
2298c2ecf20Sopenharmony_ci#define SLG51000_RESOURCE_CTRL_SHIFT            0
2308c2ecf20Sopenharmony_ci#define SLG51000_RESOURCE_CTRL_MASK             (0xff << 0)
2318c2ecf20Sopenharmony_ci
2328c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_MATRIX_CTRL_CONF_B = 0x110e */
2338c2ecf20Sopenharmony_ci#define SLG51000_MATRIX_EVENT_SENSE_SHIFT       0
2348c2ecf20Sopenharmony_ci#define SLG51000_MATRIX_EVENT_SENSE_MASK        (0x07 << 0)
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_REFGEN_CONF_C = 0x1111 */
2378c2ecf20Sopenharmony_ci#define SLG51000_REFGEN_SEL_TEMP_WARN_DEBOUNCE_SHIFT    2
2388c2ecf20Sopenharmony_ci#define SLG51000_REFGEN_SEL_TEMP_WARN_DEBOUNCE_MASK     (0x03 << 2)
2398c2ecf20Sopenharmony_ci#define SLG51000_REFGEN_SEL_TEMP_WARN_THR_SHIFT         0
2408c2ecf20Sopenharmony_ci#define SLG51000_REFGEN_SEL_TEMP_WARN_THR_MASK          (0x03 << 0)
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_UVLO_CONF_A = 0x1112 */
2438c2ecf20Sopenharmony_ci#define SLG51000_VMON_UVLO_SEL_THR_SHIFT        0
2448c2ecf20Sopenharmony_ci#define SLG51000_VMON_UVLO_SEL_THR_MASK         (0x1f << 0)
2458c2ecf20Sopenharmony_ci
2468c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_FAULT_LOG1 = 0x1115 */
2478c2ecf20Sopenharmony_ci#define SLG51000_FLT_POR_SHIFT                  5
2488c2ecf20Sopenharmony_ci#define SLG51000_FLT_POR_MASK                   (0x01 << 5)
2498c2ecf20Sopenharmony_ci#define SLG51000_FLT_RST_SHIFT                  4
2508c2ecf20Sopenharmony_ci#define SLG51000_FLT_RST_MASK                   (0x01 << 4)
2518c2ecf20Sopenharmony_ci#define SLG51000_FLT_POWER_SEQ_CRASH_REQ_SHIFT  2
2528c2ecf20Sopenharmony_ci#define SLG51000_FLT_POWER_SEQ_CRASH_REQ_MASK   (0x01 << 2)
2538c2ecf20Sopenharmony_ci#define SLG51000_FLT_OVER_TEMP_SHIFT            1
2548c2ecf20Sopenharmony_ci#define SLG51000_FLT_OVER_TEMP_MASK             (0x01 << 1)
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_EVENT = 0x1116 */
2578c2ecf20Sopenharmony_ci#define SLG51000_EVT_MATRIX_SHIFT               1
2588c2ecf20Sopenharmony_ci#define SLG51000_EVT_MATRIX_MASK                (0x01 << 1)
2598c2ecf20Sopenharmony_ci#define SLG51000_EVT_HIGH_TEMP_WARN_SHIFT       0
2608c2ecf20Sopenharmony_ci#define SLG51000_EVT_HIGH_TEMP_WARN_MASK        (0x01 << 0)
2618c2ecf20Sopenharmony_ci
2628c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_STATUS = 0x1117 */
2638c2ecf20Sopenharmony_ci#define SLG51000_STA_MATRIX_SHIFT               1
2648c2ecf20Sopenharmony_ci#define SLG51000_STA_MATRIX_MASK                (0x01 << 1)
2658c2ecf20Sopenharmony_ci#define SLG51000_STA_HIGH_TEMP_WARN_SHIFT       0
2668c2ecf20Sopenharmony_ci#define SLG51000_STA_HIGH_TEMP_WARN_MASK        (0x01 << 0)
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_ci/* SLG51000_SYSCTL_IRQ_MASK = 0x1118 */
2698c2ecf20Sopenharmony_ci#define SLG51000_IRQ_MATRIX_SHIFT               1
2708c2ecf20Sopenharmony_ci#define SLG51000_IRQ_MATRIX_MASK                (0x01 << 1)
2718c2ecf20Sopenharmony_ci#define SLG51000_IRQ_HIGH_TEMP_WARN_SHIFT       0
2728c2ecf20Sopenharmony_ci#define SLG51000_IRQ_HIGH_TEMP_WARN_MASK        (0x01 << 0)
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci/* SLG51000_IO_GPIO1_CONF ~ SLG51000_IO_GPIO5_CONF =
2758c2ecf20Sopenharmony_ci * 0x1500, 0x1501, 0x1502, 0x1503, 0x1504
2768c2ecf20Sopenharmony_ci */
2778c2ecf20Sopenharmony_ci#define SLG51000_GPIO_DIR_SHIFT                 7
2788c2ecf20Sopenharmony_ci#define SLG51000_GPIO_DIR_MASK                  (0x01 << 7)
2798c2ecf20Sopenharmony_ci#define SLG51000_GPIO_SENS_SHIFT                5
2808c2ecf20Sopenharmony_ci#define SLG51000_GPIO_SENS_MASK                 (0x03 << 5)
2818c2ecf20Sopenharmony_ci#define SLG51000_GPIO_INVERT_SHIFT              4
2828c2ecf20Sopenharmony_ci#define SLG51000_GPIO_INVERT_MASK               (0x01 << 4)
2838c2ecf20Sopenharmony_ci#define SLG51000_GPIO_BYP_SHIFT                 3
2848c2ecf20Sopenharmony_ci#define SLG51000_GPIO_BYP_MASK                  (0x01 << 3)
2858c2ecf20Sopenharmony_ci#define SLG51000_GPIO_T_DEB_SHIFT               1
2868c2ecf20Sopenharmony_ci#define SLG51000_GPIO_T_DEB_MASK                (0x03 << 1)
2878c2ecf20Sopenharmony_ci#define SLG51000_GPIO_LEVEL_SHIFT               0
2888c2ecf20Sopenharmony_ci#define SLG51000_GPIO_LEVEL_MASK                (0x01 << 0)
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci/* SLG51000_IO_GPIO6_CONF = 0x1505 */
2918c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_SENS_SHIFT               5
2928c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_SENS_MASK                (0x03 << 5)
2938c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_INVERT_SHIFT             4
2948c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_INVERT_MASK              (0x01 << 4)
2958c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_T_DEB_SHIFT              1
2968c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_T_DEB_MASK               (0x03 << 1)
2978c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_LEVEL_SHIFT              0
2988c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_LEVEL_MASK               (0x01 << 0)
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci/* SLG51000_IO_GPIO_STATUS = 0x1506 */
3018c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_STATUS_SHIFT             5
3028c2ecf20Sopenharmony_ci#define SLG51000_GPIO6_STATUS_MASK              (0x01 << 5)
3038c2ecf20Sopenharmony_ci#define SLG51000_GPIO5_STATUS_SHIFT             4
3048c2ecf20Sopenharmony_ci#define SLG51000_GPIO5_STATUS_MASK              (0x01 << 4)
3058c2ecf20Sopenharmony_ci#define SLG51000_GPIO4_STATUS_SHIFT             3
3068c2ecf20Sopenharmony_ci#define SLG51000_GPIO4_STATUS_MASK              (0x01 << 3)
3078c2ecf20Sopenharmony_ci#define SLG51000_GPIO3_STATUS_SHIFT             2
3088c2ecf20Sopenharmony_ci#define SLG51000_GPIO3_STATUS_MASK              (0x01 << 2)
3098c2ecf20Sopenharmony_ci#define SLG51000_GPIO2_STATUS_SHIFT             1
3108c2ecf20Sopenharmony_ci#define SLG51000_GPIO2_STATUS_MASK              (0x01 << 1)
3118c2ecf20Sopenharmony_ci#define SLG51000_GPIO1_STATUS_SHIFT             0
3128c2ecf20Sopenharmony_ci#define SLG51000_GPIO1_STATUS_MASK              (0x01 << 0)
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_ci/* SLG51000_LUTARRAY_LUT_VAL_0 ~ SLG51000_LUTARRAY_LUT_VAL_11
3158c2ecf20Sopenharmony_ci * 0x1600, 0x1601, 0x1602, 0x1603, 0x1604, 0x1605,
3168c2ecf20Sopenharmony_ci * 0x1606, 0x1607, 0x1608, 0x1609, 0x160a, 0x160b
3178c2ecf20Sopenharmony_ci */
3188c2ecf20Sopenharmony_ci#define SLG51000_LUT_VAL_SHIFT                  0
3198c2ecf20Sopenharmony_ci#define SLG51000_LUT_VAL_MASK                   (0xff << 0)
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_ci/* SLG51000_MUXARRAY_INPUT_SEL_0 ~ SLG51000_MUXARRAY_INPUT_SEL_63
3228c2ecf20Sopenharmony_ci * 0x1700, 0x1701, 0x1702, 0x1703, 0x1704, 0x1705,
3238c2ecf20Sopenharmony_ci * 0x1706, 0x1707, 0x1708, 0x1709, 0x170a, 0x170b,
3248c2ecf20Sopenharmony_ci * 0x170c, 0x170d, 0x170e, 0x170f, 0x1710, 0x1711,
3258c2ecf20Sopenharmony_ci * 0x1712, 0x1713, 0x1714, 0x1715, 0x1716, 0x1717,
3268c2ecf20Sopenharmony_ci * 0x1718, 0x1719, 0x171a, 0x171b, 0x171c, 0x171d,
3278c2ecf20Sopenharmony_ci * 0x171e, 0x171f, 0x1720, 0x1721, 0x1722, 0x1723,
3288c2ecf20Sopenharmony_ci * 0x1724, 0x1725, 0x1726, 0x1727, 0x1728, 0x1729,
3298c2ecf20Sopenharmony_ci * 0x173a, 0x173b, 0x173c, 0x173d, 0x173e, 0x173f,
3308c2ecf20Sopenharmony_ci */
3318c2ecf20Sopenharmony_ci#define SLG51000_INPUT_SEL_SHIFT                0
3328c2ecf20Sopenharmony_ci#define SLG51000_INPUT_SEL_MASK                 (0x3f << 0)
3338c2ecf20Sopenharmony_ci
3348c2ecf20Sopenharmony_ci/* SLG51000_PWRSEQ_RESOURCE_EN_0 ~ SLG51000_PWRSEQ_RESOURCE_EN_5
3358c2ecf20Sopenharmony_ci * 0x1900, 0x1901, 0x1902, 0x1903, 0x1904, 0x1905
3368c2ecf20Sopenharmony_ci */
3378c2ecf20Sopenharmony_ci#define SLG51000_RESOURCE_EN_DOWN0_SHIFT        4
3388c2ecf20Sopenharmony_ci#define SLG51000_RESOURCE_EN_DOWN0_MASK         (0x07 << 4)
3398c2ecf20Sopenharmony_ci#define SLG51000_RESOURCE_EN_UP0_SHIFT          0
3408c2ecf20Sopenharmony_ci#define SLG51000_RESOURCE_EN_UP0_MASK           (0x07 << 0)
3418c2ecf20Sopenharmony_ci
3428c2ecf20Sopenharmony_ci/* SLG51000_PWRSEQ_SLOT_TIME_MIN_UP0 ~ SLG51000_PWRSEQ_SLOT_TIME_MIN_UP5
3438c2ecf20Sopenharmony_ci * 0x1906, 0x1908, 0x190a, 0x190c, 0x190e, 0x1910
3448c2ecf20Sopenharmony_ci */
3458c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MIN_UP_SHIFT         0
3468c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MIN_UP_MASK          (0xff << 0)
3478c2ecf20Sopenharmony_ci
3488c2ecf20Sopenharmony_ci/* SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN0 ~ SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN5
3498c2ecf20Sopenharmony_ci * 0x1907, 0x1909, 0x190b, 0x190d, 0x190f, 0x1911
3508c2ecf20Sopenharmony_ci */
3518c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MIN_DOWN_SHIFT       0
3528c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MIN_DOWN_MASK        (0xff << 0)
3538c2ecf20Sopenharmony_ci
3548c2ecf20Sopenharmony_ci/* SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_A ~ SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_C
3558c2ecf20Sopenharmony_ci * 0x1912, 0x1913, 0x1914
3568c2ecf20Sopenharmony_ci */
3578c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_DOWN1_SHIFT      6
3588c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_DOWN1_MASK       (0x03 << 6)
3598c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_UP1_SHIFT        4
3608c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_UP1_MASK         (0x03 << 4)
3618c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_DOWN0_SHIFT      2
3628c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_DOWN0_MASK       (0x03 << 2)
3638c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_UP0_SHIFT        0
3648c2ecf20Sopenharmony_ci#define SLG51000_SLOT_TIME_MAX_UP0_MASK         (0x03 << 0)
3658c2ecf20Sopenharmony_ci
3668c2ecf20Sopenharmony_ci/* SLG51000_PWRSEQ_INPUT_SENSE_CONF_A = 0x1915 */
3678c2ecf20Sopenharmony_ci#define SLG51000_TRIG_UP_SENSE_SHIFT            6
3688c2ecf20Sopenharmony_ci#define SLG51000_TRIG_UP_SENSE_MASK             (0x01 << 6)
3698c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE5_SHIFT             5
3708c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE5_MASK              (0x01 << 5)
3718c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE4_SHIFT             4
3728c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE4_MASK              (0x01 << 4)
3738c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE3_SHIFT             3
3748c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE3_MASK              (0x01 << 3)
3758c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE2_SHIFT             2
3768c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE2_MASK              (0x01 << 2)
3778c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE1_SHIFT             1
3788c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE1_MASK              (0x01 << 1)
3798c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE0_SHIFT             0
3808c2ecf20Sopenharmony_ci#define SLG51000_UP_EN_SENSE0_MASK              (0x01 << 0)
3818c2ecf20Sopenharmony_ci
3828c2ecf20Sopenharmony_ci/* SLG51000_PWRSEQ_INPUT_SENSE_CONF_B = 0x1916 */
3838c2ecf20Sopenharmony_ci#define SLG51000_CRASH_DETECT_SENSE_SHIFT       7
3848c2ecf20Sopenharmony_ci#define SLG51000_CRASH_DETECT_SENSE_MASK        (0x01 << 7)
3858c2ecf20Sopenharmony_ci#define SLG51000_TRIG_DOWN_SENSE_SHIFT          6
3868c2ecf20Sopenharmony_ci#define SLG51000_TRIG_DOWN_SENSE_MASK           (0x01 << 6)
3878c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE5_SHIFT           5
3888c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE5_MASK            (0x01 << 5)
3898c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE4_SHIFT           4
3908c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE4_MASK            (0x01 << 4)
3918c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE3_SHIFT           3
3928c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE3_MASK            (0x01 << 3)
3938c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE2_SHIFT           2
3948c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE2_MASK            (0x01 << 2)
3958c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE1_SHIFT           1
3968c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE1_MASK            (0x01 << 1)
3978c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE0_SHIFT           0
3988c2ecf20Sopenharmony_ci#define SLG51000_DOWN_EN_SENSE0_MASK            (0x01 << 0)
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_ci/* SLG51000_LDO1_VSEL ~ SLG51000_LDO7_VSEL =
4018c2ecf20Sopenharmony_ci * 0x2000, 0x2200, 0x2300, 0x2500, 0x2700, 0x2900, 0x3100
4028c2ecf20Sopenharmony_ci */
4038c2ecf20Sopenharmony_ci#define SLG51000_VSEL_SHIFT                     0
4048c2ecf20Sopenharmony_ci#define SLG51000_VSEL_MASK                      (0xff << 0)
4058c2ecf20Sopenharmony_ci
4068c2ecf20Sopenharmony_ci/* SLG51000_LDO1_MINV ~ SLG51000_LDO7_MINV =
4078c2ecf20Sopenharmony_ci * 0x2060, 0x2260, 0x2360, 0x2560, 0x2760, 0x2960, 0x3160
4088c2ecf20Sopenharmony_ci */
4098c2ecf20Sopenharmony_ci#define SLG51000_MINV_SHIFT                     0
4108c2ecf20Sopenharmony_ci#define SLG51000_MINV_MASK                      (0xff << 0)
4118c2ecf20Sopenharmony_ci
4128c2ecf20Sopenharmony_ci/* SLG51000_LDO1_MAXV ~ SLG51000_LDO7_MAXV =
4138c2ecf20Sopenharmony_ci * 0x2061, 0x2261, 0x2361, 0x2561, 0x2761, 0x2961, 0x3161
4148c2ecf20Sopenharmony_ci */
4158c2ecf20Sopenharmony_ci#define SLG51000_MAXV_SHIFT                     0
4168c2ecf20Sopenharmony_ci#define SLG51000_MAXV_MASK                      (0xff << 0)
4178c2ecf20Sopenharmony_ci
4188c2ecf20Sopenharmony_ci/* SLG51000_LDO1_MISC1 = 0x2064, SLG51000_LDO2_MISC1 = 0x2264 */
4198c2ecf20Sopenharmony_ci#define SLG51000_SEL_VRANGE_SHIFT               0
4208c2ecf20Sopenharmony_ci#define SLG51000_SEL_VRANGE_MASK                (0x01 << 0)
4218c2ecf20Sopenharmony_ci
4228c2ecf20Sopenharmony_ci/* SLG51000_LDO1_VSEL_ACTUAL ~ SLG51000_LDO7_VSEL_ACTUAL =
4238c2ecf20Sopenharmony_ci * 0x2065, 0x2265, 0x2366, 0x2566, 0x2767, 0x2967, 0x3166
4248c2ecf20Sopenharmony_ci */
4258c2ecf20Sopenharmony_ci#define SLG51000_VSEL_ACTUAL_SHIFT              0
4268c2ecf20Sopenharmony_ci#define SLG51000_VSEL_ACTUAL_MASK               (0xff << 0)
4278c2ecf20Sopenharmony_ci
4288c2ecf20Sopenharmony_ci/* SLG51000_LDO1_EVENT ~ SLG51000_LDO7_EVENT =
4298c2ecf20Sopenharmony_ci * 0x20c0, 0x22c0, 0x23c0, 0x25c0, 0x27c0, 0x29c0, 0x31c0
4308c2ecf20Sopenharmony_ci */
4318c2ecf20Sopenharmony_ci#define SLG51000_EVT_ILIM_FLAG_SHIFT            0
4328c2ecf20Sopenharmony_ci#define SLG51000_EVT_ILIM_FLAG_MASK             (0x01 << 0)
4338c2ecf20Sopenharmony_ci#define SLG51000_EVT_VOUT_OK_FLAG_SHIFT         1
4348c2ecf20Sopenharmony_ci#define SLG51000_EVT_VOUT_OK_FLAG_MASK          (0x01 << 1)
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_ci/* SLG51000_LDO1_STATUS ~ SLG51000_LDO7_STATUS =
4378c2ecf20Sopenharmony_ci * 0x20c1, 0x22c1, 0x23c1, 0x25c1, 0x27c1, 0x29c1, 0x31c1
4388c2ecf20Sopenharmony_ci */
4398c2ecf20Sopenharmony_ci#define SLG51000_STA_ILIM_FLAG_SHIFT            0
4408c2ecf20Sopenharmony_ci#define SLG51000_STA_ILIM_FLAG_MASK             (0x01 << 0)
4418c2ecf20Sopenharmony_ci#define SLG51000_STA_VOUT_OK_FLAG_SHIFT         1
4428c2ecf20Sopenharmony_ci#define SLG51000_STA_VOUT_OK_FLAG_MASK          (0x01 << 1)
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_ci/* SLG51000_LDO1_IRQ_MASK ~ SLG51000_LDO7_IRQ_MASK =
4458c2ecf20Sopenharmony_ci * 0x20c2, 0x22c2, 0x23c2, 0x25c2, 0x27c2, 0x29c2, 0x31c2
4468c2ecf20Sopenharmony_ci */
4478c2ecf20Sopenharmony_ci#define SLG51000_IRQ_ILIM_FLAG_SHIFT            0
4488c2ecf20Sopenharmony_ci#define SLG51000_IRQ_ILIM_FLAG_MASK             (0x01 << 0)
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci/* SLG51000_LDO3_CONF1 ~ SLG51000_LDO7_CONF1 =
4518c2ecf20Sopenharmony_ci * 0x2364, 0x2564, 0x2765, 0x2965, 0x3164
4528c2ecf20Sopenharmony_ci */
4538c2ecf20Sopenharmony_ci#define SLG51000_SEL_START_ILIM_SHIFT           0
4548c2ecf20Sopenharmony_ci#define SLG51000_SEL_START_ILIM_MASK            (0x7f << 0)
4558c2ecf20Sopenharmony_ci
4568c2ecf20Sopenharmony_ci/* SLG51000_LDO3_CONF2 ~ SLG51000_LDO7_CONF2 =
4578c2ecf20Sopenharmony_ci * 0x2365, 0x2565, 0x2766, 0x2966, 0x3165
4588c2ecf20Sopenharmony_ci */
4598c2ecf20Sopenharmony_ci#define SLG51000_SEL_FUNC_ILIM_SHIFT            0
4608c2ecf20Sopenharmony_ci#define SLG51000_SEL_FUNC_ILIM_MASK             (0x7f << 0)
4618c2ecf20Sopenharmony_ci
4628c2ecf20Sopenharmony_ci/* SLG51000_LDO5_TRIM2 = 0x2763, SLG51000_LDO6_TRIM2 = 0x2963 */
4638c2ecf20Sopenharmony_ci#define SLG51000_SEL_BYP_SLEW_RATE_SHIFT        2
4648c2ecf20Sopenharmony_ci#define SLG51000_SEL_BYP_SLEW_RATE_MASK         (0x03 << 2)
4658c2ecf20Sopenharmony_ci#define SLG51000_SEL_BYP_VGATE_SHIFT            1
4668c2ecf20Sopenharmony_ci#define SLG51000_SEL_BYP_VGATE_MASK             (0x01 << 1)
4678c2ecf20Sopenharmony_ci#define SLG51000_SEL_BYP_MODE_SHIFT             0
4688c2ecf20Sopenharmony_ci#define SLG51000_SEL_BYP_MODE_MASK              (0x01 << 0)
4698c2ecf20Sopenharmony_ci
4708c2ecf20Sopenharmony_ci/* SLG51000_OTP_EVENT = 0x782b */
4718c2ecf20Sopenharmony_ci#define SLG51000_EVT_CRC_SHIFT                  0
4728c2ecf20Sopenharmony_ci#define SLG51000_EVT_CRC_MASK                   (0x01 << 0)
4738c2ecf20Sopenharmony_ci
4748c2ecf20Sopenharmony_ci/* SLG51000_OTP_IRQ_MASK = 0x782d */
4758c2ecf20Sopenharmony_ci#define SLG51000_IRQ_CRC_SHIFT                  0
4768c2ecf20Sopenharmony_ci#define SLG51000_IRQ_CRC_MASK                   (0x01 << 0)
4778c2ecf20Sopenharmony_ci
4788c2ecf20Sopenharmony_ci/* SLG51000_OTP_LOCK_OTP_PROG = 0x78fe */
4798c2ecf20Sopenharmony_ci#define SLG51000_LOCK_OTP_PROG_SHIFT            0
4808c2ecf20Sopenharmony_ci#define SLG51000_LOCK_OTP_PROG_MASK             (0x01 << 0)
4818c2ecf20Sopenharmony_ci
4828c2ecf20Sopenharmony_ci/* SLG51000_OTP_LOCK_CTRL = 0x78ff */
4838c2ecf20Sopenharmony_ci#define SLG51000_LOCK_DFT_SHIFT                 1
4848c2ecf20Sopenharmony_ci#define SLG51000_LOCK_DFT_MASK                  (0x01 << 1)
4858c2ecf20Sopenharmony_ci#define SLG51000_LOCK_RWT_SHIFT                 0
4868c2ecf20Sopenharmony_ci#define SLG51000_LOCK_RWT_MASK                  (0x01 << 0)
4878c2ecf20Sopenharmony_ci
4888c2ecf20Sopenharmony_ci/* SLG51000_LOCK_GLOBAL_LOCK_CTRL1 = 0x8000 */
4898c2ecf20Sopenharmony_ci#define SLG51000_LDO7_LOCK_SHIFT                7
4908c2ecf20Sopenharmony_ci#define SLG51000_LDO7_LOCK_MASK                 (0x01 << 7)
4918c2ecf20Sopenharmony_ci#define SLG51000_LDO6_LOCK_SHIFT                6
4928c2ecf20Sopenharmony_ci#define SLG51000_LDO6_LOCK_MASK                 (0x01 << 6)
4938c2ecf20Sopenharmony_ci#define SLG51000_LDO5_LOCK_SHIFT                5
4948c2ecf20Sopenharmony_ci#define SLG51000_LDO5_LOCK_MASK                 (0x01 << 5)
4958c2ecf20Sopenharmony_ci#define SLG51000_LDO4_LOCK_SHIFT                4
4968c2ecf20Sopenharmony_ci#define SLG51000_LDO4_LOCK_MASK                 (0x01 << 4)
4978c2ecf20Sopenharmony_ci#define SLG51000_LDO3_LOCK_SHIFT                3
4988c2ecf20Sopenharmony_ci#define SLG51000_LDO3_LOCK_MASK                 (0x01 << 3)
4998c2ecf20Sopenharmony_ci#define SLG51000_LDO2_LOCK_SHIFT                2
5008c2ecf20Sopenharmony_ci#define SLG51000_LDO2_LOCK_MASK                 (0x01 << 2)
5018c2ecf20Sopenharmony_ci#define SLG51000_LDO1_LOCK_SHIFT                1
5028c2ecf20Sopenharmony_ci#define SLG51000_LDO1_LOCK_MASK                 (0x01 << 1)
5038c2ecf20Sopenharmony_ci
5048c2ecf20Sopenharmony_ci#endif /* __SLG51000_REGISTERS_H__ */
5058c2ecf20Sopenharmony_ci
506