From patchwork Sat Oct 29 05:14:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192359wru; Fri, 28 Oct 2022 22:16:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6uAmGl99OuAwoBC8eUoOSIylTnbpeaurGjP+6F8CEajzCDyKpqK1JoV8IdD4+qG4/swBVC X-Received: by 2002:a17:906:9b87:b0:733:1795:2855 with SMTP id dd7-20020a1709069b8700b0073317952855mr2559581ejc.156.1667020611753; Fri, 28 Oct 2022 22:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020611; cv=none; d=google.com; s=arc-20160816; b=anPIN1gRlDFjFqX7ViOl/rOTCgPPs0i+1aPwdUjaHq5qW5vsO7kgLJHQY8wDRDJeFw EZOATMyL+KvsFNbwfcXTdMOoivQadhxTAGTvuKm9HLS6klcneNkfbOmKSpjt9d65hiQD wYJzUjuscxg52CY9vQuVj1Kd1jOkqG5/5BZ3actfiQns7Eb+sHNirr5OqqpRwGb5Hadb EYeZBpbCB+67h7vG9GCuEWwnEZef76uRh6IlqoVWdVHdIEBV0kPgFBgGDon8C2uCLPB9 tPOl7jqVDakNi/0OwNFVn6ohydEssqVpLsftZSFy2trAca0a32Y16DAySXYjzjuggteU Yagg== 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=j1RKtSeGBWRwRID09716W7BxvRPtXtLZIH1JuwC4u5k=; b=JIijim/7C3zfNkPCsNEBXig8aeE8WQZv34d20oGm7I2GZEncfl7mMMqWJOlfeIe/r6 63i5o3UldvZLYwYNuVyYl8TfOahryiicDOLl7+plBoB3eJDrfSIy4Lw4JQaEdm43OX5R wXheWQ5IspjEQxchIzGO4WIINo8OHrWCkLGFva+Ls2pgc2SmThWA8WrxYcww1sAYo+x4 BKmN+Juc1Z8hg98D075zt8Iwrajg65FfaTOninTQuZddI0oL/vQgte38vMlofX2qHNpj TotB2LsLo5hWrVxCXODa7Fo8zNY22YqGLVEeMOib0R+3IHfH5mMtMV3L2tkmUOkJB8N2 LlOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ndpS8QyR; 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 hr29-20020a1709073f9d00b0078cffd3ce3esi809973ejc.654.2022.10.28.22.16.28; Fri, 28 Oct 2022 22:16:51 -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=ndpS8QyR; 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 S229849AbiJ2FPO (ORCPT + 99 others); Sat, 29 Oct 2022 01:15:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbiJ2FPL (ORCPT ); Sat, 29 Oct 2022 01:15:11 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E85E06069D for ; Fri, 28 Oct 2022 22:15:09 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id 17so2190126pfv.4 for ; Fri, 28 Oct 2022 22:15: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=j1RKtSeGBWRwRID09716W7BxvRPtXtLZIH1JuwC4u5k=; b=ndpS8QyRAYJP0b3/4viVqp4LveScTVv4ndPUVuXsb2l/nSs/V8En6yX1BNbUzYkH89 7+sWqsnsnQ708+LfNZvJLAUHlQV+DrPpb1lMYhmJDoxJ7J9Kyf65NRHEFK217C5geFKH K14o5aeT+6eqX/X6WfgyoJtc8WHz/Vj3QrKFjxHHTTj9dEPS2lqtWhSZWl2aZQfAs6m3 OvK/S9KZ5HNW+FuQWhUgDe92BzNky52aMtxHnc1p6YuGxDnYiBNM0RBu0W2WARcIZ2BI 4jigX1K5ViF3aERS0jBN34aJlauWPxVq+2MyRX3FO7zt6L7dYxhXjohmV+UMnXGgK8PC 3aow== 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=j1RKtSeGBWRwRID09716W7BxvRPtXtLZIH1JuwC4u5k=; b=B9G1JOxnlpNkHS8xH3N5bZDjB0RiIsRtjpqSOpTDNgdX86S3euZTC/y1j+N5LibPzW XKGnga9i4V8sdYb5ptUffwER+NpiCrzlJD/2MQtBkV63hwUAVAFMD+lE3kMadKHS4TLT xBzjygNytyXLb+YVGOUUiIYzZ6QrJ5yUfrX10UWdleby/KaDRoO3tKrPzSCZmzsdPsXx xrUXRADNy2oeNIegr+cShkHBgPQA2XZwj8EbUZSRidJSwU/hrOyI8J8urZgyp+S+VRgQ kD6jPScC0UQxEIVt6TyK3T8gBUBhFoY+2arLO/dqNKVAdMhEcPBpQ++iaTWNDFaK2w1f TVYQ== X-Gm-Message-State: ACrzQf1YH5hkTL1VYjU227t5xfDrR4guotz0B4ucSuY3HPO08wKG18FW PcUMMkmIu4/t22TectsIhlU5 X-Received: by 2002:a63:91:0:b0:461:f509:2a31 with SMTP id 139-20020a630091000000b00461f5092a31mr2677317pga.108.1667020509410; Fri, 28 Oct 2022 22:15:09 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:08 -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 01/12] dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels Date: Sat, 29 Oct 2022 10:44:38 +0530 Message-Id: <20221029051449.30678-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997805249019989?= X-GMAIL-MSGID: =?utf-8?q?1747997805249019989?= 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 Reviewed-by: Dmitry Baryshkov Acked-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- .../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..09fd169ad18e 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 Sat Oct 29 05:14:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192482wru; Fri, 28 Oct 2022 22:17:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6V6xHbLi8mu6TaukuYIGJVoZQ1Qh8VE7x4BvGYI0FiVwiYXiiqUo1Hvzc4f6JjgFZj7jUZ X-Received: by 2002:a17:906:730d:b0:78e:9ca5:3269 with SMTP id di13-20020a170906730d00b0078e9ca53269mr2525036ejc.366.1667020641143; Fri, 28 Oct 2022 22:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020641; cv=none; d=google.com; s=arc-20160816; b=CGKkEn3Z8L1lSpLe5g3vrFK4qSE6KJ47Q+1i0KJ5ji8/r1kQb4GaPOwm49Lm9F1z2X tmSzm/1vFYMyo/xggIyoWGQyANYY+suRW86LIzHwUaddRrvFshKVVP8JlU3iRKr8uKVY MemR4pEhboBEiShcal5xP2W4EIFQhf0BxtJIs7YATIur3CZdNQ4jnzQW7rMjCEPnkFwb Drfxyq04j0qXHv5jwU9teKZ8F4K38PW3Wliw/CL05bZc9ii71g7pNZ1LTQuu7+UbmOhx 8TUV1VsWIWJTdcTTixhXjh2xyzx0dDriUmLn3AobWLtGg7uUQXmHTTkMArdAtgXKnjR0 rToA== 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=cVB8ZRCzWlgKeD0n1G3uLPw7pOjhEAhkxGK/vJbReQA=; b=vvRQQSWU6OzxoyIAIVFk6NvC2guSY4Xs3UC7psJPHLuXU0MbjkChPt7wFu7YCgrof9 7b/EaDUYDuUqomEggqQefinO6AZKCXC/ciQkcllxiaVIFd9eIZV1g/ZoNBFF43it2QzK O83eYNIDpA9yxuPSZk40OnET2w1lEhGH4Eg2k/WI7gQV5ZYpPGjv4H0tQqIA4FqxqpPW j+pK8pCOCEQXOMycFhi8hpg2fDm0mjLhKyW4qRGIMQCpKygauV5LsRL4dDgTaGoSN0vs 3N3FU9Yarb836RU8eDhjS2xJIgvO2Uccvw40ZL+4bzISnISF/DcXtDuxvAKg6OMrlqRG P9+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hhzv9coq; 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 sd26-20020a1709076e1a00b00783ac0b4d32si747885ejc.941.2022.10.28.22.16.57; Fri, 28 Oct 2022 22:17: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=hhzv9coq; 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 S229894AbiJ2FPW (ORCPT + 99 others); Sat, 29 Oct 2022 01:15:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbiJ2FPQ (ORCPT ); Sat, 29 Oct 2022 01:15:16 -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 1346763D04 for ; Fri, 28 Oct 2022 22:15:15 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id j7so2651709pjn.5 for ; Fri, 28 Oct 2022 22:15:15 -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=cVB8ZRCzWlgKeD0n1G3uLPw7pOjhEAhkxGK/vJbReQA=; b=hhzv9coqb1SWZ5BX3K1uBbMDMv/vTikIAjMoPV6AZJIkz4yozy0vX3/P02D0JzTlkP zuppyO85dmxrp8k8bLn8fGYTeU5EpFDh6e1zX+FnocOx1t83DqmpSFwwj8e0rq6NXZLR D2lQPRWcV19B+7g1cCScQ+MVqu0eX4L0x46A7pnLXMYxZ6UW0WUeyLQ4d8SD3vLySLpj zBePLQrQf2Lcz1urdcSNEr7JhkVI3R1yiUVmpl8qG5iubU5fgWsyK9L+pKp/KQRnfoPi D2HNKV1fY2EgVU3zT1qY/3+neAm+7avSLpQFR7mxJGMdjjKi4ckh4bb8qGCAqgsvx/VB iqow== 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=cVB8ZRCzWlgKeD0n1G3uLPw7pOjhEAhkxGK/vJbReQA=; b=ij9wW8/Gr+w1VZWEgjclwXHCUnWjO6GnjAz4wI4E53P+tmJJ7PSyXbcUzbfBF6OXsA oByiEMWIDHCJtNFtL5jBRcNY3Sr+tDRVDPUQ79NwSAratfY/ABPr9IYvEuh1sstNlJKj UugWcXGWEYQYq49ts39We7xhphNnua4b0ZXfvv06L70Mx/J3YZWoOhOt8iAkN/Jl369h E7EPvDbxh8oj7mxW1kkVKpOPLIQ0GWGzhkR/eXdnr7hTQPwSsqLke4c1c7P+LXWV6hRe i+3WSNWA9O3pfWIKokoWu1hQsvyOAcfnD/PPJve5Jws04qVb64LdL28903c6Yzhbs8Gw s4CQ== X-Gm-Message-State: ACrzQf17pwu7TKEMf0mwSgabQ52t6kk/UEFDJwnPX9JwJSIgnTVn6ClU n2o9rey/REj4NTizQsT8OSE2 X-Received: by 2002:a17:90b:3d8b:b0:20d:3e7f:32d3 with SMTP id pq11-20020a17090b3d8b00b0020d3e7f32d3mr2956900pjb.22.1667020514542; Fri, 28 Oct 2022 22:15:14 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:13 -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 , Krzysztof Kozlowski Subject: [PATCH v2 02/12] arm64: dts: qcom: sc8280xp-pmics: Add temp alarm for PM8280_{1/2} PMICs Date: Sat, 29 Oct 2022 10:44:39 +0530 Message-Id: <20221029051449.30678-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997835608338817?= X-GMAIL-MSGID: =?utf-8?q?1747997835608338817?= Add support for temperature alarm feature in the PM8280_{1/2} PMICs. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- 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 Sat Oct 29 05:14:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12634 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192401wru; Fri, 28 Oct 2022 22:16:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5fUJlqVFIeiHGt7e5Tw1Fj+eg/8rWb5iKZMUYuJxgllOYp3DesJqtXAoA+zjaIch6M/eDT X-Received: by 2002:a17:906:5d0d:b0:78d:ecd6:64c1 with SMTP id g13-20020a1709065d0d00b0078decd664c1mr2411865ejt.571.1667020619697; Fri, 28 Oct 2022 22:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020619; cv=none; d=google.com; s=arc-20160816; b=RrZUMtmh3O8Fuk2JnN6U2qe/oSOo4XH3WzTVgkZDhxmBUUlJ/hCE6q8S/S0Glikm6d wHx51kABBg0/4HyYnOB7kS6+yB2Zzp9c5KK/d8hels/Kg1YtGLgmMowqBjgUbMGoySnF /mVJIzgbj+OLgVMqxKWFVAvAQjE2G16vYOUCEzyHswjIg6JK/mMC79DVwg9P8lRL4iQZ Z8DpOY8ryW3aIKroz57XqTjR5WjMC40qQGBHSW6UXSou6uE65WUE+pdbSLWB90xlYUV5 p6zB3vSgB6gBLdhlZrfX7md4Cr2e+pyZwepaz6bKwTGiqeHnn56pb0CK5NEoQy9NbFua /Y7g== 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=xvKcD3l6/5U/0zNEk8IHW582eq6MJZUcXiJ8kdr7C7Q=; b=z5JClPpUEFE9XQeEGLBL2p/JEyTEZhQUQCfcW9cuAFyQRtCA52xS2EQmEGwaRnpYzl 7YRxgmmWbQ5pgghOUH5+oUtDIoZ6JQxJ+NRtyGcq+2c7L/LdZrMM5ovus7oJhbDr9/wX IK1sFNdZS+PVc2OqnohbYxSNo9iR7vwkKVavuwLeAxaIGavFMUdrTsAe4HxqVHQxTFJV HEIgCm39yUsaon1VKGIKQoLbxidh97LscZIDqiKCLvXGiv/7bxsylPyFX491OTY0/bR6 gNbZxPTdmC/+vcvDPWw+TosRQPJPohXDmdaHS7b8E4TK95JzY9A28EXToS5VvJp2Ofkn ZNIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L6lV10or; 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 cr20-20020a170906d55400b007829f6fed9dsi874108ejc.232.2022.10.28.22.16.36; Fri, 28 Oct 2022 22:16:59 -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=L6lV10or; 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 S229456AbiJ2FPe (ORCPT + 99 others); Sat, 29 Oct 2022 01:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiJ2FPY (ORCPT ); Sat, 29 Oct 2022 01:15:24 -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 BBBF25FAF7 for ; Fri, 28 Oct 2022 22:15:20 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id f5-20020a17090a4a8500b002131bb59d61so9023742pjh.1 for ; Fri, 28 Oct 2022 22:15:20 -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=xvKcD3l6/5U/0zNEk8IHW582eq6MJZUcXiJ8kdr7C7Q=; b=L6lV10orwhzNyzEtNBShFwUInB2CLYL9Ag5+S8uS14i2ILFIWCCS2zhDdr7lAVkjuP bvVTyNH1neNo7IbPr5sSuNTGl28gNA3FM+ociY+KsuAAV7Wt+jg0PMZy+wSGjRoE/y7G kxRS8smVY6QVglzKxMrU3xWa/YT7xNyR5i47GQjs1bGl77eyggzwJc+l6EWgfU+HYhW/ s7CRX1jIe2pa6RAxIiP91PRswbrliu1SIE6Ba66YhEQ/R7n/Vsf6btwKqOFDo1oKwraj HNqKeOBR5Lu9alxiVDYZlXz8fAiiEGOG/QfWoGQKMGg/FjvNyWH57GfMxdLiI0oYoxLA tjew== 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=xvKcD3l6/5U/0zNEk8IHW582eq6MJZUcXiJ8kdr7C7Q=; b=vyXY0N+hjLpJG471tBoEQeVn62+Prpw3yXSbfWRJZUFfsF6gcdBlgWRJ/Wwk/ZtrOi 4hUhqBwE+WvzC5Ntz65GTBWO1wyy+rxdIlUkvUwWfG60sEyJvE031aXuZZrkAI5bvYiR vIhNn1uFedAAPoVabjNPJueD0spKXRse61DPe47JOQaCHdIbgL9ir4laomDSEYrv0l/v Xmg0VOxLDqv298gryXQofN8q993AqEESCJ9w2jPIL2oFhFtwfb/lHCCf7bd3pIa41ToZ r3MnuvDsAnhXa68QPZtR1hVRt9lgm4ly9dC9vqfAupVn+1IuxkgJ8jcELHDihDfK1TMn Xanw== X-Gm-Message-State: ACrzQf03YeV9Jzt4tJuEE9mrsmtS0vSMQn/YTDXCgSXl255SloHbE6Ej gF47AAf+uRiU7ThicFaf5D6X X-Received: by 2002:a17:902:bb98:b0:186:988d:a0f0 with SMTP id m24-20020a170902bb9800b00186988da0f0mr2755451pls.10.1667020519823; Fri, 28 Oct 2022 22:15:19 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:19 -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 , Krzysztof Kozlowski Subject: [PATCH v2 03/12] arm64: dts: qcom: sc8280xp-pmics: Add thermal zones for PM8280_{1/2} PMICs Date: Sat, 29 Oct 2022 10:44:40 +0530 Message-Id: <20221029051449.30678-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=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?1747997813296854928?= X-GMAIL-MSGID: =?utf-8?q?1747997813296854928?= Add thermal zones for the PM8280_{1/2} PMICs by using the temperature alarm blocks as the thermal sensors. Temperature trip points are inherited from PM8350 PMIC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- 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 Sat Oct 29 05:14:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12635 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192425wru; Fri, 28 Oct 2022 22:17:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Yv3rIQbPoc16c8+HC+7DXwUNs0nSU5qYOn753B7wtJMDujR16mITW+olXIdFWIDotwOQw X-Received: by 2002:a05:6402:1690:b0:45f:d702:9919 with SMTP id a16-20020a056402169000b0045fd7029919mr2759452edv.127.1667020626035; Fri, 28 Oct 2022 22:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020626; cv=none; d=google.com; s=arc-20160816; b=mD+OjdYFP6ZKdoN4dDByK4wMwYyx4YQ++NBwN6IZQctpGRk/jzJxw8HSzUZcp7xwhm SsGxpkpPSDTz2D83x8hDOtqsnRKeHaWeQz5b8+/tCSGAsQj3QSufSdIjw/O05KtNdck4 YYS1QWbEkp7iC6CTkCBKSsAdV9NbAqWKky+L3s/iMSixjaHuwzU/0s0uERYQIgRRm1QA mVQtS+d4WNS7glqiSSbEx6JGZJtsBa44xNuWWcaKmdPRYbIemon7XVtDPeiupYa31Sue bf2VF2dhmcKc6p2KO0bT9Y6JvY62w6xgtlkDxAyhLd3jT8LrllEZGdV5Zf4A3NEamfxX CN0Q== 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=13oRY/sJIuQu8AJysTZUoL4QlYr6gHWdZr1jQCWlKvg=; b=nC6ivcKhoEdhthpuxFDkBJAF80zu7dlBw/gEna3u+YxcVgiVDLbiqGAy+wa5MB/mAi MG/l3LGxKRY/RWcwplqwTqooagJP4GXbj1gXhERLOeoz94rp2l8DWDDJZQDZC7d2bqoZ R637JWgS5CKU3iCYwl3kkeT0Uo0LsHHAYIcmGZXDAiVPoE3AjFfy/sRuJ2z+Daxg0Lq+ sEPzDukoy8dmk2zDK6nzz1q0JAw5E1Pvr2FtfWqfky14yycBDfP8auvoLDjRsr+PomWG NinANK3gFit2cepGHhhLKYfVhK+YlhxrRWisu8RGvT2BMVQ9r/gumIgfvllJmIJbiujN jXOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WK5U34jS; 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 dt2-20020a170907728200b007707f83375bsi738722ejc.945.2022.10.28.22.16.41; Fri, 28 Oct 2022 22:17: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=WK5U34jS; 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 S229974AbiJ2FPs (ORCPT + 99 others); Sat, 29 Oct 2022 01:15:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbiJ2FPc (ORCPT ); Sat, 29 Oct 2022 01:15:32 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC0480F79 for ; Fri, 28 Oct 2022 22:15:25 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id 3-20020a17090a0f8300b00212d5cd4e5eso11627679pjz.4 for ; Fri, 28 Oct 2022 22:15:25 -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=13oRY/sJIuQu8AJysTZUoL4QlYr6gHWdZr1jQCWlKvg=; b=WK5U34jSA8tZwmx18wVECaY4LGtf/lXQmwJJQxIGbDWKIZqFcB7UuYr5N4YCs4w6Z6 7k/mCPQQJy+vfPIuOwbqdTwaw6gJZ+In/IjhAt53Ks9f02sFvEekglrv/yF46QEQ9xye D0GtVt7YOE/zp0Scr7pJ6N4e7dhUPi6zyRcUWmrpwqqJEWbRWvwmzsm05jjBVyqoTFrM pWFtNeCzN8+7NeeIah2FUAQTdLhlmJgfxX7d3OoD7ArYwlvPJe3FHWTe6ArJtzin5MH/ VnmvyRKwdK3v0Fz7kG2dErYCsytBsykOE/KLKGVm69YkOqwFgMyxfM0k8eeuUPSMqiF9 6++Q== 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=13oRY/sJIuQu8AJysTZUoL4QlYr6gHWdZr1jQCWlKvg=; b=HUJlkvOt2GuQysafUnN/KMNmpk7/xX4Sx2hPXHLBRb1Th3dzjWXO0B2/p463Jb0odQ bMmwBPTOMxJjKoBWtlXTgCzU8Kli7btw+HMWCDERibbxx1fuSwenyEbN29GPGIexu3Zt 158fC1KXgbEigXratdypyLx/g5ZZbl37LP3ZyHzVPKSHu5dvleiOx63KxBr97cLkUgZa 0y3kzLqYk1uCt7EdW9h/akVPgjV1FC4MR9j9MIOeBzptmnfsGdTXlYKMA4zoBozmeh9Y PPrIXRQ6rySXw+TS/3+kqCAnMjJm6l8HKTfFhjfGKth9teUqqt8Iz0OaDExr96T/R6Vv P94w== X-Gm-Message-State: ACrzQf3SzO/e2jDTQShQezHKfW8m7WR46oMY4Yv0Pg+Yp9YjlxXDo5y5 sfTWrEzXZVQoA68g+gEIlGSO X-Received: by 2002:a17:902:c407:b0:17f:8bec:e7f4 with SMTP id k7-20020a170902c40700b0017f8bece7f4mr2683732plk.156.1667020525201; Fri, 28 Oct 2022 22:15:25 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:24 -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 , Krzysztof Kozlowski Subject: [PATCH v2 04/12] arm64: dts: qcom: sc8280xp-pmics: Add support for PMK8280 RESIN input Date: Sat, 29 Oct 2022 10:44:41 +0530 Message-Id: <20221029051449.30678-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=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?1747997820045705240?= X-GMAIL-MSGID: =?utf-8?q?1747997820045705240?= 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- 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 Sat Oct 29 05:14:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192455wru; Fri, 28 Oct 2022 22:17:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5WYBfGWokpZWrZ5lwAUDKSmIcQeIpYrQSj/eIn0esqyUvkbidnXJAhtLuBFl5+RRclYPTP X-Received: by 2002:a17:907:3e06:b0:733:693:600e with SMTP id hp6-20020a1709073e0600b007330693600emr2364154ejc.410.1667020631925; Fri, 28 Oct 2022 22:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020631; cv=none; d=google.com; s=arc-20160816; b=Sc558G85DgfaY7Yf2AALwFzm3MVcNvUuG/EnzXzrTp7H9L7e7OJ1oKxJy8Rx38rn4Z +tE0K8qzBv9HYr84P51ltE+nEksoSSw8vCRPmuuQpzLCghuXXNs1AgFPHTPTg90DmESP Krmz7IiHtGDos9dOWjfm1HLRqu3DJ6DU/Qsu8FWyd90OdiDXiAKAbeCfjHOgydCeTXVv jWp4uY65Jot9nn0kLBVYiQkSllIb1MbOkstPYEGIjDhPtAPfTfmWQyFym5icHfvr2C5H mYvXQIFV4qIFJA4eI9efH9aoKl/mfTTvRK2xuNqjOcCuhos+brTHWIgX/TveZoe3+f5L 2ZqQ== 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=dP7gKJEnRLPQX8LHnYkF6JBv/NDORO6b+eeedw/waq8=; b=kQsKgOOxV3EZ/cWjaaGMC0ZvFmrAwZhm3NSFctKZRoBBhrLDBmuAZ1iqteflAKJGYe dJ76dlkSlE71nl/ndPHsBXyWLT8SMtFb8NEvhPQlkVuNGteIxRwdGKvGz4Eb0S5VH264 eWZBBus2Nh2Mmjgx4Jh9uWPV8Zb3WKN7wouGiEDesk+uw/ucVD9ZW9GI9zwQpDarwxuT 7m1CHb3FLTqyLDNsjeYcDS351+NuAxUbQKC64HkzKNK2NkSNZcxty10oFJDafid+zOP+ y5b3yEDtKcKV0A1A+AjWn0LyIYDxn84hUJqvgRQIlEpcQgWpQsB1AJtgTxZEESSfO2w5 QI8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Axg7TGot; 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 k4-20020a50cb84000000b0045cf1500ffesi690753edi.275.2022.10.28.22.16.48; Fri, 28 Oct 2022 22:17: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=Axg7TGot; 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 S229887AbiJ2FPx (ORCPT + 99 others); Sat, 29 Oct 2022 01:15:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbiJ2FPd (ORCPT ); Sat, 29 Oct 2022 01:15:33 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BBC4C2CA8 for ; Fri, 28 Oct 2022 22:15:30 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id m6so6486409pfb.0 for ; Fri, 28 Oct 2022 22:15:30 -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=dP7gKJEnRLPQX8LHnYkF6JBv/NDORO6b+eeedw/waq8=; b=Axg7TGotGyn7k8aGjCb71M3oWjFr7DHM06AkL471EdFh/1FkXrWac5iEnOfl+/cMXp RE8mklO7EVC9BnDNsiwwn31Z+YJ6Zgkc7cxcwKQvJu5Spcw3t8AZsIbXn5/d2OVgzNR8 9xl1RXVhpoN5Of1ur24IRlpDvR3XC3nNWmoozBfg6QWprIcyYxcToEoH958Sy7Cfolbo IACx5SRpRnqFWOKIpBameVC/QTgxyP60SStvJifZeh2yn13HhbZb2sWHIPEe/ora5IXD uQG6lh1QtKfeJnZpicY7pqcpJt1v21K83OVthxBuTW5yl9Z9R+ulTQynGZPaB01R0cPT LFgA== 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=dP7gKJEnRLPQX8LHnYkF6JBv/NDORO6b+eeedw/waq8=; b=Gl8GrxbceEt6albTsPhJwnUSQReZyoGCeWiaJbLggBw6XWqdePvugC//JJ7wuwVVmY 3RLFWf6sVEJVbVR6SbsZy20QTeLPeP9fCcCBbbg/BatDlaZHRSxL2mXKwU9HdTmaFt6z pUrZ1LC3pnYxAd9joiXhSPg/Q6kDfv3ZsUkf6VX6+dLaLO7G5tpEe3oSreB8bCjcM/UV 42KCSAQDwrqM9XV2pu2HeEJmd1S2mKU1m8A2kv+P3gYz1l5V7ialWkOXh5Zqoa/uVpRe QjfiXrHbjknwQPmYQiAnKznwajoM7T7FiJ9X4Lijpm66eVyJT0uljQsb7T8/VW3J4mv6 5InQ== X-Gm-Message-State: ACrzQf0ZWcABxGXS5/40F7of4Pw+jx7WrZJlL09rE0bRoQdxJHj79aMe SckDQUIF52/faUZ4AZMGK8BD X-Received: by 2002:a65:57cd:0:b0:46e:ca52:f6a9 with SMTP id q13-20020a6557cd000000b0046eca52f6a9mr2621739pgr.269.1667020530129; Fri, 28 Oct 2022 22:15:30 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:29 -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 05/12] arm64: dts: qcom: sc8280xp-pmics: Add PMK8280 ADC7 block Date: Sat, 29 Oct 2022 10:44:42 +0530 Message-Id: <20221029051449.30678-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997825948513865?= X-GMAIL-MSGID: =?utf-8?q?1747997825948513865?= Add support for ADC7 block available in PMK8280 for reading the temperature via the AMUX pins. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 4a3464f5e6e9..3c56e4cb5b5b 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -75,6 +75,15 @@ 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>; + #io-channel-cells = <1>; + }; }; pmc8280_1: pmic@1 { From patchwork Sat Oct 29 05:14:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192606wru; Fri, 28 Oct 2022 22:17:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5UvbLidjj7qn+NaMa8Lrfs/zA1Ei31Gz4CDcF/uEb1C/Q3Tyi/eUfWupAv0Wkmp80GoquP X-Received: by 2002:a17:90b:3b8d:b0:20d:5c7a:abf1 with SMTP id pc13-20020a17090b3b8d00b0020d5c7aabf1mr3103064pjb.118.1667020675664; Fri, 28 Oct 2022 22:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020675; cv=none; d=google.com; s=arc-20160816; b=FXw4po9hCj/t5i0KC9OgC8bLHGXbYWfectM0sHebi8/eoNfJKqVL0B5cBmfbY8Z/l0 5FWqShuHMrNOX+s3gcku1rPbkAp49Xzgsws7jtelFf4RUmzAoDvRGmzVLFhJAQmNW9Q+ Mpjb+zCD8y3y1gcvuV1F4PnzMawcFUPAOWSH6pbCdkukfkbVdsxhIrd8YNnx+IyfsNVm fuueeshNYWZvUR7NEfnid/QzOzTyEe8kkaF1oLR2KIm7uzSyyl4j2o4ojdp2lEEMw+jX k5kiKOx/AcmMlyrwcYWSrWDeUtBPJ0qZSHHszUKgaiy7ifH8cLLoKnSlgWrCNl0iQg7A BWrQ== 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=ssWG2K/L40ECA7RFYZd0Ssg9F64AzTozxaoR5gGuJ3c=; b=agCdS1E1/h1ilDTEnEeZomaMQxu8jX8SqIIjmtDYHa6t8pffkob6kFljwVoUK5HeDr DPGpXYca08X2GLT9xBwIUdyaMWIxVtrOv3DcC596sUW7tZAKuZ3pvRtvzLIBVRTX5BaR SO2bObpZcySSP2N3VS5sbMVGlCxwb5p53HMakhMkOyOmIPdntPRlb2YPOXTYkADQ+d3t 51KHmKoastdlVB6btSlOXhwU3o71v8NlP5JGSesNNuG0dLiSCsmdclq7YrEBkCuN4mpP JPrR5t5WE5B9q6QCvIb3tUK1KPWJ5zlEVrZUba7gXtsDtJMcKf3aQIYfTPL28ce+c6sP Pa1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=atqrHA5b; 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 j13-20020a170903024d00b00186c9d17afbsi977880plh.293.2022.10.28.22.17.42; Fri, 28 Oct 2022 22:17:55 -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=atqrHA5b; 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 S229948AbiJ2FQH (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiJ2FPn (ORCPT ); Sat, 29 Oct 2022 01:15:43 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D922A196B69 for ; Fri, 28 Oct 2022 22:15:35 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id b29so6412917pfp.13 for ; Fri, 28 Oct 2022 22:15: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=ssWG2K/L40ECA7RFYZd0Ssg9F64AzTozxaoR5gGuJ3c=; b=atqrHA5b6gwjGelKryJPqzyTJ/MjFn6RwViURNGVYZkpPqP1WmK64iKvymNtbOQlnZ mbKjZPP+2vpChHNpxOzyySCMtpI5epMG62Op1NivSB8eAPfiHiEDKseMjyCrLlv77Yjt GOVk2vklEAdyMrqx4rJ981aK+5zI13WoYld2Z6MSweGc/avsJG7gL7jj+p7zhB5kQwd7 S+rSk1uN4Orc5P9eoOR4Oiz3F2C3UINaU5Jvr/XYji1FvzcqtJb43FGCFYu3rhyhXub6 B6at9pHCGdJhjDXaVmsrijjlm6O7SIsGuUbwmw/kQd3gcoKs4GG5ai7YSv/0ZYA1vykj uO1g== 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=ssWG2K/L40ECA7RFYZd0Ssg9F64AzTozxaoR5gGuJ3c=; b=JR/aTOim0VxmSthsXMzYxaaG/oK2lPlk+JCw/e4ZX6151Z7e71pK71jrcpf3QoOkWb +ujnNfWCmXtdSmW5ysYVFBeF6iT1Xh8g0g9DpGWZji/2IE3rDsYKUJCSJDGTCdOskI9c We418mqZmSGgWqHjPNEiCE/KbBIl6Cp+BS6z6DeaEc2qGg9ezFeHSGeQDOoK9AZl25h+ sGkn/TJSMoVGTI6TnWmI2wiwJYr0Q2OS/YDXwSqjI33SdEYqfxF0Z3CTHoD30rFVp+sl 2VzEn0UjQo2DgZWhF24IndIVA29VHYkwnHy8ocMDajVrJkWaUYJT9YL5luC7TZHncm9Z FOmQ== X-Gm-Message-State: ACrzQf193ZCuATpTZ57dzb9VPZAKpv4TE0UXKGIiMPMbt5QhzXgkBLJw vU6nFoZ79dAb7btd4Xiz3gynILMyYL6/ X-Received: by 2002:a05:6a00:891:b0:565:85a7:a6e with SMTP id q17-20020a056a00089100b0056585a70a6emr2653028pfj.21.1667020535231; Fri, 28 Oct 2022 22:15:35 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15: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, steev@kali.org, Manivannan Sadhasivam , Krzysztof Kozlowski Subject: [PATCH v2 06/12] arm64: dts: qcom: sc8280xp-pmics: Add support for TM5 block in PMK8280 Date: Sat, 29 Oct 2022 10:44:43 +0530 Message-Id: <20221029051449.30678-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997872187977685?= X-GMAIL-MSGID: =?utf-8?q?1747997872187977685?= Thermal Monitoring block ADC5 (TM5) in PMK8280 can be used to monitor the temperature from secondary PMICs like PM8280. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- 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 3c56e4cb5b5b..6f95743bf87d 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -84,6 +84,16 @@ pmk8280_vadc: adc@3100 { interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; #io-channel-cells = <1>; }; + + 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 Sat Oct 29 05:14:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192496wru; Fri, 28 Oct 2022 22:17:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xMXbFCRY6Chc7brYHCvMvTMpAF4MWDwU8E7YjVOFhqRt73A6VV2ivUG+f+UrwAFhHaaGh X-Received: by 2002:a17:906:db07:b0:77b:82cf:54af with SMTP id xj7-20020a170906db0700b0077b82cf54afmr2561584ejb.666.1667020645755; Fri, 28 Oct 2022 22:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020645; cv=none; d=google.com; s=arc-20160816; b=Ru0F1M3e5lh5SyDqDh9OmJy9f6aGEpYUmr0E7dWW6gz6g4HjfnawnIgcAJZjRkoQhX +WEs3xrZ7Zsv2QL1j4dT7oEhQrjwVOoihAG/l846Pg8NoQQmwE0xyloXXigiyjwIDVwR AODX6eNK2PfxmvykSZ9hedd6pLBhZM11E2bHMsnmzhljx76PQ3IYF4es9g3AAHVQOWpC yxp92kDvHwUijKpt/Cxq59277sL1kqRvI7Raq+w8/Sw7s1mpi8UAayGOCHUvDzPQJUz5 lgKbm1vAMaycLZE8WAaMfoi1EIOejsjPvtlCD+MLkb1pTK8BmxrizN653dppa33/HYMG ZBAQ== 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=p0QqRP1D1eQSgHWesXmi0SdTGcBYrL7MF+tNbo4fAQs=; b=N0CINIEKzG0gBi/oE/ZUdLTdTlDHlJ8ZutPYpMYSCaF8q9ewRSKCmznSQkvY4kq0jk PfoL77FGxnESb7GOYR/rTAPXhMtXstf4XinpduPpranEM3u4OPmrdBAARmpmo8B/n/y3 o3m1VsMxgCi+E4OY4c/B6jYWsbG+WXSLDyoG1W5X6Bn44G2IC6DBLgGQcoS9xRW5Jj/r MQQ/AzQckbdU88Lcx1jpqEd1oxH04cul0goiv7cWAu4U7qUJasXz7aoN0IIvvLo4VlCJ 1PJv/oDhjIEqh0SP+lBzsNESNfqUFT984x4FQ84jKn1Jd3KKAcL05Ios73tWehcuqiCc 1E2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cWYOevpb; 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 dp21-20020a170906c15500b0073d8e26e78bsi760416ejc.960.2022.10.28.22.17.02; Fri, 28 Oct 2022 22:17:25 -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=cWYOevpb; 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 S229955AbiJ2FQO (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbiJ2FPq (ORCPT ); Sat, 29 Oct 2022 01:15:46 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B51351C8D5D for ; Fri, 28 Oct 2022 22:15:40 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id z5-20020a17090a8b8500b00210a3a2364fso9280475pjn.0 for ; Fri, 28 Oct 2022 22:15: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=p0QqRP1D1eQSgHWesXmi0SdTGcBYrL7MF+tNbo4fAQs=; b=cWYOevpbrsYCKJLBBbZ0cVHERCaVHtsvJQDWHVZWQf7TNl6zP1+7pOfFeI41QS9CJP HJjLYtUN8QjFhuLXgDHJ7pqVv6XU0+mQNglkaLnz9jsscd7ODrz6Dj4gd/NyGngvYst/ gMAZOt3mqkmzerFFzEJG1Y4jS7XYia7sHRF167PRssMLvcHpXaAy4y9swN25wFedw2jL znQJT+64KX7BUCVqItMiwVVxep9DV6Lr0M54LaaUFHWJbuHGzPr6C65xigYD26LgvboJ zH3lFExzXPIzZcKK4o3NCFevzkUmGXf6NRJa/vGNxNxg2widx2yMTpNfsnwxq28xvZ04 DucA== 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=p0QqRP1D1eQSgHWesXmi0SdTGcBYrL7MF+tNbo4fAQs=; b=JjyS0aZKsIqMaeeSobLZxhMm8t7+mY3k/0Bi/GdK2pZHsIYbczlu+zuJubwWjy0/TC lpZmG0VQToogoc24qTj8v2GLBwrQ7dSzl4kVHFcVLAK/49DUKl74apfhD1LeGEqK18qR O10SfKxkaArVX3C2McHj17BPaKkkyIdKcTulkJpIbWmGRWViG9uu0Ddkw+XpfigeH79I gevqEEiIA5m75DttCRS7X5eO0lwSH8xE4PMzNOtd0F48tB7LlOi29t2Gkc/lHJHiTNMk 20++6xWhoKixfgTpTcYdmKWi0qZOC4N0IjdENQ95zwkHWUHFj15BGc1/v57uoQplE+C9 kZCQ== X-Gm-Message-State: ACrzQf3zWibpvYdMWo77GjoJcw1Jz+7ObsSI4f5pd1WucwPNb3ac8Rm4 +PeDDcMcWWQ/V8cd+4ENQUtkgqy5Pk1q X-Received: by 2002:a17:90b:4c84:b0:213:5fe0:6732 with SMTP id my4-20020a17090b4c8400b002135fe06732mr2924359pjb.219.1667020540399; Fri, 28 Oct 2022 22:15:40 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15: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, steev@kali.org, Manivannan Sadhasivam , Krzysztof Kozlowski Subject: [PATCH v2 07/12] arm64: dts: qcom: sc8280xp-x13s: Enable PMK8280 RESIN input Date: Sat, 29 Oct 2022 10:44:44 +0530 Message-Id: <20221029051449.30678-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997840754162818?= X-GMAIL-MSGID: =?utf-8?q?1747997840754162818?= Enable resetting the PMK8280 through RESIN block in SC8280XP X13s. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- 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 Sat Oct 29 05:14:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192541wru; Fri, 28 Oct 2022 22:17:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OuQhzSMFJRrSkBryewhK4MXqOzGuXeBC8UbZu8jmXs9PB79gA3Es11qvYx3hX/TZAwUqA X-Received: by 2002:a05:6402:884:b0:461:1ed:579f with SMTP id e4-20020a056402088400b0046101ed579fmr2716254edy.413.1667020655602; Fri, 28 Oct 2022 22:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020655; cv=none; d=google.com; s=arc-20160816; b=rFImGqwJ6jsMPKsw1MC/MWNjNo3pxxLdQOHwDOSsOpJziMvVmE/9Q6Otsd6ac9j1J8 D3jtVYwB3442PjlgDlfSISElgY7zAfgcmFipfwvMvUXEnmmewFMWY7+AdrRuPo/hAAxl QFOI/oWXJD2+XH28mIfr9E8R+RMnEhwrv0Rbaloh9rRjP2EbKpLEigm96xvm7xMAhTll 6toCk7Q7U+w0n7P8yjjC+S6nLd2TvhceLGNMzsvgoPCY33FP2EEbke0QFu5ei0ESU66s MSfvBj6O1M2kFgELhX2JqD7FtcDkAnKr6TmAiIwCl5FG31aomRwb2l4mf5roBYB4fu6R 9V3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BHFiT+TZb5B1WGujexyeyAlYCgIQjWunzDzNjtB/Zig=; b=NXIVZj+TXqQ2Kd7zzeMt155aYZtVhjrNcAG6i1bOAdVxmp/tJ82ySFKYw3dlrcLXjt IYvrQCvBHOqrGK77Xyy4kFrv4pqq7GwdV48ar7TRIGaLYxLCdfhqMgHz8RDL+4pl1Hec A9+ImaOMT9zTM8mt1LyMVOIEI4qWII71YhnzWkZws7quzw3nJsfO2ieixBTqoYjigRX+ Lo0q8slvbXhn7l4xa0Pqhx/vOKzL7n0W7E0wIgvZnC7t/KrMGYJ6um84FUiog+puwkB2 TS0yhDMXCQCWUsCF3JM6OiuAwldA98pPcRRdyCNGcXTgY0Qxdulbu/KXRKemRaasmaEQ 6HLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JdUNhwrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a056402517500b0045938ab7129si624087ede.330.2022.10.28.22.17.12; Fri, 28 Oct 2022 22:17:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JdUNhwrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbiJ2FQZ (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbiJ2FPv (ORCPT ); Sat, 29 Oct 2022 01:15:51 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6DD51D2F49 for ; Fri, 28 Oct 2022 22:15:45 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id r61-20020a17090a43c300b00212f4e9cccdso11613885pjg.5 for ; Fri, 28 Oct 2022 22:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BHFiT+TZb5B1WGujexyeyAlYCgIQjWunzDzNjtB/Zig=; b=JdUNhwrzxVYK2G8LaQKWsqiOd9eEsYUrt0x1ktLfZpKvzCgHclt6lcmdXuATw5K0Zr 9scTUH5/Ya9g5YMYXYw6eQ9N0uBcOb57RsYe09tsJrUXse1Q6Wcg1DNu8aKclocM7pnt OXVL04hgbc5mqCeHoJHcwUp3RfQiVrbacJLQiXgiDS0GkUsJcsYExZ6bq2vKO8gui9nx DjTk3Vtw1Ok3N2K7xDkVTGTCtIEhbFTrfuNCLtI1Qmda4a2+/ngjkOH41FXdhVQ6F3am Dk9PUMUZBfrfaeyML7WtavBCfvU5KTdXMxkEfdKSlAc6jdZSb0LjKFEo16QSG6L4q/h3 w7uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BHFiT+TZb5B1WGujexyeyAlYCgIQjWunzDzNjtB/Zig=; b=FWhG+eb2noKb/Swc/Aq/MncJ8vSM0fNa1nJSOmGzkbZIFqw74+a7AfarIHem4/g4DD k4niN5rSm6NFVEUC29Rj+sAQM0IRqsTxpBDDOQcFdymUiRNEyBakUY1j/BjdsDxwNfge +SMeysQ4d/cNGtLykCYbjfv0KSxhMMA7aWejlBmWo9WiMS9pZCjxnnzNVQlZLNIDDE98 NvNwlb4tHejG0kqFwudkq5JxwoYSEOIemw31He31x8fRTn7x1Vj82gHN19IgWhkWFnlh +/CgQjEpTviWr9hvsqk4LZFiYw/yObCYsVvCI5GGGdxMItMlfqbNS2WO1GWxRjTMHopH w7yA== X-Gm-Message-State: ACrzQf34e6lQ0OjTfrFS3xypCxFx9pFUhSHZiYLipum5TJCPP39zojED WrWUCAqQyKLQ0iJrEFiQVgCI X-Received: by 2002:a17:90b:4d0d:b0:20d:6fc0:51 with SMTP id mw13-20020a17090b4d0d00b0020d6fc00051mr19854994pjb.10.1667020545210; Fri, 28 Oct 2022 22:15:45 -0700 (PDT) Received: from localhost.localdomain ([59.92.103.167]) by smtp.gmail.com with ESMTPSA id f5-20020a170902ce8500b0017e9b820a1asm363150plg.100.2022.10.28.22.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:44 -0700 (PDT) From: Manivannan Sadhasivam 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 08/12] arm64: dts: qcom: sc8280xp-x13s: Add PMK8280 VADC channels Date: Sat, 29 Oct 2022 10:44:45 +0530 Message-Id: <20221029051449.30678-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 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?1747997850544922092?= X-GMAIL-MSGID: =?utf-8?q?1747997850544922092?= Add VADC channels for measuring the on-chip die temperature and external crystal osciallator temperature of PMK8280. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 6aa8cf6d9776..18315743313b 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include #include "sc8280xp.dtsi" @@ -173,6 +174,23 @@ &pmk8280_pon_resin { status = "okay"; }; +&pmk8280_vadc { + status = "okay"; + + pmic-die-temp@3 { + reg = ; + label = "pmk8280_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + xo-therm@44 { + reg = ; + label = "pmk8280_xo_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &qup0 { status = "okay"; }; 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: 12640 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192592wru; Fri, 28 Oct 2022 22:17:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/sdagnBjgxkNrENpSKpCnhMlWxdEuYZ6NgHjbW3VChQHAO3kGaP1zw8+RcmrbUW0eOY11 X-Received: by 2002:a17:907:97ca:b0:791:644c:491e with SMTP id js10-20020a17090797ca00b00791644c491emr2437678ejc.555.1667020672397; Fri, 28 Oct 2022 22:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020672; cv=none; d=google.com; s=arc-20160816; b=b2Px2GcuVjcZ+yK+3cNv3M5Gi66E6c5JDYQd1RScuevmacz3z+kPd0uV6CIHN+hO1N FUOjy9uWhRiwM53zR4AQsCZ8IRqcLIIKhq1yIqNA+q5X0+Fcb42Byqyd3BrbcI+JPsZh 0HqQpl+Nz0OyEuQIwyi9r2nEvToKiZXiv3lrZLn2rrAkZV5xtt1PJv0m1IRAWMuY6OEd qUkgRqLypPIdEwa1L1rJTwvqKmrrRuEPeNur73MnV68BMybZzoPcMrAmM+JhnpQEO4bE NSyGIZikoLHz1dPQcmHxBcudZ41vlb/WVfNvhiWXaxGoDnksveOMZ3yIvSA+juvSc+KP YaJA== 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=lacf58udOIotYpm9O1+kpxWuSMQ/so9proy5x8qUsKM=; b=gkhEdzOQCV/B7ZEfz67psRSI23WZJEL2nJfJzbnDqyg6sK1tQkTGziOjavrSMs3U1A s+pZ9GBkXIrx8+2uF5svm1aJZY8leCDW4l3jVCB1UdMMFONkV9AFVCrDjYY2D1EKd8GR UNox+McvUZbwwvZSrZBu5ee83Grvoo9e4bw8Fpt7S7hG7anAbBqkKkkG+St053QVMAHE eezlEH2znBruvOXpmpBrAkWCamWR+fXOnykiwOTRCluofTREn2J1cNHziC7mvgYVhjsK iW5yu3SLtw3jnsei+be/iYfTPM4/FCh1BjmFow3FLBUtc2UeQStXhRwPgwb9rWPguv1a ibsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BKW2GRUY; 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 d14-20020a056402144e00b00462dca18096si668996edx.520.2022.10.28.22.17.28; Fri, 28 Oct 2022 22:17:52 -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=BKW2GRUY; 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 S230027AbiJ2FQ3 (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbiJ2FP4 (ORCPT ); Sat, 29 Oct 2022 01:15:56 -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 5C9F61D374E for ; Fri, 28 Oct 2022 22:15:50 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so11656332pjk.2 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=Lnrnz9gfxrBhanM38qCr45kiuG5FA42gXk1AtMXCPFbfpi46YKNb41s6NyY0uS0IRR mDC4RQdwF0eLBptNk4huH6rQ9ELgDZ/y3mL0vOilH6co+Mik1qMRL10wq/52FDQ7NQPJ KtZwQJ5y9pWu0muN2M6n3mpJBxb+kXXPB2tWHG0ZXp2MleMWKkHGR8B3gDM2BWth+WMs /6+qVpRvW/PQRI1OYQdPCowdOIcGTyjzMl5bgTLlhW+DE2XZWvX5iU5L7E/5tAECt/pA ec0VPseietYG0BFSUmNPapqOVIRditOyOOqsThYaLbYqyTku0IYbBHGNRC/thvRFX4kM QPMQ== X-Gm-Message-State: ACrzQf2ngi9pPa6EUaGZK8xfrthkqAeYX2oPEp34EE8AylcH1/QLAeYt 8uefjRzNswlj2+8y5uXb9OL3 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 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?1747997868698458101?= X-GMAIL-MSGID: =?utf-8?q?1747997868698458101?= 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: Konrad Dybcio 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 { From patchwork Sat Oct 29 05:14:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12641 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192596wru; Fri, 28 Oct 2022 22:17:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6TJZ0r242W+W+P6JuZFr+SZnvHsouP0OHE/TtHAfAFoSJ6mN8TJq8xde6bTyue6+lMPRwM X-Received: by 2002:aa7:cd92:0:b0:456:cbb5:2027 with SMTP id x18-20020aa7cd92000000b00456cbb52027mr2740291edv.384.1667020674124; Fri, 28 Oct 2022 22:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020674; cv=none; d=google.com; s=arc-20160816; b=qh9920u8XdL/xHHIe7wbq5l4d6B+MAlv0PZHtCBXvYVDOoRUGH26Oy5GYvJNmJhkOs ADBpgXI9qnZKXNzFAztwwGwkKHkNVufD6g7LsCipCajSK5DgiCS8qqzaEW8qnkdB3Uhd UsLQfGsF7VLJgJvR7kSXjlMkgBmJ518d0uybaUsu0wlp7xsWQ4Aj5sslj1uAyyLzgkgd gDAqbsvxcl9uISoqZTbfucySy0omu6DeVbFgYyRBAlcvzmOmX5ehlk3rsTdhVSaUkEGY Mu/3sGtpMda8pS70IDHojsM2rGC7+X9FDW5MAcislr2bbuCn5wyrj6MCinH90nPOsStK Z6kg== 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=oG+CRaVcqYBbm4D8Yfx9jHp7jDERA+/Wzp95brL2NNE=; b=faQcShEkPB2FLRxAfRWqYLLa9B4d5FdTEdhy1b9m78R0S8W+/A6Yzf5w7Kpag70JIm EFttSMCnPeXZV+NgM4R2svtKRGdDOXrCtL3nMULQpQ2K6c1LYzMLK4ytBfmKs3Lm1xzp Ay874GjXrCYci1DNSdrFhvVht6vNSBW/fdMzbYpA5kT5b4JWYgfJC6EpYRU2DJZIw5i4 anfNgawBlbBct4wbWeoOcxdj6iLRoHP3/jEs8hSEsB2CCRDD1Xq3HJ69xCqc5FWP8/TK g+ZhyyStOCDKh4TX7Nrctic4xYZZiKivojey4R6jTQLADWBXBSC5KlWJjE3aqUpccO2s /tiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pcDQZczN; 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 s13-20020a50d48d000000b00462b06e316bsi739782edi.537.2022.10.28.22.17.31; Fri, 28 Oct 2022 22:17: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=pcDQZczN; 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 S230031AbiJ2FQe (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiJ2FQG (ORCPT ); Sat, 29 Oct 2022 01:16:06 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EF6D12908B for ; Fri, 28 Oct 2022 22:15:55 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id u8-20020a17090a5e4800b002106dcdd4a0so11655329pji.1 for ; Fri, 28 Oct 2022 22:15:55 -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=oG+CRaVcqYBbm4D8Yfx9jHp7jDERA+/Wzp95brL2NNE=; b=pcDQZczNVmyzX7iGp8KQ6mKNbirS/2sewuyCEzhqgxSUsicd/GOQF8ZEKKL3UdwT4l j9gJJJjsXtPFyLLdPJKUFgWTXrEQbVf0X9w7q4P4Oor5V+ckElY0Hof7xgo6MUx4qt6R +QDhO2s8/b3wp/rjpmB9rmLNoPxJDyuVZO5EqAewJxsKP3zzK5+z85EPkHX+3a58k0Tr W6AGPqj8zLU5U2AsbR+Ta5azL3PWIStkGjZycej1OyMjbjkEhTVp9N7nrkPcoP24zVVJ CshMUW3dZ7al3JqGaxxuz68tcFyyfdndCHUN37oibrA9ZSCAvC5q3Bl5rqks8RA4zBba 3iEA== 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=oG+CRaVcqYBbm4D8Yfx9jHp7jDERA+/Wzp95brL2NNE=; b=OZFwsfuzvMx1jrtb2GL5JJCAxrb20uCqo8oxyb18f4fqy/j6zB5Z7I8YQ4RBH+bUSY hFaXXNbKdWHbT0FpKIffrpbHc72Bkb5tc1GXzB7duD3dcuIBF4rsMDE5oSZLslewl8cL Z9ICmwl960S3drshl1ruyqYiy2owflwPEMgZ7A86P/vGvfIp0hnx/vLNkJb22yvUHaim MpZ819ufB6Qv/ft5bRpILL/7+jqSKheL4gCALd8no0U2b2sFv/UhNHWzUeidLQhuHY+C cwSiVeRHRFR32MWKopRZNkEsR9B646qch2CJapH6eStVCmTEJIEc4CoK7HE3cPjcNSMR f7hw== X-Gm-Message-State: ACrzQf0PJx9WaB9utI/Ul3cGu1szNSbnbwVRi1kb1TK1DnP025BTB/m7 jLwmOKZdeIZ/1FYeRvFZ3jOW X-Received: by 2002:a17:902:c7c4:b0:186:5ebe:38e with SMTP id r4-20020a170902c7c400b001865ebe038emr2685918pla.33.1667020555301; Fri, 28 Oct 2022 22:15:55 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:54 -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 10/12] arm64: dts: qcom: sc8280xp-x13s: Add PMR735A VADC channel Date: Sat, 29 Oct 2022 10:44:47 +0530 Message-Id: <20221029051449.30678-11-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=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?1747997870358386429?= X-GMAIL-MSGID: =?utf-8?q?1747997870358386429?= Add VADC channel of PMR735A for measuring the on-chip die temperature. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- 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 250e1489f029..9545b471c2fa 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-therm@347 { qcom,ratiometric; qcom,hw-settle-time = <200>; }; + + pmic-die-temp@403 { + reg = ; + label = "pmr735a_die_temp"; + qcom,pre-scaling = <1 1>; + }; }; &qup0 { From patchwork Sat Oct 29 05:14:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12643 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192767wru; Fri, 28 Oct 2022 22:18:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7F4pYf0nX9Ffw9kvppKYYl2fpkgbIsjHEgQs5C05D6XTb0BZCEwROQh0LZl+vrd0xs1Q0b X-Received: by 2002:a17:907:2710:b0:7ad:86f9:9bad with SMTP id w16-20020a170907271000b007ad86f99badmr2557387ejk.32.1667020712407; Fri, 28 Oct 2022 22:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020712; cv=none; d=google.com; s=arc-20160816; b=cYxVmNPfzmTY5k4tnt9yHxponFqEmPOGhz/CQLelpo0OyviNPn3OLB954Pl72vO91+ gXtErRh+IukZ2ax0JlPxQqfDhEsopXwrqPl0dje5sHmHLoWvWzXyO93eMiKpAPIlvtmG YGw0EQ//defe2Qm1fAxzCAwoSYzSelB5qBVWrS0TZtsLJMR6Kfn0PGQ5aD1ZzyiyxH3d csTG17djEcjusqnSDGWoTZN6XnNBzH+P1zI9MKc06f8V+znwCGQl46lvYEWEzKapDm7F 0WkXSVNUSADOB5Jl3VELJbOQQPCYCMD3Q/b/j+ULNn0/UbvyyRe1gmD4xtn4xUKvNZL9 n6+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TzuhQnk+/5ipgdw10iW10n80y2XME509RyIjOUqWTgg=; b=gIWM2bTyVQF3hv5YT6Br2f3lbiNKvykE+C7NSf8CZBpjB8izmEvp52JDGxFl1JbaAK GnUTJ50YpxNg8kXdPCgzT5QlIIb2RlkxMcSUA/8DrGYLtYDi0/WjNg87Y2dxxntkKlay FwmNDMOuU9RAFaod1g3z93RsBfXIxn8N5Slyu4Sf/jtd/SSK8jOWoyiHEHq+mbIfYPs0 ijWyDBlhiFygmQi+S4OJ7w0TlJ+W2whg95u88KdVdUtK1tKQdbTWVPwzmo9Z3DVnfsrj LJ9Tl4rFcr02meeUJrb/Oo1ZtWZabiXXtDhNbOouvFitH/JB+UGj463yI5j6XDiaeHas +hZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Q/BIg5CO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a50ea89000000b00461c531d8casi717753edo.305.2022.10.28.22.18.09; Fri, 28 Oct 2022 22:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Q/BIg5CO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbiJ2FQp (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbiJ2FQJ (ORCPT ); Sat, 29 Oct 2022 01:16:09 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D0B1D441F for ; Fri, 28 Oct 2022 22:16:00 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso6213421pjc.2 for ; Fri, 28 Oct 2022 22:16:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TzuhQnk+/5ipgdw10iW10n80y2XME509RyIjOUqWTgg=; b=Q/BIg5COsaTyRa/nKSpieFWtqi2CwAglz87e5KBzp9qRXtyTKyg8+dl8LNWihwEYc+ jrKl+BxcFx6OIc/HEEI1dbn3Ggs6/EmR+rcKqcFvC1PCMpI9aZ+y/I60xbOrKnfxj2gY C5AVyekl5RFExSQEwX+5sU7wyp2054ZOZm+/7LNHL/iE+FZU7pRiGDjn9Y+WF69O99Vw 4tZLGzVabUT2RxmynSt+d4d+fhtuJaKkjyloHQjYAH0KdutGr0yY61ZHx2uZGRL3okch Xh+9b6xpmtbhp93lPg+9AVTcic6T7iaYynAh+20VrZtywIHNOAF6OK8xhjsOkkv4N+vG B9eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TzuhQnk+/5ipgdw10iW10n80y2XME509RyIjOUqWTgg=; b=eBvIkD3YtxPXn55XSCHk9iWySRI5Cv3deoFDKhRqmu5tD0ARwx/Yynk/2U9/fJVVPr BvzRjU2g7rGrdf+4j7tWI1j31WhDCDm5ncf0eNqKVgbUSHwhCds40ZsngZN40d69bmvv 2otEd73kmkodtK4xb4jlyHIj2CNjbFzoDjqa3NhocZrYywQB8aqgXjpW3ISOSrU4RSol f3H1Be49sjSmRhVDk0fV+ahhHQUaRmaz5VifXvFVdI/89xvO0Ht3gfXJV5OEc7diiDSJ L6fbSviYUoeFg/O3A7TYsQcbFZpMgHuF/h3/cxmEfHU4eNOiLu0mETSVGvmHHfXjlBsF 62gA== X-Gm-Message-State: ACrzQf2UOW7NoXKXcEGH/YaQQGeAbNphPtOBrJBD9U6WFDRRb6bSk4r4 wsnVTOO/UmBVVi58zAwL6Qcx X-Received: by 2002:a17:90a:1150:b0:213:a42b:a734 with SMTP id d16-20020a17090a115000b00213a42ba734mr3010837pje.163.1667020560232; Fri, 28 Oct 2022 22:16:00 -0700 (PDT) Received: from localhost.localdomain ([59.92.103.167]) by smtp.gmail.com with ESMTPSA id f5-20020a170902ce8500b0017e9b820a1asm363150plg.100.2022.10.28.22.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:59 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org, Manivannan Sadhasivam Subject: [PATCH v2 11/12] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} ADC_TM5 channels Date: Sat, 29 Oct 2022 10:44:48 +0530 Message-Id: <20221029051449.30678-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997910441848302?= X-GMAIL-MSGID: =?utf-8?q?1747997910441848302?= Add ADC_TM5 channels of PM8280_{1/2} for monitoring the temperature from external thermistors connected to AMUX pins. The temperture measurements are collected from the PMK8280's VADC channels that expose the measurements from secondary PMICs PM8280_{1/2}. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 9545b471c2fa..ca77c19c6d0d 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -259,6 +259,74 @@ pmic-die-temp@403 { }; }; +&pmk8280_adc_tm { + status = "okay"; + + sys-therm@0 { + reg = <0>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm@1 { + reg = <1>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm@2 { + reg = <2>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm@3 { + reg = <3>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm@4 { + reg = <4>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm@5 { + reg = <5>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm@6 { + reg = <6>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + sys-therm@7 { + reg = <7>; + io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(3)>; + qcom,avg-samples = <2>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + &qup0 { status = "okay"; }; From patchwork Sat Oct 29 05:14:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12644 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1193195wru; Fri, 28 Oct 2022 22:20:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pM/SlHsxC/joYI+zF/atAQ/BCNDxYrbltUTk2fHBaXB1HYo1uvJvfEtltncb675uJ1HYt X-Received: by 2002:a05:6a00:2402:b0:52c:81cf:8df8 with SMTP id z2-20020a056a00240200b0052c81cf8df8mr3108919pfh.60.1667020802756; Fri, 28 Oct 2022 22:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020802; cv=none; d=google.com; s=arc-20160816; b=NwYD116VHpANLYP4sMjVCvL+jg7TKr3J86a1opbpWwZ77zY/6gpA0tPuTiTnRQUOkF wzM+wRpf3Hae2IrWJPu8EQJxpQ6JlYhP5gsvyIWnwwnnmFXQf1Aq4nkiwUjGdcm2hbl+ 8PLlT4pH+qG7oOFE8AUszpx4zvDEcfiyVG80pRRnADe1rVVLKfVpuCj/Ijq8/NXyH+Or VCFTjl3KH8bj5ys5buhqbBdjqmRp2BGt7pS0zmfSGjB3tNnT5olRcpEv55z6Gxt8MTqA gKCzqF0dL28t6XDy0axiN6e9xjjlPDeOyldMxbAp3nUKJK+Uh6VQleF7tSV8HoMiuVqq 0BTQ== 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=dpyWOsS0FBSOmnylpOdwOjAVxC2jYFz7gdsUBGPUnb0=; b=MOzb/uy8GPxC9bfgXk10Ke3o1t5XjGfDZrg6cwIaeLyVwAGrEtsUAYEyNRTkKZx87X OlXFZqHZVYsJMSbaDppkCSHRvX7om2DQTuP/hI1anE1UJh2dBho1PWQWKIr4MgIm3OBc V76vjSWI12IT8WYvsbkA8+OzcZ02Tl7J9dEwbkp5Pa67DcK8+nCOg1/nEuR+s4Mke09Z erns+hN8r1pzBDetA6ZszelEkUNaZwrYHTctiem6U4njANqQWUMdi/ZkMYxBrdNCJLBl rNzq95swZo4vcHZgDym84tluj6grenTyQeOJ0QLOlhJ8tQINiDABBY2qwoTHkfQ5TjlB DVuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qzoXpid0; 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 ok5-20020a17090b1d4500b002006b213af9si860263pjb.32.2022.10.28.22.19.49; Fri, 28 Oct 2022 22:20:02 -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=qzoXpid0; 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 S229483AbiJ2FQv (ORCPT + 99 others); Sat, 29 Oct 2022 01:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiJ2FQW (ORCPT ); Sat, 29 Oct 2022 01:16:22 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C5C9AF196 for ; Fri, 28 Oct 2022 22:16:05 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d24so6545446pls.4 for ; Fri, 28 Oct 2022 22:16:05 -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=dpyWOsS0FBSOmnylpOdwOjAVxC2jYFz7gdsUBGPUnb0=; b=qzoXpid0DCIWb2RKt8w0bFIHln3U61B6bnegL/kf56vwhNn+IPJnNLiX2Mubujj/P4 /Ve39fktovVrJt9csGeFLKBuminWK8xrLY+Bfy6A0xh3jMzNAiOcNuEXF4EfQcJAQTra n+A1GyiXoeh4zqTLKeMQmHr1qpmGhEsAI37wq13R6RCWhYWem9t3KnVViOayMYrHjOOE zpnZlCxtQQtsXkJh1OfbcMp6ZWdM8xTRRNZjOeVguSEu1RUQgOFTQ69KaB1gg5BtGbpZ VIqbJfHz46kKTO4OkxjkVkAwdlFMP3GGzZ/UCxXOhL7go4v7LDRQP55GBa7g+spy5tu5 kYSA== 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=dpyWOsS0FBSOmnylpOdwOjAVxC2jYFz7gdsUBGPUnb0=; b=rvXfoAVyQkU8RzUKxgbrAj527coPq+QP9Lqkezn4tmqzsZ2/hpTFBIA0YhFMYydCxt XoMyqCN4DXbgb3AWN+2tSX5az3P0J5Y0/O7lVmNzI72odeq26S/OnnW/mpvirUGkYI4S RSLWzS37NVxZfIHBPJDk/JtkPTHH/5g3LS8XR1yT2MpKLVCmt1oXw4sTzYSUKmUw36XO 0c+fQlDKLDlMivTPKIdMxab0boaAbd4fEeEPUC8uE+T0ZfS6Im1iC8DV62bThi5DLIEc EPsuxQ1h8CnF0wACPVzTSJ7DD9pEvUQXtWh+fpBL4wAqurjB4WttIWWcRdWY61kqd2v4 GSnw== X-Gm-Message-State: ACrzQf3PioG8fIwqJzL8jlURpNM9sTXFGHh08H+9EFgs7jW7SY7fpQeq 0hj9Bf0oWhosgLvi6AFjPjTU X-Received: by 2002:a17:90b:38d1:b0:210:99f9:9712 with SMTP id nn17-20020a17090b38d100b0021099f99712mr20447697pjb.57.1667020565035; Fri, 28 Oct 2022 22:16:05 -0700 (PDT) Received: from localhost.localdomain ([59.92.103.167]) by smtp.gmail.com with ESMTPSA id f5-20020a170902ce8500b0017e9b820a1asm363150plg.100.2022.10.28.22.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:16:04 -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 12/12] arm64: dts: qcom: sc8280xp-x13s: Add thermal zone support Date: Sat, 29 Oct 2022 10:44:49 +0530 Message-Id: <20221029051449.30678-13-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747998005435236747?= X-GMAIL-MSGID: =?utf-8?q?1747998005435236747?= Add thermal zone support by making use of the thermistor SYS_THERM6. Based on experiments, this thermistor seems to reflect the actual surface temperature of the laptop. For the cooling device, all BIG CPU cores are throttle down to keep the temperature at a sane level. Signed-off-by: Manivannan Sadhasivam --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 46 +++++++++++++++++++ 1 file changed, 46 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 ca77c19c6d0d..96e2fa72f782 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -29,6 +29,52 @@ backlight { pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; }; + thermal-zones { + skin-temp-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8280_adc_tm 5>; + + trips { + skin_temp_alert0: trip-point0 { + temperature = <55000>; + hysteresis = <1000>; + type = "passive"; + }; + + skin_temp_alert1: trip-point1 { + temperature = <58000>; + hysteresis = <1000>; + type = "passive"; + }; + + skin-temp-crit { + temperature = <73000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&skin_temp_alert0>; + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + + map1 { + trip = <&skin_temp_alert1>; + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + vreg_edp_bl: regulator-edp-bl { compatible = "regulator-fixed";