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: 160692 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp305567jan; Wed, 20 Mar 2019 06:40:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqympcAMHdwBm3JKSNb2SisAsywRVPc50aWgbMn1kMoQXJIQPZm1Ys0SrfC6ya730bMU3Bpw X-Received: by 2002:aa7:83ca:: with SMTP id j10mr30471617pfn.50.1553089212105; Wed, 20 Mar 2019 06:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553089212; cv=none; d=google.com; s=arc-20160816; b=rvgfU5QkXwssXSUbaKLt2VeBMlnLH1L79EafRF6E/og1ZHqspAh9m+p8Si6QhDazXp sX0Q9KmkyE+pIj9Wtey684WtBCm6lO2L/W9Qosjl9yZwIiaDcFR9UkLTd5/owgpK6YQA cLUtYrPEtyZ4qu2VR1RlywaBmYYNN49kRjh3UYWFd11ydvSHQkfV8IUtYV7FK2LNmqgI anGmAZIYCDqfYPU2y94mhZV6JZkOM1WxiFDARjRVtVTBeseQYPkShSqfso3GBJY7ZSpW wXjon+KEuhHwAxCnsMMnRTMr/UTUGBVSP+hduMQUdFAXYLPKdaDQfZnYDigJkW/5kK4D ax1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=rvHnmZw/liQW94gjtXrCFd/1cgko4DZ3dzHWakfqGUM=; b=h0pSLI4ahRLfdNuZQ9KhV7V3PmHIr0InMX66yaZ61GqVmlhX6zhtTI6oMEebhChgnT QTuDwhP8CSTf9mgigj184xWkaCWqUSywDnCxC1Edmq+vkNlWbTPL7l8Lq4pxbFcpC5c3 SDK4NBqBNJGc5FpXEy5Sr9NliEDETZvVIG0125mIPW93MMfTkM8pMdOJmrWmzasMCUgB 1cVNPKov2UVX+W8FZtuGs+cfdD/ZgYOGs9x5SBxxrydxugzYFfvJd6Tpar/KcWUPuSj/ DO/fIppPr8s+WWijfomlI5YaDa9F5T9JKtDEAfOD59L9d2zHi0QFCaUyU+ijYsOIN6pd Zx2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mmmgr5nz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si1754339pgr.522.2019.03.20.06.40.11; Wed, 20 Mar 2019 06:40:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mmmgr5nz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728130AbfCTNkL (ORCPT + 31 others); Wed, 20 Mar 2019 09:40:11 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46882 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfCTNkK (ORCPT ); Wed, 20 Mar 2019 09:40:10 -0400 Received: by mail-pf1-f196.google.com with SMTP id 9so1714048pfj.13 for ; Wed, 20 Mar 2019 06:40:10 -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=NtBGST8z3fExO4WSHWax6lSpYRh/JlHcRb4mtv0Y/4uGKSgBlL8QKkR3J3FN3cYeYl NpaLuy9rZhoJ1W0nK9fTbyi36cwBATeojo1WpF7hy9C9AvRbU42BILjxaXcqZRYSjFrB bZ4hmWWwwcyutCoFvioMDH90BZO7rN/Tce8GClOmNB2AJlPc4dHCruB9UX/qwOUjBMxM TEM2uDM0C7JpncHWTg6miCgEwK/RrNj749IS8HUDxeqMjIZUswGDRGfc6rbKKa8HSxb1 6GcMp6HRuVzZkuZJG/ng4XTxwQEtpSEJf0n4NjDhxkapshBGptmNxOHZ4s3gg28JQtiB a4hg== X-Gm-Message-State: APjAAAXOdDXmmpN+gMN8uFtdXwncCuf2IcX7GOKv6ZtWkNAAmsLFBIXF VKn2mn9MfoHyLPS+blrMgMmRt4KTIwY= 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.17.1 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>; }; };