From patchwork Thu Oct 27 06:30:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp63727wru; Wed, 26 Oct 2022 23:34:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vl6t/HAJ1zRnOXlRDDE12yRzHHyCpOxafsP99XSmUem2qvH7RHe6Fubj23aPJXm2/t8PD X-Received: by 2002:a63:5a08:0:b0:43c:9fcc:cc54 with SMTP id o8-20020a635a08000000b0043c9fcccc54mr40463485pgb.229.1666852494344; Wed, 26 Oct 2022 23:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852494; cv=none; d=google.com; s=arc-20160816; b=0IcKIiUBfDKd7DSqcKFR+z0fyNtPC0EOjygtOJ2f8CgegJYy3aHsazH3ffzh4xLzgP 7U1ZfZnD4AYowfXwjuK/+gin454fJwqdfENB7SKvWZUjYdaaUv+2EVrA8/9NAU1GOO6A eIrE8ExSzlw2ORmz57zvr2vzT+t0LepFWuo5ymQJgx4NuS2E15UtyPAiLk5uCff69WUu S5mAirIO4hD3/xbA8cgXtjJKZ5uRxlofNu8bPQaFDIKD7y+u6CY1K3Lhz0Zc3cliEziG Rdt3W/uit1Kwbu+AAmPgqpEY6ZIkWd873uUW3QQ2SA6SF/oD6JLAYKYnaVw2mudEAu1f zRXg== 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=henhCPd8lraNCdDJWnoPIO23RxmIlqkGqlJr0QeoFWY=; b=ddh1icyRn+1pp+DtCvYZYIgrd+VTTqzIUuHtjsGViFImo01Mfis5vri9aY2HI4Fn7T bgWaXJe3mCVYp4KRcKrJDDukcimivD527AhgBs2lEqOBgyM4NQnoIxdGt/qE787rOgAb 3XXXKGn8mSSli0A+D1ZCp/LSajJa/cmjnLbTyh3qrqLBb7RqRQHfecm0palyyyZ/vKRq 7TtvCewgicMnTjAtUGvxmkQA4qyLB+pAcoeWv092zXYhChpxzPsfw4rrDmn6eYXwdBAa VTTMiBPex2krwy5RzlJ5cR+tzyCtAF1CI7XntNBEh5mKKTXY3VcwVsa2xULuGvxzELtm L0tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WE/Xq3Qw"; 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 13-20020a170902c24d00b0016cca53817dsi527908plg.341.2022.10.26.23.34.38; Wed, 26 Oct 2022 23:34:54 -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="WE/Xq3Qw"; 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 S233187AbiJ0Gby (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234041AbiJ0GbR (ORCPT ); Thu, 27 Oct 2022 02:31:17 -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 70603164BFE for ; Wed, 26 Oct 2022 23:31:09 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id f5-20020a17090a4a8500b002131bb59d61so5065782pjh.1 for ; Wed, 26 Oct 2022 23:31:09 -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=henhCPd8lraNCdDJWnoPIO23RxmIlqkGqlJr0QeoFWY=; b=WE/Xq3QwBPWoeDATpRNcL8M/G3ZKU2pYBLzvWJrmuGUvxW0GUAe1AmVjKmfKMgSzLb PUSSfPAITJLPvPEgGfkFysS0VwoZe9bMHVTM/0n+Hs36qUa6lJVsNBu7SP8MaR27ujgA WccP0bqYy2igcJ7O0h6IquokzIsz/GUepMurdUx6TzHcvD1nTkZ1F7RhOILXqM9oiSVl k4kCu4S2qzetpkIh4iVSMzzbQz8ZfmRwr2e3eCDtkDPNLFJUpzJdE1BWXkHx8UZjFAxg E7ghOFIcBGZX8rXlWcg9bEG8c4h5vM7jLsHQTrKjHwfpD+Q/ZUBUQcRpcycoB2Nvs22F eSvA== 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=henhCPd8lraNCdDJWnoPIO23RxmIlqkGqlJr0QeoFWY=; b=EXJ5aAjqV+PElTPDEzZRe1lVXmQWFqheJLHh4QNzrj1CF4iMWJJzUKSPxqzX56PDi7 9ZBHcYfhX6Z99asxGwMccdNRq5Evt2yU3Ct0dIPYEDhK4BHak5wFXBWPPlgq66hL7HEi sO411U1eTm3vHrt3zOQmO5lXQQcj+WpsgkaKQrLO5Dz3C1jmkxmd9iSzbgwMO87flULF vxYD6zKmK6VfN3WGypp8hMHSFktep53HitabkooSeh9nBPVnFMQ6qbazFGV7RDQAsB3q dgIT7sGBvWHHjkoUqDkQ3EhXzk56ZXN0psyzJyn5IB1xpt/EA4p4ZIDlTw0vsVy/G+iZ JETQ== X-Gm-Message-State: ACrzQf2JjJUdSVtNoJLzKWuDmz4usukhhE2V9+8tJOVkMuu0++bjiCwy TSmMKNjj00037QCy3dXz/ias X-Received: by 2002:a17:902:8bc3:b0:178:8563:8e42 with SMTP id r3-20020a1709028bc300b0017885638e42mr47814600plo.0.1666852268489; Wed, 26 Oct 2022 23:31:08 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:31:07 -0700 (PDT) From: Manivannan Sadhasivam 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, Manivannan Sadhasivam Subject: [PATCH 11/11] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} ADC_TM5 channels Date: Thu, 27 Oct 2022 12:00:06 +0530 Message-Id: <20221027063006.9056-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221027063006.9056-1-manivannan.sadhasivam@linaro.org> References: <20221027063006.9056-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747821521034327286?= X-GMAIL-MSGID: =?utf-8?q?1747821521034327286?= Add ADC_TM5 channels of PM8280_{1/2} for monitoring the temperatures from external thermistors connected to AMUX pins. The temperture measurements are collected from the PMK8280's VADC channels that expose the mesasurements from slave PMICs PM8280_{1/2}. Signed-off-by: Manivannan Sadhasivam --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 68 +++++++++++++++++++ 1 file changed, 68 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 babf594384f2..fe6b75551ab9 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -259,6 +259,74 @@ pmr735a-die-temp@403 { }; }; +&pmk8280_adc_tm { + status = "okay"; + + sys-therm1@0 { + reg = <0>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm2@1 { + reg = <1>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm3@2 { + reg = <2>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm4@3 { + reg = <3>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm5@4 { + reg = <4>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm6@5 { + reg = <5>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm7@6 { + reg = <6>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm8@7 { + reg = <7>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + &qup0 { status = "okay"; };