Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1128669pxb; Tue, 8 Feb 2022 09:53:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLDhZT9DcoaW5+uMgqxGRHONwJ/S7egjpt6a5f8e0TbgIaK2ZFUDrM/rUpHaDMZcSw6Mrk X-Received: by 2002:a05:6a00:1a50:: with SMTP id h16mr5516632pfv.74.1644342808408; Tue, 08 Feb 2022 09:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644342808; cv=none; d=google.com; s=arc-20160816; b=UIUS0gviR+zQzZWbyzhvvxZpkiHcd+mRk2/4kZ4s/u4EOJ/VMliwg8z6Jlqi4GMS7L cNf4f8uuALga07nfeN3f8SX8Jd9KFddIqnkeJXvmP41/Dq3lggXkKVUHqbkx8G9Q3eK4 ngG5rsAxnOIky25U1YEyu5sluXdDe0KmAVfW+rTrlQ4wxPaye2teqNdmM/9c6WFQdlLE HNrSB7+ZjkYSaOwcgX5e0NdukqghaKgI5gpMrmEokZEYSo9xbXhkuZ/giKqGsUU1Fo5Y wKbl1kQYEZGGWiS18UWpGgQ3khuquTHArqTC7C8A+w4t9ilj76SD6gUSlkC145bLi0Ix En2Q== 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=WgWSC1IOBKQNEaPKc/yuujz/f2ZwdXMi8BgaxzlEwSc=; b=ukiTffbn7rmR+xRJbLT4CB1QkI8bPrDqs3hd3OWj9bWNzg/TpABNwczdOsTSSOa5u3 dWSAVKL1Drg98cuU7EF1PVu4k3BBqDlnOv1a98ibAyIiKRg1ITUhLb3IPEYc2NOlz0CP U6BukGOFF9jCtrY75JOdc4Ovk7JOXbAy2GpRdZhzDnQ3ywUjJuM3F5RzReAR8x+OInJm XAZoYD3Ss7cL1NCyzwq1s2p4NpN7Gym1l1LlBABcjfGkv9C2Za0hZ702MNmen+lw19qy s/yNlrLiMzHAbiRLt8bINghtyLWVA585jrxEjArxpyA+4goV9UpwGdiHNHspkNJP8vtB e3VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=bZkiW7qx; dkim=pass header.i=@ansari.sh header.s=default header.b="J14q/+x9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm6si2831549pjb.37.2022.02.08.09.53.15; Tue, 08 Feb 2022 09:53:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=bZkiW7qx; dkim=pass header.i=@ansari.sh header.s=default header.b="J14q/+x9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1346002AbiBGSI1 (ORCPT + 99 others); Mon, 7 Feb 2022 13:08:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344764AbiBGSAT (ORCPT ); Mon, 7 Feb 2022 13:00:19 -0500 X-Greylist: delayed 339 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 07 Feb 2022 10:00:16 PST Received: from fwd1.porkbun.com (fwd1.porkbun.com [52.10.174.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43ED9C0401D9; Mon, 7 Feb 2022 10:00:16 -0800 (PST) Received: by fwd1.porkbun.com (Postfix, from userid 497) id E276741D09; Mon, 7 Feb 2022 17:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644256477; bh=WgWSC1IOBKQNEaPKc/yuujz/f2ZwdXMi8BgaxzlEwSc=; h=From:To:Cc:Subject:Date; b=bZkiW7qxwSd1k0xDaVddX2Tk+1rI1P9NjCWXzvxS8z2g/f3lS5lCO3TOJ+9QtIKBN kcwqYqWWTurFN2sOUNKYbldSCYZrRbTh5mxGeEVPOMLIHMqTrG5IfGibqvkkddsBKm YVNto8jd+Qaqk4f6y/3A2p0rqd6qo8GU5VmXBMSc= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.8 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 autolearn=no autolearn_force=no version=3.4.6 Received: from rayyan-pc.broadband (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 91D7B43726; Mon, 7 Feb 2022 17:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644256189; bh=WgWSC1IOBKQNEaPKc/yuujz/f2ZwdXMi8BgaxzlEwSc=; h=From:To:Cc:Subject:Date; b=J14q/+x9mBBTBYPjjvrMpK/SRO55KDxwG+mHiLf7IBPB1URuD9fc3rQdFKSXGcbSx 7XIkIX18mC4m2VLDQ3AsgjOLxBVgBZ+Vn3v8xvuNtNfnUAfgLj7Q63+/Twn7KYd8os MHmO4hCdmqvkA3+Kt1+/twuN6B4aeiqkhsxuEZ5I= 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] ARM: dts: qcom: pm8226: Add VADC node Date: Mon, 7 Feb 2022 17:49:33 +0000 Message-Id: <20220207174933.20909-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 | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm8226.dtsi index b3d0f7b5874d..a651b4c941b8 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -40,6 +40,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