From patchwork Sat Oct 29 05:14:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 620329 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD8B2C38A02 for ; Sat, 29 Oct 2022 05:16:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbiJ2FQ1 (ORCPT ); Sat, 29 Oct 2022 01:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbiJ2FPy (ORCPT ); Sat, 29 Oct 2022 01:15:54 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C77F5F9A1 for ; Fri, 28 Oct 2022 22:15:50 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id c15-20020a17090a1d0f00b0021365864446so6197598pjd.4 for ; Fri, 28 Oct 2022 22:15:50 -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=lacf58udOIotYpm9O1+kpxWuSMQ/so9proy5x8qUsKM=; b=BKW2GRUYUcvNwgRC9PoWD+SZ9gBFBHy+flAlJ4Il9EVWFDpcSWj+6BUJz6gmTbGA5x nPJkY6xM+rZxoBxGAx90lS0yhbUXSylCXHy62p3QfWtZUlH4PEprv3e/hKGTFq3CTo2/ QzO0B2TQnH2EkdeMvdsiRNGd5X8VNsyoBXbmeA0OspUNjvT7UkfeIgNBAvTJfUWdB84A JbpdyhcSu+KYYfa8s1S6GuJL0vc4YhHycg7+g9FzfHUruTn68imOC9noU9AY9EwtnBKx U68+u2tjlWThbrUXg5zMLQ0H7P+miUOy9633qv3PXzegq9KTxy5zJuUsA9TQgZAALQOU tfLQ== 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=lacf58udOIotYpm9O1+kpxWuSMQ/so9proy5x8qUsKM=; b=0lFo/KwuLZI9SSVq1JDxoUPumUQYqd1eENp2ztRiGzeBag88L1flfMob/1mfOpe9kv qzL11JAxL/ekIRJO5BXXZeO9tXCIX3pIgAmbtrssn5oIQQDAM+SoERlaaaqBDsM4PrhG 7KHJRI0luJc7q5IPylfPkJPkOkYYQY/wC9TCXENYAUySXArJAbftfm24lonX7IXJ+ybv 0zi/K5/ft8ShEibY79dnbunskfaaSJSYfqreEaEXNh7B6sCa7DCprYlHIOZ9JJ2Qc0pP +wAU3g1UzokGnZMhEqf3Hs2RRs3tEMFnbv+QSiQo05ol+FI8X5s1xHoMXGf8igf6E4MB P6ig== X-Gm-Message-State: ACrzQf2cZb+AX3ZYaG59A1VDpv0sBv/2X8kaNjlUKOmzzn5AN08CtKFv tCOm5mOlQ1XaDr4JguiOohY5 X-Google-Smtp-Source: AMsMyM7OJNpCK0PJHyp8EhfJ/Cik8xFsVLDBJBAL+G2uR+Z7kjOTnIVFJXvehnk5qUWjWaCi7xZMAw== X-Received: by 2002:a17:90b:1d0f:b0:20d:1ec3:f732 with SMTP id on15-20020a17090b1d0f00b0020d1ec3f732mr2980176pjb.84.1667020550291; Fri, 28 Oct 2022 22:15:50 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:49 -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 09/12] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} VADC channels Date: Sat, 29 Oct 2022 10:44:46 +0530 Message-Id: <20221029051449.30678-10-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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add VADC channels of PM8280_{1/2} PMICs for measuring the on-chip die temperature and external thermistors connected to the AMUX pins. The measurements are collected by the primary PMIC PMK8280 from the secondary PMICs PM8280_{1/2} and exposed over the PMK8280's VADC channels. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 61 +++++++++++++++++++ 1 file changed, 61 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 18315743313b..250e1489f029 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 +#include #include #include @@ -189,6 +190,66 @@ xo-therm@44 { qcom,ratiometric; qcom,hw-settle-time = <200>; }; + + pmic-die-temp@103 { + reg = ; + label = "pm8280_1_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + sys-therm@144 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm@145 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm@146 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm@147 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + pmic-die-temp@303 { + reg = ; + label = "pm8250_2_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + sys-therm@344 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm@345 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm@346 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm@347 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; }; &qup0 {