Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2536883rwl; Fri, 6 Jan 2023 07:45:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXv7RE5oObOLz5w0+YCVV3jdx6eXBNmzgaGHwk7YRhHcX2DIrS2kv3HpBpqkin400BzDSZZ1 X-Received: by 2002:a17:907:c081:b0:84d:207d:c00e with SMTP id st1-20020a170907c08100b0084d207dc00emr2386152ejc.46.1673019907094; Fri, 06 Jan 2023 07:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673019907; cv=none; d=google.com; s=arc-20160816; b=mlMQ4q9jIVcESFYdHpP7wG/k5un3o0SQ0Za43y0vNZl2kUBOMLE/hqYJkANWtd1yko cAAZP9ma5qC+ex9V5IEnnmKzewVCcKQlP9PnRqwyEcd/IzhcvjgWu8NhlUTKfXfz639J LkjytTTzTHkNfoWtpiy49Db7pTMGRFvCk/+D8a+jaFTHtrLzIMD6SqGx0+AbOPeGE436 qtkpJncFcntwLhxGu1NXJ8O+ZT6FF0pLVYX1xTEVQX4stdEYsT+DCWshvp2gR7QxCa7d FfOBi/tWwa3WRLq4Dl3Z1vcLVAm0Wk0Bm8YOhQ66g4U7CNyoEF8cfNGm+jkqof4PFOU9 iCyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=IrFALWtjvyHrEODn7/AmsHwOIckZb4wGAaCGF9DBAVM=; b=Gc1jZr7ZZ2ns+5BeAjCr2+3No9F1HBWE7jAim2Lm1Dnh/+4go2sdeduR56Y15Z6V6D jI33ZaduS6PZtEO6I9JC9qEUywDzuXvr8cfsxZ/vFaTqXsdU0eQzztEPlYQtvsUNFlgG n+2QdQ/vcM/6HgwN0PujCS6gQwMMnsKqV7fcg35vc3JrGw6r8HVgCVUz3JfHs5zAEGbO tqJ/8dRTCaFlqIMejZ9C4aEWQkoQRsRQryiFv0yTk//zFhjXZPQShCpsP+bz0ZHp5U/c SCE0EFuGQGL/UAbfwLk39/6+PsTTUTXQ1h/i495kJCHEO6H8etSr8+6c/hnY+g5iET5q 5tkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=Jmun4CjN; 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=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji19-20020a170907981300b007c111fc30absi1927785ejc.865.2023.01.06.07.44.54; Fri, 06 Jan 2023 07:45:07 -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=@fairphone.com header.s=fair header.b=Jmun4CjN; 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=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235017AbjAFPkK (ORCPT + 54 others); Fri, 6 Jan 2023 10:40:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235180AbjAFPj4 (ORCPT ); Fri, 6 Jan 2023 10:39:56 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7E227BDE6 for ; Fri, 6 Jan 2023 07:39:53 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id m18so4252543eji.5 for ; Fri, 06 Jan 2023 07:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=IrFALWtjvyHrEODn7/AmsHwOIckZb4wGAaCGF9DBAVM=; b=Jmun4CjNGliRP410OzyR1BUUiSsCJ5Bm43gNMHYkxiwSL9xVDWlb5av85NU3qMEPti w5p3ya5HuRHHodDPbKvNMLeJOvWHcuAKDkQ5r4BnjNISCMSEX7OFnr+CZb3Kd0/iGwdI 5+EEGGMjZ//u2TybrowJ8g5RlcHu5IxTg+Qe0VYOUl4ZJIcTQKpAuTordn4c0ioA3GaZ zy0HJkBPMO07WRa++itg1FVeDszYzXQ+6dQPOAqDjsYcUp72DcyDkmK8fiI1yvxy3DVH tz4FbtcaVS5lM8n0afLrNDLR/qgfNIfGCVUUK61tb9tIE8ZfINNPc3M16jF9Mgg1KLLE oTHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IrFALWtjvyHrEODn7/AmsHwOIckZb4wGAaCGF9DBAVM=; b=Q6hk4qLwGJuGl76rffQpfPvyyY8SXD3+nI27Iw7hZWhWiVafhfHv+BRsriE+8pkzwj at4oKp1lqaQFKvxvT7bheWkoALuxpSwZtY/sGmMklTwXzHlmegLECbe9yP31bkhiBwvR yNvvMOYRke/qzWKVvE9khkW+BXlOW1XsP/sBbQFetbh8B+YKD6/8qSMfiwCDHQb9RwjA DraSjEG99Q2WwJSE8s4iGbS+aUI6idD/n/7BsGntXedetoJU9atUDyxFoodUe5THwCen 4cz1Xjd+8NZxbOrCwuhnH9cB30L6WEg6yM4bGg8SXbSGVRR28ByyjeGu8TDg50WmP7ob +07A== X-Gm-Message-State: AFqh2kpi0YNTTOAwngVBGnx6I8suEhlw4H5W6RZwztDPvMfKYmC6/9Fj NdnCGbl0xmJM8yoSuClMeJ+9dA== X-Received: by 2002:a17:907:c081:b0:84d:207d:c00e with SMTP id st1-20020a170907c08100b0084d207dc00emr2369537ejc.46.1673019592525; Fri, 06 Jan 2023 07:39:52 -0800 (PST) Received: from [10.0.0.3] (217-149-174-217.nat.highway.telekom.at. [217.149.174.217]) by smtp.gmail.com with ESMTPSA id gx8-20020a170906f1c800b007aed2057eacsm496235ejb.221.2023.01.06.07.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 07:39:52 -0800 (PST) From: Luca Weiss Date: Fri, 06 Jan 2023 16:39:42 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: pm7250b: Add BAT_ID vadc channel MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230106-pm7250b-bat_id-v1-2-82ca8f2db741@fairphone.com> References: <20230106-pm7250b-bat_id-v1-0-82ca8f2db741@fairphone.com> In-Reply-To: <20230106-pm7250b-bat_id-v1-0-82ca8f2db741@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss X-Mailer: b4 0.11.2 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a node describing the ADC5_BAT_ID_100K_PU channel with the properties taken from downstream kernel. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi index 61f7a6345150..d709d955a2f5 100644 --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi @@ -110,6 +110,14 @@ adc-chan@1e { label = "chg_mid"; }; + adc-chan@4b { + reg = ; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + qcom,ratiometric; + label = "bat_id"; + }; + adc-chan@83 { reg = ; qcom,pre-scaling = <1 3>; -- 2.39.0