Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2105785pxb; Wed, 9 Feb 2022 10:58:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/CJ0NwyFg2GJMCkqu0t5a3aQbLETx7v5nYF0/5L2wUr4sNGM4org/8c3EzdHBxVistFc2 X-Received: by 2002:a17:90a:ca93:: with SMTP id y19mr4943139pjt.108.1644433109111; Wed, 09 Feb 2022 10:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644433109; cv=none; d=google.com; s=arc-20160816; b=RHR1deq0K6PGuT7jwqaIfPoYWNscWuOj6LnxMVSo0CvLTKhUaRDbWfHb8O85SHbObs gwzqJmBUjDCCEK4gfY/mYPG5EtzYVzgIIAGl6mQdLyg8Tl1nuwiZCyWQtx8gXmHvkt4F mhiIHdpgEMkcUY2X6gzTrjRcjEDQ0rXUbNW52NgEQEBK4LEQVNJjH40XVZG8n8qof0kF iFvGvJLW4CZogH/r+gNofevygL0l90Mn4ohm/AkzUtIg+RXwv8PY6sL8gcKuG2cbboHD IiayBrgy5wKcS+/fkBVmQHJ3zFSUtXoU/fZLLicy2cBvecqAFCq183ZBh8bWWgwLRCTy vYWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=ooNj/8suxQGCS+iG0qUYChLq9ehXfq6KW/VZ9iEQVtM=; b=A36bLj5+HsvVTriDLL8+fPHKT+rl+UDu7PXdrtdiC10mMDGiloNAafi+edJvedHDhK qwcOtxHM+YxxEgh4Rloarw8KJHfnELm5L+0VqQlUKrrqzO3x3QYnMOvDhbISKVAmqVvE gnhC1BdEEWXY4lnRcJ/Iunc4KhlNx5OHqQWkuuy84+mkyKnsQS79rzFe68fTFwqWpeB+ 8hV66sGnSsVJ7j8/NQCT+TKqFDrgZOzlduGLCyAE3Gdw+uHgaGY0qXCipi40p6YhkAxC OJXr9Kivwe1TKx3ypOE+5cJMl50zYG3L9goy24hkSoF5BH95iyWpvUAHymzMRurS5PDv fYzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=m2Mzvb3y; dkim=pass header.i=@ansari.sh header.s=default header.b=ZM0LJZsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si14630834pfd.61.2022.02.09.10.58.17; Wed, 09 Feb 2022 10:58:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=m2Mzvb3y; dkim=pass header.i=@ansari.sh header.s=default header.b=ZM0LJZsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237337AbiBIQjy (ORCPT + 99 others); Wed, 9 Feb 2022 11:39:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234543AbiBIQjx (ORCPT ); Wed, 9 Feb 2022 11:39:53 -0500 Received: from fwd1.porkbun.com (fwd1.porkbun.com [52.10.174.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8457C0612BE; Wed, 9 Feb 2022 08:39:56 -0800 (PST) Received: by fwd1.porkbun.com (Postfix, from userid 497) id 78B7C429CD; Wed, 9 Feb 2022 16:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644424796; bh=ooNj/8suxQGCS+iG0qUYChLq9ehXfq6KW/VZ9iEQVtM=; h=From:To:Cc:Subject:Date; b=m2Mzvb3yBRtES/mr4zsa1QF5lj5mhZS1V0C6oe92XDpcv5MPqBz/vU8gOtlrbORKR Tt0RqZoBdYPdmZsDUpBxIPYrE5UnfhCnMpsu6k89T+MgqUrwY6FVkrIoJVnMoPveiy 8vYKvLi8nSFutE0FplWcPfZ3ZRuUbp7VUV9dmiNM= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 Received: from rayyan-pc.. (unknown [90.242.138.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rayyan@ansari.sh) by fwd1.porkbun.com (Postfix) with ESMTPSA id B8E4D41C54; Wed, 9 Feb 2022 16:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644424781; bh=ooNj/8suxQGCS+iG0qUYChLq9ehXfq6KW/VZ9iEQVtM=; h=From:To:Cc:Subject:Date; b=ZM0LJZsYefdS00PyYlDAREOJZ+oo2lgbvjHxMsfx6vGyauOZP0s8MW22WeUp9KIBg WPohoiTLEsz9SvHvTuB24ydfECHae4XNrRHeJsHRTEYFIdZRWdQ1M+5X0num9UF2ap 7u+fgkXSA0MqW4/hGjzKg4plnyZ1S8+ZMuGshFsg= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rayyan Ansari , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: dts: qcom: pm8226: Add VADC node Date: Wed, 9 Feb 2022 16:38:40 +0000 Message-Id: <20220209163841.7360-1-rayyan@ansari.sh> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a node for the voltage ADC (VADC) found in PM8226. Signed-off-by: Rayyan Ansari --- arch/arm/boot/dts/qcom-pm8226.dtsi | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm8226.dtsi index b3d0f7b5874d..5e07f34e4ec4 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: BSD-3-Clause #include #include +#include &spmi_bus { pm8226_0: pm8226@0 { @@ -40,6 +41,39 @@ smbb: charger@1000 { chg_otg: otg-vbus { }; }; + pm8226_vadc: adc@3100 { + compatible = "qcom,spmi-vadc"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + adc-chan@7 { + reg = ; + qcom,pre-scaling = <1 3>; + label = "vph_pwr"; + }; + adc-chan@8 { + reg = ; + label = "die_temp"; + }; + adc-chan@9 { + reg = ; + label = "ref_625mv"; + }; + adc-chan@a { + reg = ; + label = "ref_1250mv"; + }; + adc-chan@e { + reg = ; + }; + adc-chan@f { + reg = ; + }; + }; + pm8226_mpps: mpps@a000 { compatible = "qcom,pm8226-mpp", "qcom,spmi-mpp"; reg = <0xa000>; -- 2.34.1