brintos

brintos / linux-shallow public Read only

0
0
Text · 2.0 KiB · 4899246 Raw
70 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * mpq7920.h  -  Regulator definitions for mpq79204 *5 * Copyright 2019 Monolithic Power Systems, Inc6 *7 */8 9#ifndef __MPQ7920_H__10#define __MPQ7920_H__11 12#define MPQ7920_REG_CTL0		0x0013#define MPQ7920_REG_CTL1		0x0114#define MPQ7920_REG_CTL2		0x0215#define MPQ7920_BUCK1_REG_A		0x0316#define MPQ7920_BUCK1_REG_B		0x0417#define MPQ7920_BUCK1_REG_C		0x0518#define MPQ7920_BUCK1_REG_D		0x0619#define MPQ7920_BUCK2_REG_A		0x0720#define MPQ7920_BUCK2_REG_B		0x0821#define MPQ7920_BUCK2_REG_C		0x0922#define MPQ7920_BUCK2_REG_D		0x0a23#define MPQ7920_BUCK3_REG_A		0x0b24#define MPQ7920_BUCK3_REG_B		0x0c25#define MPQ7920_BUCK3_REG_C		0x0d26#define MPQ7920_BUCK3_REG_D		0x0e27#define MPQ7920_BUCK4_REG_A		0x0f28#define MPQ7920_BUCK4_REG_B		0x1029#define MPQ7920_BUCK4_REG_C		0x1130#define MPQ7920_BUCK4_REG_D		0x1231#define MPQ7920_LDO1_REG_A		0x1332#define MPQ7920_LDO1_REG_B		0x033#define MPQ7920_LDO2_REG_A		0x1434#define MPQ7920_LDO2_REG_B		0x1535#define MPQ7920_LDO2_REG_C		0x1636#define MPQ7920_LDO3_REG_A		0x1737#define MPQ7920_LDO3_REG_B		0x1838#define MPQ7920_LDO3_REG_C		0x1939#define MPQ7920_LDO4_REG_A		0x1a40#define MPQ7920_LDO4_REG_B		0x1b41#define MPQ7920_LDO4_REG_C		0x1c42#define MPQ7920_LDO5_REG_A		0x1d43#define MPQ7920_LDO5_REG_B		0x1e44#define MPQ7920_LDO5_REG_C		0x1f45#define MPQ7920_REG_MODE		0x2046#define MPQ7920_REG_REGULATOR_EN	0x2247 48#define MPQ7920_MASK_VREF		0x7f49#define MPQ7920_MASK_BUCK_ILIM		0xc050#define MPQ7920_MASK_LDO_ILIM		BIT(6)51#define MPQ7920_MASK_DISCHARGE		BIT(5)52#define MPQ7920_MASK_MODE		0xc053#define MPQ7920_MASK_SOFTSTART		0x0c54#define MPQ7920_MASK_SWITCH_FREQ	0x3055#define MPQ7920_MASK_BUCK_PHASE_DEALY	0x3056#define MPQ7920_MASK_DVS_SLEWRATE	0xc057#define MPQ7920_MASK_OVP		0x4058#define MPQ7920_OVP_DISABLE		~(0x40)59#define MPQ7920_DISCHARGE_ON		BIT(5)60 61#define MPQ7920_REGULATOR_EN_OFFSET	762 63/* values in mV */64#define MPQ7920_BUCK_VOLT_MIN		40000065#define MPQ7920_LDO_VOLT_MIN		65000066#define MPQ7920_VOLT_MAX		358750067#define MPQ7920_VOLT_STEP		1250068 69#endif /* __MPQ7920_H__ */70