From patchwork Sat Oct 29 05:14:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12643 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192767wru; Fri, 28 Oct 2022 22:18:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7F4pYf0nX9Ffw9kvppKYYl2fpkgbIsjHEgQs5C05D6XTb0BZCEwROQh0LZl+vrd0xs1Q0b X-Received: by 2002:a17:907:2710:b0:7ad:86f9:9bad with SMTP id w16-20020a170907271000b007ad86f99badmr2557387ejk.32.1667020712407; Fri, 28 Oct 2022 22:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020712; cv=none; d=google.com; s=arc-20160816; b=cYxVmNPfzmTY5k4tnt9yHxponFqEmPOGhz/CQLelpo0OyviNPn3OLB954Pl72vO91+ gXtErRh+IukZ2ax0JlPxQqfDhEsopXwrqPl0dje5sHmHLoWvWzXyO93eMiKpAPIlvtmG YGw0EQ//defe2Qm1fAxzCAwoSYzSelB5qBVWrS0TZtsLJMR6Kfn0PGQ5aD1ZzyiyxH3d csTG17djEcjusqnSDGWoTZN6XnNBzH+P1zI9MKc06f8V+znwCGQl46lvYEWEzKapDm7F 0WkXSVNUSADOB5Jl3VELJbOQQPCYCMD3Q/b/j+ULNn0/UbvyyRe1gmD4xtn4xUKvNZL9 n6+w== 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=TzuhQnk+/5ipgdw10iW10n80y2XME509RyIjOUqWTgg=; b=gIWM2bTyVQF3hv5YT6Br2f3lbiNKvykE+C7NSf8CZBpjB8izmEvp52JDGxFl1JbaAK GnUTJ50YpxNg8kXdPCgzT5QlIIb2RlkxMcSUA/8DrGYLtYDi0/WjNg87Y2dxxntkKlay FwmNDMOuU9RAFaod1g3z93RsBfXIxn8N5Slyu4Sf/jtd/SSK8jOWoyiHEHq+mbIfYPs0 ijWyDBlhiFygmQi+S4OJ7w0TlJ+W2whg95u88KdVdUtK1tKQdbTWVPwzmo9Z3DVnfsrj LJ9Tl4rFcr02meeUJrb/Oo1ZtWZabiXXtDhNbOouvFitH/JB+UGj463yI5j6XDiaeHas +hZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Q/BIg5CO"; 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 d9-20020a50ea89000000b00461c531d8casi717753edo.305.2022.10.28.22.18.09; Fri, 28 Oct 2022 22:18:32 -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="Q/BIg5CO"; 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 S229999AbiJ2FQp (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbiJ2FQJ (ORCPT ); Sat, 29 Oct 2022 01:16:09 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D0B1D441F for ; Fri, 28 Oct 2022 22:16:00 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso6213421pjc.2 for ; Fri, 28 Oct 2022 22:16:00 -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=TzuhQnk+/5ipgdw10iW10n80y2XME509RyIjOUqWTgg=; b=Q/BIg5COsaTyRa/nKSpieFWtqi2CwAglz87e5KBzp9qRXtyTKyg8+dl8LNWihwEYc+ jrKl+BxcFx6OIc/HEEI1dbn3Ggs6/EmR+rcKqcFvC1PCMpI9aZ+y/I60xbOrKnfxj2gY C5AVyekl5RFExSQEwX+5sU7wyp2054ZOZm+/7LNHL/iE+FZU7pRiGDjn9Y+WF69O99Vw 4tZLGzVabUT2RxmynSt+d4d+fhtuJaKkjyloHQjYAH0KdutGr0yY61ZHx2uZGRL3okch Xh+9b6xpmtbhp93lPg+9AVTcic6T7iaYynAh+20VrZtywIHNOAF6OK8xhjsOkkv4N+vG B9eg== 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=TzuhQnk+/5ipgdw10iW10n80y2XME509RyIjOUqWTgg=; b=eBvIkD3YtxPXn55XSCHk9iWySRI5Cv3deoFDKhRqmu5tD0ARwx/Yynk/2U9/fJVVPr BvzRjU2g7rGrdf+4j7tWI1j31WhDCDm5ncf0eNqKVgbUSHwhCds40ZsngZN40d69bmvv 2otEd73kmkodtK4xb4jlyHIj2CNjbFzoDjqa3NhocZrYywQB8aqgXjpW3ISOSrU4RSol f3H1Be49sjSmRhVDk0fV+ahhHQUaRmaz5VifXvFVdI/89xvO0Ht3gfXJV5OEc7diiDSJ L6fbSviYUoeFg/O3A7TYsQcbFZpMgHuF/h3/cxmEfHU4eNOiLu0mETSVGvmHHfXjlBsF 62gA== X-Gm-Message-State: ACrzQf2UOW7NoXKXcEGH/YaQQGeAbNphPtOBrJBD9U6WFDRRb6bSk4r4 wsnVTOO/UmBVVi58zAwL6Qcx X-Received: by 2002:a17:90a:1150:b0:213:a42b:a734 with SMTP id d16-20020a17090a115000b00213a42ba734mr3010837pje.163.1667020560232; Fri, 28 Oct 2022 22:16:00 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:59 -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, steev@kali.org, Manivannan Sadhasivam Subject: [PATCH v2 11/12] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} ADC_TM5 channels Date: Sat, 29 Oct 2022 10:44:48 +0530 Message-Id: <20221029051449.30678-12-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 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=ham 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?1747997910441848302?= X-GMAIL-MSGID: =?utf-8?q?1747997910441848302?= Add ADC_TM5 channels of PM8280_{1/2} for monitoring the temperature from external thermistors connected to AMUX pins. The temperture measurements are collected from the PMK8280's VADC channels that expose the measurements from secondary PMICs PM8280_{1/2}. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- .../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 9545b471c2fa..ca77c19c6d0d 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 @@ pmic-die-temp@403 { }; }; +&pmk8280_adc_tm { + status = "okay"; + + sys-therm@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-therm@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-therm@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-therm@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-therm@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-therm@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-therm@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-therm@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"; };