From patchwork Thu Oct 27 06:30:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62946wru; Wed, 26 Oct 2022 23:32:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4tzJZym5Y45TyfaADwqKwr/9g8Ae8mBTcuhqAUBs8fGWgyQOieqDfVsBt+Tmx8tBuhbRSZ X-Received: by 2002:a17:90a:e606:b0:212:f100:22e3 with SMTP id j6-20020a17090ae60600b00212f10022e3mr8487033pjy.83.1666852353818; Wed, 26 Oct 2022 23:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852353; cv=none; d=google.com; s=arc-20160816; b=qkNzSjSIVU4RlCyA2WtVU6O0/wWvyddkFLsukn+LwE5mW7BPVbts6pjwNeK9d/hf1c U2loU25ilHvJYzYl+eEpY1xmaY/gSjsvzLXs2XUeGwqEtlQ6PZopbfxwfcokM0mdc0Sb 64STGBhX5tFvGHngQDO7DGs0Q7GapUOzdurD9G6Re+tqe6c1vj0n4z4sT+fneI9+tntQ doSFvgYJ1ZzlA3KaSrM1n1xsCpP+KeduXnsZTBZW2SgClPxIVymM2AbkmSaKk3M3mWWH kS0bVLPb7eZ0gOJNG5TROGDG0UxORz0S+/IrOYo9QgYAjgGiPR0l5LDaVII/hZEmYOcj K/vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pfwc4myKYMtHNH9EOVfJXOc2pPSqLuFVcY0vj1LaWVI=; b=wkwd2fdwdXAGMq4VowmJYuZXvWdtSTMaV5JfzkrGPCw+1ZBpR2bxTXHbzi/oTQzKEU 5CL1+H+ibDTtUcqZMnEGu4l7uB57cuDL1SF2R2f//H6YT9In8SvruP96B8mOA6gsy6jv jzIl5eN485nAtS0IaseUq22RI9oLoko3ttDoyI0eO3FT2hvYBKeVy31P0/KZIOL92CTo CgTmHIju3705f/NGcQmnkpKBj/hCi4GZ8/IgH1cQ3pbG3DwMgRoSHJWmcsCzVV7sn3j1 893c/BnInb/PCh7DnslW/IfrIHx/CA0nRZTkz3fAxHzMfY/BK3iq+N2Fpnn84ApS7rYa zF6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kT1Ch47I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n62-20020a634041000000b00450200a1078si506769pga.853.2022.10.26.23.32.18; Wed, 26 Oct 2022 23:32:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kT1Ch47I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234555AbiJ0Gbg (ORCPT + 99 others); Thu, 27 Oct 2022 02:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234305AbiJ0GbK (ORCPT ); Thu, 27 Oct 2022 02:31:10 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE992162503 for ; Wed, 26 Oct 2022 23:30:59 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id 3-20020a17090a0f8300b00212d5cd4e5eso5313582pjz.4 for ; Wed, 26 Oct 2022 23:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pfwc4myKYMtHNH9EOVfJXOc2pPSqLuFVcY0vj1LaWVI=; b=kT1Ch47IE6GzgbikpG5NTRCq9tr5aq0ETpQ1NP6+DTG2i1N7FEpM4kPIPndtmkVzoV aJj24u5XC1996OrZO5aL9he0XEcIlScnvz4tkwF84BkMQVbg59Hdx+CzPZoi14NT0hox s3rorrQOjMD8KtBstHltLWtet9A87qyq52zbdrBisv0HA6EfS9Sqk/oBftg/XEZ6h5QN YPCFF2+p2tkhq3tiv27/zAR1b3wyCKi8jWJc3GAmJ0UzMBN23/r+hMlrHHxE9Gs43E2M 8DJ82cewnQu47yhXoI239xSXpDJ+FO6sRJ+JsvMU6B7cgp+gBUG0t7yexaGA8AelbWFR qCGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pfwc4myKYMtHNH9EOVfJXOc2pPSqLuFVcY0vj1LaWVI=; b=bCbzfdnS28pW7ROVf5Kqs1adKc1wU9T61cbjUI3eZJiLgTNJZSD0uUEUvIQ1gEDqot l/Pz6RLwwftAQjkERvMCj+rjPUZVAaKGIc1cUwkSPC2ACsgTyOd/CVGUxxDI63IwVuhm ELPPCwEnzLUmVa7czvYg1QUQAKnIB5eG1lXiFyRv2bkjI//vpCzCYh/F4BJsy3fcjM4o LLhVlf8w6cJJOZKCJ9GbBkJtV67tlfY/6VlDvN7coLpj1I0mZ03bjbB7ny03qO+Hs1jU t+URqTIGInER6tRdlAboEm4WCNgiggaHAQH6o8G7Qb2RIFoD98uDWdDxN14K10IffQyy Nbww== X-Gm-Message-State: ACrzQf0ndwZH4sUoQ7aA+VZJxBw+Nsir+6EaFal3aSAH2YjHXPSH7oe9 OZYEDm96O2hAL80OxsB0heXt X-Received: by 2002:a17:90b:1c02:b0:213:17f1:50a7 with SMTP id oc2-20020a17090b1c0200b0021317f150a7mr8267703pjb.138.1666852259377; Wed, 26 Oct 2022 23:30:59 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:58 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 09/11] arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} VADC channels Date: Thu, 27 Oct 2022 12:00:04 +0530 Message-Id: <20221027063006.9056-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221027063006.9056-1-manivannan.sadhasivam@linaro.org> References: <20221027063006.9056-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747821373746675287?= X-GMAIL-MSGID: =?utf-8?q?1747821373746675287?= Add VADC channels of PM8280_{1/2} PMICs for measuring the on-chip die temperature and external thermistors connected to the AMUX pins. The measurements are collected by the primary PMIC PMK8280 from the slave PMICs PM8280_{1/2} and exposed them over the PMK8280's VADC channels. Signed-off-by: Manivannan Sadhasivam --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 9ac5d5c22832..d300d217fdc6 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include #include @@ -189,6 +190,66 @@ pmk8280-xo-therm@44 { qcom,ratiometric; qcom,hw-settle-time = <200>; }; + + pm8280-1-die-temp@103 { + reg = ; + label = "pm8280_1_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + sys-therm1@144 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm2@145 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm3@146 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm4@147 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + pm8280-2-die-temp@303 { + reg = ; + label = "pm8250_2_die_temp"; + qcom,pre-scaling = <1 1>; + }; + + sys-therm5@344 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm6@345 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm7@346 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + sys-therm8@347 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; }; &qup0 {