90 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * pv88090-regulator.h - Regulator definitions for PV880904 * Copyright (C) 2015 Powerventure Semiconductor Ltd.5 */6 7#ifndef __PV88090_REGISTERS_H__8#define __PV88090_REGISTERS_H__9 10/* System Control and Event Registers */11#define PV88090_REG_EVENT_A 0x0312#define PV88090_REG_MASK_A 0x0613#define PV88090_REG_MASK_B 0x0714 15/* Regulator Registers */16#define PV88090_REG_BUCK1_CONF0 0x1817#define PV88090_REG_BUCK1_CONF1 0x1918#define PV88090_REG_BUCK1_CONF2 0x1a19#define PV88090_REG_BUCK2_CONF0 0x1b20#define PV88090_REG_BUCK2_CONF1 0x1c21#define PV88090_REG_BUCK2_CONF2 0x5822#define PV88090_REG_BUCK3_CONF0 0x1d23#define PV88090_REG_BUCK3_CONF1 0x1e24#define PV88090_REG_BUCK3_CONF2 0x5c25 26#define PV88090_REG_LDO1_CONT 0x1f27#define PV88090_REG_LDO2_CONT 0x2028#define PV88090_REG_LDO3_CONT 0x2129#define PV88090_REG_BUCK_FOLD_RANGE 0x6130 31/* PV88090_REG_EVENT_A (addr=0x03) */32#define PV88090_E_VDD_FLT 0x0133#define PV88090_E_OVER_TEMP 0x0234 35/* PV88090_REG_MASK_A (addr=0x06) */36#define PV88090_M_VDD_FLT 0x0137#define PV88090_M_OVER_TEMP 0x0238 39/* PV88090_REG_BUCK1_CONF0 (addr=0x18) */40#define PV88090_BUCK1_EN 0x8041#define PV88090_VBUCK1_MASK 0x7F42/* PV88090_REG_BUCK2_CONF0 (addr=0x1b) */43#define PV88090_BUCK2_EN 0x8044#define PV88090_VBUCK2_MASK 0x7F45/* PV88090_REG_BUCK3_CONF0 (addr=0x1d) */46#define PV88090_BUCK3_EN 0x8047#define PV88090_VBUCK3_MASK 0x7F48/* PV88090_REG_LDO1_CONT (addr=0x1f) */49#define PV88090_LDO1_EN 0x4050#define PV88090_VLDO1_MASK 0x3F51/* PV88090_REG_LDO2_CONT (addr=0x20) */52#define PV88090_LDO2_EN 0x4053#define PV88090_VLDO2_MASK 0x3F54 55/* PV88090_REG_BUCK1_CONF1 (addr=0x19) */56#define PV88090_BUCK1_ILIM_SHIFT 257#define PV88090_BUCK1_ILIM_MASK 0x7C58#define PV88090_BUCK1_MODE_MASK 0x0359 60/* PV88090_REG_BUCK2_CONF1 (addr=0x1c) */61#define PV88090_BUCK2_ILIM_SHIFT 262#define PV88090_BUCK2_ILIM_MASK 0x0C63#define PV88090_BUCK2_MODE_MASK 0x0364 65/* PV88090_REG_BUCK3_CONF1 (addr=0x1e) */66#define PV88090_BUCK3_ILIM_SHIFT 267#define PV88090_BUCK3_ILIM_MASK 0x0C68#define PV88090_BUCK3_MODE_MASK 0x0369 70#define PV88090_BUCK_MODE_SLEEP 0x0071#define PV88090_BUCK_MODE_AUTO 0x0172#define PV88090_BUCK_MODE_SYNC 0x0273 74/* PV88090_REG_BUCK2_CONF2 (addr=0x58) */75/* PV88090_REG_BUCK3_CONF2 (addr=0x5c) */76#define PV88090_BUCK_VDAC_RANGE_SHIFT 777#define PV88090_BUCK_VDAC_RANGE_MASK 0x0178 79#define PV88090_BUCK_VDAC_RANGE_1 0x0080#define PV88090_BUCK_VDAC_RANGE_2 0x0181 82/* PV88090_REG_BUCK_FOLD_RANGE (addr=0x61) */83#define PV88090_BUCK_VRANGE_GAIN_SHIFT 384#define PV88090_BUCK_VRANGE_GAIN_MASK 0x0185 86#define PV88090_BUCK_VRANGE_GAIN_1 0x0087#define PV88090_BUCK_VRANGE_GAIN_2 0x0188 89#endif /* __PV88090_REGISTERS_H__ */90