From patchwork Wed Oct 7 13:54:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 316916 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp470033ilm; Wed, 7 Oct 2020 06:55:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFq1Tw6xXxV95UjfV+WqfAiAwheuA2P+yljhrs5eI8AMUwZmDJUCKgTA1GbDjz5u966y5B X-Received: by 2002:a17:906:3ad0:: with SMTP id z16mr3617741ejd.193.1602078916802; Wed, 07 Oct 2020 06:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602078916; cv=none; d=google.com; s=arc-20160816; b=bI1DiJHaeqGvs2C5oO/EUvI63TvGj7NMW79cZLR0sr4x3Tk9vSJg78BwA1/fbjb36b n8601FZG+uU2PaLeKUKdJ+VFbHqMPQT2JON3aqGoESqgzlh6wfXqGVHf3aTEOhnOxLRr EOZ/igA02GAs5qwKTYQd6ceblOwZsbhl1/6m47DR+Dum8ZoNfyoTCo36WbuDENVpeDYN 1jC18nr/2E+mnJ7/sbWAfvA+0v9h5YyxGnankQ2Aaf3+UikCqR6oaJvY9CPjVAbWu2XL I3OpqASAYBXg5y9DlQomqONOteGFIF36F+rsTt0tRjrPuR0SZqFLc8se8l2hDfQggclt c7Yw== 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=rflyFynNnBW4dG747SrCFXgcIAs909F2gibnTOq3B0k=; b=w93ws8tpaA0Q/9qRNfXdATVaDhoieuWK7URf8wm6/+VtlOOR05XSP6PHLt9ckOZXcj 0uyynOUho3sxOWHZTyIQQzc4eLfiBVHTvIpUjNHHnNu0vYD8ahpA66Nf3L3aZpMR2aoi iRemk8rNK8RfGwBBguVFTACeS0FuI8V85hABwjF2sa2HkEA5HJ76gkrQ02Tk6W3xxGY/ yy1ehbCdGvPD7INIjXOJHkOhb1J98C6Puc4suQiNvm0cRyKC1OoYXRpNkydh2/8ieyTx 2ziq2saZr89zbSttX03rmQgKxKPKoUwYmmHAmRUyhEE9oK8LdtcVWB8fPvJX3iNvgUGA t8Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X6zvatvM; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si1454705edz.107.2020.10.07.06.55.16; Wed, 07 Oct 2020 06:55:16 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X6zvatvM; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728594AbgJGNzM (ORCPT + 6 others); Wed, 7 Oct 2020 09:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728579AbgJGNy7 (ORCPT ); Wed, 7 Oct 2020 09:54:59 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A800FC0613D4 for ; Wed, 7 Oct 2020 06:54:58 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id p15so2055757ljj.8 for ; Wed, 07 Oct 2020 06:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rflyFynNnBW4dG747SrCFXgcIAs909F2gibnTOq3B0k=; b=X6zvatvMf4NiPu34ajLdl+aiau0FB+MVkYYiN/IN+23Tw8W9zOmNQ+Yp4oMRFFRCzH WvDjUBcaq6iplnpjzLrTNXHL/xS8ZipyRvAYsFey9Q5xBavdVEAszpIMy9mK7wVwpuJF dRjlCprFWIosR3nhzBA33JVJQrz7NMwPqjWJ9vXT9hqdaFx/xyABFvmXEwEHqGCOmw4J IdCjfSNziEY7Sus2glq14luYHC5AQkj6pc8qmNiKhw4cmPsfN1xl03h2FonCgL4z5+fx 5ui3pp7b48rqf6j+Ig+PbcwMhMeZUXbhHUeQ6D63y+hI0GfQ3ak3rS5jMg0qmyHu7T6h 6fyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rflyFynNnBW4dG747SrCFXgcIAs909F2gibnTOq3B0k=; b=hF78M4JJMW6vMeii35cWnmDRVwqCxV2sRQ71I2+eeMKIxbhnovdlw18kGhOsvTLw8F cOFjcu9jC9DVAOTxJEfI3L591a4mcsOwipNe3Bjd603SwRg2iccY4f6EHnd8KuTX8wW1 OwucvvT/nLQvRwVhOF6y3zKbSiKjNfiG5wXOUnAQtz7po6EFReB+M9/t4ghvQAQ4cV/6 ILCVDGrLksGj7sd/k2ihoIe6z+AA1KLiDNs4srutxMsN1t0v/t4QO7g/w0wIIx3Qmqb0 4Ec6ZsNZ3/zJHB7JERlzf83dtdZcjdHzp+zIoL1bpbmy/U58LK+3/gblXmVF8WeUuDUO 4jLw== X-Gm-Message-State: AOAM533JRrNKUN2OeWj/eqeH3uoM0M4l9iLWlWGANpO7U7tX+cVbuUd1 SvmdeThoSm7mhjESkplPt4wirA== X-Received: by 2002:a2e:241a:: with SMTP id k26mr1176611ljk.58.1602078897104; Wed, 07 Oct 2020 06:54:57 -0700 (PDT) Received: from localhost.localdomain ([188.162.65.250]) by smtp.gmail.com with ESMTPSA id n3sm339768lfq.274.2020.10.07.06.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 06:54:56 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Zhang Rui , Daniel Lezcano , Amit Kucheria , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Manivannan Sadhasivam , Jishnu Prakash Subject: [PATCH v7 08/10] arm64: dts: qcom: pm8150x: add definitions for adc-tm5 part Date: Wed, 7 Oct 2020 16:54:31 +0300 Message-Id: <20201007135433.1041979-9-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201007135433.1041979-1-dmitry.baryshkov@linaro.org> References: <20201007135433.1041979-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Define adc-tm5 thermal monitoring part. Individual channes and thermal zones are to be configured in per-device dts files. Signed-off-by: Dmitry Baryshkov Acked-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 10 ++++++++++ arch/arm64/boot/dts/qcom/pm8150b.dtsi | 10 ++++++++++ arch/arm64/boot/dts/qcom/pm8150l.dtsi | 10 ++++++++++ 3 files changed, 30 insertions(+) -- 2.28.0 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index 1b6406927509..b1b518c6a2c9 100644 --- a/arch/arm64/boot/dts/qcom/pm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -97,6 +97,16 @@ die-temp@6 { }; }; + pm8150_adc_tm: adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + rtc@6000 { compatible = "qcom,pm8941-rtc"; reg = <0x6000>; diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi index e112e8876db6..8e2f3250c914 100644 --- a/arch/arm64/boot/dts/qcom/pm8150b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -95,6 +95,16 @@ chg-temp@9 { }; }; + pm8150b_adc_tm: adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x2 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + pm8150b_gpios: gpio@c000 { compatible = "qcom,pm8150b-gpio"; reg = <0xc000>; diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/pm8150l.dtsi index 62139538b7d9..9f214ceec2b7 100644 --- a/arch/arm64/boot/dts/qcom/pm8150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -89,6 +89,16 @@ die-temp@6 { }; }; + pm8150l_adc_tm: adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + pm8150l_gpios: gpio@c000 { compatible = "qcom,pm8150l-gpio"; reg = <0xc000>;