From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796128747; b=aSef4JRixWaPJ0I1yLySxo8SJ769Y1AWgmk1Vd+35TYUKKvXeynYyduSYRwGlTcs0xFn etQTpKg0UFQXCun0rY8lZnCncT3iWlpmZpUWiY39HUrezKo898eqjMhjyo6tdR9kkSaMH MWgRN6WskXyZt4Oqgouu/0dk2gci/YCxqA40nsBRVGcThv4/jUuIC9aXak3G+oNhKdQcN SD0EIrp1GmdER/TIaBG/rR2aMxEYDiPPYy7mnHyqyQtl9KMoqkzoBxqVmd+GVOCAxcLVN cjSog/fqR7jIvvpsl46/F5R1VvrYKV5Vb3Bmw+0oY2tSAhMrgwUSk5KTKx2qVBlwrCQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796128747; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key; bh=43GgAKiRgvH9zeESE0O2bP9WpXshMyEieS1mBOIc2M4=; b=Xtnc3Pklglk950YJ3uVUN0yJHV+/HidEb4uNwHQIzdbCPHaPQpPC5Hx7FmuOPqRAsnZm eE9aXqougJUK+Oqt+NMyKWOfmr01wMRwmo6m2j3b6CxNk++d2iPpN6z9CsvgolJ11gtDY ncFVBA2NjYj0CU/qBMeTxUR/aqJTQ/6crLqCkUEtAq1nWOvoJRBlO86MtCU5knZVq6yIr NXJDX3ozSghiXLoTykd0pOXz+E/bDvVMYvdKIPBsCHuvqiyk2jpKx+9t3f/3ddOdSWhqx 2nXW6q9eUxJNbSQu0mebDX1VrGhdzCglqqjhkvNa/CLRpmZWe2s+cXMGZk6OP7joU3A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=DNGy9uev; arc=none smtp.remote-ip=74.125.82.175 Received: from mail-dy1-f175.google.com (mail-dy1-f175.google.com [74.125.82.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7415E606A684 for ; Tue, 1 Dec 2026 12:39:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7415E606A684 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=DNGy9uev Received: by mail-dy1-f175.google.com with SMTP id 5a478bee46e88-386c4d2e2ccso11574955eec.0 for ; Tue, 01 Dec 2026 04:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796128747; x=1796733547; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=43GgAKiRgvH9zeESE0O2bP9WpXshMyEieS1mBOIc2M4=; b=DNGy9uevmwZVKq3RaSUWh9gdrPnWNtwyg/bjJuneEohYWsNl4HXq6Xgjf9iGIcNhnr FNTv2THOJ2w4QacxggQ7vlrpIGtMss8Dt7++C0C+dwbRcvAasWX7Ys5ZiXlZ1aS/TaQW qdDZSDRzxK352JQm28yqj779shXy710H9a+Am46HVdzgLOLVaMswWeMts624RNkhzfms AuI/UNhb/s/TO9fq2Bbrjh34MCAjSH7rYJZ9GbJTpTv4UwR40hLICvsSOh0LdX0Q70Ch KMPiAHxA+VJ9uUusrAzbg5MyJIiy6ffeus7tTybuIx1RnV+h4QV5vhST7TcuLaanUL37 bXFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796128747; x=1796733547; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=43GgAKiRgvH9zeESE0O2bP9WpXshMyEieS1mBOIc2M4=; b=vwBA/tNUnxmLQEi4/E/SqQUoKB6CkIc60y69VsQgjqwRGi8YHyDZUrK6ejJuTx1btR nOSzGHnxAIaM40JeDcxSiOs5cYaDkSNJ5knfiX0Ilw2YOLEjMLV8dYRLxCB9+vrYWb78 KefvBPAEndMmltqEtPHY/m2plrHbgNrLYgZs8cbIPa9c8S196RTElABfYXlj9o8NsT7C AJXUaert1FzkSy+xVvlsz2sQp7cU/lKJkJwRquwQakJLyabY17VqW4Gzve6f+PXlpcY4 xfSBr6GltMnFK/ybKljfRtv+B8TUuXqcPw+MVzDBzwHHczhYsZdLRRCF/E7exIbhh2Jd pJ+Q== X-Forwarded-Encrypted: i=1; AL+hErFWDqbS+pDa8AgpNSJzxP4PgesrdU12pq3O7xlwKEg7XL5JQCtv+PGmbpsMAUcrycmGQO1A7fmfLb7X7j4=@vger.kernel.org X-Gm-Message-State: APuU4Z+g4Szp92unBkDe4/nhZAG6rGRZNWruGRSyU6lmzLTvOvZ3vi7y B6ngPf+PvermhnTl/v3Nd08h9Zeg8jEdcz0a4Q5osJpTVnGkY9FN2OZi X-Gm-Gg: AZFdTZdfMMhcsY9w9dgQ98TnGXE+X/K61DxVQ1WkumnQibNDg82W3Z1VIKtJ2UZmVCl eX2+7Lz+vkeQ0E7wgPtBflV8qrmjitn7U+PQIaFa+iFizQuiAy5y1KRtjCg7JbJ60ZzW8/zdQWV rrNpqS0yryUyfujSU6yQKYmX1+ILlDVYvu8XHs7kByrVDl+JiMDkoA0ifC90ox3OoMECaDe32QJ msxVSfeUTuc7cB7MH+Rsecp6XKV7/5uSOIwsjl+e7+cO2Spr2/fQpP4c0W+/KdJTxHantuy2as5 iM5yw4b4xNJQWdToIZ696dsPU68PC7yppUW3JpOP/7vvMTZZEb4RqdoJDa9KEWYNpFEze9aSA9L 3xic/RQWfJFultZPdUuc/VGFcfohcOImrqSEJVMjaEONlHrF+0TtzoQh9t78v7o/iRAgOIq5P0u YRWK37x77zsZTmSoaMuEmKtvS9HtbYUXYRlmTPdBFtVC0RdWh8L92YmcBB4pHp3upO8L3Ipw3CB ZJNH6yzIsr5VBr4G+Eb1B04uu6loJCcGWj8yhtCzNaTwKSd86ddZjOdGcpMq3sJlLd7L6JCF/RD 6eAfv1KbL0Z9UW+SrboGg1SDh7ai6B+cHyWJWAmtfckBPGrRHAZAdTkZcsEoM5LfjcBbcrx4XQF yBbwYUvE= X-Received: by 2002:a05:7301:6e9a:b0:383:71a:2b14 with SMTP id 5a478bee46e88-3856f14bb69mr34358360eec.10.1796128746486; Tue, 01 Dec 2026 04:39:06 -0800 (PST) Received: from Sobhana.localdomain ([157.51.214.229]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38567abb870sm91419865eec.25.2026.12.01.04.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 04:39:06 -0800 (PST) From: Sreeshankar K Date: Tue, 01 Dec 2026 12:37:57 +0000 Subject: [PATCH v16 5/8] thermal/qcom/lmh: Add support for Qualcomm SM7250 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261201-sm7250-v16-5-ff2a373e16d3@gmail.com> References: <20261201-sm7250-v16-0-ff2a373e16d3@gmail.com> In-Reply-To: <20261201-sm7250-v16-0-ff2a373e16d3@gmail.com> To: Bjorn Andersson , Abel Vesa , Stephen Boyd , Brian Masney , Jerome Brunet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Konrad Dybcio , Robert Marko , Guru Das Srinagesh , Viresh Kumar , Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Sreeshankar K X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796128685; l=1908; i=sreeshankar0910@gmail.com; s=20261029; h=from:subject:message-id; bh=2JCO2lANIFiY9tL7i+7B5REePcXe+2caBe3H5lxmiWc=; b=zxLjvZ6eprrs5aZytKBbOSFksKbVZyTTq7dBIg4frDUI2TJzE1CnLkxl2Q+wpWtxDjejBmBUA Qa2PCyqXaDFB9fXqFAcAbyWtc+NzIlfm/KHL83oulyMPvZihosKn9/9 X-Developer-Key: i=sreeshankar0910@gmail.com; a=ed25519; pk=CGSHduvtn2hwLCNRXRc9s/fh6X8PH/zNdp08zC8hOuQ= Qualcomm SM7250 features an asymmetric 6+2 core topology where the Silver cluster consists of CPU 0 to CPU 5 and the Gold/Prime cluster starts at logical CPU 6. Add the SoC match data defining the CPU-to-node mapping (CPU 0 to LMH_CLUSTER0_NODE_ID, and CPU 6 to LMH_CLUSTER1_NODE_ID), and register the "qcom,sm7250-lmh" compatible string so both LMh cluster instances can probe and register their respective DCVSh interrupt domains. Signed-off-by: Sreeshankar K --- drivers/thermal/qcom/lmh.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/thermal/qcom/lmh.c b/drivers/thermal/qcom/lmh.c index d796fbeae..037f7bc8f 100644 --- a/drivers/thermal/qcom/lmh.c +++ b/drivers/thermal/qcom/lmh.c @@ -110,12 +110,22 @@ static const struct lmh_cluster_map cluster_cpu04_map[] = { { .cpu_id = 4, .node_id = LMH_CLUSTER1_NODE_ID }, }; +static const struct lmh_cluster_map cluster_cpu06_map[] = { + { .cpu_id = 0, .node_id = LMH_CLUSTER0_NODE_ID }, + { .cpu_id = 6, .node_id = LMH_CLUSTER1_NODE_ID }, +}; + static const struct lmh_soc_data sdm845_data = { .map = cluster_cpu04_map, .num_nodes = ARRAY_SIZE(cluster_cpu04_map), .flags = LMH_ENABLE_ALGOS, }; +static const struct lmh_soc_data sm7250_data = { + .map = cluster_cpu06_map, + .num_nodes = ARRAY_SIZE(cluster_cpu06_map), +}; + static const struct lmh_soc_data sm8150_data = { .map = cluster_cpu04_map, .num_nodes = ARRAY_SIZE(cluster_cpu04_map), @@ -266,6 +276,7 @@ static int lmh_probe(struct platform_device *pdev) static const struct of_device_id lmh_table[] = { { .compatible = "qcom,sc8180x-lmh", .data = &sm8150_data }, { .compatible = "qcom,sdm845-lmh", .data = &sdm845_data }, + { .compatible = "qcom,sm7250-lmh", .data = &sm7250_data }, { .compatible = "qcom,sm8150-lmh", .data = &sm8150_data }, {} }; -- 2.43.0