Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d68f7175 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

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: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent f086d6a2
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
/* 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