From patchwork Wed Mar 20 13:39:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10861751 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5477C1390 for ; Wed, 20 Mar 2019 13:40:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37EB9285BA for ; Wed, 20 Mar 2019 13:40:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2BFB129C32; Wed, 20 Mar 2019 13:40:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3B3929BF2 for ; Wed, 20 Mar 2019 13:40:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728106AbfCTNkK (ORCPT ); Wed, 20 Mar 2019 09:40:10 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37308 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728072AbfCTNkK (ORCPT ); Wed, 20 Mar 2019 09:40:10 -0400 Received: by mail-pf1-f194.google.com with SMTP id 8so1972856pfr.4 for ; Wed, 20 Mar 2019 06:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=rvHnmZw/liQW94gjtXrCFd/1cgko4DZ3dzHWakfqGUM=; b=Mmmgr5nzfWZXkqiKLKcW8/xIzhnin/O9stc4o0X0c4pxDVgSWz/+JUNeKCHQ+btE0z R5/Eum8O/BMMCupBpzyHSPzgrZ6JBumnkFeOKId48En9fLIAKYdkvtUJIlOLkKHB/bZV 280tgvyeDYQia4MM9bmZuh+RpO7wLelW4/dgS9aSNPbgZVvKZ2bNlm/JkRFbQfGgYA1n z7ndOqmmHLSXiVAx83UiHP7BILcfzcSnhmbFeYt9xJXyEPpAHHojgtLI4Bqx1+m1CcqR IyV8hiRMHmqO5rlduqbSO0xN8CEe7M+b2SiQ/rO9D25lMELMBufiZUykaPgGLErT68Vv VZEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=rvHnmZw/liQW94gjtXrCFd/1cgko4DZ3dzHWakfqGUM=; b=SUJHIDT+RVkaV5jO4T8NkvGcw2FYuh6bA+KFjTWq3Cyu8p96XN4onZPmonXpI9Rm0C Azst+Oa83x21dSUupgxaf4EZkCEPAcL3JxrdJjFIcAfNnv2kSoVlS+BbcG1I4t7NbxFL V0rtLIv/x+4VXHAozJUB0kZECgZn5p8H3iea6m+krHj4JzfNyZnpGZISefuH5uy6r3Bk rUSnYQSZC/4cPKQAV63zWM619ieyObMxE/ykMxF8ZJh2R2wGDh8JxadAFbvUNjYERqgC QbXQiYh/Do9w/jSc6SQRsEJadr1cbQ+1bSdB9f0VDJcNzFxF1SqfTcxfy+RHQg+dovES 99Qw== X-Gm-Message-State: APjAAAXrUgKxPTzGIsWc7Nz8DKptW/G3G3HGP7JLmuWBnKyOOD+RcTqx G8xzAnSQLhobKGbRaqb0ll3zFQ== X-Google-Smtp-Source: APXvYqycICWNdPqht5aQPZXIKHsNttq38KZmXYoR2e0MAEITbI292UrQFZnhrfWsJ6TO7I7BZA3/EQ== X-Received: by 2002:a17:902:758b:: with SMTP id j11mr7973368pll.29.1553089209309; Wed, 20 Mar 2019 06:40:09 -0700 (PDT) Received: from localhost ([114.143.122.221]) by smtp.gmail.com with ESMTPSA id s6sm3579698pfe.37.2019.03.20.06.40.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 06:40:08 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCHv1 1/2] arm64: dts: qcom: pms405: calibrate the VADC correctly Date: Wed, 20 Mar 2019 19:09:57 +0530 Message-Id: <08751dd65ad76558724ce4d495b2a85d7ea27ca5.1553088982.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Set the qcom,ratiometric property to make the VADC use the VDD reference (1.875V) and GND for channel calibration of the temperature channels instead of 1.25V. Allow a 200us delay between the AMUX configuration and ADC starting conversion using qcom,hw-settle-time as described in documentation. Fixes: 041b9a7b9fdb ("arm64: dts: pms405: Export PMIC temperature to thermal framework") Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/pms405.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index 1bb836d1e8aa..8b6aa2334f56 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -110,16 +110,22 @@ xo_therm_100k_pu { reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; amux_thm1_100k_pu { reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; amux_thm3_100k_pu { reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; };