Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4077305rwl; Tue, 28 Mar 2023 02:10:21 -0700 (PDT) X-Google-Smtp-Source: AKy350Y+hfSRVxqFVSsiikRsXNrb47Mx39RclmpVMFVyOw5pUhW+V87BgQ1jPdHQaGHzNq4oF61g X-Received: by 2002:a17:906:d97:b0:8b1:2c37:ae97 with SMTP id m23-20020a1709060d9700b008b12c37ae97mr16662422eji.43.1679994620753; Tue, 28 Mar 2023 02:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679994620; cv=none; d=google.com; s=arc-20160816; b=NRjok1A/vF+v61Js+PIamxh66W6dYG2G/rzIzfrK1zt/8GT+VCsBiSk/qsFDodXgR9 5HhU/IA6g+jzt2McuVNtQA1iPZYn5OHOGV45EqgqbIvt7Cuz2jYenLssbGeLDy7g8XPp 32sG0Ak5lWj8dZ6IG9tVIpR13TkiZANZFUxk7fSCX73ueNmq1dm8zpijdqIpT0fE02FX DepBYYKKyNKq9CLBtYTxaC8tEPCKADFGC+CGhFUDU7WWjbwqFc/yi2eAVfCYwpqXZrrN AYp19ta2kmRWeSH18qoVBL7M9CLZ+tXy0lFmKaFSI2zbcrBsfhqlKRcTzicE8phIv95i OHZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=actq2WeTvZHRPO+xuu69UpBHWTSZaC33gGdS9BhQnbU=; b=YyPF3V7PUkk5009J/GD8baDSJ2SyiiD3IMusn4LJrQNi3EK097sgi0qDDtyIifk+Fq /lRip+aaomHgCQXt0I9E658A0jnOCNybkFrLMzl2c2CGWvIovdgccxiQ1u/J/y4hfcas m1ctFt/tt/xbP4Jk2GpzcJj+ctpUBRO3z0bO9FQT6GR0qfhfrq5lj1+vYejos8Vy3AZK gJdJsdEvHy8FtY/XJ27LlJ0drTPFQ0eCfKd+RzxGq+H9M5yXMq/kpORmiH+LvaVb9R24 DAw0fmYcli3gJ5a7rvxzmFGw3GH8o33EmaqxqbFa2efbK3GRCl/5T8w0MvsdySPR/J0h /6aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IE6s1bjd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz38-20020a1709077da600b00939a0e68aa6si16368586ejc.418.2023.03.28.02.09.55; Tue, 28 Mar 2023 02:10:20 -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=@linaro.org header.s=google header.b=IE6s1bjd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232467AbjC1JGR (ORCPT + 99 others); Tue, 28 Mar 2023 05:06:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjC1JGN (ORCPT ); Tue, 28 Mar 2023 05:06:13 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0965D618A for ; Tue, 28 Mar 2023 02:05:48 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id h25so14861722lfv.6 for ; Tue, 28 Mar 2023 02:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679994346; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=actq2WeTvZHRPO+xuu69UpBHWTSZaC33gGdS9BhQnbU=; b=IE6s1bjdunUtEyXnwUhhDsPmmO976NnrXA1824eDJOu01pEbuVlUxL0p5EZVtp18UM hHcVOpAoC2UfnipTPBNvxtWFeX8Q1gXIRPQGIZ2I0hgQ2s2PhbncBWkHFEFxeOlnL7Un eCGLx1GX1NaCTfHXsSrsroI0zzk93ZlxtoXFJimEJeKSzAZCBkcwAvsWbjO+NIiCkSL5 ntV7Doj5wdZnZa83XHyCEm/9oMd79t4LOQAAOsOsMKypwKIP426Hxs2Jr7Cb7AmWd2FZ Z9tN8chUlkUcm3rt5y0MmZ+STHru1JVlxlX4lFM5CCBmaksvYRrk96TltF7HADXH1Che /gwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679994346; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=actq2WeTvZHRPO+xuu69UpBHWTSZaC33gGdS9BhQnbU=; b=LsmloTB0DAOGnL5vgMEcpky2Tfry91vBNdJPDiHnb/QrwC0wcmfBdAqh/HEw//3V/k 12WHPbmTXFIsDob8JQt1oIXnK7LjNDhiaxfAppBSX+6hT43dHP0f9uzglLwkW0cegocF gOkLrIPDTfWoHm13wmJDWit+xY1rggPJxvYYZYq1JysAl2gi5Fj4Z8kytCjYZCzyGsSQ UsydHuHiLvJz7pEQOAp9Ri4iWBeNU/BFhRUx+3UX9tTD9A57bfEaxDhE+zkpiAsiMUS5 t9poa0qU3Dp7aj51uReJTsDig940IIcFJ/UmgzO1hFpKiCEfBOxKGKr0N2NoggYwPrbg MixA== X-Gm-Message-State: AAQBX9dEv9vabiuUgBtFUcMH1gDo6BEKwn23a6c8dyvHEQU2cxGOFt5b +0XKLwf4nJAkrzVu9b8Dhry8Kg== X-Received: by 2002:ac2:568f:0:b0:4cc:73ff:579a with SMTP id 15-20020ac2568f000000b004cc73ff579amr4127778lfr.38.1679994346157; Tue, 28 Mar 2023 02:05:46 -0700 (PDT) Received: from [192.168.1.101] (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id b28-20020a056512025c00b004cb0dd2367fsm4976465lfo.308.2023.03.28.02.05.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Mar 2023 02:05:45 -0700 (PDT) Message-ID: Date: Tue, 28 Mar 2023 11:05:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 11/18] arm64: dts: qcom: sa8775p: pmic: add thermal zones Content-Language: en-US To: Bartosz Golaszewski , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski References: <20230327125316.210812-1-brgl@bgdev.pl> <20230327125316.210812-12-brgl@bgdev.pl> From: Konrad Dybcio In-Reply-To: <20230327125316.210812-12-brgl@bgdev.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org On 27.03.2023 14:53, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add the thermal zones and associated alarm nodes for the PMICs that have > them hooked up on sa8775p-ride. > > Signed-off-by: Bartosz Golaszewski > --- Reviewed-by: Konrad Dybcio Konrad > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 112 ++++++++++++++++++++ > 1 file changed, 112 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > index 8616ead3daf5..be12997a080c 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > @@ -6,6 +6,90 @@ > #include > #include > > +/ { > + thermal-zones { > + pmm8654au_0_thermal: pm8775-0-thermal { > + polling-delay-passive = <100>; > + polling-delay = <0>; > + thermal-sensors = <&pmm8654au_0_temp_alarm>; > + > + trips { > + trip0 { > + temperature = <105000>; > + hysteresis = <0>; > + type = "passive"; > + }; > + > + trip1 { > + temperature = <125000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + }; > + > + 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_2_thermal: pm8775-2-thermal { > + polling-delay-passive = <100>; > + polling-delay = <0>; > + thermal-sensors = <&pmm8654au_2_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"; > @@ -13,6 +97,13 @@ pmm8654au_0: pmic@0 { > #address-cells = <1>; > #size-cells = <0>; > > + pmm8654au_0_temp_alarm: temp-alarm@a00 { > + compatible = "qcom,spmi-temp-alarm"; > + reg = <0xa00>; > + interrupts-extended = <&spmi_bus 0x0 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > + #thermal-sensor-cells = <0>; > + }; > + > pmm8654au_0_pon: pon@1200 { > compatible = "qcom,pmk8350-pon"; > reg = <0x1200>, <0x800>; > @@ -41,6 +132,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 { > @@ -48,6 +146,13 @@ pmm8654au_2: pmic@4 { > reg = <0x4 SPMI_USID>; > #address-cells = <1>; > #size-cells = <0>; > + > + pmm8654au_2_temp_alarm: temp-alarm@a00 { > + compatible = "qcom,spmi-temp-alarm"; > + reg = <0xa00>; > + interrupts-extended = <&spmi_bus 0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; > + #thermal-sensor-cells = <0>; > + }; > }; > > pmm8654au_3: pmic@6 { > @@ -55,5 +160,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>; > + }; > }; > };