From patchwork Thu Nov 3 07:09:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 621460 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA35BC4332F for ; Thu, 3 Nov 2022 07:09:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbiKCHJz (ORCPT ); Thu, 3 Nov 2022 03:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbiKCHJq (ORCPT ); Thu, 3 Nov 2022 03:09:46 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10293BE07 for ; Thu, 3 Nov 2022 00:09:42 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id gw22so825881pjb.3 for ; Thu, 03 Nov 2022 00:09:42 -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=Y2bk7pRYobVWNftG5GXW6pX8qzOqi3/Pti4Jd+nYDpQ=; b=MPlN1lHeWyyr/qqGI08Q4sE44tpm3RZKK8Jnv+rPqOFeYKtcD1mKsxdFepnKzufC3l MElM3zA0aTBKptox/lWPdVUWNF6E9LMsdCVv6lavSOkWEYVSbgTC5CKZQ74+RuF1zmFL lW27ol8KKeHE6CREtLWMXTXFoUJgEAYhkZVRDBwmGJ18wuJEAlG0qQt1dsU+ZKCmNXXe 0Jt4ljkhhlFoACMmepTKKtYsTzRldFJBKtNW/1bV/+vGjizuwhPN+1HjfxGjcTSj2sRX jjazKq6GivhHodHMfdeAOYaSTN5M03DwEw8hHqQdr3Jx3yyQWOsYNNVWvZ82NBViKHHH 5+fQ== 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=Y2bk7pRYobVWNftG5GXW6pX8qzOqi3/Pti4Jd+nYDpQ=; b=niZ8aTJ9sv4Od3wxWhpD8Fmu/EC4SR4X/IgmlsPfllgaKxhpaAb8Wpz40i2SMonL8N RbS4JvpPk5fY57Ke0a6glQ0K+skYNa3mHD05dROC0qY58e+CyBwL8XxvpOyW6eyGY77h sZTBsBsDQ+rC3JWsQaAJLJ/vOLsInzFiuqXVGKSIffCsLzGvlm6skirfHgroedd8f29Y c0gsPWhBktrtQgQQlZJZcmHrHjhtN1bESJPwLVz5nWrOnqvCPSQhKsCzVkBkvFjWoNOC MjTitKQ2Z9C43WXniazmt1v+H8f6cg1KbsOJgvdwN0EN0FVqdGckPIpTQW62GDeQZrHk YS1Q== X-Gm-Message-State: ACrzQf3Ty/avSvrsEokHUV2RzbdDcbjHHtyZluGjui2u/icMvqYYxu6Q unI7GXTM0WxVNog+ek1pYAPP X-Google-Smtp-Source: AMsMyM6Q+z52ghR9YK7/1LqrTk3FEYFbZoZsvK1H+bdlFO2aX/dpVg0y10iWbJ6PbvrZN+QDuLQoxw== X-Received: by 2002:a17:902:d489:b0:187:2b1d:1101 with SMTP id c9-20020a170902d48900b001872b1d1101mr16660361plg.158.1667459381540; Thu, 03 Nov 2022 00:09:41 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.64]) by smtp.gmail.com with ESMTPSA id s9-20020a170903214900b00186748fe6ccsm9451244ple.214.2022.11.03.00.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 00:09:40 -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 v3 02/12] arm64: dts: qcom: sc8280xp-pmics: Add temp alarm for PM8280_{1/2} PMICs Date: Thu, 3 Nov 2022 12:39:01 +0530 Message-Id: <20221103070911.20019-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221103070911.20019-1-manivannan.sadhasivam@linaro.org> References: <20221103070911.20019-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for temperature alarm feature in the PM8280_{1/2} PMICs. Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski Signed-off-by: Manivannan Sadhasivam --- 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>;