From patchwork Mon Sep 12 09:16:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12973482 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 A1BC9C6FA83 for ; Mon, 12 Sep 2022 09:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbiILJRJ (ORCPT ); Mon, 12 Sep 2022 05:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbiILJRG (ORCPT ); Mon, 12 Sep 2022 05:17:06 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92EF1EED5 for ; Mon, 12 Sep 2022 02:17:04 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id q62-20020a17090a17c400b00202a3497516so5219413pja.1 for ; Mon, 12 Sep 2022 02:17:04 -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; bh=wMFwbaQNDV7fyV08xyNqt987JasnWhOt1fyT+HqZ0No=; b=M6ecABta248gbIp9gbGPf7/WCErLkCQ+xKNpAfgvCeVpiGi88RdAhtyb3u0MtxQ+Qs CFbnR83W6v4cQMDwEgUjyhrzXCaWsPQY0GiLaJ0S3vWYkbEEvSK0N1VDuXuf7qTwtOae 9dJhaevzfmhx7BIUisMzYkwjFbRjXW04L7YSIBT8NgJAvvJruzh14vysF74Z0m0PYemL ZfxuhZjFE4xyPxS7Et7ooQRUCWz1N6yEVbgD5txoHKV7DAD9fsJWIm0mLVfWPozsd2vt IkRR0qfTYrXHDRJWEW+LvCUjIAh6gZTUMj6K2FHlu5IcgXjGTXDCwmIoLFaiO8Yfeov6 3YRA== 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; bh=wMFwbaQNDV7fyV08xyNqt987JasnWhOt1fyT+HqZ0No=; b=fDunRqRF74pUB9WKP3afEkuaz9uXpeBnK1ehmyU9EQRD0OgFwsPuHwmIP1/yXExw0N F4nHj/6JVkUslgjnHGwXRd98Jei5NIxCVGPikoXb9N1PM4NXm7HrJZ2Ui6Hv9n1IdUyO M3MarKdU07HYmQN55TSwmvJrEh/rQo+MiGSL2LtHc3Yua5gh8QC7lw9y5Al/SFyMmT8w ubylIOQcka+wcZ9csbtslXjurd4UvuoPvaBX5GzvMSmWXXNZoO+fXrFd5lFHPiIbs+xO LLftlETRVDcgDCiCxEmxvq5W2zHs9xD0zngEYqWe0fjDtuuq9/SEwtjoa8mDNeugeOt1 +H0Q== X-Gm-Message-State: ACgBeo10sFd0ZiiSe3fkrwNE5c0X4t0d0U7GOczNbk+9R3gKYDjl/KRv 59LzTdOvZ/CTMi3apdlHMvGQzQ== X-Google-Smtp-Source: AA6agR5+q+3R1+5hl3m6E+SuwBNKWxItiOEdxBLC0nrkzWFifadO3JSYl30WrJlB3F8r0jZU48o9Kg== X-Received: by 2002:a17:902:b415:b0:178:2835:29e7 with SMTP id x21-20020a170902b41500b00178283529e7mr7620683plr.86.1662974224400; Mon, 12 Sep 2022 02:17:04 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:5362:9d7f:2354:1d0a:78e3]) by smtp.gmail.com with ESMTPSA id o65-20020a62cd44000000b0052dbad1ea2esm4857026pfg.6.2022.09.12.02.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 02:17:04 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, devicetree@vger.kernel.org, robh@kernel.org, andersson@kernel.org, rafael@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, Rob Herring Subject: [PATCH 1/3] arm64: dts: qcom: sm8150: Add qmi cooling device nodes Date: Mon, 12 Sep 2022 14:46:41 +0530 Message-Id: <20220912091643.3537857-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220912091643.3537857-1-bhupesh.sharma@linaro.org> References: <20220912091643.3537857-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add qmi cooling nodes to sm8150 dts file. This node describes the various qmi thermal mitigation devices (tmd) which are available on remote processor subsystems. Cc: Rob Herring Cc: andersson@kernel.org Signed-off-by: Bhupesh Sharma Reported-by: kernel test robot --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index cef8c4f4f0ff..6aa270ebbd3f 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -13,6 +13,7 @@ #include #include #include +#include #include / { @@ -3444,6 +3445,67 @@ compute-cb@8 { }; }; + qmi_tmd_devices: qmi-tmd-devices { + compatible = "qcom,qmi-tmd-devices"; + status = "disabled"; + + modem0 { + qcom,instance-id = ; + + modem0_pa: tmd-device0 { + label = "pa"; + #cooling-cells = <2>; + }; + + modem0_proc: tmd-device1 { + label = "modem"; + #cooling-cells = <2>; + }; + + modem0_current: tmd-device2 { + label = "modem_current"; + #cooling-cells = <2>; + }; + + modem0_skin: tmd-device3 { + label = "modem_skin"; + #cooling-cells = <2>; + }; + + modem0_vdd: tmd-device4 { + label = "cpuv_restriction_cold"; + #cooling-cells = <2>; + }; + }; + + adsp { + qcom,instance-id = ; + + adsp_vdd: tmd-device0 { + label = "cpuv_restriction_cold"; + #cooling-cells = <2>; + }; + }; + + cdsp { + qcom,instance-id = ; + + cdsp_vdd: tmd-device0 { + label = "cpuv_restriction_cold"; + #cooling-cells = <2>; + }; + }; + + slpi { + qcom,instance-id = ; + + slpi_vdd: tmd-device0 { + label = "cpuv_restriction_cold"; + #cooling-cells = <2>; + }; + }; + }; + usb_1_hsphy: phy@88e2000 { compatible = "qcom,sm8150-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; From patchwork Mon Sep 12 09:16:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12973483 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 73E20ECAAA1 for ; Mon, 12 Sep 2022 09:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbiILJRO (ORCPT ); Mon, 12 Sep 2022 05:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbiILJRK (ORCPT ); Mon, 12 Sep 2022 05:17:10 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84CFD1EED5 for ; Mon, 12 Sep 2022 02:17:09 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id q15-20020a17090a304f00b002002ac83485so7578657pjl.0 for ; Mon, 12 Sep 2022 02:17:09 -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; bh=VfxC3lsR97ieyPGCHokvUezbB3N1rVvH51NTIDralEU=; b=t6PkA6B7cjsKTF9QjdS16ux9959LLtqBhayei1W1Cwu3yqy7Y0GGj1vjwpfUNPR4+O 7UV9wHIHZSWJisL8dTrYNL9Sr7wzXqkTMIx9UjTrLOmbdKsFLmzp393OGRbw4ztjEo/C yB+wYg4GOrK/oiZsEUvM8VSiOmNq6MLfsYGMFTy3cMmYEogzG2IcLPxA3QOeaf00sYyg UWjLhY66esZSRsCqpiTJTGgmaF+bK0/BVERLbst7rVrHvWrlEamXQHIXxeVlrj5i6sdR 7e4n1n5UXByugQRmF3lLwaXr2CdP0WLjPr600g/yrGu2LvlYavYdpA3rq39b/y8Oj4f6 7m4g== 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; bh=VfxC3lsR97ieyPGCHokvUezbB3N1rVvH51NTIDralEU=; b=sWChY62hfPG0HXgutP0IZ50SWlMjIy/oXcQ0EIVezx8XXIN/KL+dbdtlW0Jd9TDMyz 687rRSBQSkKbNEiom7v1XG5Qf91/OQMMBwuT36keAL8UzrXF1ansz6bCmDUh9rxYpRGR U80CBwJ7Yruastapcf67vkKsJ2jbA16ovEt2N845WyNqOGP5gtOUTprb/V8PE048sAzw Ds1ND8GV6dzm85FnP27ggr/Es0rhrHKam5o62Aoi0N3AHm9AIrBbzXpSchSnUMH7OKnO dGQaDtJH16F+oi4ww2MaVwszUiH3lCBS19D7GqH6HG6Ua0DKJ9eMif6gs3XxLl64xYkY hYgg== X-Gm-Message-State: ACgBeo0EVd9zQs75sTK8bZk30gp6kkT0F3XcdL2mahTeZT0ICiOsBg8i TGJZEUQyKwc/B7zKnSfazxmX1w== X-Google-Smtp-Source: AA6agR7+uw1CPyq3OB2InUONklyP65utZqSMCqxC4boTNGxiCi96L6MKrhK9oonX7X0durbZQ0hmnA== X-Received: by 2002:a17:902:ea11:b0:176:b283:9596 with SMTP id s17-20020a170902ea1100b00176b2839596mr25455733plg.69.1662974229198; Mon, 12 Sep 2022 02:17:09 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:5362:9d7f:2354:1d0a:78e3]) by smtp.gmail.com with ESMTPSA id o65-20020a62cd44000000b0052dbad1ea2esm4857026pfg.6.2022.09.12.02.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 02:17:08 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, devicetree@vger.kernel.org, robh@kernel.org, andersson@kernel.org, rafael@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, Rob Herring Subject: [PATCH 2/3] arm64: dts: qcom: sa8155p-adp: Enable qmi cooling device Date: Mon, 12 Sep 2022 14:46:42 +0530 Message-Id: <20220912091643.3537857-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220912091643.3537857-1-bhupesh.sharma@linaro.org> References: <20220912091643.3537857-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Enable qmi cooling devices for sa8155p adp platform. Cc: Rob Herring Cc: andersson@kernel.org Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts index ba547ca9fc6b..0c5d1fd5bc47 100644 --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts @@ -364,6 +364,10 @@ rgmii_phy: phy@7 { }; }; +&qmi_tmd_devices { + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; From patchwork Mon Sep 12 09:16:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12973484 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 9BA4DECAAA1 for ; Mon, 12 Sep 2022 09:17:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230016AbiILJRd (ORCPT ); Mon, 12 Sep 2022 05:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbiILJRV (ORCPT ); Mon, 12 Sep 2022 05:17:21 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB7BC32EC5 for ; Mon, 12 Sep 2022 02:17:15 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id c2so7990144plo.3 for ; Mon, 12 Sep 2022 02:17: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; bh=7tR7K5oR413iRjDuxm5Mq93G56uZhpKUlH9Co9h51jc=; b=X5ibPOspaJ15hBjw2+eylce5MM8U08TGDvy10Zi3IB8s6dQbzcZGr+VA0X0F4JPQmz omq/dhft+a/57sllmLN/5nn+rc6t99ezuFyDd7vHfz07qeD77vyEb4JhopY++ZgC9OuF diEanfMEC15V2TM5mK7Yv6OHTcA0yh23HZaghD/wA5DOgwxC2IwJUsAQNdfARmMCAoEP 79ImB6YEK5S3oCfmmZupvfHZVYQgt8z6XBrcm2lsNpyQWwzaj3mzFS1AwravzOfkCB0z vAL+76QYh6JYatxMwax87X5d4SZh83rVuNPZKvkaW8XG+NDHt3TjfCesNYqDuG5YJZ17 QYbA== 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; bh=7tR7K5oR413iRjDuxm5Mq93G56uZhpKUlH9Co9h51jc=; b=DHPr20y9iilKoU1Y0tR0SJnrwxhhlO41Ytop1AmKsStheZA45aJdslpF7B/NHCGEFR csf+UsG8/E7jO8WNOFNGuNScI4dVWfsFHTwKJjjmABUrOUdcjeossyVSR1iGBA/OvGev 1mt0aBFuNRQ4ZZzGL0jeqH+yBLYRn3joLH5BBTfweHK/283fAeXapPFO3QoduW25+U6T 1VWHffM8S20xT8bcsWMv8/UrQ4x0ZkuEVAlLS2oz4roQ9PRfg4e9aqS1LGTmADnVYOVD UAS4UPOOk2QkbwmG3SclcSOYIu4xZ52x+Rx3hU0gC1JhpIeOMBabVTaX9iti7KeKnd+Y SYHg== X-Gm-Message-State: ACgBeo1r+VtN/pl4Lu0bqyIicMzo1ooxr7BviYxJYH168SXuCEW27zTN Q+Cud8cujTqicAL/DREHJHePUg== X-Google-Smtp-Source: AA6agR6Z2/AyB8yAZcEb3ICpz4dIYClZXzn1ntIP/0gB329XLwnlzA25vi/KVebW9x+v3xmiFqameQ== X-Received: by 2002:a17:90b:1b4d:b0:202:c05f:6ea0 with SMTP id nv13-20020a17090b1b4d00b00202c05f6ea0mr7237093pjb.7.1662974234169; Mon, 12 Sep 2022 02:17:14 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:5362:9d7f:2354:1d0a:78e3]) by smtp.gmail.com with ESMTPSA id o65-20020a62cd44000000b0052dbad1ea2esm4857026pfg.6.2022.09.12.02.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 02:17:13 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, devicetree@vger.kernel.org, robh@kernel.org, andersson@kernel.org, rafael@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, Will Deacon , Arnd Bergmann Subject: [PATCH 3/3] arm64: defconfig: Enable Qualcomm QMI cooling device driver Date: Mon, 12 Sep 2022 14:46:43 +0530 Message-Id: <20220912091643.3537857-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220912091643.3537857-1-bhupesh.sharma@linaro.org> References: <20220912091643.3537857-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Enable Qualcomm QMI cooling device driver which is available on several Qualcomm SoCs. Cc: andersson@kernel.org Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Bhupesh Sharma --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index ea692ef4c841..24eed7db90bf 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -602,6 +602,7 @@ CONFIG_BRCMSTB_THERMAL=m CONFIG_EXYNOS_THERMAL=y CONFIG_TEGRA_SOCTHERM=m CONFIG_TEGRA_BPMP_THERMAL=m +CONFIG_QCOM_QMI_COOLING=m CONFIG_QCOM_TSENS=y CONFIG_QCOM_SPMI_ADC_TM5=m CONFIG_QCOM_SPMI_TEMP_ALARM=m