From patchwork Sat Feb 26 20:50:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 546516 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 B5781C4332F for ; Sat, 26 Feb 2022 20:50:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229614AbiBZUvP (ORCPT ); Sat, 26 Feb 2022 15:51:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbiBZUvO (ORCPT ); Sat, 26 Feb 2022 15:51:14 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38D12622B0 for ; Sat, 26 Feb 2022 12:50:38 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id t13so3093015lfd.9 for ; Sat, 26 Feb 2022 12:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HOLqLbfCIn2aqo8NSXSJoHKk1yF+2y2hXka94aKAaI0=; b=JEeKST/g8Zx6/s1/WoGcEKGRq/ozZSOMpynH6syHFZYHUFBKrrL8ghQgijfnMshIpN 3oxuoPzftkad08G7iK7hCPpau9SgId+au+zgcAk0YU/VERyKXOUSbi3wq0Pqmt8WQ3ox Gs4tlY45mWXhErUVNSCX8zA84sYZdXWw7r7BaRCi8znX1vZGxs09/67spiBvbiFSWZ8R 7kEofav0wdG1GWopOd9yO8cmGDKupy7Rn7zun65kLx8rtGoDI2DOkFMRFJzdtyLWhSyz 7kYFa9Kp5AuQEQtcHtgMe3Vjt/au3FwpGgKjVDkls70Zbo/VH/DEg51/uSDl4eDoeDyo /B9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HOLqLbfCIn2aqo8NSXSJoHKk1yF+2y2hXka94aKAaI0=; b=BrrPjnkBwmbcUXyMACHjZ3ERA1dUAKFySjzjtN2b98a2h99758yQz9H1ka4HvSEbAE RKJ2e/uPQEC2YCehAffbZC4Nwzn+eABh6UzgXUDEDI3wspkfI5oWCP7keQof+JarpYBU tZJiXR8+4jvEXtarUrGjvPGMsvnkYPYS3piUCOGZ/AZH6MxM3q5hadqtoNjeJoDnDUrH cBR7sCKVi1SLbWXuEqSU9m6TOGItDyQAPHAUqBM4l48v8SRsjcYGNHmTEs/cfupPBiNu NZe9qFB7Z2GC8O8wN7NSMGtitOsczYEiLW/cSx26ZsolOn9RFsWktGLLza14bRbORqMi mQWA== X-Gm-Message-State: AOAM530xUjs3jZtkmmYTHLp1WBktpjDomBZujm1ExbovXBhwWd3NpOZg Z735tYvwnBBLQVsxyHnDKdxlgQ== X-Google-Smtp-Source: ABdhPJwGiHECX68qMV3v8XiCZtE06oYSjOd9ne2PeZm2Hz7O8wDRIsZPVtOrXftDVpJ4fv5V86fcsA== X-Received: by 2002:a05:6512:44f:b0:438:fc0b:dabe with SMTP id y15-20020a056512044f00b00438fc0bdabemr8544535lfk.222.1645908637184; Sat, 26 Feb 2022 12:50:37 -0800 (PST) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m27-20020ac24adb000000b004433bbaa3fdsm527162lfp.174.2022.02.26.12.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:50:36 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/7] arm64: dts: qcom: pm8350: add temp sensor and thermal zone config Date: Sat, 26 Feb 2022 23:50:29 +0300 Message-Id: <20220226205035.1826360-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> References: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add temp-alarm device tree node and a default configuration for the corresponding thermal zone for this PMIC. Temperatures are based on downstream values. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8350.dtsi | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8350.dtsi b/arch/arm64/boot/dts/qcom/pm8350.dtsi index 308f9ca7c744..b10f33afa5e3 100644 --- a/arch/arm64/boot/dts/qcom/pm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350.dtsi @@ -6,6 +6,30 @@ #include #include +/ { + thermal-zones { + pm8350_thermal: pm8350c-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8350_temp_alarm>; + + trips { + pm8350_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pm8350_crit: pm8350c-crit { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pm8350: pmic@1 { compatible = "qcom,pm8350", "qcom,spmi-pmic"; @@ -13,6 +37,13 @@ pm8350: pmic@1 { #address-cells = <1>; #size-cells = <0>; + pm8350_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pm8350_gpios: gpio@8800 { compatible = "qcom,pm8350-gpio"; reg = <0x8800>; From patchwork Sat Feb 26 20:50:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 546515 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 23D93C433F5 for ; Sat, 26 Feb 2022 20:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbiBZUvP (ORCPT ); Sat, 26 Feb 2022 15:51:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbiBZUvP (ORCPT ); Sat, 26 Feb 2022 15:51:15 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23B0B262957 for ; Sat, 26 Feb 2022 12:50:39 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id d23so15034549lfv.13 for ; Sat, 26 Feb 2022 12:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DIUQ9vZwSQIRd11hX6G1x3Kd7/D01rfTeUvmmz3aaR8=; b=OcyM7LyeuxRQNM+OxiZYaQnRSLtXmrOK+39/Uni9b/iG2DkqptuAQhXAm1u5Xi60Q3 Piqf7xln1CpN4fE8n/UlWfgKZG+X8E5KL/vCj2qot431uI2zOWoGmMSwwtoJqkw3udBE de0cGWTE6P1hQm5wSiJH4wBAeNlzvfDyUa74N31IoKcpKtmLLPvyrUVkGkBMyS9BuC54 7k6owc2ELvhnMy0CdjzFK5y7p+US9xnZgA6W3zHl1aViCcmR4Ag0dAaHljQtCvFthwF2 gv+/HC/7woEThn6DYaDlThcVz7Fcg/5oPvFTlG35Dmsv5XURds6AU9JVKLyGKExOt8xE KWQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DIUQ9vZwSQIRd11hX6G1x3Kd7/D01rfTeUvmmz3aaR8=; b=PXy94EV0F7BI1EWQCLiD4OaY/BSomuQA9Wxuqn/jA23BpVmQFzqzyyHXAw5AjS7dBw VwVIXuq0AnAS4R4cx3eEyBVHkhw5kRDiQhbIgV0peHKCCXNJI3aj+wjfK0ABjsHqEHFj rD8IM756Po5iHql3AUzQ6caEEWxhXaX+uT9BxhFg7+kmQ/JHK3N+PVEvzHCwJWQK4/VD 6kxI+H/iN3bgYHOiEYg/fgsFaOu2mrc7YGhbaccYglNtG/KOMEmjSU7l48/kj9XVmKyP EjZkUIJ5GIGmV24yZqGcN57+RQ/x+/jsMnyaSpNFk14dxPiScZ0Q0Q+VLMBsCZWxI+p0 efoA== X-Gm-Message-State: AOAM530KwvQE+UeLQHTdKgnkQOWzxsoSnwQSdlKAYcQT6+nRDmksb6Qe /+Vh7Nc3GeMgUx+WYyv9+hL00A== X-Google-Smtp-Source: ABdhPJxyNlE7jxVx5CVZDvNcySLSJQmOp556tLd/mbhLGraFuz4+74FEOLrIS/DOdJeFwumj0qHNsg== X-Received: by 2002:a05:6512:c09:b0:442:d4fa:9bce with SMTP id z9-20020a0565120c0900b00442d4fa9bcemr8773459lfu.483.1645908638110; Sat, 26 Feb 2022 12:50:38 -0800 (PST) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m27-20020ac24adb000000b004433bbaa3fdsm527162lfp.174.2022.02.26.12.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:50:37 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/7] arm64: dts: qcom: pm8350b: add temp sensor and thermal zone config Date: Sat, 26 Feb 2022 23:50:30 +0300 Message-Id: <20220226205035.1826360-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> References: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add temp-alarm device tree node and a default configuration for the corresponding thermal zone for this PMIC. Temperatures are based on downstream values. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8350b.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8350b.dtsi b/arch/arm64/boot/dts/qcom/pm8350b.dtsi index b23bb1d49a4d..f1d1d4c8edf8 100644 --- a/arch/arm64/boot/dts/qcom/pm8350b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350b.dtsi @@ -6,6 +6,30 @@ #include #include +/ { + thermal-zones { + pm8350b_thermal: pm8350c-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8350b_temp_alarm>; + + trips { + pm8350b_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pm8350b_crit: pm8350c-crit { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pm8350b: pmic@3 { compatible = "qcom,pm8350b", "qcom,spmi-pmic"; @@ -13,6 +37,13 @@ pm8350b: pmic@3 { #address-cells = <1>; #size-cells = <0>; + pm8350b_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pm8350b_gpios: gpio@8800 { compatible = "qcom,pm8350b-gpio"; reg = <0x8800>; From patchwork Sat Feb 26 20:50:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 546223 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 BEDD5C433EF for ; Sat, 26 Feb 2022 20:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D70E2668D3 for ; Sat, 26 Feb 2022 12:50:40 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id p20so12135264ljo.0 for ; Sat, 26 Feb 2022 12:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5YSGyAyPF45kPZTOEBiFjB51m3jGTYQBjmE+p3kIZYw=; b=uQeX4q133YKohaCiUnKyFr4TSJ7jGHyby1zap2LNOkjZH3sRMxtVWFjKYtAl5sRJbn v+h3fv/L8nVdkLtArFESl9ztItt054L3wnG7I2I+eaWwemYZwgjZXzvMWN9iJRGRBDwJ kiytsn9vNUoRazEVTkAPSHO+wh11xk3IjvFRKZeekaa2VRw2zwJI4X2gPDKTnBsxXXXh 8e2g/LozEgF6927whLSfGHTY6ho7PbA5LbzjAMWZX3Na52ZIdQYEnqPZ4MIMk5sdgQzp eZCuC7BReK6gnoYi+58LWl2+SaNRqm1pzuG2yzq8rkBpmnJz06qiirzM73z3XVVuwsIz Ckrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5YSGyAyPF45kPZTOEBiFjB51m3jGTYQBjmE+p3kIZYw=; b=5QkqgZ1ANiKB6l/wloL3v4+l0SYTtNLFU5/JxWJWwPumVHhtpowGGHZvN/a6llB7Qo AxR4jKm8xi3zGv79TcqKkJiflSfPPvxe8/CRVSOGAQKuShxKCgY/iNQ8usLA5nacn3ze pgWZyXmaCOHbJkAPtVSu/jZMuXHze0k+jd02/ILLnB8BL3Zr+QvKyV8uwT40eSRHVdzC Gm4HvR4DPB10fN6zszVEZ4GfvUgIeB/YeFOr5Hoc1KG5spo7GskwUu16CdFSz32LL88W wRzMsnggjqXYAPBJLD/aLdiAmqhiNBX5tjvc+Vf8AuHoMwhj81k4BMXA1NRkAt9YmP3k JZxw== X-Gm-Message-State: AOAM533G29wrCLyXR/gSgDRGyFI4/y7qogt5UryCIE722kYl8qCpe3bY BJcKL1kRMmHvw8aNgNohnkyxqA== X-Google-Smtp-Source: ABdhPJy8aCgRcDZc35d8Vy+tF/TT9W4JAPh4z5h+QW4D8lqoziyp69NAriolByHTgJ+VA1dHorEVvw== X-Received: by 2002:a2e:80c6:0:b0:233:66cc:f565 with SMTP id r6-20020a2e80c6000000b0023366ccf565mr9864271ljg.236.1645908638875; Sat, 26 Feb 2022 12:50:38 -0800 (PST) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m27-20020ac24adb000000b004433bbaa3fdsm527162lfp.174.2022.02.26.12.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:50:38 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/7] arm64: dts: qcom: pmr735b: add temp sensor and thermal zone config Date: Sat, 26 Feb 2022 23:50:31 +0300 Message-Id: <20220226205035.1826360-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> References: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add temp-alarm device tree node and a default configuration for the corresponding thermal zone for this PMIC. Temperatures are based on downstream values. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pmr735b.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmr735b.dtsi b/arch/arm64/boot/dts/qcom/pmr735b.dtsi index 1144086280f5..604324188603 100644 --- a/arch/arm64/boot/dts/qcom/pmr735b.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735b.dtsi @@ -6,6 +6,30 @@ #include #include +/ { + thermal-zones { + pmr735a_thermal: pmr735a-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmr735b_temp_alarm>; + + trips { + pmr735b_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + pmr735b_crit: pmr735a-crit { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pmr735b: pmic@5 { compatible = "qcom,pmr735b", "qcom,spmi-pmic"; @@ -13,6 +37,13 @@ pmr735b: pmic@5 { #address-cells = <1>; #size-cells = <0>; + pmr735b_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + pmr735b_gpios: gpio@8800 { compatible = "qcom,pmr735b-gpio"; reg = <0x8800>; From patchwork Sat Feb 26 20:50:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 546222 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 498C1C43219 for ; Sat, 26 Feb 2022 20:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B5DD2622B0 for ; Sat, 26 Feb 2022 12:50:41 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id t13so3093105lfd.9 for ; Sat, 26 Feb 2022 12:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lfQnvVbFnRT7eimkarqJQ8hVcsrxx9J9cGgDkN62cmM=; b=uWUtYRWsgMgb+yVtou0c5UVgl7UqX02e68cNKPHvWSqieX3hDlJ9lz1oZzF52myq3Y JQABLzXNjfb9PoYlUWfTCi7sNGrf6Qi4I5YZ2THQJhb1dFV/gi2uksxsa22n0B4yokcB LntOaip20nPqPrZAmyaf25fd4BIYM/etR8poXfvPVVnPupYMFPmK3TH7e6Nuk6wSJAZe Q/LJ5W6oueUVMRPvu2f2ksvS2hPdWnNHm5XYhWkuOToiYGVUoIxwEjjM/E8pVkZFWNHZ RqmWotlORqEgXLmBLBKQiCOikx7zT0ZFimxwKLSZmjeS3id4Z9/y45kAVGctbHCsCtjV Nsfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lfQnvVbFnRT7eimkarqJQ8hVcsrxx9J9cGgDkN62cmM=; b=Pbs7oGyGrVTb512jzMUGmQ8gpKWkRACLCTt43KKZJAdYoFfnXQqA1zuqRUzY/iTUnp bUdi4OOeEUxGxhftjdfqH/YGBTt+Buxfdo/YgivExB//w/79XXPmaARe/AAoFCAtIbUY 2//4dD0s0dqzYAjo2rYWMqWy+N9vIs5OQF3qCUcBiVt6dRJWjiPJeHfgZL14BHj5+ckO hD8lybOYvDE/vzMaiN+zD+wHCDL8VI4Xk067+elEFU3eJbdZ7DuYp/gDtxR+H/t4TYb3 kWY4QwUN/7g1JrHR+koBqQDA+RIppT3lph9j7zWml7BPhImmxNrNXMJclxboOhuKh7e3 jGrQ== X-Gm-Message-State: AOAM5305a5SVZSQSqA44DcVA6ztz/WmFXhVEL5E5tx6SpLNW9xHFdzOw o/zpdZD4FFQGqLLIu02LYeIroc2CfrraWA== X-Google-Smtp-Source: ABdhPJwJ5Qr0WdSPVKETLgcEfs9PsPYSxeYxNOqRSFkHfyd0S54W2xy3SEIL8w0bmEpN6bSKMPKJEw== X-Received: by 2002:a05:6512:1194:b0:43e:8e84:4eca with SMTP id g20-20020a056512119400b0043e8e844ecamr8445765lfr.611.1645908639779; Sat, 26 Feb 2022 12:50:39 -0800 (PST) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m27-20020ac24adb000000b004433bbaa3fdsm527162lfp.174.2022.02.26.12.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:50:39 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/7] arm64: dts: qcom: pm8350c: stop depending on thermal_zones label Date: Sat, 26 Feb 2022 23:50:32 +0300 Message-Id: <20220226205035.1826360-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> References: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Most of SoC device trees do not provide the thermal_zones label. Thus stop depending on it and use the full path to the thermal zones nodes. Fixes: 3795fe7d497b ("arm64: dts: qcom: pm8350c: Add temp-alarm support") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 32 ++++++++++++++------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi index e1b75ae0a823..9bc6464477bd 100644 --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -32,23 +32,25 @@ pm8350c_gpios: gpio@8800 { }; }; -&thermal_zones { - pm8350c_thermal: pm8350c-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8350c_temp_alarm>; +/ { + thermal-zones { + pm8350c_thermal: pm8350c-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pm8350c_temp_alarm>; - trips { - pm8350c_trip0: trip0 { - temperature = <95000>; - hysteresis = <0>; - type = "passive"; - }; + trips { + pm8350c_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; - pm8350c_crit: pm8350c-crit { - temperature = <115000>; - hysteresis = <0>; - type = "critical"; + pm8350c_crit: pm8350c-crit { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; }; }; }; From patchwork Sat Feb 26 20:50:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 546514 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 C2427C433FE for ; Sat, 26 Feb 2022 20:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbiBZUvR (ORCPT ); Sat, 26 Feb 2022 15:51:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbiBZUvR (ORCPT ); Sat, 26 Feb 2022 15:51:17 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27BAC2668D3 for ; Sat, 26 Feb 2022 12:50:42 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id j15so15056156lfe.11 for ; Sat, 26 Feb 2022 12:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gQA4GH1Z+azqMfPO7LkvbFbqC2W7I0+yeJzjbt7tPBg=; b=hwUD4Oh5QslDM8dDOaIBQdxGBjhz0qmYBmvVqSWeB+XYKVHeyXdqLbapAKQ/6svlAz zD8n61ojhKwIRemvHDg3o/G4mTtw9iVHt1zsU/w8BFqfLKG5/povIzfrJsafXtThZI2Q c2sW576aYSgM9LCS2QkOkscONy/88s5zVO8Yr42OW96ERKoGjNK5iQ6O4AWUd/k+muuZ FfMcf3DFwFphE4YUsrazUCKIny9mmv81waVTdc5CngIosF6F+guIOAAuwe4eVlozpBLb 5iuLnIA+DXgmcjMR672tFjHnzUhAO1H+Smupyp3IlSsHUJusWYms/tvIf7Y5uMy6bzIv 0WuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gQA4GH1Z+azqMfPO7LkvbFbqC2W7I0+yeJzjbt7tPBg=; b=XvEsRKRcbVgWU32N5Sn0bfba8gXykDFWr/f2AUYWBrr0VnDHQ7kYMds3ak4BqfC/1R wlUMg4/3S+pzx3xdBCT6zWydji5yBGcNYNDwBBMT/nnqMvQEUYWUgLTLLN7x59HqVzoL TDEExoB8Oevw7Wb2Wl2KKnPxoYCJWxFt1WqunIaIguwD4MM2dpRnyF0SzFsrlKybzS5h I21Eues3gd6jQvZh10a8zW865jDW5xEqYzrlTZyceBX8Uer6/wpXaSfI+8gnFk8hYVp4 cbEPGVyUnKuConq5krtShsS7MQVQxHWdEG337AQvSxt/R4rVUCgqVW74BqotebMbHjUZ CHSg== X-Gm-Message-State: AOAM532KZ6jW6GIMCZ0i/0FOxJRvfMgY1SKhGC0FP2IuXBpLrMq90wb3 OkAkEBfIC2Pl4In1gO/mvhCS2A== X-Google-Smtp-Source: ABdhPJyon5+KMKU+Y2OMUMkIoy6AYTU+bsbGu9xNOWIO6WHWa5ER+9SAZ5hEQEZUtGP8ZYG91NfeOw== X-Received: by 2002:ac2:4c56:0:b0:443:efbe:4349 with SMTP id o22-20020ac24c56000000b00443efbe4349mr8517738lfk.77.1645908640501; Sat, 26 Feb 2022 12:50:40 -0800 (PST) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m27-20020ac24adb000000b004433bbaa3fdsm527162lfp.174.2022.02.26.12.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:50:40 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 5/7] arm64: dts: qcom: pmr735a: stop depending on thermal_zones label Date: Sat, 26 Feb 2022 23:50:33 +0300 Message-Id: <20220226205035.1826360-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> References: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Most of SoC device trees do not provide the thermal_zones label. Thus stop depending on it and use the full path to the thermal zones nodes. Fixes: 7a3544e5d4e8 ("arm64: dts: qcom: pmr735a: Add temp-alarm support") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pmr735a.dtsi | 32 ++++++++++++++------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pmr735a.dtsi b/arch/arm64/boot/dts/qcom/pmr735a.dtsi index b4b6ba24f845..febda50779f9 100644 --- a/arch/arm64/boot/dts/qcom/pmr735a.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735a.dtsi @@ -32,23 +32,25 @@ pmr735a_gpios: gpio@8800 { }; }; -&thermal_zones { - pmr735a_thermal: pmr735a-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmr735a_temp_alarm>; +/ { + thermal-zones { + pmr735a_thermal: pmr735a-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + thermal-sensors = <&pmr735a_temp_alarm>; - trips { - pmr735a_trip0: trip0 { - temperature = <95000>; - hysteresis = <0>; - type = "passive"; - }; + trips { + pmr735a_trip0: trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; - pmr735a_crit: pmr735a-crit { - temperature = <115000>; - hysteresis = <0>; - type = "critical"; + pmr735a_crit: pmr735a-crit { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; }; }; }; From patchwork Sat Feb 26 20:50:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 546221 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 B0AFCC433F5 for ; Sat, 26 Feb 2022 20:50:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbiBZUvT (ORCPT ); Sat, 26 Feb 2022 15:51:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbiBZUvS (ORCPT ); Sat, 26 Feb 2022 15:51:18 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F20412668C7 for ; Sat, 26 Feb 2022 12:50:42 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id v22so12074233ljh.7 for ; Sat, 26 Feb 2022 12:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0GRBJZo/Dd5vHt5WPNK28fRIBBukyH/tjCF0hRWEwNM=; b=jgtxod9eCCwJP0O+bqg4N1D8BRUX9grn2dVsz1aWWFxsDQIF9H6SKMbmXVThpgA1D3 ++lcxqm3I6zWQHXYQPfcJ8WkPOVvWIh22rFuR84iaDFzZwkFdMxUTGFqQ/HnBzRiK40Z vYQ7ikwhpcrVJxOMdlJuXGTKFkRuku3b+lbfs38+xlj7QI/3z9UNPa+Io7NuwXtOoG6Q h4Vm39sLRFz1jP9tecTp3SsQWndPJEG9KxM8aR9tuhxSG2zYMwCXW3YHhJ0QTzKAZvFJ JNX5M4DjTkpPHgpcjJELFHd3e1UCek3udlu7nAdkw9M8rrqx98rt9zihxKoPMi7vmfxh 5WcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0GRBJZo/Dd5vHt5WPNK28fRIBBukyH/tjCF0hRWEwNM=; b=1S+qCDesktZPcvq06SPoTofcRY4Echcw9pmO/DAE5j5Z4+NzfbF5UnSc8Ed+GnEfB2 VCgYEUsW15w67qx7v72x1wIX4/0qdEXAVIz1qpxTBG/tJotbblvE4+2c8uQjZx5g5Nig 11ULzsU8ExBt6TycxrAwlyhkK50vPImiig65eGP31Kq7qjJVrBfbJtL9Zl0CbMHr0h0w YeN/luBLMxnBeGNN2xCGEeqZ2M+G5hxJwaHRRRaEtMYRkvGq7X8JxWPynN6QH/CEVtq1 3DZXC8S6MZwfPXtDFbi42HYKPeEA7VMrfrobShoyZYErocOMz1RPpOjxSQAFFlZBAa2D ogug== X-Gm-Message-State: AOAM532ddLQqxuaGzUHBY1F9Z/cqb4tTvD53fw5oV6h7+Vek1T7cu0RH JgIAWOEt0A4qlr//LvL8d2VhEg== X-Google-Smtp-Source: ABdhPJxDYFBNQ57N9SbX9ECa/es814EjmlD/G9jwbwlD5jZqMmPyOcKDQq4u5Qq7Hv+Yc+a3Pltciw== X-Received: by 2002:a2e:740e:0:b0:244:c716:159b with SMTP id p14-20020a2e740e000000b00244c716159bmr9095103ljc.95.1645908641272; Sat, 26 Feb 2022 12:50:41 -0800 (PST) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m27-20020ac24adb000000b004433bbaa3fdsm527162lfp.174.2022.02.26.12.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:50:40 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 6/7] dt-bindings: mfd: qcom-spmi-pmic: add pm8450 entry Date: Sat, 26 Feb 2022 23:50:34 +0300 Message-Id: <20220226205035.1826360-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> References: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add bindings for the PM8450 PMIC (qcom,pm8450). Signed-off-by: Dmitry Baryshkov Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt index a461ec2f758f..c77711614925 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt @@ -29,6 +29,7 @@ Required properties: "qcom,pm8150l", "qcom,pm8226", "qcom,pm8350c", + "qcom,pm8450", "qcom,pm8841", "qcom,pm8901", "qcom,pm8909", From patchwork Sat Feb 26 20:50:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 546513 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 05428C43217 for ; Sat, 26 Feb 2022 20:50:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbiBZUvT (ORCPT ); Sat, 26 Feb 2022 15:51:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiBZUvT (ORCPT ); Sat, 26 Feb 2022 15:51:19 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B672668D8 for ; Sat, 26 Feb 2022 12:50:43 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id s25so12075804lji.5 for ; Sat, 26 Feb 2022 12:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JB5Hp7egyGG1aqXfw3ffSMON5CVbgLKo1ODkm8HQykk=; b=AQfw8N8XtcX4GtrlN6Wg5l9+dzN2CwyrUG1gHPAxgVw1tIsP9SrOoxJdzhasUKyWyB NGcYfTwmUrAXhxXpTw5rIqXI1w15Z77NMeh5sDChyvuVPXpTSrhRJbo17Sg/vLo5pbzY 7JzfPLDHz1oq7/RVUdATy+Z8tDgawHxGpYiPPfdxh1itTsS5Pci9+iQFN0Gdj5wCEYxr g2XvxAV6eMljj9fgr2FNju7inD3yvtqD/AOSBr15dOxMWVyPkMGQNZ4AlsEcj/1BRImT 0Pm+pLhnhnxA2fwPdwzdVAQFBs1YR9UYoniirQwXsjrxKBERKYTwC8LkFIdKbHSo6SEC AsBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JB5Hp7egyGG1aqXfw3ffSMON5CVbgLKo1ODkm8HQykk=; b=WlOMirO1AMnfLA8h5WXvyop9ahMOLoGDJJZHKS0+O9CChyGdcHl+D86EQJhVfVU52r kReVAv4GJ+gOdSouPlFQf1mfvMQwrC+/qhGHYjWYlkP/Fpcu9QVUakAGwCj5BJRzvEJj T4NkZii3XBt6fIPwa8r3F5P9Gv6GfxypW7xb9rgrXiuQIV2+xFO61ltHb6zJU8aTe0n4 YHht96IorLZAkstdWsJl2F7hkn9soDDe0FVZmGLw6Rz2MnjyEfmN44god78ao9Bs88X9 QcvivnQWLglxmlI5NqGKDWX4rsQwTZntNnm6sKT27eWru9Bizy1cNcnn3rUy0lr4illi QqSA== X-Gm-Message-State: AOAM531esc/ZA9cSJ476K1dcpTY5iIlS2X0RMQyTdnRizIZgRXJUS6yQ wAV+coOfcVb16su/nIrWjU5VnA== X-Google-Smtp-Source: ABdhPJzT9vdLlCCOqH6Ztmiw7FeMd2tEOJ4v3pRDGgdXH5uVzQ3lI1s7zVn1f5xUTxxnAUpnv4JdkA== X-Received: by 2002:a05:651c:2cb:b0:23d:3168:915b with SMTP id f11-20020a05651c02cb00b0023d3168915bmr9136564ljo.22.1645908641976; Sat, 26 Feb 2022 12:50:41 -0800 (PST) Received: from umbar.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m27-20020ac24adb000000b004433bbaa3fdsm527162lfp.174.2022.02.26.12.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:50:41 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 7/7] arm64: dts: qcom: add pm8450 support Date: Sat, 26 Feb 2022 23:50:35 +0300 Message-Id: <20220226205035.1826360-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> References: <20220226205035.1826360-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add PM8450 PMIC device tree include file. It is going to be used by SM8450-based devices. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8450.dtsi | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8450.dtsi diff --git a/arch/arm64/boot/dts/qcom/pm8450.dtsi b/arch/arm64/boot/dts/qcom/pm8450.dtsi new file mode 100644 index 000000000000..ae5bce3cf46e --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8450.dtsi @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2022, Linaro Limited + */ + +#include +#include + +/ { + thermal-zones { + pm8450-thermal { + polling-delay-passive = <100>; + polling-delay = <0>; + + thermal-sensors = <&pm8450_temp_alarm>; + + trips { + trip0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <115000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + }; +}; + + +&spmi_bus { + pm8450: pmic@7 { + compatible = "qcom,pm8450", "qcom,spmi-pmic"; + reg = <0x7 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pm8450_temp_alarm: temp-alarm@a00 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0xa00>; + interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; + #thermal-sensor-cells = <0>; + }; + + pm8450_gpios: gpio@8800 { + compatible = "qcom,pm8450-gpio", "qcom,spmi-gpio"; + reg = <0x8800>; + gpio-controller; + gpio-ranges = <&pm8450_gpios 0 0 4>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; +};