mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
dt-bindings: iio: add smb139x IIO channels
Add SMB_TEMP, IIN_SMB and ICHG_SMB channels for both SMB139x charge pumps that can be paired with PM8350B. Change-Id: Ie67f308d59439a8cb2bced6e80693b101261f3cc Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
parent
f086d6a2ec
commit
d68f7175d5
1 changed files with 25 additions and 0 deletions
25
include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h
Normal file
25
include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020 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
|
||||
|
||||
#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)
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue