From patchwork Sat Oct 29 05:14:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1192482wru; Fri, 28 Oct 2022 22:17:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6V6xHbLi8mu6TaukuYIGJVoZQ1Qh8VE7x4BvGYI0FiVwiYXiiqUo1Hvzc4f6JjgFZj7jUZ X-Received: by 2002:a17:906:730d:b0:78e:9ca5:3269 with SMTP id di13-20020a170906730d00b0078e9ca53269mr2525036ejc.366.1667020641143; Fri, 28 Oct 2022 22:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667020641; cv=none; d=google.com; s=arc-20160816; b=CGKkEn3Z8L1lSpLe5g3vrFK4qSE6KJ47Q+1i0KJ5ji8/r1kQb4GaPOwm49Lm9F1z2X tmSzm/1vFYMyo/xggIyoWGQyANYY+suRW86LIzHwUaddRrvFshKVVP8JlU3iRKr8uKVY MemR4pEhboBEiShcal5xP2W4EIFQhf0BxtJIs7YATIur3CZdNQ4jnzQW7rMjCEPnkFwb Drfxyq04j0qXHv5jwU9teKZ8F4K38PW3Wliw/CL05bZc9ii71g7pNZ1LTQuu7+UbmOhx 8TUV1VsWIWJTdcTTixhXjh2xyzx0dDriUmLn3AobWLtGg7uUQXmHTTkMArdAtgXKnjR0 rToA== 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=cVB8ZRCzWlgKeD0n1G3uLPw7pOjhEAhkxGK/vJbReQA=; b=vvRQQSWU6OzxoyIAIVFk6NvC2guSY4Xs3UC7psJPHLuXU0MbjkChPt7wFu7YCgrof9 7b/EaDUYDuUqomEggqQefinO6AZKCXC/ciQkcllxiaVIFd9eIZV1g/ZoNBFF43it2QzK O83eYNIDpA9yxuPSZk40OnET2w1lEhGH4Eg2k/WI7gQV5ZYpPGjv4H0tQqIA4FqxqpPW j+pK8pCOCEQXOMycFhi8hpg2fDm0mjLhKyW4qRGIMQCpKygauV5LsRL4dDgTaGoSN0vs 3N3FU9Yarb836RU8eDhjS2xJIgvO2Uccvw40ZL+4bzISnISF/DcXtDuxvAKg6OMrlqRG P9+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hhzv9coq; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd26-20020a1709076e1a00b00783ac0b4d32si747885ejc.941.2022.10.28.22.16.57; Fri, 28 Oct 2022 22:17:21 -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=hhzv9coq; 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 S229894AbiJ2FPW (ORCPT + 99 others); Sat, 29 Oct 2022 01:15:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbiJ2FPQ (ORCPT ); Sat, 29 Oct 2022 01:15:16 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1346763D04 for ; Fri, 28 Oct 2022 22:15:15 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id j7so2651709pjn.5 for ; Fri, 28 Oct 2022 22:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=cVB8ZRCzWlgKeD0n1G3uLPw7pOjhEAhkxGK/vJbReQA=; b=hhzv9coqb1SWZ5BX3K1uBbMDMv/vTikIAjMoPV6AZJIkz4yozy0vX3/P02D0JzTlkP zuppyO85dmxrp8k8bLn8fGYTeU5EpFDh6e1zX+FnocOx1t83DqmpSFwwj8e0rq6NXZLR D2lQPRWcV19B+7g1cCScQ+MVqu0eX4L0x46A7pnLXMYxZ6UW0WUeyLQ4d8SD3vLySLpj zBePLQrQf2Lcz1urdcSNEr7JhkVI3R1yiUVmpl8qG5iubU5fgWsyK9L+pKp/KQRnfoPi D2HNKV1fY2EgVU3zT1qY/3+neAm+7avSLpQFR7mxJGMdjjKi4ckh4bb8qGCAqgsvx/VB iqow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=cVB8ZRCzWlgKeD0n1G3uLPw7pOjhEAhkxGK/vJbReQA=; b=ij9wW8/Gr+w1VZWEgjclwXHCUnWjO6GnjAz4wI4E53P+tmJJ7PSyXbcUzbfBF6OXsA oByiEMWIDHCJtNFtL5jBRcNY3Sr+tDRVDPUQ79NwSAratfY/ABPr9IYvEuh1sstNlJKj UugWcXGWEYQYq49ts39We7xhphNnua4b0ZXfvv06L70Mx/J3YZWoOhOt8iAkN/Jl369h E7EPvDbxh8oj7mxW1kkVKpOPLIQ0GWGzhkR/eXdnr7hTQPwSsqLke4c1c7P+LXWV6hRe i+3WSNWA9O3pfWIKokoWu1hQsvyOAcfnD/PPJve5Jws04qVb64LdL28903c6Yzhbs8Gw s4CQ== X-Gm-Message-State: ACrzQf17pwu7TKEMf0mwSgabQ52t6kk/UEFDJwnPX9JwJSIgnTVn6ClU n2o9rey/REj4NTizQsT8OSE2 X-Received: by 2002:a17:90b:3d8b:b0:20d:3e7f:32d3 with SMTP id pq11-20020a17090b3d8b00b0020d3e7f32d3mr2956900pjb.22.1667020514542; Fri, 28 Oct 2022 22:15:14 -0700 (PDT) Received: from localhost.localdomain ([59.92.103.167]) by smtp.gmail.com with ESMTPSA id f5-20020a170902ce8500b0017e9b820a1asm363150plg.100.2022.10.28.22.15.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:15:13 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org, Manivannan Sadhasivam , Krzysztof Kozlowski Subject: [PATCH v2 02/12] arm64: dts: qcom: sc8280xp-pmics: Add temp alarm for PM8280_{1/2} PMICs Date: Sat, 29 Oct 2022 10:44:39 +0530 Message-Id: <20221029051449.30678-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747997835608338817?= X-GMAIL-MSGID: =?utf-8?q?1747997835608338817?= Add support for temperature alarm feature in the PM8280_{1/2} PMICs. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 24836b6b9bbc..5de47b1434a4 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -33,6 +33,13 @@ pmc8280_1: pmic@1 { #address-cells = <1>; #size-cells = <0>; + pm8280_1_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pmc8280_1_gpios: gpio@8800 { compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; reg = <0x8800>; @@ -78,6 +85,13 @@ pmc8280_2: pmic@3 { #address-cells = <1>; #size-cells = <0>; + pm8280_2_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pmc8280_2_gpios: gpio@8800 { compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; reg = <0x8800>;