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: 11616731 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 429A117C5 for ; Sun, 21 Jun 2020 19:36:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B5D222571 for ; Sun, 21 Jun 2020 19:36:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZqIUCRaN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730445AbgFUTgC (ORCPT ); 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-Google-Smtp-Source: ABdhPJznV7z9dVb8BV2/JEvrRRPaux+GV05TUbyafdd1xmZqIRBTstP5ZyE8xE5vqcQpyfWl+hK0lQ== 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(+) 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>;