From patchwork Wed Oct 18 14:25:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nia Espera X-Patchwork-Id: 1850932 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=izcoy8tU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=permerror (SPF Permanent Error: More than 10 MX records returned) smtp.mailfrom=vger.kernel.org (client-ip=147.75.199.223; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-9676-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [147.75.199.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S9Y7G0YQWz23jS for ; Thu, 19 Oct 2023 01:26:17 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E44951C20DCD for ; Wed, 18 Oct 2023 14:26:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A206F374FC; Wed, 18 Oct 2023 14:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="izcoy8tU" X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 E8BB2374EA for ; Wed, 18 Oct 2023 14:26:12 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E30945FCD; Wed, 18 Oct 2023 07:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ph2HNOFu6ShT/rsQc1S8mJc4ao2RB+pOWhhItYG94CA=; b=izcoy8tUBmg/QK99GwKWwCm4Qm YcHFLacurcJOQiVaUysS4yAfdrJaMMP1WUauMnerkKvA8PRrkFUuA2ItZ/wRqzk6DPYP2BpjjIM7x X5csqa05XfHgZCQNZ2QS+iIrKVEXM6DvlCuwhMD0Ukab1az3VMwihx3A/T6L5USSeSHUrZLwbVGku djpMhmc7P1/E6L7svpcQtocpwk936IC+wQJBpGZzD8O5DzIluuaHTfUo+2VhAzzj82rHfrHTWTI59 cMStre1l8HIvmtgyBRAiojWek/tBdJGi8Kez6ZhfcRmW9RWeOB/HqMLP1O1Lx+N4cyIqyMrH4YKuN 0AYmsBJQ==; Received: from [145.18.212.154] by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qt7Ug-001paE-5j; Wed, 18 Oct 2023 16:25:54 +0200 From: Nia Espera Date: Wed, 18 Oct 2023 16:25:12 +0200 Subject: [PATCH v2 1/6] iio: adc: add smb139x bindings Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231018-nia-sm8350-for-upstream-v2-1-7b243126cb77@igalia.com> References: <20231018-nia-sm8350-for-upstream-v2-0-7b243126cb77@igalia.com> In-Reply-To: <20231018-nia-sm8350-for-upstream-v2-0-7b243126cb77@igalia.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Vinod Koul , Krzysztof Kozlowski Cc: 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, Nia Espera X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1969; i=nespera@igalia.com; h=from:subject:message-id; bh=qG/+w4/iwYleK9lDCuoPvHI0i6EeZNXt2CWHfVYC5c0=; b=owEB7QES/pANAwAIAfIkzsI3VuKtAcsmYgBlL+rqJuSbDKfiY/R6SZflVGRIoe+Z+PqwbXbzQ WyCJiTPJTCJAbMEAAEIAB0WIQSBPDomug3slDJEnubyJM7CN1birQUCZS/q6gAKCRDyJM7CN1bi rQ9HDACRU1jabHMEKiuLMV8c4+bWhzgmD/X2smF3BFmviw4oDoyIJrjvKkXxQvMXYXdTIgSdQ/B E4PSh0yimlWIH4ZBRQEAVUfwROiWmxxmtPrx6sVxax/g8dedaNR2aJaIVccA/BuZK30pY7Olh0n 9BHC9oSPSASM0xxhBprci+FszxXVHXgb/qrWws2aAOIxPrZESoKBBdDc7jDEOo1lnAwm+nqmYOE i8s0grSc40NJ7kOdNgj/ajX0Y8eqEGEALXjm7/CbtUwoxPND+UA/8UHLNKBXQSpWXyQ0EzxzSlV JPG9SC0XXdacfOodwgj3NCMjCi5qcPl7Zl1eIKxRziTtemRYz6Pb2P7rt1Pp/z54ytdnvCW9+gI hGWYFeTK17nzqr27/dce/28IAOzI/PaBNUfgBblnjSGfEHZmQOY8jSU8OgA6n/HZQmKj1TyoYSz 6hJQacdvY0pzWKQBYrpK3eVVRjrqP9A/GZ8jxq6o7AlDVIuw0fvB8crxVBoZrC75v2g+Q= X-Developer-Key: i=nespera@igalia.com; a=openpgp; fpr=813C3A26BA0DEC9432449EE6F224CEC23756E2AD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Bindings for a charger controller chip found on sm8350 Signed-off-by: Nia Espera --- 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 From patchwork Wed Oct 18 14:25:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nia Espera X-Patchwork-Id: 1850934 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=p/BAYykq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=permerror (SPF Permanent Error: More than 10 MX records returned) smtp.mailfrom=vger.kernel.org (client-ip=147.75.48.161; helo=sy.mirrors.kernel.org; envelope-from=devicetree+bounces-9679-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S9Y7K2jy2z20Pd for ; Thu, 19 Oct 2023 01:26:21 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1E0E5B21302 for ; Wed, 18 Oct 2023 14:26:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B47B137C8D; Wed, 18 Oct 2023 14:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="p/BAYykq" X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 85DC0358BD for ; Wed, 18 Oct 2023 14:26:15 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3959132; Wed, 18 Oct 2023 07:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WUFvCaplwb+OMl6szO4dvGflNfgGik7yhQL1tZppQ9o=; b=p/BAYykqqn83qNlFhYXWT4G61s +F7VZnZB4gYlepgqRm99u2gvb15986CVTGhCSbDlkYCn1vw/Evv8Ng2f656Wx7l4+jlUb5/fUY7qM bZkP38FUhW+M07HrMp7FWrLrvclgWk6mft1eB1kDUyj0jynjEa3PLUKNv6sNVw2PD2QfP7ze9IcH/ AQ3qbakLBVi9xTSDLl5efKe7TiXuSF078LbzrJepmYZuU6vDHrmVFnnBcOYV7DR+Ayne+UiKUG0uA MDHtsMcDF/PYdPBUPymDIJaO1KTBmvQ5aBiLnPJm4Fb0MUsB7DhRCM6L3ZYLL9Ie0P2QLCNRMXOHA CFYPiReQ==; Received: from [145.18.212.154] by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qt7Uk-001paE-AI; Wed, 18 Oct 2023 16:25:58 +0200 From: Nia Espera Date: Wed, 18 Oct 2023 16:25:16 +0200 Subject: [PATCH v2 5/6] dt-bindings: arm: qcom: add oneplus-lemonade(p) bindings Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231018-nia-sm8350-for-upstream-v2-5-7b243126cb77@igalia.com> References: <20231018-nia-sm8350-for-upstream-v2-0-7b243126cb77@igalia.com> In-Reply-To: <20231018-nia-sm8350-for-upstream-v2-0-7b243126cb77@igalia.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Vinod Koul , Krzysztof Kozlowski Cc: 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, Nia Espera X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=771; i=nespera@igalia.com; h=from:subject:message-id; bh=fZWUMa7J9qxmkjbmCBSVu6chMI8eH7xgrGVd2NuK9Js=; b=owEB7QES/pANAwAIAfIkzsI3VuKtAcsmYgBlL+rqoA3/hMxECL3x8PW+HKmTzeUQrPnGFnzMl 0K4I2z/vryJAbMEAAEIAB0WIQSBPDomug3slDJEnubyJM7CN1birQUCZS/q6gAKCRDyJM7CN1bi rQ4tC/9ILy259rh/cNC/u8bFYdGQHq95g2AZ8EZSasCZlgfpqWy9z5+6jKnxKzhSXYh136bMdxQ X0xFdUuoEcxwMXL4qpixzxTynd7IFL2L77zRd8/YS85vJaE+FXm2PlGIPaYQcCcSNwm+ddxq/rP mKPeU/6TDcWXn/VG8I208+jQoOFvq9XksWFdeQgR6iz6C0jisBKS7Ufiae8Yc99maqCqBD+UPhD w73Cq7it7IadmQ47evA38Xszr7tbbO5QJeCUubo9JbGYQLVw4v4GwcDkcGpsoXZQEZYSaxsYL5P eetY6vBSFMddQu1gSM5Akn9v3FET1/RT6FIdaE9JpHwMMXaUguba0w952RWI6qibWZj6ZS8mc5o wFlz9wwphLxkJp4mnKCvv6/B0nGphxtlmPVC06azRlrxjRxrp1GEey5H1r+Oz64uUEPozb0q/M1 dqRyaOA6Cx0albMAd2bcgMXDZbQm3GsXR8QY+dwDCmdH0KCRiB8/D81T1fMp41Dvdo3kc= X-Developer-Key: i=nespera@igalia.com; a=openpgp; fpr=813C3A26BA0DEC9432449EE6F224CEC23756E2AD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Document the devicetree bindings for oneplus-lemonade and oneplus-lemonadep. Signed-off-by: Nia Espera --- Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index adbfaea32343..72832ee5b876 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -974,6 +974,8 @@ properties: - qcom,sm8350-mtp - sony,pdx214-generic - sony,pdx215-generic + - oneplus,lemonade + - oneplus,lemonadep - const: qcom,sm8350 - items: