43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
|
|
/*
|
|
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_SMB139X_H
|
|
#define _DT_BINDINGS_QCOM_SPMI_VADC_SMB139X_H
|
|
|
|
#ifndef SMB139x_1_SID
|
|
#define SMB139x_1_SID 0x0b
|
|
#endif
|
|
|
|
#ifndef SMB139x_2_SID
|
|
#define SMB139x_2_SID 0x0c
|
|
#endif
|
|
|
|
#ifndef SMB1394_1_SID
|
|
#define SMB1394_1_SID 0x09
|
|
#endif
|
|
|
|
#ifndef SMB1394_2_SID
|
|
#define SMB1394_2_SID 0x0b
|
|
#endif
|
|
|
|
#define SMB139x_1_ADC7_SMB_TEMP (SMB139x_1_SID << 8 | 0x06)
|
|
#define SMB139x_1_ADC7_ICHG_SMB (SMB139x_1_SID << 8 | 0x18)
|
|
#define SMB139x_1_ADC7_IIN_SMB (SMB139x_1_SID << 8 | 0x19)
|
|
|
|
#define SMB139x_2_ADC7_SMB_TEMP (SMB139x_2_SID << 8 | 0x06)
|
|
#define SMB139x_2_ADC7_ICHG_SMB (SMB139x_2_SID << 8 | 0x18)
|
|
#define SMB139x_2_ADC7_IIN_SMB (SMB139x_2_SID << 8 | 0x19)
|
|
|
|
#define SMB1394_1_ADC7_SMB_TEMP (SMB1394_1_SID << 8 | 0x06)
|
|
#define SMB1394_1_ADC7_ICHG_SMB (SMB1394_1_SID << 8 | 0x18)
|
|
#define SMB1394_1_ADC7_IIN_SMB (SMB1394_1_SID << 8 | 0x19)
|
|
|
|
#define SMB1394_2_ADC7_SMB_TEMP (SMB1394_2_SID << 8 | 0x06)
|
|
#define SMB1394_2_ADC7_ICHG_SMB (SMB1394_2_SID << 8 | 0x18)
|
|
#define SMB1394_2_ADC7_IIN_SMB (SMB1394_2_SID << 8 | 0x19)
|
|
|
|
#endif
|