linux/include/linux/mfd/tps65086.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
 *	Andrew F. Davis <[email protected]>
 *
 * Based on the TPS65912 driver
 */

#ifndef __LINUX_MFD_TPS65086_H
#define __LINUX_MFD_TPS65086_H

#include <linux/device.h>
#include <linux/regmap.h>

/* List of registers for TPS65086 */
#define TPS65086_DEVICEID1
#define TPS65086_DEVICEID2
#define TPS65086_IRQ
#define TPS65086_IRQ_MASK
#define TPS65086_PMICSTAT
#define TPS65086_SHUTDNSRC
#define TPS65086_BUCK1CTRL
#define TPS65086_BUCK2CTRL
#define TPS65086_BUCK3DECAY
#define TPS65086_BUCK3VID
#define TPS65086_BUCK3SLPCTRL
#define TPS65086_BUCK4CTRL
#define TPS65086_BUCK5CTRL
#define TPS65086_BUCK6CTRL
#define TPS65086_LDOA2CTRL
#define TPS65086_LDOA3CTRL
#define TPS65086_DISCHCTRL1
#define TPS65086_DISCHCTRL2
#define TPS65086_DISCHCTRL3
#define TPS65086_PG_DELAY1
#define TPS65086_FORCESHUTDN
#define TPS65086_BUCK1SLPCTRL
#define TPS65086_BUCK2SLPCTRL
#define TPS65086_BUCK4VID
#define TPS65086_BUCK4SLPVID
#define TPS65086_BUCK5VID
#define TPS65086_BUCK5SLPVID
#define TPS65086_BUCK6VID
#define TPS65086_BUCK6SLPVID
#define TPS65086_LDOA2VID
#define TPS65086_LDOA3VID
#define TPS65086_BUCK123CTRL
#define TPS65086_PG_DELAY2
#define TPS65086_PIN_EN_MASK1
#define TPS65086_PIN_EN_MASK2
#define TPS65086_SWVTT_EN
#define TPS65086_PIN_EN_OVR1
#define TPS65086_PIN_EN_OVR2
#define TPS65086_GPOCTRL
#define TPS65086_PWR_FAULT_MASK1
#define TPS65086_PWR_FAULT_MASK2
#define TPS65086_GPO1PG_CTRL1
#define TPS65086_GPO1PG_CTRL2
#define TPS65086_GPO4PG_CTRL1
#define TPS65086_GPO4PG_CTRL2
#define TPS65086_GPO2PG_CTRL1
#define TPS65086_GPO2PG_CTRL2
#define TPS65086_GPO3PG_CTRL1
#define TPS65086_GPO3PG_CTRL2
#define TPS65086_LDOA1CTRL
#define TPS65086_PG_STATUS1
#define TPS65086_PG_STATUS2
#define TPS65086_PWR_FAULT_STATUS1
#define TPS65086_PWR_FAULT_STATUS2
#define TPS65086_TEMPCRIT
#define TPS65086_TEMPHOT
#define TPS65086_OC_STATUS

/* IRQ Register field definitions */
#define TPS65086_IRQ_DIETEMP_MASK
#define TPS65086_IRQ_SHUTDN_MASK
#define TPS65086_IRQ_FAULT_MASK

/* DEVICEID1 Register field definitions */
#define TPS6508640_ID
#define TPS65086401_ID
#define TPS6508641_ID
#define TPS65086470_ID

/* DEVICEID2 Register field definitions */
#define TPS65086_DEVICEID2_PART_MASK
#define TPS65086_DEVICEID2_OTP_MASK
#define TPS65086_DEVICEID2_REV_MASK

/* VID Masks */
#define BUCK_VID_MASK
#define VDOA1_VID_MASK
#define VDOA23_VID_MASK

/* Define the TPS65086 IRQ numbers */
enum tps65086_irqs {};

struct tps65086_regulator_config;

/**
 * struct tps65086 - state holder for the tps65086 driver
 *
 * Device data may be used to access the TPS65086 chip
 */
struct tps65086 {};

#endif /* __LINUX_MFD_TPS65086_H */