Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp146777pxv; Thu, 24 Jun 2021 05:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+gUKEToCjj6dnq5qhEW1D2roA4A0me2Ivahpy8PmacuXOB3l2HysCfWygTu90299Viye2 X-Received: by 2002:a05:6402:151:: with SMTP id s17mr6514204edu.233.1624536076067; Thu, 24 Jun 2021 05:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624536076; cv=none; d=google.com; s=arc-20160816; b=kyXqQx+DA1rLQ1PfvQQnK6fi6r21eUfa8pyvkeDhX2E3EZ7+sEI8Z+1TP/9YTPDqYQ xlQf2XCgo+gRl2zq+DSYk4SdVP52MYfJi/d6o8Itr+IgTzqZps8tHhD5LwImA8dC9PI9 0rl0UVnLfFlvRGFtxTZobFEYtJkx8eKdgWD5IGqhtwJ8lp+FUVejXmZfEnL/kInvk5wo uFn0Er+IkZ0sB4nMZgwmgxXMzn2RfSVhn8Li2DdbNRsDQIQ1QQpCgUQhhT3naVEG9pDV 9jrqZXlawC+orhlbuGrELe1HIyJs1E3Yuq2dRPT1u2eN6Aw7capIUGPN4UuMw/5zFUVh FHjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rTRpC3uiw6MTlkqKW4TuhPSIXQr7Qt2j6LLeuz0vTvI=; b=zlYTxtkHzBAdvrC3qAVjvtv9aZArYRQ0zTWuwS0EPlkD9erS+MrjBMudE2Io2l7YCM g45kaec5QsOb/kVbruguxoSHQzxkZbV7hLWGMBR1QgJHw2Ruewxiyn7jRhCFZLJF5r0b KojO4HV9bIJxkTFhQg6J5sjAYGc0sdkQY2wcD6esgbmh3aDC95ZLoY4jEp5t9K1sKOkm suxCHje4rHuomiM7MVrVDCttEjm6aLtgIuJGkC1FRmesGZ7q3ja0WF0podSVeZVJptBU VPSrQ3f1ZaGhdrTenngCLX6Tpw5Cp73ES9HfzFN9W9JfCluM51v8WWUJx2XFpRWJ0Mhz WY9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tAbvLt9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ml12si2481821ejb.749.2021.06.24.05.00.29; Thu, 24 Jun 2021 05:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tAbvLt9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231243AbhFXMAx (ORCPT + 99 others); Thu, 24 Jun 2021 08:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbhFXMAj (ORCPT ); Thu, 24 Jun 2021 08:00:39 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9A84C0617A8 for ; Thu, 24 Jun 2021 04:58:19 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id g12so4564819qtb.2 for ; Thu, 24 Jun 2021 04:58:19 -0700 (PDT) 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=rTRpC3uiw6MTlkqKW4TuhPSIXQr7Qt2j6LLeuz0vTvI=; b=tAbvLt9LtHb7XwdRozCDlbcHWH2wttPU6nspU3PwwNc/jYTRePpMvvJogDJS2ab3tN p2q8QBJZA1E4k22f8z9THTkmEmOEcSv+8+d9avxN8uAG8ELdgDsFpr0WrakxDW+Key/B nTzU73bNNpXd+IdPparXlw1MGzSOfDjIMZVGDEFCv4k5o2HmeqMUwqbq62elH9znRyy3 3NeS8gCqVLQ9RBd3uxlHF7mtwQ6VWyAxjAt7tDG6mvDcoPS6YXqb0VfbVnWmNqVvztil WxChLrlGGbJgDV0H2C84DBAxj5VyABESx482rju3rorLLsU0WgX8hUyMEy+Q+dWpblhJ fl3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rTRpC3uiw6MTlkqKW4TuhPSIXQr7Qt2j6LLeuz0vTvI=; b=k4qYHimfmp/aM0ZnLlP1KA/T2WJTesgOi6k8wgLEHyKPZSAvkTfeMmoHyLkWP9Uyne HF43HV30JCAYPw80SU+Lc9sTjJHtHMuTSnGskOAGZ9RYIXPoI23dHyENtX0SBfnqu5GX 1ykUCdMMvr3dcOtxUw0aVAKWqPCf43ZLqidcby1dexrmz1bbOCEIHUqICP3z7avNJevh wJtoOyAD/bTZpVGqlW9OHl/r/EUuOglUlGMLRZZ6ITw1z39pC64wnleWJsjWNo98yS2N 0pftRuoTBDf5BNRpC+eWrvZejTzPzbL2L8NRBFOL6wTV3gI1yL0g9jJpCXoTX7o6JELP +BNw== X-Gm-Message-State: AOAM530aknAgHpfMFDYK7ktPKDhQT0qqLp2wKrxxIDsS6b24zXrv+HYz 9FFhUr+BrOrzJVPIMzNndlfSEw== X-Received: by 2002:ac8:59d4:: with SMTP id f20mr4359824qtf.189.1624535898877; Thu, 24 Jun 2021 04:58:18 -0700 (PDT) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id w3sm2287173qkp.55.2021.06.24.04.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 04:58:18 -0700 (PDT) From: Thara Gopinath To: agross@kernel.org, bjorn.andersson@linaro.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [Patch v2 4/5] arm64: boot: dts: qcom: sdm45: Add support for LMh node Date: Thu, 24 Jun 2021 07:58:12 -0400 Message-Id: <20210624115813.3613290-5-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210624115813.3613290-1-thara.gopinath@linaro.org> References: <20210624115813.3613290-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add LMh nodes for cpu cluster0 and cpu cluster1. Also add interrupt support in cpufreq node to capture the LMh interrupt and let the scheduler know of the max frequency throttling. Signed-off-by: Thara Gopinath --- v1->v2: - Dropped dt property qcom,support-lmh as per Bjorn's review comments. - Changed lmh compatible from generic to platform specific. - Introduced properties specifying arm, low and high temp thresholds for LMh as per Daniel's suggestion. arch/arm64/boot/dts/qcom/sdm845.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 0a86fe71a66d..202fec09becd 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -3646,6 +3646,30 @@ swm: swm@c85 { }; }; + lmh_cluster1: lmh@17d70800 { + compatible = "qcom,sdm845-lmh"; + reg = <0 0x17d70800 0 0x401>; + interrupts = ; + qcom,lmh-cpu-id = <0x4>; + qcom,lmh-temperature-arm = <65000>; + qcom,lmh-temperature-low = <74500>; + qcom,lmh-temperature-high = <75000>; + interrupt-controller; + #interrupt-cells = <1>; + }; + + lmh_cluster0: lmh@17d78800 { + compatible = "qcom,sdm845-lmh"; + reg = <0 0x17d78800 0 0x401>; + interrupts = ; + qcom,lmh-cpu-id = <0x0>; + qcom,lmh-temperature-arm = <65000>; + qcom,lmh-temperature-low = <74500>; + qcom,lmh-temperature-high = <75000>; + interrupt-controller; + #interrupt-cells = <1>; + }; + sound: sound { }; @@ -4911,6 +4935,8 @@ cpufreq_hw: cpufreq@17d43000 { reg = <0 0x17d43000 0 0x1400>, <0 0x17d45800 0 0x1400>; reg-names = "freq-domain0", "freq-domain1"; + interrupts-extended = <&lmh_cluster0 0>, <&lmh_cluster1 0>; + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>; clock-names = "xo", "alternate"; -- 2.25.1