Message ID | 20230320154841.327908-13-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1307798wrt; Mon, 20 Mar 2023 09:22:57 -0700 (PDT) X-Google-Smtp-Source: AK7set+ImS/9aXpHtEiZOXTJl1dFAC8b1kYdE/TagssDpdrUouFKj7eNLKoP0SLcUOIiOw/zzYIG X-Received: by 2002:a17:90b:4b81:b0:23b:4614:6f84 with SMTP id lr1-20020a17090b4b8100b0023b46146f84mr19945631pjb.28.1679329377012; Mon, 20 Mar 2023 09:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679329376; cv=none; d=google.com; s=arc-20160816; b=ruupY3s8cl8XX6hgC+lRv9qV7j3zb0gI/Xtr3QO7Pbebf/iFCEThs2Y9jowRGAkwDC ql7vK6gJ7VKVmYKzSdtFZSy6GM5X/RCY0nin9kVicQJAgctQiV508f6HtX4KcSr3o8/A kmq9A+It5LseBTxNTEvfrYy/7ZWnPt6HBtxxe0Dzv1Y8b2eSoE8PDTM4tE6lWYGfYRcT hMcArMs5RvWVnblpKKl0OglxhhoCsYu0qzUPat5ftYNbTGnuvHkO/UrHA349ElZXzEvF 8UZMu7oL2Cpp3gJzL6EOGWr5eRefbuYPYHX+pjLfoQcBBHdQGxJrRqBNm8Z4qak7k/KI YjWw== 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=IV/5gf3WuHS5WSbPyj0Moqs6nXNECY+AJ0WjEElkQo8=; b=vN2KInyW5zLkR4ulPK2XHAkutRwJYOe/GkLFxQD/5ZpKdEo7TjCn571J27IOqKyz/S 73fD8Zn+X+g74kkyI54DC00Dc3gLtOZ88h8lO5fEHGRPmKSrK+8dH5ysxGgD39TB50er zDmrNWUpOktPpf0fnEoopLCbmnbETAC95UEMsi7UYDpw1kOfWWVAuQg6+QoFUnxamTdU 2HfHQxE9Y8KpGM8b/usGc4FSx74h05iJpieG6iKa0IhZnIF+oarmb5Aj5mjeFEaCdc9s GiI1Iegg0HPUqx0ePmpo0cTekIgkFr1J2N12pmqSSghr9LK1v1nUm471XgxiYOmyCicD tzSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="U04Eg/UE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc6-20020a17090b1c0600b00230ca3efcf3si11464460pjb.158.2023.03.20.09.22.42; Mon, 20 Mar 2023 09:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="U04Eg/UE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233366AbjCTP7K (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Mon, 20 Mar 2023 11:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231831AbjCTP6J (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Mar 2023 11:58:09 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40DDE5253 for <linux-kernel@vger.kernel.org>; Mon, 20 Mar 2023 08:49:22 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id r29so10796150wra.13 for <linux-kernel@vger.kernel.org>; Mon, 20 Mar 2023 08:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327342; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IV/5gf3WuHS5WSbPyj0Moqs6nXNECY+AJ0WjEElkQo8=; b=U04Eg/UE/GvHsB3PJEkXCYzKKl633WkkmhWvrwAkuPXvqf9cqu9lHQX7BDVH8pkujH 5htRWF74ADACFKWUT71UKengwFkV1MOxaMuNu6cqnutWL7TyHZOw2RUB4629y7Wfqjib AGmb44Z+cetgwyssRLAL1wZF3oCixfYCsHHd0BsUla9Scu9LH54c39u0UaGw3Zh/oS2o p5nqeyajzuUxOAxGHRivWQ3iGwKwtA9mPiCOm2mIHlpfTyPhftt9GZW4CDprQseTdxET XNm+M3QBQ1tpLOQfKAepjm9zJKCi7KfbctM7reh/qbOzeCYn7mH0KEzLJu2c0VAVa1kk b0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327342; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IV/5gf3WuHS5WSbPyj0Moqs6nXNECY+AJ0WjEElkQo8=; b=TaEmRMBWYECjnEUwg+DCAPsauIGG41krtOHmUcSFtPd8O0Fja70aGdY3IU1A8UMCnA Nh3qVUO9PM1YPVDoVKufmdmfUQGnQ4by/l5WXiOF4NnMbXO8ZpXWQO3LIeELmHI7FnL+ 6gimIDAZt8JtKjS9LcTvfta66oCatsW/wy3ibfuiNzJTEwMz8ZRN1t0nFemSl98/hH6+ ZnvabYLHCZm5/hXFBJs7JjkTNBvcHCjKtKdcwkgzmPM1GZgizHO8Y+nR2lxBWdV39TFi j1UTg2DPyBVdMceJFp6asVuHHbkF6cIoILAiq163UKA2IgHoSdg/p19MyCrsNT9sBg+g LHhQ== X-Gm-Message-State: AO0yUKX8T2K6xoGXanrkOv6BdiX2C6pSvOTuD/yuPi3dcOOZDjyEZ3eb SgrKK0DApZLVE+owhj5nSAOFNw== X-Received: by 2002:a5d:6b0e:0:b0:2c3:db98:3e87 with SMTP id v14-20020a5d6b0e000000b002c3db983e87mr14679713wrw.20.1679327342696; Mon, 20 Mar 2023 08:49:02 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:d7d9:4f38:38b4:82b4]) by smtp.gmail.com with ESMTPSA id o6-20020adfeac6000000b002c71a32394dsm9202578wrn.64.2023.03.20.08.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:49:02 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v2 12/15] arm64: dts: qcom: sa8775p: pmic: add thermal zones Date: Mon, 20 Mar 2023 16:48:38 +0100 Message-Id: <20230320154841.327908-13-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230320154841.327908-1-brgl@bgdev.pl> References: <20230320154841.327908-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760904481001895449?= X-GMAIL-MSGID: =?utf-8?q?1760904481001895449?= |
Series |
arm64: dts: qcom: sa8775p: add basic PMIC support
|
|
Commit Message
Bartosz Golaszewski
March 20, 2023, 3:48 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Add the thermal zones and associated alarm nodes for the PMICs that have them hooked up on sa8775p-ride. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+)
Comments
On 20.03.2023 16:48, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add the thermal zones and associated alarm nodes for the PMICs that have > them hooked up on sa8775p-ride. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 58 +++++++++++++++++++++ > 1 file changed, 58 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > index 8616ead3daf5..276070b62ccd 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > @@ -6,6 +6,50 @@ > #include <dt-bindings/input/input.h> > #include <dt-bindings/spmi/spmi.h> > > +/ { > + thermal-zones { > + pmm8654au_1_thermal: pm8775-1-thermal { Please reindex this, downstream uses _1 for pmic@0, but this makes little sense. Make it match the SID. > + polling-delay-passive = <100>; > + polling-delay = <0>; > + thermal-sensors = <&pmm8654au_1_temp_alarm>; > + > + trips { > + trip0 { > + temperature = <105000>; > + hysteresis = <0>; > + type = "passive"; > + }; > + > + trip1 { > + temperature = <125000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + }; > + What happened to the downstream _2 (pmic@2) one and _4 (pmic@6)? Konrad > + pmm8654au_3_thermal: pm8775-3-thermal { > + polling-delay-passive = <100>; > + polling-delay = <0>; > + thermal-sensors = <&pmm8654au_3_temp_alarm>; > + > + trips { > + trip0 { > + temperature = <105000>; > + hysteresis = <0>; > + type = "passive"; > + }; > + > + trip1 { > + temperature = <125000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + }; > + }; > +}; > + > &spmi_bus { > pmm8654au_0: pmic@0 { > compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; > @@ -41,6 +85,13 @@ pmm8654au_1: pmic@2 { > reg = <0x2 SPMI_USID>; > #address-cells = <1>; > #size-cells = <0>; > + > + pmm8654au_1_temp_alarm: temp-alarm@a00 { > + compatible = "qcom,spmi-temp-alarm"; > + reg = <0xa00>; > + interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > + #thermal-sensor-cells = <0>; > + }; > }; > > pmm8654au_2: pmic@4 { > @@ -55,5 +106,12 @@ pmm8654au_3: pmic@6 { > reg = <0x6 SPMI_USID>; > #address-cells = <1>; > #size-cells = <0>; > + > + pmm8654au_3_temp_alarm: temp-alarm@a00 { > + compatible = "qcom,spmi-temp-alarm"; > + reg = <0xa00>; > + interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > + #thermal-sensor-cells = <0>; > + }; > }; > };
On Mon, Mar 20, 2023 at 06:28:20PM +0100, Konrad Dybcio wrote: > > > On 20.03.2023 16:48, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > Add the thermal zones and associated alarm nodes for the PMICs that have > > them hooked up on sa8775p-ride. > > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 58 +++++++++++++++++++++ > > 1 file changed, 58 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > index 8616ead3daf5..276070b62ccd 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > @@ -6,6 +6,50 @@ > > #include <dt-bindings/input/input.h> > > #include <dt-bindings/spmi/spmi.h> > > > > +/ { > > + thermal-zones { > > + pmm8654au_1_thermal: pm8775-1-thermal { > Please reindex this, downstream uses _1 for pmic@0, but this > makes little sense. Make it match the SID. > Please use the naming from the schematics for these things, rather than just an iterator (which might be what Bartosz is doing here). Regards, Bjorn > > + polling-delay-passive = <100>; > > + polling-delay = <0>; > > + thermal-sensors = <&pmm8654au_1_temp_alarm>; > > + > > + trips { > > + trip0 { > > + temperature = <105000>; > > + hysteresis = <0>; > > + type = "passive"; > > + }; > > + > > + trip1 { > > + temperature = <125000>; > > + hysteresis = <0>; > > + type = "critical"; > > + }; > > + }; > > + }; > > + > What happened to the downstream _2 (pmic@2) one and _4 (pmic@6)? > > Konrad > > > + pmm8654au_3_thermal: pm8775-3-thermal { > > + polling-delay-passive = <100>; > > + polling-delay = <0>; > > + thermal-sensors = <&pmm8654au_3_temp_alarm>; > > + > > + trips { > > + trip0 { > > + temperature = <105000>; > > + hysteresis = <0>; > > + type = "passive"; > > + }; > > + > > + trip1 { > > + temperature = <125000>; > > + hysteresis = <0>; > > + type = "critical"; > > + }; > > + }; > > + }; > > + }; > > +}; > > + > > &spmi_bus { > > pmm8654au_0: pmic@0 { > > compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; > > @@ -41,6 +85,13 @@ pmm8654au_1: pmic@2 { > > reg = <0x2 SPMI_USID>; > > #address-cells = <1>; > > #size-cells = <0>; > > + > > + pmm8654au_1_temp_alarm: temp-alarm@a00 { > > + compatible = "qcom,spmi-temp-alarm"; > > + reg = <0xa00>; > > + interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > > + #thermal-sensor-cells = <0>; > > + }; > > }; > > > > pmm8654au_2: pmic@4 { > > @@ -55,5 +106,12 @@ pmm8654au_3: pmic@6 { > > reg = <0x6 SPMI_USID>; > > #address-cells = <1>; > > #size-cells = <0>; > > + > > + pmm8654au_3_temp_alarm: temp-alarm@a00 { > > + compatible = "qcom,spmi-temp-alarm"; > > + reg = <0xa00>; > > + interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > > + #thermal-sensor-cells = <0>; > > + }; > > }; > > };
On Wed, Mar 22, 2023 at 3:47 AM Bjorn Andersson <andersson@kernel.org> wrote: > > On Mon, Mar 20, 2023 at 06:28:20PM +0100, Konrad Dybcio wrote: > > > > > > On 20.03.2023 16:48, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > > > Add the thermal zones and associated alarm nodes for the PMICs that have > > > them hooked up on sa8775p-ride. > > > > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > --- > > > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 58 +++++++++++++++++++++ > > > 1 file changed, 58 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > > index 8616ead3daf5..276070b62ccd 100644 > > > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > > @@ -6,6 +6,50 @@ > > > #include <dt-bindings/input/input.h> > > > #include <dt-bindings/spmi/spmi.h> > > > > > > +/ { > > > + thermal-zones { > > > + pmm8654au_1_thermal: pm8775-1-thermal { > > Please reindex this, downstream uses _1 for pmic@0, but this > > makes little sense. Make it match the SID. > > > > Please use the naming from the schematics for these things, rather than > just an iterator (which might be what Bartosz is doing here). > Not sure how to approach that. All currently existing "qcom,spmi-temp-alarm" nodes use the PMIC name for the label. Otherwise it would have to go into the board file and be replicated for each board using the same PMIC? Bart > Regards, > Bjorn > > > > + polling-delay-passive = <100>; > > > + polling-delay = <0>; > > > + thermal-sensors = <&pmm8654au_1_temp_alarm>; > > > + > > > + trips { > > > + trip0 { > > > + temperature = <105000>; > > > + hysteresis = <0>; > > > + type = "passive"; > > > + }; > > > + > > > + trip1 { > > > + temperature = <125000>; > > > + hysteresis = <0>; > > > + type = "critical"; > > > + }; > > > + }; > > > + }; > > > + > > What happened to the downstream _2 (pmic@2) one and _4 (pmic@6)? > > > > Konrad > > > > > + pmm8654au_3_thermal: pm8775-3-thermal { > > > + polling-delay-passive = <100>; > > > + polling-delay = <0>; > > > + thermal-sensors = <&pmm8654au_3_temp_alarm>; > > > + > > > + trips { > > > + trip0 { > > > + temperature = <105000>; > > > + hysteresis = <0>; > > > + type = "passive"; > > > + }; > > > + > > > + trip1 { > > > + temperature = <125000>; > > > + hysteresis = <0>; > > > + type = "critical"; > > > + }; > > > + }; > > > + }; > > > + }; > > > +}; > > > + > > > &spmi_bus { > > > pmm8654au_0: pmic@0 { > > > compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; > > > @@ -41,6 +85,13 @@ pmm8654au_1: pmic@2 { > > > reg = <0x2 SPMI_USID>; > > > #address-cells = <1>; > > > #size-cells = <0>; > > > + > > > + pmm8654au_1_temp_alarm: temp-alarm@a00 { > > > + compatible = "qcom,spmi-temp-alarm"; > > > + reg = <0xa00>; > > > + interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > > > + #thermal-sensor-cells = <0>; > > > + }; > > > }; > > > > > > pmm8654au_2: pmic@4 { > > > @@ -55,5 +106,12 @@ pmm8654au_3: pmic@6 { > > > reg = <0x6 SPMI_USID>; > > > #address-cells = <1>; > > > #size-cells = <0>; > > > + > > > + pmm8654au_3_temp_alarm: temp-alarm@a00 { > > > + compatible = "qcom,spmi-temp-alarm"; > > > + reg = <0xa00>; > > > + interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > > > + #thermal-sensor-cells = <0>; > > > + }; > > > }; > > > };
diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 8616ead3daf5..276070b62ccd 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -6,6 +6,50 @@ #include <dt-bindings/input/input.h> #include <dt-bindings/spmi/spmi.h> +/ { + thermal-zones { + pmm8654au_1_thermal: pm8775-1-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmm8654au_1_temp_alarm>; + + trips { + trip0 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + pmm8654au_3_thermal: pm8775-3-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmm8654au_3_temp_alarm>; + + trips { + trip0 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pmm8654au_0: pmic@0 { compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; @@ -41,6 +85,13 @@ pmm8654au_1: pmic@2 { reg = <0x2 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmm8654au_1_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; }; pmm8654au_2: pmic@4 { @@ -55,5 +106,12 @@ pmm8654au_3: pmic@6 { reg = <0x6 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmm8654au_3_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; }; };