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 7BF372D05C; Sat, 25 Nov 2023 20:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KfzQ0yMX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 136ADC433C8; Sat, 25 Nov 2023 20:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700944953; bh=RCKh7CEgJRbwjF1zTzXL3b/DGu8rKyfQhOkRrFXfuJY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KfzQ0yMXPgS4CXPIk8vyu2sIjBxAQ36NwuJHkH/Qu0B9I2cFvJJlJnhgdfmLlesW5 BGzRIas3XxFvxmdAVeVGimG0sGI3QoQrZxQYsz5EStOjHx8EEiakKT3MZtsSFQcy6h 0BQlh32UikOQI6tW3N4nSCDz9jjo1W8NI3d+rsMu9ACTtluIJ2Me8HKMI1lQpifNC9 z+SRoat++kI6RAYq8GT3+Pho9FD+v0UgHrkosIyNX9ofXTgH40tJ93exW9kK2PN8qQ X+LpmCURjRrjx9zcc6QALkeUTVqfyq/EEqCOz8DcYf86cwLpnPNxWwJlxvpQF0x8gq VbBp5SyZYqpmQ== Date: Sat, 25 Nov 2023 20:42:20 +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 v4 1/6] dt-bindings: iio: adc: qcom: Add Qualcomm smb139x Message-ID: <20231125204220.2e7621f9@jic23-huawei> In-Reply-To: <20231111-nia-sm8350-for-upstream-v4-1-3a638b02eea5@igalia.com> References: <20231111-nia-sm8350-for-upstream-v4-0-3a638b02eea5@igalia.com> <20231111-nia-sm8350-for-upstream-v4-1-3a638b02eea5@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 Sat, 11 Nov 2023 23:07:39 +0100 Nia Espera wrote: > Bindings for a charger controller chip found on sm8350 > > Signed-off-by: Nia Espera > Acked-by: Krzysztof Kozlowski Hmm. this is going to clash badly with the header moves. I'll assume they will both eventually go through the qcom tree unless someone tells me otherwise. 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 >