Message ID | 20221029051449.30678-9-manivannan.sadhasivam@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192541wru; Fri, 28 Oct 2022 22:17:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OuQhzSMFJRrSkBryewhK4MXqOzGuXeBC8UbZu8jmXs9PB79gA3Es11qvYx3hX/TZAwUqA X-Received: by 2002:a05:6402:884:b0:461:1ed:579f with SMTP id e4-20020a056402088400b0046101ed579fmr2716254edy.413.1667020655602; Fri, 28 Oct 2022 22:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020655; cv=none; d=google.com; s=arc-20160816; b=rFImGqwJ6jsMPKsw1MC/MWNjNo3pxxLdQOHwDOSsOpJziMvVmE/9Q6Otsd6ac9j1J8 D3jtVYwB3442PjlgDlfSISElgY7zAfgcmFipfwvMvUXEnmmewFMWY7+AdrRuPo/hAAxl QFOI/oWXJD2+XH28mIfr9E8R+RMnEhwrv0Rbaloh9rRjP2EbKpLEigm96xvm7xMAhTll 6toCk7Q7U+w0n7P8yjjC+S6nLd2TvhceLGNMzsvgoPCY33FP2EEbke0QFu5ei0ESU66s MSfvBj6O1M2kFgELhX2JqD7FtcDkAnKr6TmAiIwCl5FG31aomRwb2l4mf5roBYB4fu6R 9V3A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BHFiT+TZb5B1WGujexyeyAlYCgIQjWunzDzNjtB/Zig=; b=NXIVZj+TXqQ2Kd7zzeMt155aYZtVhjrNcAG6i1bOAdVxmp/tJ82ySFKYw3dlrcLXjt IYvrQCvBHOqrGK77Xyy4kFrv4pqq7GwdV48ar7TRIGaLYxLCdfhqMgHz8RDL+4pl1Hec A9+ImaOMT9zTM8mt1LyMVOIEI4qWII71YhnzWkZws7quzw3nJsfO2ieixBTqoYjigRX+ Lo0q8slvbXhn7l4xa0Pqhx/vOKzL7n0W7E0wIgvZnC7t/KrMGYJ6um84FUiog+puwkB2 TS0yhDMXCQCWUsCF3JM6OiuAwldA98pPcRRdyCNGcXTgY0Qxdulbu/KXRKemRaasmaEQ 6HLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JdUNhwrz; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a056402517500b0045938ab7129si624087ede.330.2022.10.28.22.17.12; Fri, 28 Oct 2022 22:17:35 -0700 (PDT) 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=@linaro.org header.s=google header.b=JdUNhwrz; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbiJ2FQZ (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sat, 29 Oct 2022 01:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbiJ2FPv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Oct 2022 01:15:51 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6DD51D2F49 for <linux-kernel@vger.kernel.org>; Fri, 28 Oct 2022 22:15:45 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id r61-20020a17090a43c300b00212f4e9cccdso11613885pjg.5 for <linux-kernel@vger.kernel.org>; Fri, 28 Oct 2022 22:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BHFiT+TZb5B1WGujexyeyAlYCgIQjWunzDzNjtB/Zig=; b=JdUNhwrzxVYK2G8LaQKWsqiOd9eEsYUrt0x1ktLfZpKvzCgHclt6lcmdXuATw5K0Zr 9scTUH5/Ya9g5YMYXYw6eQ9N0uBcOb57RsYe09tsJrUXse1Q6Wcg1DNu8aKclocM7pnt OXVL04hgbc5mqCeHoJHcwUp3RfQiVrbacJLQiXgiDS0GkUsJcsYExZ6bq2vKO8gui9nx DjTk3Vtw1Ok3N2K7xDkVTGTCtIEhbFTrfuNCLtI1Qmda4a2+/ngjkOH41FXdhVQ6F3am Dk9PUMUZBfrfaeyML7WtavBCfvU5KTdXMxkEfdKSlAc6jdZSb0LjKFEo16QSG6L4q/h3 w7uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BHFiT+TZb5B1WGujexyeyAlYCgIQjWunzDzNjtB/Zig=; b=FWhG+eb2noKb/Swc/Aq/MncJ8vSM0fNa1nJSOmGzkbZIFqw74+a7AfarIHem4/g4DD k4niN5rSm6NFVEUC29Rj+sAQM0IRqsTxpBDDOQcFdymUiRNEyBakUY1j/BjdsDxwNfge +SMeysQ4d/cNGtLykCYbjfv0KSxhMMA7aWejlBmWo9WiMS9pZCjxnnzNVQlZLNIDDE98 NvNwlb4tHejG0kqFwudkq5JxwoYSEOIemw31He31x8fRTn7x1Vj82gHN19IgWhkWFnlh +/CgQjEpTviWr9hvsqk4LZFiYw/yObCYsVvCI5GGGdxMItMlfqbNS2WO1GWxRjTMHopH w7yA== X-Gm-Message-State: ACrzQf34e6lQ0OjTfrFS3xypCxFx9pFUhSHZiYLipum5TJCPP39zojED WrWUCAqQyKLQ0iJrEFiQVgCI X-Received: by 2002:a17:90b:4d0d:b0:20d:6fc0:51 with SMTP id mw13-20020a17090b4d0d00b0020d6fc00051mr19854994pjb.10.1667020545210; Fri, 28 Oct 2022 22:15:45 -0700 (PDT) Received: from localhost.localdomain ([59.92.103.167]) by smtp.gmail.com with ESMTPSA id f5-20020a170902ce8500b0017e9b820a1asm363150plg.100.2022.10.28.22.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:44 -0700 (PDT) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH v2 08/12] arm64: dts: qcom: sc8280xp-x13s: Add PMK8280 VADC channels Date: Sat, 29 Oct 2022 10:44:45 +0530 Message-Id: <20221029051449.30678-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997850544922092?= X-GMAIL-MSGID: =?utf-8?q?1747997850544922092?= |
Series |
sc8280xp-pmic updates and X13s thermal zone support
|
|
Commit Message
Manivannan Sadhasivam
Oct. 29, 2022, 5:14 a.m. UTC
Add VADC channels for measuring the on-chip die temperature and external
crystal osciallator temperature of PMK8280.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
.../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
Comments
On 29.10.2022 07:14, Manivannan Sadhasivam wrote: > Add VADC channels for measuring the on-chip die temperature and external > crystal osciallator temperature of PMK8280. > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- > .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > index 6aa8cf6d9776..18315743313b 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > @@ -7,6 +7,7 @@ > /dts-v1/; > > #include <dt-bindings/gpio/gpio.h> > +#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> > #include <dt-bindings/regulator/qcom,rpmh-regulator.h> > > #include "sc8280xp.dtsi" > @@ -173,6 +174,23 @@ &pmk8280_pon_resin { > status = "okay"; > }; > > +&pmk8280_vadc { > + status = "okay"; As I mentioned in the patch adding this to the PMIC DTSI, it's enabled by default (perhaps by mistake). > + > + pmic-die-temp@3 { > + reg = <PMK8350_ADC7_DIE_TEMP>; > + label = "pmk8280_die_temp"; > + qcom,pre-scaling = <1 1>; > + }; > + > + xo-therm@44 { > + reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>; > + label = "pmk8280_xo_therm"; > + qcom,ratiometric; > + qcom,hw-settle-time = <200>; having qcom,hw-settle-time above qcom,ratiometric would make this more reverse-Christmas-tree-y, but maybe I'm just picky.. For the contents though: Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org> Konrad > + }; > +}; > + > &qup0 { > status = "okay"; > };
On 29/10/2022 01:14, Manivannan Sadhasivam wrote: > Add VADC channels for measuring the on-chip die temperature and external > crystal osciallator temperature of PMK8280. > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 6aa8cf6d9776..18315743313b 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -7,6 +7,7 @@ /dts-v1/; #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include "sc8280xp.dtsi" @@ -173,6 +174,23 @@ &pmk8280_pon_resin { status = "okay"; }; +&pmk8280_vadc { + status = "okay"; + + pmic-die-temp@3 { + reg = <PMK8350_ADC7_DIE_TEMP>; + label = "pmk8280_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + xo-therm@44 { + reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>; + label = "pmk8280_xo_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &qup0 { status = "okay"; };