From patchwork Fri Jun 30 06:13:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 698162 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 2A138C001B0 for ; Fri, 30 Jun 2023 06:13:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232095AbjF3GNX (ORCPT ); Fri, 30 Jun 2023 02:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbjF3GNV (ORCPT ); Fri, 30 Jun 2023 02:13:21 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A36A3585 for ; Thu, 29 Jun 2023 23:13:20 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b69dcf45faso24503871fa.0 for ; Thu, 29 Jun 2023 23:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688105598; x=1690697598; 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=edP5PM6mjKVSJWtiU1VEZfC4hL5CzXucY0brXKKjw/M=; b=FThiX6KJQdjSdcL4qPR/7suGpJYL4jCq2gf4lqy1VTbENY4jPSvwxzCN7EGzBucGur d8OtW4r12iuM2b7WHnBq+OXIDs0W9aTxPJf/oq4tzTCRno+Xlja9dNooEQvGXiSuAJEv Q8ghvu1cvd0jL+dlYfbvGihHclH6qiwNQa76PO0ErzynDBSoh1SoV5Ux6JXleK5fSZb3 wF1XMpV8DfbavEme7ju9cv67YyHH7INCTK1QjnkWROMI1pdufuEopzDDh5GuGn56dv3C kl4MzdR3+xdYNdgU3TT6xDxNeStN4z2Is224HQYfjput/0fVleBCdEP+LNe5IgChpIGs d37Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688105598; x=1690697598; 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=edP5PM6mjKVSJWtiU1VEZfC4hL5CzXucY0brXKKjw/M=; b=AltR7Md9FEntC82WpxHl7ePDlHoTctD+dxryEL24dqmbFAsOfWBzRy7Ml0f8bskEea 0EW81QmgyqijRTZlHgBQyoWwwLv6gIGkQG7aixwPdzRYeVAReN4zjNWqBazIOu/OaRkL u8kk77RnYfO/yB602snvpEOO7vLP4bmh64wIb5wmysnEn9M/OMiG9aOpCAf9ScQ0r6Os Oq6KGDXwZiDBf1ZvXAsOapjGLvyKGDRIiyuOThdeJeKL9FIAav/K2PLqY3F5RkJjeGyg n4wKz3XdN1DS9WLbBRUqgV2R+PT1nh5H5XPCzQ8k9UT0AC4UnKNhsL7Bd8yjCpaZ3z9L p7Bw== X-Gm-Message-State: ABy/qLb8w1Vx5qFf7D6XfMRUKzrNLSaLNoyr6TgX+luLPsZaIsU5JMa8 xc+RDg+WBqnLZxg6KxwpVK8xe2rWSMxlK4rlkQQ= X-Google-Smtp-Source: APBJJlGJDsLiL7jxqx42MQOU1tPm3eGCzkQ9PqcEeQq8DM02k/SCHCGknCR3xIeXDFsE644iBOD2vQ== X-Received: by 2002:a2e:9b97:0:b0:2b6:a19e:5168 with SMTP id z23-20020a2e9b97000000b002b6a19e5168mr1287613lji.39.1688105598503; Thu, 29 Jun 2023 23:13:18 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id g22-20020a2eb0d6000000b002b6caeb4b41sm505582ljl.27.2023.06.29.23.13.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 23:13:18 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/7] arm64: dts: qcom: pm8350b: fix thermal zone name Date: Fri, 30 Jun 2023 09:13:10 +0300 Message-Id: <20230630061315.4027453-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> References: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The name of the thermal zone in pm8350b.dtsi (pm8350c-thermal) conflicts with the thermal zone in pm8350c.dtsi. Rename the thermal zone according to the chip name. Fixes: 5c1399299d9d ("arm64: dts: qcom: pm8350b: add temp sensor and thermal zone config") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pm8350b.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8350b.dtsi b/arch/arm64/boot/dts/qcom/pm8350b.dtsi index f1c7bd9d079c..05c105898892 100644 --- a/arch/arm64/boot/dts/qcom/pm8350b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350b.dtsi @@ -8,7 +8,7 @@ / { thermal-zones { - pm8350b_thermal: pm8350c-thermal { + pm8350b_thermal: pm8350b-thermal { polling-delay-passive = <100>; polling-delay = <0>; thermal-sensors = <&pm8350b_temp_alarm>; From patchwork Fri Jun 30 06:13:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 698161 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 36CE4EB64DC for ; Fri, 30 Jun 2023 06:13:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232096AbjF3GNY (ORCPT ); Fri, 30 Jun 2023 02:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbjF3GNW (ORCPT ); Fri, 30 Jun 2023 02:13:22 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBCBB2686 for ; Thu, 29 Jun 2023 23:13:20 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b698937f85so23929161fa.2 for ; Thu, 29 Jun 2023 23:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688105599; x=1690697599; 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=to6KZ4R4fBoTHdJdtVbxCQRUtjuR5HoBa1YSLAKM0fg=; b=jy/VYhqnzJ7RuYITQHN4r4qF4bf9+b+WU5lYPYBVgmQR2U3jJSpWk5GKEh+OWJ4teS lDPH0nSDF3S2HDUkMJ3EJRG5HOOJ7rx3rhLZFuhzgcClmz32YwMozEYpa/2hbELPHW10 bey71A29uL/o0TKikGPrb8pSafTcOSYUD77TcXrrn2cTQIEnkQ7JUcdghIQ9HuWmjshZ Sy45K0msiWPcPfqIJsnhZJCKpkbd+n9HBiEY3aJ/BgPuhNq3sdJ9miLsph+25HVMEUg2 +o4WpmoDc4Ls+665ofdVr98TL47DmEQyjbcsV51MGEJX1tPYxbD5S4cEi6pZXJpgZHu9 +HDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688105599; x=1690697599; 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=to6KZ4R4fBoTHdJdtVbxCQRUtjuR5HoBa1YSLAKM0fg=; b=HWGTY+YIh508t3g2rUgKM1s8KK5naTROdrE9EbzKakBSCnpZKmMdigoOC9NEvyygau VlM9/z262mh4ghhS57t7rK9NLQpr3WtZX559EOnfAEgq8Mv/tWwUyPDue6G5b82HgKlL 44Y/73ZylZxFkZjlFK0WKduI2EL3VG/vrSgvBB4i4T57635cF8RA9UGZcvTAZ/4GCp7P yzHKmht6LvBsb10ecx9lPPor02XfSAPxpiXRZW3mBKgjeiedbAHUVBEUILYUkrEsQxxf nZQDzPRpvmQ/EmgqKPL8wYsKZ4QhE3LIQbBLxmiXrteJikwwSf8wY0CvEEU5fBec3lI6 YDRw== X-Gm-Message-State: ABy/qLabQgUOCuL1VC0aI95ynaOkZs+cn1hFBgy0UZSZXsV9P1IRQFLa 7GzupOl7x5PTa2Ar6sToNvS53A== X-Google-Smtp-Source: APBJJlEg8/XqW1LcOdNpHUc4A7Nrfk8u2tEzzYo4nKfxHwfjvQPXpmrOgLJKw4MrlAM1w3wV8m00pg== X-Received: by 2002:a2e:9b88:0:b0:2b4:6456:4553 with SMTP id z8-20020a2e9b88000000b002b464564553mr1260482lji.47.1688105599196; Thu, 29 Jun 2023 23:13:19 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id g22-20020a2eb0d6000000b002b6caeb4b41sm505582ljl.27.2023.06.29.23.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 23:13:18 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/7] arm64: dts: qcom: pmr735b: fix thermal zone name Date: Fri, 30 Jun 2023 09:13:11 +0300 Message-Id: <20230630061315.4027453-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> References: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The name of the thermal zone in pmr735b.dtsi (pmr735a-thermal) conflicts with the thermal zone in pmr735a.dtsi. Rename the thermal zone according to the chip name. Fixes: 6f3426b3dea4 ("arm64: dts: qcom: pmr735b: add temp sensor and thermal zone config") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/pmr735b.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pmr735b.dtsi b/arch/arm64/boot/dts/qcom/pmr735b.dtsi index ec24c4478005..f7473e247322 100644 --- a/arch/arm64/boot/dts/qcom/pmr735b.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735b.dtsi @@ -8,7 +8,7 @@ / { thermal-zones { - pmr735a_thermal: pmr735a-thermal { + pmr735b_thermal: pmr735b-thermal { polling-delay-passive = <100>; polling-delay = <0>; thermal-sensors = <&pmr735b_temp_alarm>; From patchwork Fri Jun 30 06:13:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 698160 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 85150EB64DC for ; Fri, 30 Jun 2023 06:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232159AbjF3GN2 (ORCPT ); Fri, 30 Jun 2023 02:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232185AbjF3GN0 (ORCPT ); Fri, 30 Jun 2023 02:13:26 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715F93585 for ; Thu, 29 Jun 2023 23:13:22 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fb96e2b573so2439311e87.3 for ; Thu, 29 Jun 2023 23:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688105601; x=1690697601; 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=4lqfZ+plqtAcix8GY+ZuE4+nINgGrfEm+RrVhC4lKko=; b=SoZn3WtvnS+867WoJgWXuSliWnc95PxMCp/4pFghyt+p9DftmJ/LA4oUty0dmTp/qm wVf3KEONHI2mHrOLB/mXyUoPgtcX62/6up4adctb0lQN9fmSCBN7+2CLHeI3dUetQtV9 srFX8zC3rHKERqMEcGMPRSGERQaN2cUDUWhD59QnUqmVTzR83lNkkwhZQToVWJpOlnjm aUEJCKaG96ZjN/x8GnEl4NUI5sVwUHAo3sOGBtR77G7zo9DH0ZaKjFV4dK5hFIZVcPd1 9qO3U9ynYeCOIjqdcF9TQcsyJGdq40mfsUBajyNJryqlibY5BUBsklO39Q0CPMqxox90 EpBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688105601; x=1690697601; 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=4lqfZ+plqtAcix8GY+ZuE4+nINgGrfEm+RrVhC4lKko=; b=d+7h7AS8gvBtysIjPIYtQLLl3ZZ7buWbhxTTaeAYzEDbUeNdMmp3LTFep9foy93ArN wwvnyWobjZKbtthWIjalO6YHuUvgrh7EqvT8d8M3YkrYWQfHHKSrzqu6auNyCg4/49Ax jMcgisaPowrhzwzbejZj5A/+flTh51hsL0E/7LUts1lnE/M/TR8VeC68jWSxsEi+ee0Y s+VubDHXABJSr+z2784vkE2Ae9URNIpKMOuBOAhUt3JNpYzLl3Qi+dxWbI4Wd7Teav2e VNEU0M0ETcXRDtnFMsBZu22a8f9p7fpcCPaSWhWgWyyzGsv+EmiheJGTKqhh3sMznKIy ED8w== X-Gm-Message-State: ABy/qLaGBIhaByfbEBFLIYt6OokmA3mUM16UBnEK+gHmBXt7SZMEyK5p oXkLTy2M+CttfxLP1UeeyrGV6w== X-Google-Smtp-Source: APBJJlH3nTBL+3k2b4lqs0HYpum3I2Uxkg8RoZ7UVEGZUpPMuqADLsiGXaqv04cbD4ZK9SVYArf9iw== X-Received: by 2002:a2e:8743:0:b0:2b4:74ec:3dc9 with SMTP id q3-20020a2e8743000000b002b474ec3dc9mr1438176ljj.14.1688105600691; Thu, 29 Jun 2023 23:13:20 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id g22-20020a2eb0d6000000b002b6caeb4b41sm505582ljl.27.2023.06.29.23.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 23:13:20 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 5/7] arm64: dts: qcom: sm8450-hdk: remove pmr735b PMIC inclusion Date: Fri, 30 Jun 2023 09:13:13 +0300 Message-Id: <20230630061315.4027453-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> References: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The 8450-HDK doesn't use PMR735B PMIC. Drop its inclusion to remove the warning during the HDK bootup. Fixes: 30464456a1ea ("arm64: dts: qcom: sm8450-hdk: add pmic files") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index bc4c125d1832..dabb7e872f38 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -14,7 +14,6 @@ #include "pm8450.dtsi" #include "pmk8350.dtsi" #include "pmr735a.dtsi" -#include "pmr735b.dtsi" / { model = "Qualcomm Technologies, Inc. SM8450 HDK"; From patchwork Fri Jun 30 06:13:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 698159 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 BDD39C001DE for ; Fri, 30 Jun 2023 06:13:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbjF3GN3 (ORCPT ); Fri, 30 Jun 2023 02:13:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232215AbjF3GN0 (ORCPT ); Fri, 30 Jun 2023 02:13:26 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E19E22683 for ; Thu, 29 Jun 2023 23:13:23 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b6a6f224a1so24045521fa.1 for ; Thu, 29 Jun 2023 23:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688105602; x=1690697602; 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=fmRBKeVeea62c2bZpDux4kOiFgp+qlH+WdaHONOtng4=; b=ArvOrPGLCUveWnENdH2/CtKADsTkNJ58cKJKg/UqxyUJAMJp7d5tpgC6nrYBAQpiKq lNuVpxYxOnV+BTeOtffPjNxewq52RVGdq5k89poPwcRKbIIRAt2ISfmuX/NaWbF5Vd4b dLpooHhB1F5s4M54rkuuJ6mnJU/XKWc4k9AuzvrTYjoL27Dzl8ZLcu4aftz9C7WPLiT3 IcFVG0lMAQ+0DZbd6hP11swNF4iXPldoLnjfm60f+wT85WdPxVOY2jhDCBaZzyX+jHDy llVI5lxpfGBZR30UJ14/uDjRuZ7lHJEsAPB8iu/XOGSmrUmVJmdW3xOnECWe5217KSTr vN1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688105602; x=1690697602; 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=fmRBKeVeea62c2bZpDux4kOiFgp+qlH+WdaHONOtng4=; b=irUfnj4Ly+PvGk2MhOpoTdUioj6YX83UiD0GOvzEU5E3SHWig+9/C8fZIXiGRbb3Jy yXEmivhphjRNuTuQU50VUf4KnByYWMAQwQqwri3lNOpJm5zvmBKEx2b8A3UqL6FEus8L AhkmZ+wUGju+Bb9Cj5hXhkOH7HiGpv6P7I2bk9HFNpRl01mX/4F8v2j6UakfhWcgYI+b JSv7eNyHlaij94gz7L5/6mMt94fiSsJvcHID0Q2ym9PQdNeHxAT529ZLeY4O98RjAupQ PRHSLAzFXLyd/7lRf9sz9imzGc5wjKVUXV1JzV0MClvFEizFasrcFS/bKA6YBitiWW7K CG7g== X-Gm-Message-State: ABy/qLYUsWpYabcyXUCkqxfhK+3zrfwcpobGENw6HKOiRVJFqZa+1vQB RRFsrdZqd3MSfHTu3ZP/7tT8nw== X-Google-Smtp-Source: APBJJlFV8Ho/y7QvuxHG3bC2rIlk0zjFmgaefZLeP/CyvUi2XqKLCkKacx7mMYNE9Miz3iIAEbZYDg== X-Received: by 2002:a05:651c:105b:b0:2b5:9efc:827d with SMTP id x27-20020a05651c105b00b002b59efc827dmr1230907ljm.29.1688105602271; Thu, 29 Jun 2023 23:13:22 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id g22-20020a2eb0d6000000b002b6caeb4b41sm505582ljl.27.2023.06.29.23.13.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 23:13:21 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 7/7] arm64: dts: qcom: sm8450-hdk: add ADC-TM thermal zones Date: Fri, 30 Jun 2023 09:13:15 +0300 Message-Id: <20230630061315.4027453-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> References: <20230630061315.4027453-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add thermal zones controlled through the ADC-TM (ADC thermal monitoring) PMIC interface. This includes several onboard sensors and the XO thermal sensor. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 244 ++++++++++++++++++++++++ 1 file changed, 244 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index d07e402eaba3..4dfc964a4bb1 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -133,6 +133,120 @@ pmic_glink_sbu: endpoint { }; }; + thermal-zones { + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 2>; + + trips { + active-config0 { + temperature = <75000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + rear-tof-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 5>; + + trips { + active-config0 { + temperature = <75000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + skin-msm-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 1>; + + trips { + active-config0 { + temperature = <75000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + therm1-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 3>; + + trips { + active-config0 { + temperature = <75000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + therm2-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 6>; + + trips { + active-config0 { + temperature = <75000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + usb-conn-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 7>; + + trips { + active-config0 { + temperature = <75000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + wide-rfc-thermal { + polling-delay-passive = <250>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 4>; + + trips { + active-config0 { + temperature = <75000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + + xo-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 0>; + + trips { + active-config0 { + temperature = <50000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -607,6 +721,66 @@ &pmr735a_temp_alarm { io-channel-names = "thermal"; }; +&pmk8350_adc_tm { + status = "okay"; + + xo-therm@0 { + reg = <0>; + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + skin-msm-therm@1 { + reg = <1>; + io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + camera-therm@2 { + reg = <2>; + io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + therm1-therm@3 { + reg = <3>; + io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + wide-rfc-therm@4 { + reg = <4>; + io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + rear-tof-therm@5 { + reg = <5>; + io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM5_100K_PU(1)>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + therm2-therm@6 { + reg = <6>; + io-channels = <&pmk8350_vadc PM8350_ADC7_GPIO3_100K_PU(1)>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + usb-conn-therm@7 { + reg = <7>; + io-channels = <&pmk8350_vadc PM8350B_ADC7_AMUX_THM5_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + &pmk8350_vadc { status = "okay"; @@ -615,20 +789,90 @@ channel@3 { label = "pmk8350_die_temp"; }; + channel@44 { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "pmk8350_xo_therm"; + }; + channel@103 { reg = ; label = "pm8350_die_temp"; }; + channel@144 { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "skin_msm_temp"; + }; + + channel@145 { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "camera_temp"; + }; + + channel@146 { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "therm1_temp"; + }; + + channel@147 { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "wide_rfc_temp"; + }; + + channel@148 { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "rear_tof_temp"; + }; + + channel@14c { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "therm2_temp"; + }; + channel@303 { reg = ; label = "pm8350b_die_temp"; }; + channel@348 { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "usb_conn_temp"; + }; + channel@403 { reg = ; label = "pmr735a_die_temp"; }; + + channel@44a { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "qtm_w_temp"; + }; + + channel@44b { + reg = ; + qcom,hw-settle-time = <200>; + qcom,ratiometric; + label = "qtm_n_temp"; + }; }; &remoteproc_adsp {