From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1296A249ED; Mon, 4 Dec 2023 14:24:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Gto9Wb2/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54E86C433C7; Mon, 4 Dec 2023 14:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701699882; bh=FxyTNV2BSZCdnXrn/+nzGXNlT8yOZRDQS3uQJjiW47g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Gto9Wb2/vIUEXslxtUHhJczyFiYNjrM8cQ4dvpD07pgWzYI5onF4rEYmXUofK0qaz SU5yaVKSoSetKprNtUIR0gbnHjceiKiD7Vh9qYwXOmy0R9IpYk3KISn1alMye9WU3W BpRVtv2FyUGvuGfA7eh5Dr8DtP5pJHxiej0iOQ0paiO/5ha29M/CrrOB5+/4llzHB6 9WlJ/aLAvCzT1JOJMadkpuPzZFpa7wSOndZwnJuAGLz4luOpH38AJcE89R/nY/1k6s EaI7d40iiH1blx/dSqKFX85drBOs6hFKRNIYa2+C3iYO4V5ZugcaNh99SvyCgn8Tle kmx1XTuCDJnWw== Date: Mon, 4 Dec 2023 14:24:29 +0000 From: Jonathan Cameron To: Nia Espera Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Lars-Peter Clausen , Rob Herring , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Vinod Koul , Krzysztof Kozlowski , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Rob , Clayton Craft , Caleb Connolly , Luca Weiss , ~postmarketos/upstreaming@lists.sr.ht Subject: Re: [PATCH v3 1/6] dt-bindings: iio: adc: add smb139x Message-ID: <20231204142429.5691e85c@jic23-huawei> In-Reply-To: <20231108-nia-sm8350-for-upstream-v3-1-18a024b5c74c@igalia.com> References: <20231108-nia-sm8350-for-upstream-v3-0-18a024b5c74c@igalia.com> <20231108-nia-sm8350-for-upstream-v3-1-18a024b5c74c@igalia.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 08 Nov 2023 18:50:25 +0100 Nia Espera wrote: > Bindings for a charger controller chip found on sm8350 > > Signed-off-by: Nia Espera Acked-by: Jonathan Cameron > --- > include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h | 19 +++++++++++++++++++ > include/dt-bindings/iio/qcom,spmi-vadc.h | 3 +++ > 2 files changed, 22 insertions(+) > > diff --git a/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h b/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h > new file mode 100644 > index 000000000000..c0680d1285cf > --- /dev/null > +++ b/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h > @@ -0,0 +1,19 @@ > +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause */ > +/* > + * 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 > + > +#include > + > +#define SMB139x_1_ADC7_SMB_TEMP (SMB139x_1_SID << 8 | ADC7_SMB_TEMP) > +#define SMB139x_1_ADC7_ICHG_SMB (SMB139x_1_SID << 8 | ADC7_ICHG_SMB) > +#define SMB139x_1_ADC7_IIN_SMB (SMB139x_1_SID << 8 | ADC7_IIN_SMB) > + > +#define SMB139x_2_ADC7_SMB_TEMP (SMB139x_2_SID << 8 | ADC7_SMB_TEMP) > +#define SMB139x_2_ADC7_ICHG_SMB (SMB139x_2_SID << 8 | ADC7_ICHG_SMB) > +#define SMB139x_2_ADC7_IIN_SMB (SMB139x_2_SID << 8 | ADC7_IIN_SMB) > + > +#endif > diff --git a/include/dt-bindings/iio/qcom,spmi-vadc.h b/include/dt-bindings/iio/qcom,spmi-vadc.h > index 08adfe25964c..ef07ecd4d585 100644 > --- a/include/dt-bindings/iio/qcom,spmi-vadc.h > +++ b/include/dt-bindings/iio/qcom,spmi-vadc.h > @@ -239,12 +239,15 @@ > #define ADC7_GPIO3 0x0c > #define ADC7_GPIO4 0x0d > > +#define ADC7_SMB_TEMP 0x06 > #define ADC7_CHG_TEMP 0x10 > #define ADC7_USB_IN_V_16 0x11 > #define ADC7_VDC_16 0x12 > #define ADC7_CC1_ID 0x13 > #define ADC7_VREF_BAT_THERM 0x15 > #define ADC7_IIN_FB 0x17 > +#define ADC7_ICHG_SMB 0x18 > +#define ADC7_IIN_SMB 0x19 > > /* 30k pull-up1 */ > #define ADC7_AMUX_THM1_30K_PU 0x24 >