From patchwork Sun Jun 21 19:35:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 191298 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp443182ile; Sun, 21 Jun 2020 12:36:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYZag9b2AGVbb4znd/m5De2kKa0b89mlOhOwkP+mm2ranNP/8a+1RJ2YQOdf/DDLRK0iTk X-Received: by 2002:aa7:d2d6:: with SMTP id k22mr13911713edr.109.1592768163496; Sun, 21 Jun 2020 12:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592768163; cv=none; d=google.com; s=arc-20160816; b=ZQGFy6Bm8TTh5Y78rkvKD4uQSh3AMi6BMO76pBw8Kb+oLGkVC/CeVEf71bDuDayjFH GDWP6HzvoywwfNmXeD2zz/bdkXJmL5tBaBmOrThHOBFXsG/K5j1Hl4EHkw+87CodI86l dYGHypFtqC7L99/tcG0BvjHTttr+H4ngLRgv41wrMkLkH/GVsxKucx/V6XVbKrS/YY+k kCb3R8LM66Z08EGlqU5pjVYMnoy/RAea8PKmSN2ISTcm2RzWTTuwEnpCAp6BL9FjuDyN Shz9S/dOnKRthH0pWDJo+4mkuFCek+HMr8q6OlwrmRa694Vmcc/xO3X0V5MspQC8moh0 TvYg== 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=9WvajqJ/1LHD/FFd7sUlUX/Ddmif0/Hk8gVsTreaFnU=; b=KNpHMaltPaJZm3TNeQ2RGioKYSiQ2v1hKho2wIs4LMnGjw8M+P/h1NIKBjqxM0mpb5 LnXOI0JZ6cv/LLeR9INDwrr6NxlA1cEm/NxcsdbOFCJz8m6JZZveXpAPvhFR+XYE2yDU vbAWoR4I+fi3MooPPE4pPhSJ28vCm4iK4jew6MYLIqMjtWPFo8xxJ5IKINdEMHtSgEAV eegm7KHcNE3NmNI04pZXpwFSOnSuq2nk+aVmMC6MFaMeLNQBqBsiLc7qxaJ1/zOnIusB 0saV45r0Qdk3cvlzEg+C0qZNt13BgTVxB35orAOt9RpHtAeQhZMchG2ppvyvXtO0WA4X qI6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZqIUCRaN; 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 g20si3105175edq.447.2020.06.21.12.36.03; Sun, 21 Jun 2020 12:36:03 -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=ZqIUCRaN; 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 S1730445AbgFUTgC (ORCPT + 16 others); Sun, 21 Jun 2020 15:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730170AbgFUTgB (ORCPT ); Sun, 21 Jun 2020 15:36:01 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C9AC061797 for ; Sun, 21 Jun 2020 12:36:01 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id 9so16933372ljc.8 for ; Sun, 21 Jun 2020 12:36:01 -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=9WvajqJ/1LHD/FFd7sUlUX/Ddmif0/Hk8gVsTreaFnU=; b=ZqIUCRaNU+xZ/qrM1AG2YnIF0BshcJ+RS6k+0iyhry2XHdUHKJrzQzMc5EZEWNsiVf 2haYATeAXgATzm3hrDQLaQNyCVp4IGeqqw+Lf5+OQEgjTK+O0HgC/vuw0pYATfnKQJF4 s6NkLH4md1MyboZrVYkqRSbU9RrI8qkVwq6MFSW4A4iEDSP561uhfrQgE1hQ6KdQzP4r 9KoZ3nAZl/ohJs/cBDifUvehoRa+zgFWiD9+FMYa6RTaRddemZ8BD0i/MPKrlhv2q3jz KXtfioObHFh3UAbxRBQwletgNDKD2UF0kNAoVsGygdXxJi5fgKSxl1pfytoruvOgwxrZ qi0A== 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=9WvajqJ/1LHD/FFd7sUlUX/Ddmif0/Hk8gVsTreaFnU=; b=bhy+4pq4HYKZsa4meCc6McCuw4LtwjqEKRRvUNIKKqpRhYXWw81u6j7WYKD9oqRkBj YzfK5CezuR/pU6giOw6cvD+KallOfhZZso52j0tIPY9QDD+wZ9ieKpT+Us6tXpwiEAWx h4dVAq5W+XelNK4QYvLfwBBx5Kzq8cXxDxlGMAZ0si6wuaFwXdwhiscvMMH1OEFAdZvu f4E9Trkfbn0QijDrUHsnhVLYizz1STeXgoPPDh8xKPpWKcpdavksRTLjBfiGtDwcq1TF iQi6fD6xPnrqCvsj7TcUbRSvLLDwD3TZ+21XyaGoNa3d0vyQYhmyFEx53T3JaVSt/2ik nWNw== X-Gm-Message-State: AOAM533ibhEmbK2KGVq9G6piUYMNDTS/ZQwnLaD9Vkn1jVIzXn0NxCkC YLO/2Pet8UyVNSVqxlWQlNmFzw== X-Received: by 2002:a2e:7016:: with SMTP id l22mr7236155ljc.284.1592768159826; Sun, 21 Jun 2020 12:35:59 -0700 (PDT) Received: from eriador.lan ([188.162.65.109]) by smtp.gmail.com with ESMTPSA id r13sm2917854lfp.80.2020.06.21.12.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 12:35:59 -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, devicetree@vger.kernel.org, Vinod Koul , linux-iio@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: qcom: pm8150x: add definitions for adc-tm5 part Date: Sun, 21 Jun 2020 22:35:48 +0300 Message-Id: <20200621193549.2070434-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200621193549.2070434-1-dmitry.baryshkov@linaro.org> References: <20200621193549.2070434-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.27.0 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index 027f55d53584..acb2cb02a73b 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>;