Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp863957lqc; Fri, 8 Mar 2024 14:09:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLpNyDAm1DeMN+A+kC4YnfWQHY8Y2xl+UKg6VOVTFFB0hZSvf/dc437JyRSgNzrKDcgQCOPmFhpqvLf2zGHyqSkKyz16yNZ25JdT4sKQ== X-Google-Smtp-Source: AGHT+IHpeGvshQMcVzJ6KKGOFJkTrfEqr1G0fMEwwhjarA1aRgY/Y117RwqESCHVU4Vp8pwZXx57 X-Received: by 2002:a92:cdad:0:b0:365:1a59:dd6f with SMTP id g13-20020a92cdad000000b003651a59dd6fmr268677ild.21.1709935777514; Fri, 08 Mar 2024 14:09:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709935777; cv=pass; d=google.com; s=arc-20160816; b=VHFUZ5jWu48GjTJwESS+Y7qwSg0AZdQ1+UMKl/67rZ02i88dcm3DQEcWzH8G1tgzRV n3k0p1ILrskGorLsNXploDEm17Nlhkfebv1FYLqzirqiXG2mGys37Gj1m28Eq47VTcRB yfJhe9grCVDX5uxPgZE8QWKnU5tzzjz7v7aqQJz8m4qR3GG2ooW8FZkohRAaMMUaVkqK 4cRtslTVpWe+eOP17FImEcuHjvp97Pn8v5YwohtKs6OTZ7EbGw2KhBhPvA9MmKaa1wY7 mzzAk5pZZBfPEs57LEP7UznLgSN5DneYNbbRe6b/ANVUG/iymcgHntk7i+2ysoSUFkU+ sy2g== 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=xiv70EIyoAolaEKbYPrfg91si2P2mKJ8bXqLlaDWuLk=; fh=e+UE38NJn5/E+i39Idw9NS6hUoVf3DThxXhX7i2Prrc=; b=d6KfuczAvSKmibNAbv87NXdBv/RQySeQL4ZNPEpmqbEF7/z2ZJW3silEKmEhBggyHo wH5/qKy8AsX55glw0BFXauBPCJ4gJuCQXhjf3pFb41BPvIr4+mzVer52OnBaLxPllixV T93LbkE6YXVOL3EfhR4vg8gIV60OrxZBSd4otn47MOGgQO6hBoJNLmoD3wiKGxSQbEnG UirmBjPm31AIAleai3am9QZYwH/0xDlK6ACJX4xyJJffCKQ4Oidgyss3pR7k9VTqirFX 0QPnaIpLTF+w2v2LemkjgNt6FJGswsHCYc30+E6fe75i4CBDsxrBLjkkwwtulH1Ytc6B R+UA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xZYiFUk7; 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-97623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97623-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b33-20020a631b21000000b005dc16b88e8dsi330855pgb.353.2024.03.08.14.09.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:09:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xZYiFUk7; 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-97623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97623-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 32707282DDD for ; Fri, 8 Mar 2024 22:09:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F0655FDB2; Fri, 8 Mar 2024 22:08:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xZYiFUk7" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 BC747605B0 for ; Fri, 8 Mar 2024 22:08:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935719; cv=none; b=sAJ/Xcp9lHl3VYD3IDnY195BTYyAk3qu9E2LR0vr9rGskd/xin4r5KNmSwjJ7EKy7fAG/aUgF6YQtJyXoMQuT5XhlaH3i2NZNFdVMYcLAUpQPZISHhNR6mm0StfwXPnRvunhplwKynrH7jvjqW3oHDD2Q/KqwXHqnc+loS4MZv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935719; c=relaxed/simple; bh=5u9DxCgppmXza0/wpVNVHXJbUVr3KnjNCvIqClA8mBE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CMX/IJmNGSgL++1uE8UqSGVy8Z3sJrMy0rY6wvrQtCyZ3aOWQkN87B0nLtnriyTrX94AEtYdEL9TLio32K9ncTh95V3qn20iQygi54FSovmGy20rrCNnqgVNz+9dXj75d4Ji7NyT8OFVzUbjI+U1Ga91j2UtAS6Up/3TP/oHZmE= 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=xZYiFUk7; arc=none smtp.client-ip=209.85.167.51 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-lf1-f51.google.com with SMTP id 2adb3069b0e04-5133bd7eb47so3022704e87.3 for ; Fri, 08 Mar 2024 14:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709935716; x=1710540516; 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=xiv70EIyoAolaEKbYPrfg91si2P2mKJ8bXqLlaDWuLk=; b=xZYiFUk7ESggSMK9Sx+A51BmjSYJAgC+SsP8P5G9WkoXKuCNwtKOOWh5r6u13+M70C jy2oGtMU1FxXVeYs5E4iKxdg28s7qtJleSvxgKpsfJoio3XIKnCIs0Pdz9f/IxZdyGm1 YS2h1dDlvatZR7wxeTLltlMqtBs6yiuhkbPcPVfLPq2xGVrF+aGh1imnLPMtu0saOlUT 9GJ+nzqrkRR8QeVTKdIJbkjTYe4H1GadJ0iTAronPVZ/yW5/WEB7TlY3RnE2vF1XnO7L u5Z/1SNhKtREVZEV/70NTTbpV9zlCd7lTSlOXgpQnauiEKSaZhIAh1LGuKjllvLwSUqa lRgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709935716; x=1710540516; 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=xiv70EIyoAolaEKbYPrfg91si2P2mKJ8bXqLlaDWuLk=; b=RvSLIxT2UiCOse6peBw86lzlwyqnKNpyjOMMLEtIIGx8UhTGb0o+B0MUfBIAuZ+BCj Q8kPaO7IknyJlt9E7gvWccKwI6RKqbHNqnEdaIXWWdqyAzTWZvB+zfu3owdioy88Ivz2 oE2hjDG3syht5PvrTwyD/zQMsWc2pmT/7tPH/8knf6gT5Q9AKXDkalTMP+dEmOQBsFrU NYWCdAGsSNAPYA9UMlB31J5YtKABHnSHaDzpCzx8b9a39X7jaMRCn3wmDlS9BUC75Fok QqgfTbjJR//yiUqIAZ1e/TbW+o4SDE419UJqIlChlFIY4xVrxrjc7ePjSJpvY5EWODCI o3PA== X-Forwarded-Encrypted: i=1; AJvYcCUh1/WI6zMS1BLp5krUp986BhWLgl0CkHcH6Ysz21pInXWeT67tn0JwRlWiW0/YdZ9Y7cGPOvnd8KC+9Fq4WZ4FCvY1uOz32hTiIvDL X-Gm-Message-State: AOJu0YxZRuNmiUkaCaJS7hXrkNzyveLN9a8bw9MgRnTFY71ccigVGSnN SZ+nNogiANmJ00zkzC45EyYAO2AiJjsz9yHu76Kk2EjQoh6suoM0yVvCckn04mA= X-Received: by 2002:ac2:54ad:0:b0:513:5eea:2942 with SMTP id w13-20020ac254ad000000b005135eea2942mr199912lfk.37.1709935716060; Fri, 08 Mar 2024 14:08:36 -0800 (PST) Received: from [10.167.154.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a14-20020a056512020e00b005130ff68b87sm78241lfo.109.2024.03.08.14.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:08:35 -0800 (PST) From: Konrad Dybcio Date: Fri, 08 Mar 2024 23:08:22 +0100 Subject: [PATCH 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-v1-3-50c60ffe1130@linaro.org> References: <20240308-topic-rb1_lmh-v1-0-50c60ffe1130@linaro.org> In-Reply-To: <20240308-topic-rb1_lmh-v1-0-50c60ffe1130@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=1709935708; l=1579; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ghHIdqDBrllaHBUjq5ng+yJ/UVI9wsqAfkk77psz8Gs=; b=LUOzr91VCQTW00KvaZATYi/GF/2cy2hmUe9Cq/VCc+E+esGo0fpeEQPT2TldvkzYt3iZYpTp5 bUqbWUfhqfMBZYK87/ENNWjJ1sk62z2PrRj0ky3lPq9v8f7zY31FG9L X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Loic Poulain Add a node for the Limits Mangement 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