From patchwork Tue Jan 19 05:48:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 366121 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp468790jam; Mon, 18 Jan 2021 22:23:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJykJ4jP0uQdU88LcolRXGTLZbbV3aUnNv9p/mpMFMNI26+6GEkyrxn6ZLOXM5ytAfivhPor X-Received: by 2002:aa7:db1a:: with SMTP id t26mr2274752eds.25.1611037415894; Mon, 18 Jan 2021 22:23:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611037415; cv=none; d=google.com; s=arc-20160816; b=bhZlx2PFr6r0NVoe6C9gFZtKH2BJ7yicqdd64ZfZcHE5lWkwJZWRNf4p6lfwrdv+EM o4DRKCzX0qKOYyWqgzmgof/lGn9k8mUZy69Lmey8qtokK9RuOoni0mMFb6a0Az6Tikrh Si9PoEJM8Xnd/37TPjYP/tYkvqgkU8hQrnwOdRdPsuzlOflxsixbserVT911F5+94sp7 Q501aoV/l7RYM4S+zvmXn7zqh4cog3kR4OjcBmyYyt2BI3lIvg4NsvW1Xp/rjGN8kCRi j1wTB1A3S2bTlRrPJGmaQlHDETwjK1U92cXy41C+mA+BxHfcdZhgxyz1DK4LpTh/m/5K whkg== 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=twtRf4xOH0E0x9VRPwiTE28bCNXEVhaTsRzwx7xbrKw=; b=0YTq2Kpt/VAyKZODM5KMXYPc31FsSqLywV3tE+iQazOnQvCctJrIMm10T4MpINLMC3 2diz012qUSGTdgrG1AhOEM3I+vFha6mfyt9sEEKRl1BEXQQfXoaqlZZwPl6bYYJYlP/1 C52D9vMwNLdG4y5HPROoZVh5SfxvLUVYQ2SRf4YlazOtihvmtGFXf6UzLJZwTP2SUWAS 5FOW1xDJZi12fB8daUp87oRQdc3HUMA+2NJ/VhwcovscswsEHp09zbPxz5PktyAc8J5J hWNqkCQZAQHKMT664bTQuPkkkoLF8J9qLtrSZakUPFSLhamgTd16Enjic6Iy4i1y6OTQ HGTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kl5i1oWz; 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 s21si3615300edd.135.2021.01.18.22.23.35; Mon, 18 Jan 2021 22:23:35 -0800 (PST) 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=kl5i1oWz; 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 S1728406AbhASGXI (ORCPT + 6 others); Tue, 19 Jan 2021 01:23:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403993AbhASFur (ORCPT ); Tue, 19 Jan 2021 00:50:47 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2D2C061799 for ; Mon, 18 Jan 2021 21:49:01 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id a12so27429092lfl.6 for ; Mon, 18 Jan 2021 21:49:01 -0800 (PST) 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=twtRf4xOH0E0x9VRPwiTE28bCNXEVhaTsRzwx7xbrKw=; b=kl5i1oWzQb1oVX0NEE5kM2wUR+B6FGp2MwfQWdQ6K1e8IIwjEV/Tj7dxCqY1+Z3s6H mBthhV5TVJGClr9lGYt6QcPTxLqai2dqF7mrR5mI9z2aEwAz4x98gLQKwTtON3+TrieS bPS5FRK3nUjpnuBCfc+LPptyQadBKwOtx7UB7l+BKqQUd4429fd3nj0bFkFnhtHHnkct FCYDPJF1Urn7Ti7l/KWLHe5EXDt8rGKdPoZv9Q9qX4IkHILJxU0t0DYSjnS+0B4zoVr4 s3G3LcPhS84WQjLGocNXdd0A4+TJ6eM039QYqTpK+6Vc5I64eyjXmKOqSzK2vNA1/PZ/ Y1vg== 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=twtRf4xOH0E0x9VRPwiTE28bCNXEVhaTsRzwx7xbrKw=; b=sLAkkLVG3OjjysotiSzj+otJTG+n3oifpoqCBpcT3dNlgpFhDh+GFxy+l3xFgNBOaE h5THel8LxbvkguNMDuQoK5aO1RltrNnQyOk77kucOlsjjLrto0Q+fSQnRPSd7W/uE7U+ yiqfJRi0OWNJoG/qA/3x+w94d/yoJd95hPc8nFNiuGC7nbiA4flZfoLGCrh9l8lDdO7F VU9seGDb3JUw9Da9N56gQ3CHnvP5wvttHI1JMgryXZ7ZOVSfDRm+FE6dgbkE9bP4+7y7 FTB+aVooYM0jrsoOBcJGUXxm4+LJmEYBXm8+O1AsnkPCl4iUoHoP9semCOKZe7QCWBcu zumg== X-Gm-Message-State: AOAM533LBw8v2jNq1XgKG1xF0zMcHD4svWNebhzB2wxClNQKgv58yN4s UtiAgXYKwW+9nvsiPXx9OYdTVQ== X-Received: by 2002:ac2:4d8c:: with SMTP id g12mr1074045lfe.619.1611035339708; Mon, 18 Jan 2021 21:48:59 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.65.64]) by smtp.gmail.com with ESMTPSA id j3sm2168207lfb.29.2021.01.18.21.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 21:48:59 -0800 (PST) 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 v12 3/5] arm64: dts: qcom: pm8150x: add definitions for adc-tm5 part Date: Tue, 19 Jan 2021 08:48:46 +0300 Message-Id: <20210119054848.592329-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210119054848.592329-1-dmitry.baryshkov@linaro.org> References: <20210119054848.592329-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.29.2 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index a53eccf2b695..15e87153a194 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"; + }; + pm8150_rtc: 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>;