From patchwork Thu Oct 27 06:29:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11592 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62762wru; Wed, 26 Oct 2022 23:32:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7fikscXnhLI3WR9ChNsvRkCvG51yRBG+P9POR+JB9fJd/Vz0zZqlpFTdDHzbP9ufWWDkqO X-Received: by 2002:a17:903:248:b0:172:7520:db07 with SMTP id j8-20020a170903024800b001727520db07mr46490803plh.76.1666852318661; Wed, 26 Oct 2022 23:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852318; cv=none; d=google.com; s=arc-20160816; b=0wD8fo2HR0dMMUbGPFKmhVjz5CYH6ZaIZYUYR5N5JOsv8scYd8/K6cAPJJtO1bb0Tk yquvhJZmNlwRO7u6R2a1JZnDYYjqYxEJS1B0X0ye7PO+SVwZD+A4c+zZbFhl976B3MN4 CE0oM3JeIq+OyVUEzSTj0wdXTvSCAwJJtN88Ngs9lS6tM3fqO0HB786xecCasKvVU2VZ iOhi2Wh3ASEG2zxedmBJgAIE6hZd35UaeF0v9hcHlHG0SVT/126ENC0cV408SyFQLKUv 28zkOS12t/Pb+x1VP7uOV4UJJpbtV3X2ZfOChG9qgxNqNqAkaMl/j1EMpFT65ZRbgC9g n8uw== 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=HBi2Xfj3W+jjbTJxzPJ9SgBb72Uc/kJB+XX+Hh7W9T0=; b=EYIE6YCZKwuJG/gAMkdnrrEwoyfPUa0DqaqaFUoCajtAigseIABzOGgn/43SESMTVN a+rW2RGbWPS12pMp/dELcS0UH2YEVH+WmY1a+KihYe/UFLGpA/wRcfGJ0MKQXuB2qWx+ WQH7S9IPfo5a2cE2ughhvL2Rx+RW0EEc5R/qznLwrRjACQ7E1bnsoB6ueRtrAW3qoNvt LFglc7cM+c3IqUYnqkPexxOBC4zxscIv+pp3Khd0gYQyl4bZRQjR0PAYt8gnDK0EEb9B WKjb5a3MlwjSydNYmgbSHBD0B2ZTCYLlyYAbq3CTrvwAiaI9vivyJmlpDZVn1akZ3mY7 6+nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a0iUSJ9j; 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 ij21-20020a170902ab5500b0018693297257si481628plb.624.2022.10.26.23.31.46; Wed, 26 Oct 2022 23:31:58 -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=a0iUSJ9j; 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 S234193AbiJ0Gac (ORCPT + 99 others); Thu, 27 Oct 2022 02:30:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234077AbiJ0GaY (ORCPT ); Thu, 27 Oct 2022 02:30:24 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67709AB82E for ; Wed, 26 Oct 2022 23:30:22 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id e129so367278pgc.9 for ; Wed, 26 Oct 2022 23:30:22 -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=HBi2Xfj3W+jjbTJxzPJ9SgBb72Uc/kJB+XX+Hh7W9T0=; b=a0iUSJ9jva9jZz4oFXdlMyzmq8rNbGfZ4as1KC/CPsT9TGmOFfEwQnK3ylrCS4SckQ rvySXNQQqGSWfEUWQBESjGA3p4FI1U+BbZloLlzo2Q+gX7DELfkjPRAYIzEm31TdxN+7 VBcPYP9qLC/qCkUqeWHKnyR+YIavpTBk225UrFosPW6qACAhYRFnjNtVBYL6Hk1umoUq rHoth5BMjHKGkZtMOETpIDE07UhSmn0RNvkrhk8Dc/ahVODOMgAY17PAiMRiCYgnwQ7N cyOmaiGb6CrBNEsyQdROOlwPtb74oPIixgizP0QO1FxJ15GNflXf3mASaKAi8ZtAsqxv TgqA== 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=HBi2Xfj3W+jjbTJxzPJ9SgBb72Uc/kJB+XX+Hh7W9T0=; b=4rmCpdrSbszTFdP8ulYO4mGU6xKFogyh0BQ7qYMpK7YkH/NqShZIC/Yn8t9ca8XHWO wHHwswuwn2qzRwXLF8q/s2w5P4j73P8hl192VNC1H1D90srAdqT8lC6HFP0E45yjzQDc mptFVgfq84yCLmxbeABhikpxAOKkQX6r9ch6BAbWFTG4cRx2+t8AA3y/RDA/ygRWO7f4 hYBNevnreDGcrw6uKi9THrkxefQlmwxhTV175VEtllsv8q51Be9ddfoyjZtBajh7zG+K NAU0SSJxlWIa0WyBlcZ8ECRGHLNlT+RepwvqE2PWj+V9wQ19T7tL2VTCH1/QbWikMfGP 55Vw== X-Gm-Message-State: ACrzQf02UJB5w5ASRPZlOIOCj3q9Rpb9zY7IKMG7IPfNK3iGfb6SEIJr 9jMcVXObNFBmfOKS0qqxEC+4 X-Received: by 2002:a63:4753:0:b0:462:b3f0:a984 with SMTP id w19-20020a634753000000b00462b3f0a984mr39624442pgk.501.1666852221767; Wed, 26 Oct 2022 23:30:21 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:20 -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 01/11] dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels Date: Thu, 27 Oct 2022 11:59:56 +0530 Message-Id: <20221027063006.9056-2-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=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?1747821336806516884?= X-GMAIL-MSGID: =?utf-8?q?1747821336806516884?= As per the new ADC7 architecture used by the Qualcomm PMICs, each PMIC has the static Slave ID (SID) assigned by default. The primary PMIC PMK8350 is responsible for collecting the temperature/voltage data from the slave PMICs and exposing them via it's registers. For getting the measurements from the slave PMICs, PMK8350 uses the channel ID encoded with the SID of the relevant PMIC. So far, the dt-binding for the slave PMIC PM8350 assumed that there will be only one PM8350 in a system. So it harcoded SID 1 with channel IDs. But this got changed in platforms such as Lenovo X13s where there are a couple of PM8350 PMICs available. So to address multiple PM8350s, change the binding to accept the SID specified by the user and use it for encoding the channel ID. It should be noted that, even though the SID is static it is not globally unique. Only the primary PMIC has the unique SID id 0. Signed-off-by: Manivannan Sadhasivam --- .../bindings/thermal/qcom-spmi-adc-tm5.yaml | 6 +- .../dt-bindings/iio/qcom,spmi-adc7-pm8350.h | 90 +++++++++---------- 2 files changed, 46 insertions(+), 50 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml b/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml index feb390d50696..d20569b9b763 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml @@ -222,8 +222,8 @@ examples: qcom,hw-settle-time = <200>; }; - conn-therm@47 { - reg = ; + conn-therm@147 { + reg = ; qcom,ratiometric; qcom,hw-settle-time = <200>; }; @@ -247,7 +247,7 @@ examples: conn-therm@1 { reg = <1>; - io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM4_100K_PU>; + io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; qcom,avg-samples = <2>; qcom,ratiometric; qcom,hw-settle-time-us = <200>; diff --git a/include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h b/include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h index 9426f27a1946..50de5adfe6ac 100644 --- a/include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h +++ b/include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h @@ -6,62 +6,58 @@ #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PM8350_H #define _DT_BINDINGS_QCOM_SPMI_VADC_PM8350_H -#ifndef PM8350_SID -#define PM8350_SID 1 -#endif - /* ADC channels for PM8350_ADC for PMIC7 */ -#define PM8350_ADC7_REF_GND (PM8350_SID << 8 | 0x0) -#define PM8350_ADC7_1P25VREF (PM8350_SID << 8 | 0x01) -#define PM8350_ADC7_VREF_VADC (PM8350_SID << 8 | 0x02) -#define PM8350_ADC7_DIE_TEMP (PM8350_SID << 8 | 0x03) - -#define PM8350_ADC7_AMUX_THM1 (PM8350_SID << 8 | 0x04) -#define PM8350_ADC7_AMUX_THM2 (PM8350_SID << 8 | 0x05) -#define PM8350_ADC7_AMUX_THM3 (PM8350_SID << 8 | 0x06) -#define PM8350_ADC7_AMUX_THM4 (PM8350_SID << 8 | 0x07) -#define PM8350_ADC7_AMUX_THM5 (PM8350_SID << 8 | 0x08) -#define PM8350_ADC7_GPIO1 (PM8350_SID << 8 | 0x0a) -#define PM8350_ADC7_GPIO2 (PM8350_SID << 8 | 0x0b) -#define PM8350_ADC7_GPIO3 (PM8350_SID << 8 | 0x0c) -#define PM8350_ADC7_GPIO4 (PM8350_SID << 8 | 0x0d) +#define PM8350_ADC7_REF_GND(sid) (sid << 8 | 0x0) +#define PM8350_ADC7_1P25VREF(sid) (sid << 8 | 0x01) +#define PM8350_ADC7_VREF_VADC(sid) (sid << 8 | 0x02) +#define PM8350_ADC7_DIE_TEMP(sid) (sid << 8 | 0x03) + +#define PM8350_ADC7_AMUX_THM1(sid) (sid << 8 | 0x04) +#define PM8350_ADC7_AMUX_THM2(sid) (sid << 8 | 0x05) +#define PM8350_ADC7_AMUX_THM3(sid) (sid << 8 | 0x06) +#define PM8350_ADC7_AMUX_THM4(sid) (sid << 8 | 0x07) +#define PM8350_ADC7_AMUX_THM5(sid) (sid << 8 | 0x08) +#define PM8350_ADC7_GPIO1(sid) (sid << 8 | 0x0a) +#define PM8350_ADC7_GPIO2(sid) (sid << 8 | 0x0b) +#define PM8350_ADC7_GPIO3(sid) (sid << 8 | 0x0c) +#define PM8350_ADC7_GPIO4(sid) (sid << 8 | 0x0d) /* 30k pull-up1 */ -#define PM8350_ADC7_AMUX_THM1_30K_PU (PM8350_SID << 8 | 0x24) -#define PM8350_ADC7_AMUX_THM2_30K_PU (PM8350_SID << 8 | 0x25) -#define PM8350_ADC7_AMUX_THM3_30K_PU (PM8350_SID << 8 | 0x26) -#define PM8350_ADC7_AMUX_THM4_30K_PU (PM8350_SID << 8 | 0x27) -#define PM8350_ADC7_AMUX_THM5_30K_PU (PM8350_SID << 8 | 0x28) -#define PM8350_ADC7_GPIO1_30K_PU (PM8350_SID << 8 | 0x2a) -#define PM8350_ADC7_GPIO2_30K_PU (PM8350_SID << 8 | 0x2b) -#define PM8350_ADC7_GPIO3_30K_PU (PM8350_SID << 8 | 0x2c) -#define PM8350_ADC7_GPIO4_30K_PU (PM8350_SID << 8 | 0x2d) +#define PM8350_ADC7_AMUX_THM1_30K_PU(sid) (sid << 8 | 0x24) +#define PM8350_ADC7_AMUX_THM2_30K_PU(sid) (sid << 8 | 0x25) +#define PM8350_ADC7_AMUX_THM3_30K_PU(sid) (sid << 8 | 0x26) +#define PM8350_ADC7_AMUX_THM4_30K_PU(sid) (sid << 8 | 0x27) +#define PM8350_ADC7_AMUX_THM5_30K_PU(sid) (sid << 8 | 0x28) +#define PM8350_ADC7_GPIO1_30K_PU(sid) (sid << 8 | 0x2a) +#define PM8350_ADC7_GPIO2_30K_PU(sid) (sid << 8 | 0x2b) +#define PM8350_ADC7_GPIO3_30K_PU(sid) (sid << 8 | 0x2c) +#define PM8350_ADC7_GPIO4_30K_PU(sid) (sid << 8 | 0x2d) /* 100k pull-up2 */ -#define PM8350_ADC7_AMUX_THM1_100K_PU (PM8350_SID << 8 | 0x44) -#define PM8350_ADC7_AMUX_THM2_100K_PU (PM8350_SID << 8 | 0x45) -#define PM8350_ADC7_AMUX_THM3_100K_PU (PM8350_SID << 8 | 0x46) -#define PM8350_ADC7_AMUX_THM4_100K_PU (PM8350_SID << 8 | 0x47) -#define PM8350_ADC7_AMUX_THM5_100K_PU (PM8350_SID << 8 | 0x48) -#define PM8350_ADC7_GPIO1_100K_PU (PM8350_SID << 8 | 0x4a) -#define PM8350_ADC7_GPIO2_100K_PU (PM8350_SID << 8 | 0x4b) -#define PM8350_ADC7_GPIO3_100K_PU (PM8350_SID << 8 | 0x4c) -#define PM8350_ADC7_GPIO4_100K_PU (PM8350_SID << 8 | 0x4d) +#define PM8350_ADC7_AMUX_THM1_100K_PU(sid) (sid << 8 | 0x44) +#define PM8350_ADC7_AMUX_THM2_100K_PU(sid) (sid << 8 | 0x45) +#define PM8350_ADC7_AMUX_THM3_100K_PU(sid) (sid << 8 | 0x46) +#define PM8350_ADC7_AMUX_THM4_100K_PU(sid) (sid << 8 | 0x47) +#define PM8350_ADC7_AMUX_THM5_100K_PU(sid) (sid << 8 | 0x48) +#define PM8350_ADC7_GPIO1_100K_PU(sid) (sid << 8 | 0x4a) +#define PM8350_ADC7_GPIO2_100K_PU(sid) (sid << 8 | 0x4b) +#define PM8350_ADC7_GPIO3_100K_PU(sid) (sid << 8 | 0x4c) +#define PM8350_ADC7_GPIO4_100K_PU(sid) (sid << 8 | 0x4d) /* 400k pull-up3 */ -#define PM8350_ADC7_AMUX_THM1_400K_PU (PM8350_SID << 8 | 0x64) -#define PM8350_ADC7_AMUX_THM2_400K_PU (PM8350_SID << 8 | 0x65) -#define PM8350_ADC7_AMUX_THM3_400K_PU (PM8350_SID << 8 | 0x66) -#define PM8350_ADC7_AMUX_THM4_400K_PU (PM8350_SID << 8 | 0x67) -#define PM8350_ADC7_AMUX_THM5_400K_PU (PM8350_SID << 8 | 0x68) -#define PM8350_ADC7_GPIO1_400K_PU (PM8350_SID << 8 | 0x6a) -#define PM8350_ADC7_GPIO2_400K_PU (PM8350_SID << 8 | 0x6b) -#define PM8350_ADC7_GPIO3_400K_PU (PM8350_SID << 8 | 0x6c) -#define PM8350_ADC7_GPIO4_400K_PU (PM8350_SID << 8 | 0x6d) +#define PM8350_ADC7_AMUX_THM1_400K_PU(sid) (sid << 8 | 0x64) +#define PM8350_ADC7_AMUX_THM2_400K_PU(sid) (sid << 8 | 0x65) +#define PM8350_ADC7_AMUX_THM3_400K_PU(sid) (sid << 8 | 0x66) +#define PM8350_ADC7_AMUX_THM4_400K_PU(sid) (sid << 8 | 0x67) +#define PM8350_ADC7_AMUX_THM5_400K_PU(sid) (sid << 8 | 0x68) +#define PM8350_ADC7_GPIO1_400K_PU(sid) (sid << 8 | 0x6a) +#define PM8350_ADC7_GPIO2_400K_PU(sid) (sid << 8 | 0x6b) +#define PM8350_ADC7_GPIO3_400K_PU(sid) (sid << 8 | 0x6c) +#define PM8350_ADC7_GPIO4_400K_PU(sid) (sid << 8 | 0x6d) /* 1/3 Divider */ -#define PM8350_ADC7_GPIO4_DIV3 (PM8350_SID << 8 | 0x8d) +#define PM8350_ADC7_GPIO4_DIV3(sid) (sid << 8 | 0x8d) -#define PM8350_ADC7_VPH_PWR (PM8350_SID << 8 | 0x8e) +#define PM8350_ADC7_VPH_PWR(sid) (sid << 8 | 0x8e) #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PM8350_H */ From patchwork Thu Oct 27 06:29:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11594 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62832wru; Wed, 26 Oct 2022 23:32:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6N2CIJUooBFybtfncgxsv1IK968yeupceHbI9bfe1YZNh0q2Uby6shTiErvE0IoLhbOybU X-Received: by 2002:a63:5643:0:b0:44d:b691:1da1 with SMTP id g3-20020a635643000000b0044db6911da1mr41708332pgm.450.1666852337046; Wed, 26 Oct 2022 23:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852337; cv=none; d=google.com; s=arc-20160816; b=N4GENlobOtE7SxR1Y/1ohf1ozTsw1+0egyfWkMioQe7pbkXbfupZ0KzCB7CyxJUmxF h3dbah834DHLA76SaikX2uVa/2j4cCaFDCy4nZ3hlIJohC1yF/CYjJ/efjBPLCb/K9hD 6/DCkr7CW70IzfJJDUP7mFoknRKB2k8S3PIjmg7Mo0uPeb2bVWsOpzuU/hrNXOfgP+9E ZHyKMGvKsAfC+EiRKZx5zrBTzYkI/xLW6J3DRokdzZD7oQgojzYY65iJNF9BV3jfbvCk WOxIiEXDz/5oWS2Y4bfp2HxfoUUVxQEXfBd2nXekIJbcGldDZNoezKxEA9T8JDPFXE3a AH/A== 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=I3veF0RIHpX0CdQbsLknhlqADPUiDaLKaJ5CbIGVoTs=; b=nK37gFq6gsSqyIiEfkJs885o/31mnDaudNlVpIuOvxqMOA7XP3mARMOtYR74Yx1R4D r+MQ8alJ7IR3XuhHih/IJEHB5Fu3hobNoJaz7e4DO8B7xUBSWnLpZtGjy8tLLdGW6Xos gxrWFtvYRWTA2/buHptdyKp0XQCV6Mx2WS9pbzRYJWGzMXvmC0iLivozwsFQsDoKraY2 l6RvVA0b6OtJKDNX3H+b5hEAV9aUKTbIm8aiGjOAnKIsxuxV365kpv7R//VjnNvAlrVF pJxAPz/hff/OD4lXek6N8p+oCSc70bqARAnibk1FOS9L8cx+HkZeszcur6QJhiY/QBh4 OLCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CsBIoRya; 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 bh9-20020a056a02020900b0046edd621584si652097pgb.185.2022.10.26.23.32.03; Wed, 26 Oct 2022 23:32:17 -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=CsBIoRya; 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 S234273AbiJ0Gas (ORCPT + 99 others); Thu, 27 Oct 2022 02:30:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234041AbiJ0Gab (ORCPT ); Thu, 27 Oct 2022 02:30:31 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 780F2148F46 for ; Wed, 26 Oct 2022 23:30:27 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id v13-20020a17090a6b0d00b0021332e5388fso576536pjj.1 for ; Wed, 26 Oct 2022 23:30:27 -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=I3veF0RIHpX0CdQbsLknhlqADPUiDaLKaJ5CbIGVoTs=; b=CsBIoRyaa1kU6iBMEFjS7eCHWONqP6iN1FpzYEopNunqPoDvyOXSxP16LZdEjxuMTj NpARwVLwH6Ej3QLtKbveyUL5lK6aSHXWxCIouNJV9izmS/QKMHzpGLGZC3DpZtkBb7t0 SoytUn2/CW77RR8CMCVy8BlTtW/xrEfqeXSbhoJPlEDi/uyWea2Iy7SJ0WupQ7U+oyCM iWTXGAW9rpVbYIHQPk0CyT374E5q8Zab3b0O9Pxsvn1U9CZpoAHUW4iXPTWcvBuJwSS6 yiRWnifksAVLbToc3vItxSUHx+gbAwJqIxy+cYbHrm3H73NebR+QAr9ciUW7Kozvj+0p tFzg== 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=I3veF0RIHpX0CdQbsLknhlqADPUiDaLKaJ5CbIGVoTs=; b=nh7HObphWjnmq9FlDGu05hMLzg/MUjaCkRGm9m5hz+ihMXvfAh295t7ce103yrq7ue VRJFRsQj8GlzLGQ0Jtj/wTULfxB1xfhcyksP9MXcvVbgNlZ5fmzZ4YLR6YQBAM5SA/B9 xzNzBRFAfQNhM9LprebuHqHHLz4oPV8HJD06vgH3QNGhDKw3n3EEYtmxt6XaNEDLzAJ6 je7yvtNS2pBlzOCfDPrKeVv5yHs+aCXpM5vxpihO7cNBt6K5eKTm4GzoTYccHGIEYkka KpxLJM4R1KDA3x8XjQliglSmmgcD7s/MOFPXc/FHr1kxDoUA+s7R+FIyOvJofmolFyzx C5Rg== X-Gm-Message-State: ACrzQf0TNMJZQxBvO9gXzAX9Dv274MQCdxGdpnpgTEiHNxRGFWAl+hRR CVS7BAd1WCOObJ8T8GPHl8Cu X-Received: by 2002:a17:90b:4d0d:b0:1fb:a86d:e752 with SMTP id mw13-20020a17090b4d0d00b001fba86de752mr8458855pjb.120.1666852226569; Wed, 26 Oct 2022 23:30:26 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:25 -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 02/11] arm64: dts: qcom: sc8280xp-pmics: Add temp alarm for PM8280_{1/2} PMICs Date: Thu, 27 Oct 2022 11:59:57 +0530 Message-Id: <20221027063006.9056-3-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=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?1747821355763421830?= X-GMAIL-MSGID: =?utf-8?q?1747821355763421830?= Add support for temperature alarm feature in the PM8280_{1/2} PMICs. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 24836b6b9bbc..5de47b1434a4 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -33,6 +33,13 @@ pmc8280_1: pmic@1 { #address-cells = <1>; #size-cells = <0>; + pm8280_1_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pmc8280_1_gpios: gpio@8800 { compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; reg = <0x8800>; @@ -78,6 +85,13 @@ pmc8280_2: pmic@3 { #address-cells = <1>; #size-cells = <0>; + pm8280_2_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pmc8280_2_gpios: gpio@8800 { compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; reg = <0x8800>; From patchwork Thu Oct 27 06:29:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62748wru; Wed, 26 Oct 2022 23:32:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6LejYJ8NjKCjPQOuovJ4vResZqsK8XkiEBBp2j/Z/xBkkpLxp2BzgKjnAT+NuoVpMJtsWJ X-Received: by 2002:a05:6a00:10cf:b0:563:34ce:412f with SMTP id d15-20020a056a0010cf00b0056334ce412fmr48502434pfu.67.1666852326731; Wed, 26 Oct 2022 23:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852326; cv=none; d=google.com; s=arc-20160816; b=JNWwuG0dsBSfFsz2f/sWX0WLkHiYZiY0QyO6DrsTmD5kbIrVuDh/TpROfQytCjyMvO jVyN+3HlnRtV/tofmqWarbpnrnlEBPJIpWC2/b98ysr2rSsm4G2jLkY6aznKGq79jEz/ 3cLvNAVQMnbjhHguNt0bO+n8cIyhyReSbz/4MSMiskBgufVl9A1EAQg7F5uJFJAzJSMC Q0Gn+npWQ8nG4k4qyl09BAv+wZaYKtTSn0jsG+aXhBxBZ3bR1yab5KBAbrbSj/SeFrcR q0PVCIzxjlSWfDp/ajKgCh6vxF8J9ClECQBTCwjjmbkdrihqtNMTDPqt5sv4KC1DoFkq z4LA== 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=Ewp7WVPU21yPtwhSSVCjsPaCneME+6WwPEVVpVqunaw=; b=oQcbLfX1J3zXsAzQzBkyIZ3Jv+I07Dvg3vwr1Ssbesvo/7MtwczijBFERSwqNMQ7xW 6YfuqsvM5vdFo7qRhF7mZIxodF2UkMitTeDPv0aV1+8tBO14Q9PrWZOgeGqnmPED/kbb O0hl8S7dKIRGOzV1FrVd4YuA7NoWj1YuTe/CO79SSi8VNCZWSnT/oZ/AUrHG12R490x7 i+3xVJ4UMj9qTkeHMEHjdEozUS0CCfDJKYAcLq7mEeaSnBuBBo5P3k+84n4TSenbSXcc /5g5z4Z1qqesY6I1vdyxH2pkFrL8E5DNcmarbRIuHfsRxXP4WxTrVLO2iLhGK0Vft4Sc lMbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QKwnaVlm; 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 t9-20020a17090340c900b0017881dc6dc2si556408pld.489.2022.10.26.23.31.54; Wed, 26 Oct 2022 23:32:06 -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=QKwnaVlm; 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 S234316AbiJ0Gaz (ORCPT + 99 others); Thu, 27 Oct 2022 02:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234309AbiJ0Gan (ORCPT ); Thu, 27 Oct 2022 02:30:43 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94D8A15F935 for ; Wed, 26 Oct 2022 23:30:31 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id u6so430154plq.12 for ; Wed, 26 Oct 2022 23:30:31 -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=Ewp7WVPU21yPtwhSSVCjsPaCneME+6WwPEVVpVqunaw=; b=QKwnaVlmWSdqZH1nyo9MS5awPPgttmfmIPNBpqPSogH21caXuTdoLYqMgIr0qbylgD yyfWrIoi+X010DsOxnLxFllBfn9t+6Fq5bzAHh6xLmEfalaa8x/NHFNnpBT954WXMBgi l0tiSMAmgVAPhkPB4Y3wJKCcHM1rlnnjLnQT5KdCnWc58d6LJlCtz4fOEF/H2nZD141p EfZe/Aj4/aJR7sU2+aLQbYJVDopZVt7+hhcXtxdOT9ubOwAzPhS3/SKaT8M4HmjG4mrl cjgsFLVPzXu83DCO0+B8oitBWBLQ5psRtWpfyac3vOY4Gx6mPwdrDYKnRu63kDgV2XuQ 3uqg== 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=Ewp7WVPU21yPtwhSSVCjsPaCneME+6WwPEVVpVqunaw=; b=lIjCN85G3KlExL7prov+W+hk0DqVUK6kFgPzAzIMxkdxdDAkl0CUS2zdV95KAj53Bo 9S1gqD3XaUmsR1KjCl3AjKO3hpeihDEW8g1a0JuD/s/vjAgdSm+Gq1gLz7hP3WRsicC/ NBIiK+8Z1kV1ycAky//Xcuw2fAhU/e+Pw9/BFK5yoIfzkHbhfECqu7FrSSXufu98iFJ6 o/T8wXSxhPE75VZOCwG/bA7+fCzNuNH7L8ley328OnF4A08VGcAQXrim9Ndl3KgJesf/ sYvwjFMTk+0PES+XGHAfsbkCimqRx6TGUgOWIJBTp+UNJ+cCRCur28pvHwedvOeFp/o+ Ql/Q== X-Gm-Message-State: ACrzQf0FH8ZvnzJHCt5SNU/AKKQ0FDq1ptaJ7KYpH1icq1VsVVmFSj2A 8ThHoCj8MWy4pH7ZjWukAdch X-Received: by 2002:a17:90b:314b:b0:20d:a462:b996 with SMTP id ip11-20020a17090b314b00b0020da462b996mr8321768pjb.39.1666852231025; Wed, 26 Oct 2022 23:30:31 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:30 -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 03/11] arm64: dts: qcom: sc8280xp-pmics: Add thermal zones for PM8280_{1/2} PMICs Date: Thu, 27 Oct 2022 11:59:58 +0530 Message-Id: <20221027063006.9056-4-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?1747821345324327554?= X-GMAIL-MSGID: =?utf-8?q?1747821345324327554?= Add thermal zones for the PM8280_{1/2} PMICs by using the temperature alarm blocks as the thermal sensors. Temperature trip points are inheried from PM8350 PMIC. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 44 ++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 5de47b1434a4..397ff4995003 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -7,6 +7,50 @@ #include #include +/ { + thermal-zones { + pm8280_1_thermal: pm8280-1-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8280_1_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + pm8280_2_thermal: pm8280-2-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8280_2_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pmk8280: pmic@0 { compatible = "qcom,pmk8350", "qcom,spmi-pmic"; From patchwork Thu Oct 27 06:29:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11593 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62780wru; Wed, 26 Oct 2022 23:32:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6jB0QK9JW7MG0jug7iTCK1JwfwLlvwBr8X2fQPRED9xQhVZQsQvhtVO0/70HDQ8FcbYZbc X-Received: by 2002:a63:4a4b:0:b0:439:837:cc8d with SMTP id j11-20020a634a4b000000b004390837cc8dmr7040200pgl.199.1666852331730; Wed, 26 Oct 2022 23:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852331; cv=none; d=google.com; s=arc-20160816; b=XhliDDMfgcXOSx9m9sUn0URbYhdIRcQ1psii51i+yy768b2xgNnfdsHeO2Uz9wFXRA BcDI+CItmjOUDGW0RZUvQUHtAk1Q8PULbGKC+LYVVy4j80mXZxdTrO4t+z5xfevy8P24 YN/wChZFSWUhwfc61DbXiGmlQb3Lg0nJLiCtOKzh6aycF6SuS8CP/IS3sNaNQLcKvCez 0JDthI5XY5+VBQ0UV9Cqay4OPLfH4a0+1y8qB2vB9bzvvNlB3uuR3CUUWRRUL1eqTRN4 iyT0/2nqxzARqtrblaD0MLY1Q46NlcjHQcJJfaHAXtw/KDz/E0unNb3IQp9UzbY0HELq 0lKw== 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=+oNMWjwF5SpspioafdolHZIqZWxnCSDsNsWJlArBnr0=; b=0Ktdj3po4XT6EHUTzgxj+lqRb+CQmSx1Gt0mFfyZ5KhKAuxGAFx2aaRM1sVGF7YInW RiB0QOXGJKvAmnFOgdwr8P+s93e4pHYumrfTpeVxe3zXEM0Oeg6mPDhdTZAS8REJo7Qe m7s42eVkwyiW4AVj8VQSkEJXd0Xqjhxwqd2xRJyy4UoqB2u+4JPXtrxlvxAR3GG5we6F /3EF2MScWwBS+R7wqQl8FSRNQ0Aot0Q1e1kVx7H/QdjMcR8OSklMdC9LlIt2gSHVzk1m uSaflEvtLBg0rsULP35PTlhCE1qN4qTOsl1gcuNGYH5RoOM7VW/IO9oHUo4d8sa46Fy/ E4vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JJheuPFr; 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 c8-20020a630d08000000b0046ec396db31si556925pgl.857.2022.10.26.23.31.58; Wed, 26 Oct 2022 23:32:11 -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=JJheuPFr; 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 S234260AbiJ0GbB (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234451AbiJ0Gaq (ORCPT ); Thu, 27 Oct 2022 02:30:46 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D79C816087E for ; Wed, 26 Oct 2022 23:30:35 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id y13so558197pfp.7 for ; Wed, 26 Oct 2022 23:30:35 -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=+oNMWjwF5SpspioafdolHZIqZWxnCSDsNsWJlArBnr0=; b=JJheuPFrZj1MnqzU6PMWCSrD8v+QV387IuiqqR2iAiaQ/gYzyf/do0vznbussRzQti ynIRsPmYNdm2KCDwPRYDVkjy++9JVIpdIkJ4/BSVoWF4nVh5uVSTHvIFJ4xL8wVvWTho 96Z9POS8G/YhIZYINKRsknfo1DieqEV3+H8DrUcb4hr/LpWhlNODoqrqXppIccpvmYTa YJQZKBBhPSORBNz9X/63lsa8ua93V1vqPw9zNJgWWzl/2PMCpaI9+AHgqu81LCons3cR Ctee1yK+fGiZXY+B6rQmBmFXaPX5YcwvLo96qZWmp+5zFNIa4OpmHxE7W43yEOQnMcEv 4Tog== 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=+oNMWjwF5SpspioafdolHZIqZWxnCSDsNsWJlArBnr0=; b=2I0095ihQv9+VGDnBKYLzJqMMHVogUasP+GwxPbIPoBQCLY3yLkKfFZMcxH4gkPwC3 qCjuwF79fDhO+cD66jUItUYuBwnjx3bnBNBaXGHHekZ8Re5ZzLmxVZrGgCll8RpgnV2r qLEBlyzN90q6o8HSt5jceha0CgCHTlg3u6Xs08S51BpV9fG0YvjOCwzq4wryWvbOrRA0 G8oJKbIQn1PfeFmEA30q4NOcv6Rxrqs2flqN9GIr9YL7764EcazatLQsYaTjV2niT2Lu EozzexSG57CdThkAuePEWIeoE7DZNctKVpmZNwEgkKhnm9Jg4N60lbP0iqAgCL2SXox/ XSKA== X-Gm-Message-State: ACrzQf0OgYdG7dan2SetkXS3HpFLqgo5ScntlU8qOFw7sSilhxToHsLx lTlFNcvNZm0WhqcCd4gwbuWe X-Received: by 2002:a63:5425:0:b0:450:738:9a78 with SMTP id i37-20020a635425000000b0045007389a78mr39812555pgb.429.1666852235394; Wed, 26 Oct 2022 23:30:35 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:34 -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 04/11] arm64: dts: qcom: sc8280xp-pmics: Add support for PMK8280 RESIN input Date: Thu, 27 Oct 2022 11:59:59 +0530 Message-Id: <20221027063006.9056-5-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?1747821350427198847?= X-GMAIL-MSGID: =?utf-8?q?1747821350427198847?= The RESIN input can be used to reset the PMK8280 PMIC. Enabling the RESIN block allows the PMK8280 to detect reset input via RESIN_N pin. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 397ff4995003..4a3464f5e6e9 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -68,6 +68,12 @@ pmk8280_pon_pwrkey: pwrkey { linux,code = ; status = "disabled"; }; + + pmk8280_pon_resin: resin { + compatible = "qcom,pmk8350-resin"; + interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>; + status = "disabled"; + }; }; }; From patchwork Thu Oct 27 06:30:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62974wru; Wed, 26 Oct 2022 23:32:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RlNuTgZqpf1pX5KUD7um3WXvDMsTgYLl9EvAgN12z5zzgQk3McHefcjbJSDZVDY1hwI/m X-Received: by 2002:aa7:9298:0:b0:56b:b6dc:988a with SMTP id j24-20020aa79298000000b0056bb6dc988amr21730200pfa.5.1666852358046; Wed, 26 Oct 2022 23:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852358; cv=none; d=google.com; s=arc-20160816; b=RsXpmm85pKmMgmxXj3LTfwdYn2y5M2GVr4J+JcF8AnUwVeTy676W9qZKGsv67z6YX2 D1ktaENeHroJe6h6eC4kFmWAP9YawSvJeKrvgJK1PZMfH1q7S/77Yo7wj1LvFSYRqw8A 4nu19YzO73o3TDYlGUt4TAIqnDXbm5r7Abie/cHAUml0L/f10Q0YUPZYfm3dmFjNKjeO lT8qCcUAS0F3V+IX6eTinHWNBOND8vhQzjEB7N8F6quqQ/j9Jj8G/Gj1rzQT3bysryWV 24aWVO1aOzgoCy/j7FtMUToegLfAPJKeTaCdQFLMEtPRqVLr6JPjkk49FKEDY97cQEpz R+5Q== 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=+uO33+G36OyWr6eCN7oimNs+WJJkzvXiHHivrNLNRVc=; b=fljOYzTs6byBq+EJ8v9mcJG3LMO+Nmabg5zFes7j6FplGgB55nmCIsVRmuTpPDBB4c akJOP2vvfJmBnhY0jiFOmTUKyA9Pi1+NTku7WBqc4vRjC5ny6QuWr2kE+3qrEHmYYOLY A9Nw58s6QE4i3+RXUvy9r9BnnSaX8tTDeFLgjaYFy1a3bMbUGPXC6xZi9vEgFLd7AkcC ctZLJlQzGODusAWVdIK0GpJjhOipgafQkv+lercmMYioEq+6TI7ydxVfv+1CseYfLc5U rb4aVQGPiul0fXyVOZM/QyLMhiJDybnsEVuXVnIV2mewLl2vRh1LLfpxRD2Rks6I1BOX 7eaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XCN9Ev67; 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 b10-20020a170902d50a00b001769b63ec65si622171plg.483.2022.10.26.23.32.25; Wed, 26 Oct 2022 23:32:38 -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=XCN9Ev67; 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 S234635AbiJ0GbN (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234567AbiJ0Gau (ORCPT ); Thu, 27 Oct 2022 02:30:50 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C16D8161FD5 for ; Wed, 26 Oct 2022 23:30:40 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id h14so622128pjv.4 for ; Wed, 26 Oct 2022 23:30:40 -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=+uO33+G36OyWr6eCN7oimNs+WJJkzvXiHHivrNLNRVc=; b=XCN9Ev67Rcu0zSL1omPQ4ggqYmS5Lhm7a0NMm775ILNkG4WFdGozM5K2fL8G3ZNtG2 pt9CGnGFX5ib18YNy9SbsjnIZytRpWM8qtzFJ4/xUWd32VyJ7EbE4qjVJ5PeOfcpv3nG DmL1NUapmoyc7d6ilmuIFYf4gZXuTLaje4XpUUyI0WBTn9LQ/ZEgdUt2fW4q+OT311sQ BetYZ1jG1OsqrIDKrX8iQc078iNesDNQAlTMgYILLO269VxhKC7O+m3E2zmhClZyhPg6 NNOGhF4eWbQQKRjIyzxFo7ZkUoe24TMDOKpxQgOVqz+CCqhtjUSl9unPsZh0lbRrnY4/ aW2g== 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=+uO33+G36OyWr6eCN7oimNs+WJJkzvXiHHivrNLNRVc=; b=luVKQEZli6c8Qv1hlrtbM/x0YIk0xoF7Vm0OOfOz6vrhxAmwsyCSqB2Ovtr8pi7kgX Y/5Hwa/DRaAO3VZasKJgD3Ls77qgL2+pw5RIa7AcbcHNcCmXZ/qHIL13wTRg6BPfsWzY P2Isl+4ji4KLELry/ksSpk4mNQq7hr3FyaBzrPP1JzYM2jNF6UME0hdFdpED7mJbqR7c gRt/Ybo4iFsMcy0praQROEXc49TLGRUO/1TJ5y4H5IUXOWiuUlCMhWZ2kfgUL7zaY0pc 8hzKyXyUNGwXNPqTKkQJI4Si15cxjFoWSFNaCfLtcBJqLLWXMmMTgqwAh9iPf6hm/X5b tcbw== X-Gm-Message-State: ACrzQf0SMhsu6Q0PzzsKo3++eP8/bGbIzffsDkhXadJdwplXOguvVtjy NgR/Ero04+UOmKYxrqNg+IaM X-Received: by 2002:a17:902:ee81:b0:186:b1bf:2308 with SMTP id a1-20020a170902ee8100b00186b1bf2308mr16935557pld.111.1666852240257; Wed, 26 Oct 2022 23:30:40 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:39 -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 05/11] arm64: dts: qcom: sc8280xp-pmics: Add PMK8280 ADC7 block Date: Thu, 27 Oct 2022 12:00:00 +0530 Message-Id: <20221027063006.9056-6-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?1747821378006526220?= X-GMAIL-MSGID: =?utf-8?q?1747821378006526220?= Add support for ADC7 block available in PMK8280 for reading the temperature via the AMUX pins. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 4a3464f5e6e9..32086d5edd0d 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -75,6 +75,17 @@ pmk8280_pon_resin: resin { status = "disabled"; }; }; + + pmk8280_vadc: adc@3100 { + compatible = "qcom,spmi-adc7"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "eoc-int-en-set"; + #io-channel-cells = <1>; + io-channel-ranges; + }; }; pmc8280_1: pmic@1 { From patchwork Thu Oct 27 06:30:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11595 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62842wru; Wed, 26 Oct 2022 23:32:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ndD9tDotM4v2+5WGVYY2fxL8zseewrpbePRIz0U/qWIMeyuWcYx1f+F9qIS+Tai7X4FZc X-Received: by 2002:a17:90b:390b:b0:20d:2335:bff0 with SMTP id ob11-20020a17090b390b00b0020d2335bff0mr8387192pjb.141.1666852338233; Wed, 26 Oct 2022 23:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852338; cv=none; d=google.com; s=arc-20160816; b=wJfQ6Y7lvrJyzwIx4YnQmKmHHv3GJnton5wl0Nrv+hcEwG4F+mPKMCOiId83o1/beC leR+lG61wi4we8LOn7BB3j/Yn34jbpCbnF7ET9sprpJhIfgavBdSLHCMFY7g35xxNtIc /DZxqn8nBMb8nZkG80QO4YeSH2kP56H0vOM8b6K0TQTzud4n+IHnv5+93iCBW7EVgTtI lr/mX3yoRlJvMHZ1b21iOAAgGOg0AI29uh9UC44RYL3TNWbK1SdFVGbBAjJ4NNxC163O 1EDtNfyUYAoWnv6qa6SUUnSdlxznZvpD8CvIwYL2jkoMU5zHwwR0pGShE/VemE2a4R96 sy9Q== 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=ZD6r12BofDfMgshCtZ+x4zSd8OgAoRs881lTnCMffo8=; b=LGeZUhECJLIGDw8l+SSCUTSlRVIpvrPjYqjilCQgp1ioWgk/ffTKlYxA2mPepiCO2F blCQ4QzobVUizr5LhV2HaMjOv+l5MaOWmW0k9+TXVna0oYc7YWuqQmlNLrH7boqONwxH HugNm7jL/8fk6VPH9wjOsV+nCbxE31/nR/jQQX93+KlhTpLECwIDOhtRRHuu7InMnyti trYyASKbj/4WifD4F4Kq9IRSh+LIaw6WYrYg7U+7gI2wYs0vmrJpy2W2beY3fclhjDpU hmD/lMOFQXDYmFJlWFZwtaXdukttGsLNoK+1py0H158Px23MEDoqXqm/o4MVUmWWgDYp Oqrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UmS84iZZ; 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 n1-20020a170902e54100b0017e20ec5490si697673plf.301.2022.10.26.23.32.04; Wed, 26 Oct 2022 23:32:18 -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=UmS84iZZ; 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 S234456AbiJ0GbS (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234577AbiJ0Gav (ORCPT ); Thu, 27 Oct 2022 02:30:51 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71315148F7C for ; Wed, 26 Oct 2022 23:30:45 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id l2so425768pld.13 for ; Wed, 26 Oct 2022 23:30: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=ZD6r12BofDfMgshCtZ+x4zSd8OgAoRs881lTnCMffo8=; b=UmS84iZZyYlSpKMV3I2lmbjnEjx6AbCEBKgDOfr6rzdWwVxbw6kJ+w9Z7zlJbRKHcS euh5S+4gqhRZotWk7VryNY4IH+GDX32XnvJdVWxuoxsAFvDeF6Gro6QIxcCTIqWRAEhV EhXK45SjN93Qo2VRnG5u6FzECajU/AOJSAEoM3Ttex2Dj6P7yJNARhldBgj97Fyfpwla hLsWLHJZVEOeWlo8w97HLqaiVhx+WNNs22n+/N1JpEs+5Udu01Z2jElQ+VDDZGo/FViu /g+mJ5/gU9N/7XoO1LnaRhDfqUHbyGwvs8qERwSFA2Ma7enmJra2Zr8fjVE6xzKr1Ya4 +OrQ== 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=ZD6r12BofDfMgshCtZ+x4zSd8OgAoRs881lTnCMffo8=; b=kkOrVi82VQPClWX4x73cfMBlwUX7qJxMOZvQI6ythMWw6pupjT65t6zPe5lUYBRuva pP9FudHZqqT0OtsqJw/C759vtucaXGYgZAFS51OiRKrIRsYtLvQz3OFvwmCezNDPwGJ4 2bB9avT2qJdVju+qjq7vQRrcIY0itvpKleaqCOEKamNOEGfYfFx7YpIiEv7dUN8Mj1FX pnf3MOD7BjuQ6m65Ah2mzhHpHW/qoErSlG69Bc7rW4mzbuOPQw2Km4g0TL1tNLWKde55 mqyJpdPTLZRsAhjafJvBD2dcVIpBs6YlC5KgMCUJt8kqI+bBxJJ1l9daffsLCu1UKAQK waqA== X-Gm-Message-State: ACrzQf2WhH3zUGKKTYf8TD/KolCjQu4kU+ydSysvUZu5J1Jkh9RbtKFW 5d6bUAHmEu9/nodKEbgHwF41 X-Received: by 2002:a17:902:e810:b0:186:e9ff:4ec2 with SMTP id u16-20020a170902e81000b00186e9ff4ec2mr2910960plg.26.1666852245107; Wed, 26 Oct 2022 23:30:45 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:44 -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 06/11] arm64: dts: qcom: sc8280xp-pmics: Add support for TM5 block in PMK8280 Date: Thu, 27 Oct 2022 12:00:01 +0530 Message-Id: <20221027063006.9056-7-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?1747821357570465951?= X-GMAIL-MSGID: =?utf-8?q?1747821357570465951?= Thermal Monitoring block ADC5 (TM5) in PMK8280 can be used to monitor the temperature from slave PMICs like PM8280. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 32086d5edd0d..d55f0a9cea61 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -86,6 +86,16 @@ pmk8280_vadc: adc@3100 { #io-channel-cells = <1>; io-channel-ranges; }; + + pmk8280_adc_tm: adc-tm@3400 { + compatible = "qcom,spmi-adc-tm5-gen2"; + reg = <0x3400>; + interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #thermal-sensor-cells = <1>; + status = "disabled"; + }; }; pmc8280_1: pmic@1 { From patchwork Thu Oct 27 06:30:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11596 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62887wru; Wed, 26 Oct 2022 23:32:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7R8iVt/WBK3n02TRnSgcY3J6ORcBPvsfP2ylL1YOwBFc9F/cLy+Q6PsEkD9JXScP2CGpRk X-Received: by 2002:a63:5b53:0:b0:462:7149:2c54 with SMTP id l19-20020a635b53000000b0046271492c54mr39919702pgm.527.1666852342945; Wed, 26 Oct 2022 23:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852342; cv=none; d=google.com; s=arc-20160816; b=NoHigz2vtxI6eL08zK1kSrOLL0Cl5VyOcNAwBtuEMSHPbxM9Pixn9/yXPenHv3WXwp bCuRBMIEzClk9xNTempDQfnkqsOpkoiWsmGfvVnioVKoLZFDKf7AJ1CI7dzt1pdlpM5y /B3T5/TfaK5eQc4mSHNnfQ0gfOngq/3/gNDVLtAza8yTvGiAbNC4lkAynJZNWgSiqcV4 fY3AZGWb4zP9ftmEjFXIoEYfrqU4mUAvFiYvdT3gluMvi0oh1h2IlxmP7st8+KgkY0NV +QKwhPjJyoucM3DtkveHrPuxZGtZdA4eTH7fFI7/Xq1wMpZvQkbtrBT0croPUQe9QplG x3AQ== 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=DLlikXIYYm3ImN3tz25/0YKQDQ+xQSa7BQvWQidZ6yE=; b=g/MswPd5MZITwUsAkpQ/ah8hLmefQKZQBSLWnuCOUh8B+78cJnnJ3OOgVMVwPT/JTd Lupv+7HX7XmGBwmDomd7w2fd6O/phnr3W/2fB7rzQWaNjXjTxH56XtJG6vUS6NBDs+6g x4D5fWlu5OsTuF7pkIyj+laKaVsnp1ZRRdVN68JzGoHqfUIC/nfTRmQlp9g0DYfoaQeG sYl/zPUANDEc98WlXFK/ebXPOpGZChvRUInYp0KpmiYjJxQ1/9c67WsaJ8Kq+uXsdYLN 6KUi16XIkx31VefhO4V4KHl20EYdC3LzLzumQApi20Oy9nKktgZXRukXwvnkDWmCHfBT +CLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zhCQ3aZp; 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 q20-20020a170903205400b00186c9d17afbsi481760pla.293.2022.10.26.23.32.09; Wed, 26 Oct 2022 23:32:22 -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=zhCQ3aZp; 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 S234339AbiJ0GbX (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234161AbiJ0GbE (ORCPT ); Thu, 27 Oct 2022 02:31:04 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E333016023C for ; Wed, 26 Oct 2022 23:30:50 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id g62so548017pfb.10 for ; Wed, 26 Oct 2022 23:30: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=DLlikXIYYm3ImN3tz25/0YKQDQ+xQSa7BQvWQidZ6yE=; b=zhCQ3aZpq6ZDf34hPWRoiv1hj3cTOrrBHagCKsbf70JUKDDHrBzN9bOAcU7Et5tbob 36ozbR9bnGjRhwyrsorrRr2Bx5Gd6maL6fhaIqei0V520tY2qEn+LYqAqt5bvxTHXjjd P0WzHumXGEb6fmIqLOgcUfRQOcDJcLWC3EJM+orvb6WFEWEFAwthA9mB5rypq3N205Qa JFd0jP+FjsFfEybz+hdtdCJ2ML8iUDzqyM/NbM3272H7/GBFTJ49s439UgbE6iOTHk5z dOH53TPi4HXfOtLflYkv1aF2uHgFW/gXkVCXYh4L2K8kKTA9uj+IcQ+blBW7fOu1dNIJ /Ekg== 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=DLlikXIYYm3ImN3tz25/0YKQDQ+xQSa7BQvWQidZ6yE=; b=d/rHM/Fuog/ZDqod+x1zY9oojtEizzmj+cS7Fz7/MGlOhQ3i8aZK6lVMyGoQsyGn6l bRHGRQkuw64kszMVNaSD5eQEvIJy6nsXta7nQ/+gLKtIww1LnUSqtIBT8i7rqtjFJJhe PWkVHWoo3wnT4WBZVOe/OgjV7DBE8FsmBtNRxc4YNgje/QQF9Dpbj6qtQBVq2obY9aL4 FS1eiAHjUrOpuxSF6ZHpvaZaW/+WUQDH3a5zB0czdVNQ1u3YXHfq6aKyb9KBmo1LSQaa X6sJR/t2kSg4CkZTBjCVimPIJJCRd22YIbCwi2ppk3IPOjBmiy8V1DpzUxAm1z40iJBy Y4gg== X-Gm-Message-State: ACrzQf32GOsr4tzU9bgA6bJVVmGw1gSIF+fZWiBdhhZ4SqxKA6k7+gXd 1QPxfn9/rnEa3AqE+ZcoNBjzvtCg1q4sSAE= X-Received: by 2002:a05:6a00:2485:b0:561:c0a5:88aa with SMTP id c5-20020a056a00248500b00561c0a588aamr47694155pfv.51.1666852249715; Wed, 26 Oct 2022 23:30:49 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:48 -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 07/11] arm64: dts: qcom: sc8280xp-x13s: Enable PMK8280 RESIN input Date: Thu, 27 Oct 2022 12:00:02 +0530 Message-Id: <20221027063006.9056-8-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?1747821362546136139?= X-GMAIL-MSGID: =?utf-8?q?1747821362546136139?= Enable resetting the PMK8280 through RESIN block in SC8280XP X13s. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 4 ++++ 1 file changed, 4 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 b2b744bb8a53..6aa8cf6d9776 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -169,6 +169,10 @@ &pmk8280_pon_pwrkey { status = "okay"; }; +&pmk8280_pon_resin { + status = "okay"; +}; + &qup0 { status = "okay"; }; From patchwork Thu Oct 27 06:30:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11600 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp63215wru; Wed, 26 Oct 2022 23:33:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4bgJw/O5OWwPYsaLgYkZNPZW3nOcPjd6NYQMgvxfOUqxRsMbf7rO5bmMwbgLtG24b9z6FN X-Received: by 2002:a05:6a00:1505:b0:56b:6d78:3304 with SMTP id q5-20020a056a00150500b0056b6d783304mr28624211pfu.44.1666852401028; Wed, 26 Oct 2022 23:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852401; cv=none; d=google.com; s=arc-20160816; b=as1wlJKvv4llZ8YD69evcczqg78OPvHjMBd205wWPFVBSEPNfLz1suhw1DGt4xtMjt omKoBKItpZWpU780wxfey0wClgY9/A50tV+1ubBaTULX9gHLkQrJBeQ8xnnhsEiEIHFy oUoshvZHgTnHqI2hMq2AUN+Lp4sqY/y/nH671J4E2MAhX+UstZFcpLqcPpu5grLYaXWp Psa5hPiBA96J35E7RcAPJZfJHKWDqFbpLFFRQxG1rsIkcAHkllDea7SNqp78jZyyKaBf pRu1iMPaKt8B50SWJ/7OzzKpmgjCoTnTMTVXGSLjuyfzRlBygF1EngpR/I/UehVESS6B /4JQ== 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=tJD9pg+8d3gbB5bhYEtgXKZfAldyXXkDaqxLrNjRHCg=; b=hwmIEvU9PlX9j4/qFdo2Yd/6UXo/e3ISO5wHTShS4X90K4sNOctujxXv+eA74eJMel Mq6ZL1bV0j9Hot4QfVXWa2f8dYLWJxtwQqmb3zwWdDWv9N4mWcasRyyXrmkaL/UcPkPX vIn37jsY/30OLCCls5DN84mgFWxBoYnjlnh7SQYxm++8daG2tYnxF3TWAIljRVDfhWxO fpz/XNyiUP+GR/NHAonIY9yqZFV/lg8H182PqMd5WAdvOdlsuw7/Kn/MNxQi2cBkAWSh KOM0gcrvgVqDF0al8y9Yo26KEIT8BjJ64p5FFRJ68yNmz0HCxJUQRIRrO7NyduZ5nhLp xSnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Wc3M/xJx"; 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 22-20020a631556000000b00460b9d08d7bsi513154pgv.868.2022.10.26.23.33.08; Wed, 26 Oct 2022 23:33:21 -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="Wc3M/xJx"; 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 S234626AbiJ0Gbt (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234587AbiJ0GbP (ORCPT ); Thu, 27 Oct 2022 02:31:15 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED401633AA for ; Wed, 26 Oct 2022 23:31:06 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id u8-20020a17090a5e4800b002106dcdd4a0so5340435pji.1 for ; Wed, 26 Oct 2022 23:31:06 -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=tJD9pg+8d3gbB5bhYEtgXKZfAldyXXkDaqxLrNjRHCg=; b=Wc3M/xJxsntnV3zSr730T95omcsJ7gxCjGaRYgqi0yGZMppK6QRd2RruLsgTky4edm 9s3hAjv7LR1fAFwIoLNU677Zfi3ACcDaTbLfUJ5uqkUlosSLpYgySR57eTf6DCYE3c5G xLZAa1miqqkxjTgmZcbKq3CPw8jC+m0m8edrar47c8kJZpZgaVeKpevINh1GYQMZoL+c g4kiLZDtHNlT27yXKuI9Ys3eKqcxZUXfQnVKE2FHggb9MOd+Udfe9wE71UucuO1ch3TU XqPdEc6PwBnnm8lmebmyq83lM15xZVrvdHPlTMSAqt64QTl+j1Lu7c+CVLf63X+yS36U Dipg== 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=tJD9pg+8d3gbB5bhYEtgXKZfAldyXXkDaqxLrNjRHCg=; b=oLnN/eagvbSRuaBMiYLIAPjWoT015XkAFN4HfTBOonGtcEJVex4hWrSY7hyhz6CTuQ G947p/pmskvS/QKp16dj8lVWZI7C72AjLHz2gvSjMuaxAWTAUHa32ilB4gGrEssJduFz 7P+w3Z9VprARTkBd5zXvpR9jEcRtEDdvK03Vp9Vp4bzgFkJ3zYZg1O7+ZekmBuI1APlm 3ocTzM02JgzsCu8lJkwC7XA/deH2kyABsoU3py++zSv1p6UJSvDeAFveCCQn6lnwUZoE /JzZz6hLYrS9JNjnTWGFo+AbwC7EhyBgxZy4k6+yCzy3KN4Ofr+LrlNmItKadJZKMbmf 0h8Q== X-Gm-Message-State: ACrzQf1n1a3p1irJC1LZRWomgwPVxeVkjENUJtWZykV86/eIzikxRM6N eSw++M2oQgEiKnEEsaHqs5R0sWhtw5fp3uE= X-Received: by 2002:a17:902:ef4f:b0:186:6723:8da5 with SMTP id e15-20020a170902ef4f00b0018667238da5mr35911254plx.6.1666852254627; Wed, 26 Oct 2022 23:30:54 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:53 -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 08/11] arm64: dts: qcom: sc8280xp-x13s: Add PMK8280 VADC channels Date: Thu, 27 Oct 2022 12:00:03 +0530 Message-Id: <20221027063006.9056-9-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?1747821423079401882?= X-GMAIL-MSGID: =?utf-8?q?1747821423079401882?= Add VADC channels for measuring the on-chip die temperature and external crystal osciallator temperature of PMK8280. Signed-off-by: Manivannan Sadhasivam --- .../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..9ac5d5c22832 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 "sc8280xp.dtsi" @@ -173,6 +174,23 @@ &pmk8280_pon_resin { status = "okay"; }; +&pmk8280_vadc { + status = "okay"; + + pmk8280-die-temp@3 { + reg = ; + label = "pmk8280_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + pmk8280-xo-therm@44 { + reg = ; + label = "pmk8280_xo_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &qup0 { status = "okay"; }; From patchwork Thu Oct 27 06:30:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62946wru; Wed, 26 Oct 2022 23:32:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4tzJZym5Y45TyfaADwqKwr/9g8Ae8mBTcuhqAUBs8fGWgyQOieqDfVsBt+Tmx8tBuhbRSZ X-Received: by 2002:a17:90a:e606:b0:212:f100:22e3 with SMTP id j6-20020a17090ae60600b00212f10022e3mr8487033pjy.83.1666852353818; Wed, 26 Oct 2022 23:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852353; cv=none; d=google.com; s=arc-20160816; b=qkNzSjSIVU4RlCyA2WtVU6O0/wWvyddkFLsukn+LwE5mW7BPVbts6pjwNeK9d/hf1c U2loU25ilHvJYzYl+eEpY1xmaY/gSjsvzLXs2XUeGwqEtlQ6PZopbfxwfcokM0mdc0Sb 64STGBhX5tFvGHngQDO7DGs0Q7GapUOzdurD9G6Re+tqe6c1vj0n4z4sT+fneI9+tntQ doSFvgYJ1ZzlA3KaSrM1n1xsCpP+KeduXnsZTBZW2SgClPxIVymM2AbkmSaKk3M3mWWH kS0bVLPb7eZ0gOJNG5TROGDG0UxORz0S+/IrOYo9QgYAjgGiPR0l5LDaVII/hZEmYOcj K/vQ== 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=pfwc4myKYMtHNH9EOVfJXOc2pPSqLuFVcY0vj1LaWVI=; b=wkwd2fdwdXAGMq4VowmJYuZXvWdtSTMaV5JfzkrGPCw+1ZBpR2bxTXHbzi/oTQzKEU 5CL1+H+ibDTtUcqZMnEGu4l7uB57cuDL1SF2R2f//H6YT9In8SvruP96B8mOA6gsy6jv jzIl5eN485nAtS0IaseUq22RI9oLoko3ttDoyI0eO3FT2hvYBKeVy31P0/KZIOL92CTo CgTmHIju3705f/NGcQmnkpKBj/hCi4GZ8/IgH1cQ3pbG3DwMgRoSHJWmcsCzVV7sn3j1 893c/BnInb/PCh7DnslW/IfrIHx/CA0nRZTkz3fAxHzMfY/BK3iq+N2Fpnn84ApS7rYa zF6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kT1Ch47I; 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 n62-20020a634041000000b00450200a1078si506769pga.853.2022.10.26.23.32.18; Wed, 26 Oct 2022 23:32:33 -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=kT1Ch47I; 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 S234555AbiJ0Gbg (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234305AbiJ0GbK (ORCPT ); Thu, 27 Oct 2022 02:31:10 -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 DE992162503 for ; Wed, 26 Oct 2022 23:30:59 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id 3-20020a17090a0f8300b00212d5cd4e5eso5313582pjz.4 for ; Wed, 26 Oct 2022 23:30:59 -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=pfwc4myKYMtHNH9EOVfJXOc2pPSqLuFVcY0vj1LaWVI=; b=kT1Ch47IE6GzgbikpG5NTRCq9tr5aq0ETpQ1NP6+DTG2i1N7FEpM4kPIPndtmkVzoV aJj24u5XC1996OrZO5aL9he0XEcIlScnvz4tkwF84BkMQVbg59Hdx+CzPZoi14NT0hox s3rorrQOjMD8KtBstHltLWtet9A87qyq52zbdrBisv0HA6EfS9Sqk/oBftg/XEZ6h5QN YPCFF2+p2tkhq3tiv27/zAR1b3wyCKi8jWJc3GAmJ0UzMBN23/r+hMlrHHxE9Gs43E2M 8DJ82cewnQu47yhXoI239xSXpDJ+FO6sRJ+JsvMU6B7cgp+gBUG0t7yexaGA8AelbWFR qCGw== 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=pfwc4myKYMtHNH9EOVfJXOc2pPSqLuFVcY0vj1LaWVI=; b=bCbzfdnS28pW7ROVf5Kqs1adKc1wU9T61cbjUI3eZJiLgTNJZSD0uUEUvIQ1gEDqot l/Pz6RLwwftAQjkERvMCj+rjPUZVAaKGIc1cUwkSPC2ACsgTyOd/CVGUxxDI63IwVuhm ELPPCwEnzLUmVa7czvYg1QUQAKnIB5eG1lXiFyRv2bkjI//vpCzCYh/F4BJsy3fcjM4o LLhVlf8w6cJJOZKCJ9GbBkJtV67tlfY/6VlDvN7coLpj1I0mZ03bjbB7ny03qO+Hs1jU t+URqTIGInER6tRdlAboEm4WCNgiggaHAQH6o8G7Qb2RIFoD98uDWdDxN14K10IffQyy Nbww== X-Gm-Message-State: ACrzQf0ndwZH4sUoQ7aA+VZJxBw+Nsir+6EaFal3aSAH2YjHXPSH7oe9 OZYEDm96O2hAL80OxsB0heXt X-Received: by 2002:a17:90b:1c02:b0:213:17f1:50a7 with SMTP id oc2-20020a17090b1c0200b0021317f150a7mr8267703pjb.138.1666852259377; Wed, 26 Oct 2022 23:30:59 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:58 -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 09/11] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} VADC channels Date: Thu, 27 Oct 2022 12:00:04 +0530 Message-Id: <20221027063006.9056-10-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=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?1747821373746675287?= X-GMAIL-MSGID: =?utf-8?q?1747821373746675287?= 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 slave PMICs PM8280_{1/2} and exposed them over the PMK8280's VADC channels. Signed-off-by: Manivannan Sadhasivam --- .../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 9ac5d5c22832..d300d217fdc6 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 @@ pmk8280-xo-therm@44 { qcom,ratiometric; qcom,hw-settle-time = <200>; }; + + pm8280-1-die-temp@103 { + reg = ; + label = "pm8280_1_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + sys-therm1@144 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm2@145 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm3@146 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm4@147 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + pm8280-2-die-temp@303 { + reg = ; + label = "pm8250_2_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + sys-therm5@344 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm6@345 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm7@346 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm8@347 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; }; &qup0 { From patchwork Thu Oct 27 06:30:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11599 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp63173wru; Wed, 26 Oct 2022 23:33:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM697ULpSInGLv64jidMf5QeEuKWDZDrLW9sg1fr6k6KbeVRyhOpM2dNhIsfmSeCESlqZhBx X-Received: by 2002:a63:4f4f:0:b0:434:b9db:b9f with SMTP id p15-20020a634f4f000000b00434b9db0b9fmr41723578pgl.438.1666852391141; Wed, 26 Oct 2022 23:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852391; cv=none; d=google.com; s=arc-20160816; b=I0OUsiEwDHbyurjA3iAKqf1iz0LIApFvthcAVCkb1uiv1UiUBvQ4TATdPgvQ+EzgVw 7Q1apNOjwFp/r5wSNZfCikIATs8DMpFrnQXVvWlJwc9nLdhAGKHv+ZdpOonI0mOfS0jD uhWrpVZxBGNIsMWBDwPWtyAqO6z2sz8sMkahi1cacd2HV8E+XhpAoeAbkD6VeGFKxK4k +Jy22WyY2+dVLQ6lStX9PVh8lRgYd66/V8WQ2A8NNVHCV4QHfu0IXXOnMz57WCOHYBAB CCxJsuPTlaVY6bWAtM7OB72g2fqVgIoGtsJwQBd1cmQDig+1AUiq7NHRpos35pnp53YI IY2A== 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=S9zfCoPbv1xIgqLZ/LFbFJSfu67nIjBlVVkKmd65qsM=; b=fhf1LwDHT+0IsztszRsW+xf2WCnEvQLLNaVOVMJk5cwzbXCTPZ11N9srp5m34+Chp2 bbrXjL4RyG6/pNxJOnh6pypj83/kESmaXZU0Zt6FaAbE9Uk/FobP4lkONIR8M9f04MIt t5SGYPjlcAIHOCM01uR/H2hJS0HxouZcXb6Yl+5AqIQ9wZv8qFQPME+ImXrAqS9AnCTM mZTfRYrti8v9PEJatRubw07oMTQLR9z6T0kogYdgXpMzwP+YFTKM9iIy+8LhIVQhvsj3 U/BbGX+zA8s7UQt0uEAJvXTh1sQvkF5mF437WpH7Kz0r9PBfmzigk0W1osQ3mYjIDhU2 dNUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=is8Qnbno; 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 o9-20020a634e49000000b0046086f8f5d0si580400pgl.537.2022.10.26.23.32.58; Wed, 26 Oct 2022 23:33:11 -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=is8Qnbno; 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 S234336AbiJ0Gbq (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234626AbiJ0GbM (ORCPT ); Thu, 27 Oct 2022 02:31:12 -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 76A821633A1 for ; Wed, 26 Oct 2022 23:31:04 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id 3-20020a17090a0f8300b00212d5cd4e5eso5313733pjz.4 for ; Wed, 26 Oct 2022 23:31:04 -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=S9zfCoPbv1xIgqLZ/LFbFJSfu67nIjBlVVkKmd65qsM=; b=is8QnbnoChevKHiay+bv5Egd+bDsQhPC0aq/P4NjR+ALCycC/OB1OdwDPfPyntNJc7 UiheyUL7BK+kynwb3kLtygMqaeaYJvL5FRP5DzFRGxJNaPlhHFqvCiOx+pFopgPjBWM7 BXTXwmkAIJ3YG//Wgr4rrK+f41MChPvZgDOncNAazTphhD54qDyEE7joSCG9PlXllAfx QY0GxWK1smipMMGlHKIVkIqC0LDI0JCqkZ5K/O/zu7U5+Y7tW0jGSfcbXtS2bkM046+F JEuSLYoXF4m++1qHCb+a99lBt37sjPiXV6AvEM9xQdbieHAbuHNNREemBpx4qX9A54n6 p0Bg== 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=S9zfCoPbv1xIgqLZ/LFbFJSfu67nIjBlVVkKmd65qsM=; b=QkNGOZ79jww3C/KbuqRrpp1e4vHD+kqtB2NrHwwgiD8hewMFYHDXSP0sjY2SzvB5JT mh7K+Znc3DDwbem19G8G8bdjWmTgsoWw5KOfFYtJJ8fRWzLV5ibfroN+j4dz3WNjMdot CIZttM7Gr+ktsC9dRjh8XC0VXP5a3pMb0FN14iOoYo+9GHMCLRnxPYcmT4RD2pIWlMp/ t+DVwDCP5TZeDRjzEh0DrIf3hxRjnZJp3wBihsVmUE6FjomV+12KiJIr9r2KpFGYVAWi w8j4th6h+atA1Y5ahKQVEl4ouN0pmQ2EdLO4ofHpFmpYToUH0R6a25Mqnx5ZLhulFbL5 tgKQ== X-Gm-Message-State: ACrzQf0Jn4fAhDuegeOvBMs/38LYBwog9UJMwxTmILcvUuPb0kX4ZPy5 vWapqeGw6xTY6IYKu6Dy4r+n X-Received: by 2002:a17:902:e790:b0:183:88dd:1d30 with SMTP id cp16-20020a170902e79000b0018388dd1d30mr48171770plb.62.1666852263725; Wed, 26 Oct 2022 23:31:03 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:31:02 -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 10/11] arm64: dts: qcom: sc8280xp-x13s: Add PMR735A VADC channel Date: Thu, 27 Oct 2022 12:00:05 +0530 Message-Id: <20221027063006.9056-11-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=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?1747821412695073650?= X-GMAIL-MSGID: =?utf-8?q?1747821412695073650?= Add VADC channel of PMR735A for measuring the on-chip die temperature. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 7 +++++++ 1 file changed, 7 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 d300d217fdc6..babf594384f2 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "sc8280xp.dtsi" @@ -250,6 +251,12 @@ sys-therm8@347 { qcom,ratiometric; qcom,hw-settle-time = <200>; }; + + pmr735a-die-temp@403 { + reg = ; + label = "pmr735a_die_temp"; + qcom,pre-scaling = <1 1>; + }; }; &qup0 { 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"; };