Rtwo/kernel/motorola/sm8550/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h
2025-09-30 19:22:48 -05:00

41 lines
1.2 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020-2021 The Linux Foundation. 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