Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp167644lqk; Sat, 9 Mar 2024 05:16:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTj/90L3TUnESnl7Kom8THXyY/w7eQ2tFGtSVss5y4/CvAKzhBgVwUxjF3usNkR/9vFqiG1pd4O1EaTKfQkDbgmZxFqFKrzwj47iVDrQ== X-Google-Smtp-Source: AGHT+IFhEDORugKXF2aDGdsOuijx8SBriapdZGokYpJPU5t1YOQ9GmTK8lR+AcrrOGD4FKRqWNu9 X-Received: by 2002:a05:6a20:9587:b0:1a1:448f:d7b8 with SMTP id iu7-20020a056a20958700b001a1448fd7b8mr930289pzb.62.1709990165817; Sat, 09 Mar 2024 05:16:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709990165; cv=pass; d=google.com; s=arc-20160816; b=Qyr/5NE7+NoPdkOcUzA91t9hVluOGcKkxxcTsnYxtX/ECC1CXmFUHXcUDaYEt5TpN2 BCUfz+OcrkJBjxepjnlDJUNLmSMNPQ9zRgTgjg4IFc0T4h5hMPvCGicxUhvE5P2af+Dy ubcTR10ZdS8iZCBIa+AIaup/5GGvDf4p39chqxqy8xQ98ZcFBbUo/055DLnHc3/eLy0f 4KnJbKxkKNakEL7uvM01Rs4hbq97D6bfrRhjDQ21SJMCYg38eJGeF46tL+um58GS2BcV o8ET/aZOWM/ojN4+FG98pnTtCUlvO+NhpDvs+ceN9xybhF0iUlw20jrM2/qYv2bHFA3h W55g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=o6Sple/2ZZdRH/Vvx8i+an89/boBf3Gnas4pdauUz+A=; fh=hBeTEDXP11SFzFTO7sxLXWCL9NH8o9050W/arYPTmw8=; b=rDmSrZoJVE7VXHq0g5uY8SposY/URS1w6LZNBD6IEKoEufl2EjMhc9KJs5QtluP601 dx9GCXHZzJH5GzWaj/utDCuSCajPxohnn0BopLFX0X6ZKPcRnIsXU+gl0BGaKHaD8b1q S8gC+8SyGKm9rMgnouHma1xHjeG1WLdmLjwkuZq2GI8Mj569LGWJIzuiWmCigCF5Fr2Z ncHKc8Ob+55KTppmV8cuVgQHP62yw3LzD43Gev5ZMikzR5ONTnTL03s5tzA6p2NZ6Hd+ E4HEWhzF1HIxEpkbYsl/t2q2m/U7HXI8p6PWz/dvjfSJzGKf+nvamkqOTs9wEOPV4o/7 6kLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rQyMCZLH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-97900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v12-20020a17090a0c8c00b0029ac04ec792si5521280pja.138.2024.03.09.05.16.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 05:16:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rQyMCZLH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-97900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 786D4281C55 for ; Sat, 9 Mar 2024 13:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C87284436D; Sat, 9 Mar 2024 13:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rQyMCZLH" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33F073FBAC for ; Sat, 9 Mar 2024 13:15:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709990117; cv=none; b=bnP+PefEEHDcNW4i8AMBUYmf+jas8BozBbtzRhsGJ7gYSxgw/eLYPYbmE72Ln76w4raPU+5EBOanUIfD8kwPx4eVY7zptcCZUoh8xWBWbHtI8d/xv8EGNtYgh1TjrY2XN7Y9Wcsvqn77tutok40iyosx6ydnxxyjb2lGbrX6l6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709990117; c=relaxed/simple; bh=jrOFTMCntFqOIhBMm68qr8H/xgDF3gFVfyHkGoBalZA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qlY2nr9K1T6SH+aWI5LStt/I5XoNuZLecQRXT9suQRPHK64mcsqsAB9IMsxWcUQDeNCU0NXOflvpWOjL6jhz3Pi8lL74lBZtfzfuNpoFyVNrRNJpdGLLt3VbQXnJC/CjRnjqVMXPsq47knkXIhpdrHL3HzYo1tTvuOTZsuHI4eg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=rQyMCZLH; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2d3f4fef377so38985091fa.1 for ; Sat, 09 Mar 2024 05:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709990113; x=1710594913; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=o6Sple/2ZZdRH/Vvx8i+an89/boBf3Gnas4pdauUz+A=; b=rQyMCZLH/0Y8iNXsgiLKozjRB9cTOEPaLEvPfhgVEQg7GSNqBu42fOXQMFb4qfSgdp LEQ3/S5asMFU8m/U1TV0aVEnAbuSnrVBYgP2+AM4X1nJ7WauZDALRxk/FUMm5HSo1V3S Gavj79o3KaVTmE2uUYBBLPqyTZtFHSQI/TkprL4boIRvdtQmYd69NfnryED6IQbXu6zU Dse8A9vGFujqqUO22uI2TPa8E5DFNGe0ABiOTueB5MD8mk1yUfKgfqKhDaCdSfvJmwng grnKf9yDzuQky4FMRaYALZCSoWjc0+R9072/6xPCLeLDij2pm/kCodzvJtUsbEiRfl2A AXDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709990113; x=1710594913; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o6Sple/2ZZdRH/Vvx8i+an89/boBf3Gnas4pdauUz+A=; b=Rip1Q0o0ZVzUEQ5wJbxDY0yVV0dqDpt59QRwU79X1npU3lIuMsp+BUFbvtaR+I8Lri Ae2uKr4ppEeLze9zfehi20azTc8IrwUzlnopPCszlkbG8gcB48x3kiWHlvxVrOzsgjid vGd56VQvPFaMJEqtk0funLwRE24Ugm0HX9CDCEK389zR8qDVY8XEN1LPvc9WC+7/+mu2 I+cit0u+p3M35+Ln51h2AQXNhCs7/NnKKgYhnU5nQ5dCKJdO5h5VvYQDWhYddAIgX/XR 02zk5/tvEF+PWzrGWGbIIyy5q8KZC6IiqAjYnOJTfM2oFxIGMWU1agMwh28CHHrZzusW 8q5Q== X-Forwarded-Encrypted: i=1; AJvYcCV/N0vjhBni0jf7utWldLxdFpz+Va4kcfnz6xwh+fDHH8KsB6MIvl6Eo9P01p+HHo3AKIPdethkgqDcedxQXoIaTpcCctZqWd2J6NI/ X-Gm-Message-State: AOJu0YxlDqa+ZT3yKuuLNoU1440FfNxALDrY0QyyQQ4pm4l+C0swGjwb JMFoY2tX8t6U/cB5I4vLn2JqgR+byTLWqbM+VDwWoVushheXf/7TkhTw7rhOt/E= X-Received: by 2002:a05:651c:104a:b0:2d2:a3ae:b339 with SMTP id x10-20020a05651c104a00b002d2a3aeb339mr1161270ljm.48.1709990113309; Sat, 09 Mar 2024 05:15:13 -0800 (PST) Received: from [10.167.154.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id i26-20020a2ea37a000000b002d3e6ce75cesm297596ljn.70.2024.03.09.05.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 05:15:13 -0800 (PST) From: Konrad Dybcio Date: Sat, 09 Mar 2024 14:15:04 +0100 Subject: [PATCH v2 3/3] arm64: dts: qcom: qcm2290: Add LMH node Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240308-topic-rb1_lmh-v2-3-bac3914b0fe3@linaro.org> References: <20240308-topic-rb1_lmh-v2-0-bac3914b0fe3@linaro.org> In-Reply-To: <20240308-topic-rb1_lmh-v2-0-bac3914b0fe3@linaro.org> To: Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thara Gopinath , Amit Kucheria Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Konrad Dybcio , Loic Poulain X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709990106; l=1580; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=N3iZ4RWL64J9KIrMZcxBsUxhgEKVEWBB91k8Rvp8UdQ=; b=KuOaBM5yLNvJjgYyczPohcnrS6i2fHLRlRPwCX3R0BQIBV2vj2vKIxhMZWAu+vnruHDZhgrs5 YOZmplen22fAPynqjNXj7OfAHvuwjZthpHkHnkOo9kXkDbJucohmPdw X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Loic Poulain Add a node for the Limits Management Hardware to ensure it can be configured by the operating system. Signed-off-by: Loic Poulain [Konrad: add commit msg, rebase] Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index 89beac833d43..1aacad50e7fc 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -1858,7 +1858,7 @@ cpufreq_hw: cpufreq@f521000 { compatible = "qcom,qcm2290-cpufreq-hw", "qcom,cpufreq-hw"; reg = <0x0 0x0f521000 0x0 0x1000>; reg-names = "freq-domain0"; - interrupts = ; + interrupts-extended = <&lmh_cluster 0>; interrupt-names = "dcvsh-irq-0"; clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GPLL0>; clock-names = "xo", "alternate"; @@ -1866,6 +1866,18 @@ cpufreq_hw: cpufreq@f521000 { #freq-domain-cells = <1>; #clock-cells = <1>; }; + + lmh_cluster: lmh@f550800 { + compatible = "qcom,qcm2290-lmh", "qcom,sm8150-lmh"; + reg = <0x0 0x0f550800 0x0 0x400>; + interrupts = ; + cpus = <&CPU0>; + qcom,lmh-temp-arm-millicelsius = <65000>; + qcom,lmh-temp-low-millicelsius = <94500>; + qcom,lmh-temp-high-millicelsius = <95000>; + interrupt-controller; + #interrupt-cells = <1>; + }; }; thermal-zones { -- 2.44.0