From patchwork Thu Sep 10 13:59:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 249622 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp769646ilk; Thu, 10 Sep 2020 07:04:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhikjck0uKqnKr9yqsj1x9/W1tQNLz3lHi09+1z3XB1N27Nk52evcy7Z+z6Tc/BrTveStj X-Received: by 2002:aa7:da48:: with SMTP id w8mr9212821eds.165.1599746659779; Thu, 10 Sep 2020 07:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599746659; cv=none; d=google.com; s=arc-20160816; b=iuGrw4Es4440FVyLz6us3EWcMPnS/LW7t5Jxa7poFLmZQClsyPzI9HhR80Ua5dVA/3 r7DW6/u88JxkC1eZVcj+UuZZ4jI6RNBGSyhhyeRwEXgeDBLqt6g5Tszi8KtBGdZRaVbW vxALK9hTbWp2aNihY1CDhB09aPo3JOhNPj3UF5XCpkPXiMK15ca9L65RDkD/AxsWwY4C sGSKhkle5J92qp4DXfhYGsbPu4qlthraF2jdYOR9/smwgxZCmfYlkk77AaT62xzw57KI VwdtYGUsrLbHM9Ga4epxHBLfmPS7YBcEOm61t3zW/UsNQaRuCBS/htp1DuMFo3c6yd4w +Mjw== 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=ZcaInuOHncbv3LKvXApdYg6nWFqcxVpElAhDkcrXUKV5+/OgL47qPbfjSoChhJAWHQ Jz7h0aW+OOtStTWn9n1Shnck8qDClc+IJGDTS0fQb96gIaDY1JHbXkVuPupzwXaRwrhH udyFzSJmY8sF53QOZpxrATWSNFQbrfXYoakWqWYNSvHZO/hhrulgOnBhjujXJwZbOiHk GPUdyilcBelz2HCDhfcM5keHlsIKpjuRIP+OBncjmbsucfYQjK8ClSZNU/d228Hshy9V Z3l+fSjJ+WA6KNAelaLfJavVWjMsCPg5aY2GF0tuw9Ph+wXbESJomtiwVkgyiv3nUDxf kHuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PMgK+Eoh; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 mm8si3443087ejb.53.2020.09.10.07.04.19; Thu, 10 Sep 2020 07:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=PMgK+Eoh; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1731007AbgIJODy (ORCPT + 15 others); Thu, 10 Sep 2020 10:03:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730999AbgIJOCp (ORCPT ); Thu, 10 Sep 2020 10:02:45 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B46AC06134B for ; Thu, 10 Sep 2020 07:00:28 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id y11so3652510lfl.5 for ; Thu, 10 Sep 2020 07:00:28 -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=PMgK+Eoh8NOijzqwcfljiIQEiZgcfkyqRaN1mUxjZ4Y8sVNKE85i19GDwcD4srGiCo cooI13DsQXpfB3kM/A3FqyWbPg5WbVuH9ergJKhgOjj0TdrqN7Yqz6MSP0HZERvWz0tG gfEtLguWwYrKpkPpsYik/r3yt00tDJ52eqjmsQXXrAUWzoX9zVrmXVdZ6MPsfDsTBk6G ISFqOo0RH0lMmYujajuUsdac+vfuoE2Ncfxqf1sCMe8AJ9S/JHYqx2QqMm3QchpRoxFk c1WZ3aE8W5oYLqu0evCO059jcQbDyrdhLTpLeBTtQfNzmA7lu/sVL8/zOmCA/zMRTDpE PIXA== 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=Cwg38u8y4LdbGe3x5RCP3lnrJbzpwBPvA6+qw39rI/1QJD0fTuCuhCM8pOaxMwJmPw 8iOe/zrRyEkJDoX+A+AUo0QcFu7ca1qPoGHFLi5h3yu7tnIW/l2ghXsyxex4yVFt20uf dUwiee7CVkIzMNUvEly+Aj8UXrVV4IG6tzdvsPTmcxnDFTk8Dr/kvXZcXds1nQKxOdyb LDGOtfZC2/DjT65ikLxBTSABaKsRoAdkE9+vs2yhJO1W9iw1ffkced5E8S4cWZZy6qX2 GsnXlqBxe6+zpPyYToo6IPTHSn2mVI/+aKMp4ztgmtLuFwu2ptzJxzkICFWj3+u9oOaA NVsQ== X-Gm-Message-State: AOAM530Kx/WehqfiPADL4NvQGxn1BLaJvKzQKNhpFiY/0BMEmzeEfm6s cHsIk8BakarRQuXQD5cWoNKj9g== X-Received: by 2002:a19:7fd8:: with SMTP id a207mr4306941lfd.11.1599746426562; Thu, 10 Sep 2020 07:00:26 -0700 (PDT) Received: from eriador.lan ([188.162.64.156]) by smtp.gmail.com with ESMTPSA id t82sm1367646lff.43.2020.09.10.07.00.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 07:00:26 -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 Subject: [PATCH v4 09/10] arm64: dts: qcom: pm8150x: add definitions for adc-tm5 part Date: Thu, 10 Sep 2020 16:59:59 +0300 Message-Id: <20200910140000.324091-10-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200910140000.324091-1-dmitry.baryshkov@linaro.org> References: <20200910140000.324091-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 Acked-by: Manivannan Sadhasivam 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>;