From patchwork Thu Oct 27 06:29:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 11594 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp62832wru; Wed, 26 Oct 2022 23:32:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6N2CIJUooBFybtfncgxsv1IK968yeupceHbI9bfe1YZNh0q2Uby6shTiErvE0IoLhbOybU X-Received: by 2002:a63:5643:0:b0:44d:b691:1da1 with SMTP id g3-20020a635643000000b0044db6911da1mr41708332pgm.450.1666852337046; Wed, 26 Oct 2022 23:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666852337; cv=none; d=google.com; s=arc-20160816; b=N4GENlobOtE7SxR1Y/1ohf1ozTsw1+0egyfWkMioQe7pbkXbfupZ0KzCB7CyxJUmxF h3dbah834DHLA76SaikX2uVa/2j4cCaFDCy4nZ3hlIJohC1yF/CYjJ/efjBPLCb/K9hD 6/DCkr7CW70IzfJJDUP7mFoknRKB2k8S3PIjmg7Mo0uPeb2bVWsOpzuU/hrNXOfgP+9E ZHyKMGvKsAfC+EiRKZx5zrBTzYkI/xLW6J3DRokdzZD7oQgojzYY65iJNF9BV3jfbvCk WOxIiEXDz/5oWS2Y4bfp2HxfoUUVxQEXfBd2nXekIJbcGldDZNoezKxEA9T8JDPFXE3a AH/A== 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=I3veF0RIHpX0CdQbsLknhlqADPUiDaLKaJ5CbIGVoTs=; b=nK37gFq6gsSqyIiEfkJs885o/31mnDaudNlVpIuOvxqMOA7XP3mARMOtYR74Yx1R4D r+MQ8alJ7IR3XuhHih/IJEHB5Fu3hobNoJaz7e4DO8B7xUBSWnLpZtGjy8tLLdGW6Xos gxrWFtvYRWTA2/buHptdyKp0XQCV6Mx2WS9pbzRYJWGzMXvmC0iLivozwsFQsDoKraY2 l6RvVA0b6OtJKDNX3H+b5hEAV9aUKTbIm8aiGjOAnKIsxuxV365kpv7R//VjnNvAlrVF pJxAPz/hff/OD4lXek6N8p+oCSc70bqARAnibk1FOS9L8cx+HkZeszcur6QJhiY/QBh4 OLCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CsBIoRya; 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 bh9-20020a056a02020900b0046edd621584si652097pgb.185.2022.10.26.23.32.03; Wed, 26 Oct 2022 23:32:17 -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=CsBIoRya; 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 S234273AbiJ0Gas (ORCPT + 99 others); Thu, 27 Oct 2022 02:30:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234041AbiJ0Gab (ORCPT ); Thu, 27 Oct 2022 02:30:31 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 780F2148F46 for ; Wed, 26 Oct 2022 23:30:27 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id v13-20020a17090a6b0d00b0021332e5388fso576536pjj.1 for ; Wed, 26 Oct 2022 23:30:27 -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=I3veF0RIHpX0CdQbsLknhlqADPUiDaLKaJ5CbIGVoTs=; b=CsBIoRyaa1kU6iBMEFjS7eCHWONqP6iN1FpzYEopNunqPoDvyOXSxP16LZdEjxuMTj NpARwVLwH6Ej3QLtKbveyUL5lK6aSHXWxCIouNJV9izmS/QKMHzpGLGZC3DpZtkBb7t0 SoytUn2/CW77RR8CMCVy8BlTtW/xrEfqeXSbhoJPlEDi/uyWea2Iy7SJ0WupQ7U+oyCM iWTXGAW9rpVbYIHQPk0CyT374E5q8Zab3b0O9Pxsvn1U9CZpoAHUW4iXPTWcvBuJwSS6 yiRWnifksAVLbToc3vItxSUHx+gbAwJqIxy+cYbHrm3H73NebR+QAr9ciUW7Kozvj+0p tFzg== 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=I3veF0RIHpX0CdQbsLknhlqADPUiDaLKaJ5CbIGVoTs=; b=nh7HObphWjnmq9FlDGu05hMLzg/MUjaCkRGm9m5hz+ihMXvfAh295t7ce103yrq7ue VRJFRsQj8GlzLGQ0Jtj/wTULfxB1xfhcyksP9MXcvVbgNlZ5fmzZ4YLR6YQBAM5SA/B9 xzNzBRFAfQNhM9LprebuHqHHLz4oPV8HJD06vgH3QNGhDKw3n3EEYtmxt6XaNEDLzAJ6 je7yvtNS2pBlzOCfDPrKeVv5yHs+aCXpM5vxpihO7cNBt6K5eKTm4GzoTYccHGIEYkka KpxLJM4R1KDA3x8XjQliglSmmgcD7s/MOFPXc/FHr1kxDoUA+s7R+FIyOvJofmolFyzx C5Rg== X-Gm-Message-State: ACrzQf0TNMJZQxBvO9gXzAX9Dv274MQCdxGdpnpgTEiHNxRGFWAl+hRR CVS7BAd1WCOObJ8T8GPHl8Cu X-Received: by 2002:a17:90b:4d0d:b0:1fb:a86d:e752 with SMTP id mw13-20020a17090b4d0d00b001fba86de752mr8458855pjb.120.1666852226569; Wed, 26 Oct 2022 23:30:26 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.123]) by smtp.gmail.com with ESMTPSA id i126-20020a626d84000000b00561d79f1064sm446041pfc.57.2022.10.26.23.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:30:25 -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, Manivannan Sadhasivam Subject: [PATCH 02/11] arm64: dts: qcom: sc8280xp-pmics: Add temp alarm for PM8280_{1/2} PMICs Date: Thu, 27 Oct 2022 11:59:57 +0530 Message-Id: <20221027063006.9056-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221027063006.9056-1-manivannan.sadhasivam@linaro.org> References: <20221027063006.9056-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?1747821355763421830?= X-GMAIL-MSGID: =?utf-8?q?1747821355763421830?= Add support for temperature alarm feature in the PM8280_{1/2} PMICs. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski --- 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>;