/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright ( C ) 2015 Texas Instruments Incorporated - https : //www.ti.com/
* Andrew F . Davis < afd @ ti . com >
*
* 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 0 x00
#define TPS65086_DEVICEID2 0 x01
#define TPS65086_IRQ 0 x02
#define TPS65086_IRQ_MASK 0 x03
#define TPS65086_PMICSTAT 0 x04
#define TPS65086_SHUTDNSRC 0 x05
#define TPS65086_BUCK1CTRL 0 x20
#define TPS65086_BUCK2CTRL 0 x21
#define TPS65086_BUCK3DECAY 0 x22
#define TPS65086_BUCK3VID 0 x23
#define TPS65086_BUCK3SLPCTRL 0 x24
#define TPS65086_BUCK4CTRL 0 x25
#define TPS65086_BUCK5CTRL 0 x26
#define TPS65086_BUCK6CTRL 0 x27
#define TPS65086_LDOA2CTRL 0 x28
#define TPS65086_LDOA3CTRL 0 x29
#define TPS65086_DISCHCTRL1 0 x40
#define TPS65086_DISCHCTRL2 0 x41
#define TPS65086_DISCHCTRL3 0 x42
#define TPS65086_PG_DELAY1 0 x43
#define TPS65086_FORCESHUTDN 0 x91
#define TPS65086_BUCK1SLPCTRL 0 x92
#define TPS65086_BUCK2SLPCTRL 0 x93
#define TPS65086_BUCK4VID 0 x94
#define TPS65086_BUCK4SLPVID 0 x95
#define TPS65086_BUCK5VID 0 x96
#define TPS65086_BUCK5SLPVID 0 x97
#define TPS65086_BUCK6VID 0 x98
#define TPS65086_BUCK6SLPVID 0 x99
#define TPS65086_LDOA2VID 0 x9A
#define TPS65086_LDOA3VID 0 x9B
#define TPS65086_BUCK123CTRL 0 x9C
#define TPS65086_PG_DELAY2 0 x9D
#define TPS65086_PIN_EN_MASK1 0 x9E
#define TPS65086_PIN_EN_MASK2 0 x9F
#define TPS65086_SWVTT_EN 0 x9F
#define TPS65086_PIN_EN_OVR1 0 xA0
#define TPS65086_PIN_EN_OVR2 0 xA1
#define TPS65086_GPOCTRL 0 xA1
#define TPS65086_PWR_FAULT_MASK1 0 xA2
#define TPS65086_PWR_FAULT_MASK2 0 xA3
#define TPS65086_GPO1PG_CTRL1 0 xA4
#define TPS65086_GPO1PG_CTRL2 0 xA5
#define TPS65086_GPO4PG_CTRL1 0 xA6
#define TPS65086_GPO4PG_CTRL2 0 xA7
#define TPS65086_GPO2PG_CTRL1 0 xA8
#define TPS65086_GPO2PG_CTRL2 0 xA9
#define TPS65086_GPO3PG_CTRL1 0 xAA
#define TPS65086_GPO3PG_CTRL2 0 xAB
#define TPS65086_LDOA1CTRL 0 xAE
#define TPS65086_PG_STATUS1 0 xB0
#define TPS65086_PG_STATUS2 0 xB1
#define TPS65086_PWR_FAULT_STATUS1 0 xB2
#define TPS65086_PWR_FAULT_STATUS2 0 xB3
#define TPS65086_TEMPCRIT 0 xB4
#define TPS65086_TEMPHOT 0 xB5
#define TPS65086_OC_STATUS 0 xB6
/* IRQ Register field definitions */
#define TPS65086_IRQ_DIETEMP_MASK BIT(0 )
#define TPS65086_IRQ_SHUTDN_MASK BIT(3 )
#define TPS65086_IRQ_FAULT_MASK BIT(7 )
/* DEVICEID1 Register field definitions */
#define TPS6508640_ID 0 x00
#define TPS65086401_ID 0 x01
#define TPS6508641_ID 0 x10
#define TPS65086470_ID 0 x70
/* DEVICEID2 Register field definitions */
#define TPS65086_DEVICEID2_PART_MASK GENMASK(3 , 0 )
#define TPS65086_DEVICEID2_OTP_MASK GENMASK(5 , 4 )
#define TPS65086_DEVICEID2_REV_MASK GENMASK(7 , 6 )
/* VID Masks */
#define BUCK_VID_MASK GENMASK(7 , 1 )
#define VDOA1_VID_MASK GENMASK(4 , 1 )
#define VDOA23_VID_MASK GENMASK(3 , 0 )
/* Define the TPS65086 IRQ numbers */
enum tps65086_irqs {
TPS65086_IRQ_DIETEMP,
TPS65086_IRQ_SHUTDN,
TPS65086_IRQ_FAULT,
};
struct tps65086_regulator_config;
/**
* struct tps65086 - state holder for the tps65086 driver
*
* Device data may be used to access the TPS65086 chip
*/
struct tps65086 {
struct device *dev;
struct regmap *regmap;
unsigned int chip_id;
const struct tps65086_regulator_config *reg_config;
/* IRQ Data */
int irq;
struct regmap_irq_chip_data *irq_data;
};
#endif /* __LINUX_MFD_TPS65086_H */
Messung V0.5 in Prozent C=91 H=100 G=95
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-30)
¤
*© Formatika GbR, Deutschland