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: 548309 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 81764C433FE for ; Sat, 26 Feb 2022 20:50:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbiBZUvP (ORCPT ); Sat, 26 Feb 2022 15:51:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbiBZUvO (ORCPT ); Sat, 26 Feb 2022 15:51:14 -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 D00CB261D3D for ; Sat, 26 Feb 2022 12:50:38 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id g39so15042151lfv.10 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=HossBntd3oPGULpAQVpkzUOz9eK1Q3GauRQQJQ9xoaM3s/jXORyOPJz2K2apq0ozFn e15PQjYTTDj0BxMn/lVziG+orH9gN9WG2GNWTlAHH4zbEwOy6Pq3kD9WH/d9YZS/NGP+ dV53eppk6vXh/RDpfr+G2KnsM8aHK5q1Ohu82ZRHoh2aT5YKcfbcYTCHh2DDGiR7r7fZ UTYccdLwuLcPNK/8adOTMGcZQk3niDWQsA/4pDnrt3oA1sLH39x4d2bMIlWskVKuVEYl Wde36qpDuxqngeFAKjLjwyxkMzgDXJMfyAz2TM3KSeCfzyimX89ds3uflCtkgljwmrxw Dq0g== X-Gm-Message-State: AOAM53351GsLH10NYMVi7sypz5Hua1y1+47CYyQxXyICkLFnJ0AYpSFk y+j3SbXPv1KY0jNf3IZgptykSQ== 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: linux-arm-msm@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: 548308 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 7B07AC43217 for ; Sat, 26 Feb 2022 20:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbiBZUvP (ORCPT ); Sat, 26 Feb 2022 15:51:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiBZUvP (ORCPT ); Sat, 26 Feb 2022 15:51:15 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5116C263429 for ; Sat, 26 Feb 2022 12:50:39 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id j7so15093412lfu.6 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=LfUZ7yHisnaZV0FJ9zP3fBT+pmOEqAl2YCvM2DaK+XgdMDXG4VU2OQriMwMVNobvMn vZ+l37pFHtImMY8q0WwubmPoLLCqe1TK9Md4unURv3zleQhTa58cQEzU+d4r8zFw32J3 dVz8Wyrw0yXMag0eaJyK1BVKdsa5+081k3/I40AZiff1AnRT3cbgDtM0lG2rCNs1Ufmu nvFtVXsTyR1l61ESF6MpsN462YA+yR6N49VA1bwbRk5xmmQGI05ztTH/QQZPa11K1TkT ny3vWFjePtDXzs9wUs2n+ZcIQopsifyhylBg7l0mjnE0GfWjLfYi/rM78LqdTlbsIuke lkUQ== X-Gm-Message-State: AOAM530GBv5TW7NlMwf9WTQpmAqIyEysMuGMYMyYu+adQ3eSMPLyZ651 6Z9Sh48/2lRkz8BUdBMRflvANMwkOqZktw== 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: linux-arm-msm@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: 546196 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 31431C4321E for ; Sat, 26 Feb 2022 20:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E807262957 for ; Sat, 26 Feb 2022 12:50:40 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id e8so12087912ljj.2 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=zPyWr/VGnEZoMElkQ2dODpKSh0ZY2eXJ/pz1rDenpEiOnN0T1osx8ZORRBTwcRNv6Y 6zUAkoE/5wBCKt8uHZF/EDeKXWwOQerFySA++6f24aXRO4CvwY0dnNtBuf8B0k5pSP+T K9DgV9Tppc5/FNvRNA+lYraFoURgV9KOuBCSNG1+SoAOrK9Z9w92A7IAa2ZvPDAF/rrQ FJGpAQuAV5P2sYlQB+9nfFiMURd0u/528bij2yCCgHSe527dkLB5NA4dKxjInqfBrbf+ eAX7syPezfcpeV6yu7gG2MPVEvzRLRj7pi9rTnwCAlfPAcGZAkPQk41ddZDey4gn4HZK Maig== X-Gm-Message-State: AOAM532y9qrbEEWNxUsnEQWmfYV6mtx0HCcgm/ZShO+BcVTGu/h0igQj yOzNBP/zTZEkVnx7HtsETBemRgpWtoyKzA== 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: linux-arm-msm@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: 548307 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 614CDC4167B for ; Sat, 26 Feb 2022 20:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbiBZUvQ (ORCPT ); Sat, 26 Feb 2022 15:51:16 -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 642EC261D3D for ; Sat, 26 Feb 2022 12:50:41 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id j15so15056138lfe.11 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=lKQT95LZMmJrFJoNBRRF5aCdqol2D/rFJY1BG3QtCAfrF++4DxbZJ8J1qTX6EzCHVF Y/9y0hSvsdQUjwugTPs42oGODAY2bLOwG3i7hVXqjjAC2g9qC7ZpMlmWVTftHg30x7JI GXdOCmHOjR3OnChaz1NQx1TEkAWpDx6gA0dK3Gqgjfw1CaqGHgUH9YnuyWAh4RAOTaAe lLpBKloO8Hg9uPokK5KsOuPmVtaLzy5yTPmCgi7QoVO/8r2yiEYLg+szWJ1LfRA9LPWw 9ejPDRTKZedaNb2waahaRc6sWKsilQkTlUwpidOZnVkiD+PxzrfVppOY/DxUuD50MzE3 k3DQ== X-Gm-Message-State: AOAM533g1gi9PEgpmjzfVL0r7ygdIoj4pBVmqbtnA/9V1NO/tJo0ZlKV 57enXyW9t+cmji6Tnp3EFu9Euw== 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: linux-arm-msm@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: 546195 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 438C3C4332F for ; Sat, 26 Feb 2022 20:50:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiBZUvR (ORCPT ); Sat, 26 Feb 2022 15:51:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbiBZUvR (ORCPT ); Sat, 26 Feb 2022 15:51:17 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B9892668E5 for ; Sat, 26 Feb 2022 12:50:42 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id j15so15056157lfe.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=Ksij3Vx+kqi5832gJZ1ZluBqH3YLyTHS5g7IUtwOUOB3PlAq05f5rBYjfL0oxaAF4L keGDwTrTr5t89Q7np+yG2SavZ9BfbEkMaehXaPu7h37Orh4nLlsYPKf1VovdGqFmqmx4 9IO7p7+tWTS02v+S7V9TJpa2V24Wd4kVoTxlHV2g5eyNDOsA6LUig14yBio4NYlabB5N zS5bhOIOnI5y1i3YuURzev8G7ZO0QjRQNWqFzN1BSvrpXtDciaeg9BHXtAH7BR6eH7Rt ruz/L6j0zPjTRLIX7zJ0r1/G0GUZFIwjruGP3mcxAxHmBbVnlEwC5hZF2b+vTlkz+x3Q MCGQ== X-Gm-Message-State: AOAM532VaIWHp+nTjrCVbA/1qTmRD99Vk4fPrCPXpNt9zT5GAOyBd3XA hq+YNuqeI0CsB20YFmKizdWmEA== 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: linux-arm-msm@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: 548306 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 13BDCC4321E for ; Sat, 26 Feb 2022 20:50:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229661AbiBZUvT (ORCPT ); Sat, 26 Feb 2022 15:51:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbiBZUvS (ORCPT ); Sat, 26 Feb 2022 15:51:18 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1D4F258BD9 for ; Sat, 26 Feb 2022 12:50:42 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id t14so12034620ljh.8 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=EFFCf23PRGSQSu0rk8PQD/UYTkem4cKdt5KrFCQbZ1vLbMZ0eCjb7Uad70TCJ+T87H Iimwou43uSrRtj012uVOq0gRoSDXnj8Qwpa6CTv5tZ9wNLp4DnfLDmgxTEnz/6B13dFu K92vj4I3pdWV7aWNYaOJ1iKQLzU9hw/FQdNoUKtViO2IVt5M4wgiIpsVrWS9qKs0vbst SenFfEgY5aIRmacwsq2KGPzX2/hnyVkC9sxjFnhQcoi11BcG0XvtdFZzba18t7vR+kQW sWCyFK+YF75kpKBdpyRxbmqrpV7D2Mh03mHKf92odF3b33z/qr4g+qXCt118r3m13huj JAhA== X-Gm-Message-State: AOAM53030VB/sFlQZ3pVxzBggJk8rsJEwPfvZODB87AHEhMLKO/jlVXk hPdmlIxWyCBVH/9bdNF/PL7Iuw== 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: linux-arm-msm@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: 546194 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 C2E01C433EF for ; Sat, 26 Feb 2022 20:50:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229664AbiBZUvT (ORCPT ); Sat, 26 Feb 2022 15:51:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiBZUvS (ORCPT ); Sat, 26 Feb 2022 15:51:18 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939252668D3 for ; Sat, 26 Feb 2022 12:50:43 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id p20so12135336ljo.0 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=W/QuxiDnoFRnKVYu76SNyjyWU09SJNi8VfH1JUAl4IWC4B3XSqALtTgyvqZG3choxF M8wKa43pQJm3ZgTHcPceF1nwunrh2pUrzZIMew1KAIfcMffEIzYMOz14TUQILUu2n6QW R/yz7xSfU3GwAmDyx2OJ17zbeAm0HK7PYmGaS4Ku+RUTmJm7CPfSPPLvbrx2BYlb6dz5 Zg+M8MCSyIF9kWlUqrc88aQIzUnc0+sE0w5pj/2aDclPPLuGfZTiL9cUthEg2iEEOAqV m/LOlRmos93ZXpg8IR3gUjBB5D93Q73q7eoPxQcZ7SWbYeuoF7ePzYfN6MZ0JzzAKzBh eA2Q== X-Gm-Message-State: AOAM530R+PE96JL2QRtIOCaIaJFsfGiMBxTIbH6tWlc4G9Xg2ZKtE4XX VhvqxTHrZzz+nuvtITUx1uJE/2+QWOHNHQ== 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: linux-arm-msm@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>; + }; + }; +};