From patchwork Thu Sep 3 13:21:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 249030 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp536829ilg; Thu, 3 Sep 2020 07:55:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw23iO9dwpnfbWi09pH9nyriR2yg48J1CiK+R7X0HFSCiOmvm/jVlw0m6s90bkuFF69/jZE X-Received: by 2002:aa7:cb92:: with SMTP id r18mr3547715edt.158.1599144909701; Thu, 03 Sep 2020 07:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599144909; cv=none; d=google.com; s=arc-20160816; b=Mse3BrsMTM8Y1xAwpJTvjQ8BVOmy9sg2JmztcMEG10o/qfowv8vjBY+erpJuMYv/JQ 1B4fxQVV6dRD2jdUuOZZBCxPP1StlG0z9AOIOMFuZHB7ZigUwigu+39f35nLcgsIxhQb oGW2xuFqfOsXo1AzHQIMKX2o99mZGQUFTm381P79BEA5iUeiq81p78lYX1/fNp7eoiYF gbl2/01sLusnndwS4G3PmSgz3MAf/IuwEQ7DvIQgnQpNtHiwZS/b4BZ1dhVz19l+EG4B jha1YLqjhIZqLCmsPQ0g074+Xeh96RScEGmKHMjY5LWXv0Zev9AkJhtMFQLV8/sbwdjc 1rOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QuxxLxOS0tNBNOAtQq8XEBRXkvgsYAhNuUczATzXFS4=; b=S7p0h9HvxNDGmNTlPbeuZQAOJBcLitAWH1LABM86EEOJ5OtB5JqpdETq97gk9EDS8v bMPySt37fHhCHlqsUvVSTxoGH90KoDfteGdUBG0MTSVrjN+H6z3GfgH5dBUz7yoM/Gmt 1TrJbO2t+FzkWxwDOCRzwV8OmGIcLM6sNzUqYPZc4jAmi3VMfMbyNGsmbToYnG81offp LkolV4i5LBFkVGDBxbz2Yv5qTKGSVYh1aowN3vnpu9nQymSAuJeaDwrxP/px3Gahz6jF CdhGsRbcUAx8CbIeX8mynlhmIrEfG3da98SXeFQUZ4XvYWWubPJjWCpW7vx43EfNDWSm HImQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Emmv1pHE; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 s6si1863667edi.427.2020.09.03.07.55.09; Thu, 03 Sep 2020 07:55:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-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=Emmv1pHE; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1729194AbgICOzH (ORCPT + 10 others); Thu, 3 Sep 2020 10:55:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729191AbgICOLy (ORCPT ); Thu, 3 Sep 2020 10:11:54 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E24C0619C4 for ; Thu, 3 Sep 2020 06:21:36 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id t7so2956199ljo.13 for ; Thu, 03 Sep 2020 06:21:36 -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=QuxxLxOS0tNBNOAtQq8XEBRXkvgsYAhNuUczATzXFS4=; b=Emmv1pHE7Spw5I4w2yg/sc3WwWUlCuzi34q6FwEmanwGe0kAKTNog7Fy78tGosZH5s 6+dPy9vbjKFHpCIx6g+YrmXynKo3j5o9uYbPAu1sueEBPJ9ka+aeMOBM3DmiPSzNT0Fk 4OqNO2Uern9BYBfJOw7ksjcs4oCkOdEIxpvcSxJ45uhuhnVxfdaInQV+SAiTqbtTPdCT gg+eJXxWFsLo8Rdc5bSpUKFhlMaWmKfXo1iPI/BcoqGp2bpeeotTLlp9yyL1VIxLXGfT mNtvJ5vwqmga7FlTa247ljm6QuEgGpe91AcB5UHul6yn4bxTMW1PU6CCX+LfSb1yDZ5N Y7Xg== 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=QuxxLxOS0tNBNOAtQq8XEBRXkvgsYAhNuUczATzXFS4=; b=ih+hgx0LpbK5dsLGbfnAjFq8DAL692dy087m+wDRkiCVNngY4XPc3vWeF2Iq3z1ElU vNNG8N6RWjEln+kUGHi7rWkRsh8+ZNA3PxdCzcO/pv99/sbJ0EWyBYrn5cQtgpuTAJqF SsEEwDp+XGdmDBe8gg+XTinozmfZvbf2tn6a3F5bRFxDXJ/BhOAEk0P78Zvp0f9CU6oB rmKfNBhLUiDRArfZ4IFHfftgIqdM8kEsF04IqMMys+hofM6KQHJ/yabo1Cb79ZdYcq3c fPQNxxQVJCqqzvl/EeJKJZc3Gut9NC2LpJc+3L/gTEQzng2AoQpL4XiVX6JhZuUJG9WI QL9Q== X-Gm-Message-State: AOAM531Zb9TTG2xBC5TGtd6EXQfr/Gt7Whv4ekL1V/gEmPp31Q/Nh3hZ 3VNPCEU6fQDLdFL6np4uYiZ5bA== X-Received: by 2002:a05:651c:1057:: with SMTP id x23mr1293667ljm.149.1599139295256; Thu, 03 Sep 2020 06:21:35 -0700 (PDT) Received: from eriador.lan ([188.162.64.138]) by smtp.gmail.com with ESMTPSA id e23sm584220lfj.80.2020.09.03.06.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 06:21:34 -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 Subject: [PATCH v2 8/9] arm64: dts: qcom: pm8150x: add definitions for adc-tm5 part Date: Thu, 3 Sep 2020 16:21:08 +0300 Message-Id: <20200903132109.1914011-9-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200903132109.1914011-1-dmitry.baryshkov@linaro.org> References: <20200903132109.1914011-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 --- 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>;