From nobody Mon Feb 9 10:30:26 2026 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 C9F535FDA6 for ; Fri, 8 Mar 2024 22:08:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935715; cv=none; b=US8tIF0HjFu41LWA4YoMdQudeRs1xX3VbP4QXl+OUBituE11kJ8AGMswk4+pcdcgaxLp2KrV3f6ZU0lekTuGDeP9BfIBwkLwLezoEknhvDmC2WCQ05VqMqxL0p5J3ac4gSgNArBWSDV/xjGemfWAUt84zmqYOMoPrDb5sBlaPkY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935715; c=relaxed/simple; bh=Xh62d3byksWPc2df0T3ZNqEz0dwEInqwU4U7UsjCTrc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=M+lrrbmhqdxjyIblVbfcfQjyEuB02DKGFOWGYg2zaLKSmIwTEICB36Wp0+tLnlSFQ1JNxuzrNn64Tn85G9Ke7dCV7emk1MzcCMQ9XE56yYYGGmEslu6fGZPPhVifCXkhOHJFc+z709xvcYfgZXMYpTCVGAcLPRX3DvYx/NkFOFM= 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=Og1sRUtb; arc=none smtp.client-ip=209.85.167.52 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Og1sRUtb" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-51344bebe2fso1441916e87.2 for ; Fri, 08 Mar 2024 14:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709935712; x=1710540512; 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=XKdWQKffvL9ogBoto8xjFAnEMcASLQo+XFvTjrJ0feA=; b=Og1sRUtbqubEZMXJp0BA6xL7W+/pe4RBYBu3vuk2Zrcv300k6NSN0oPGxsLE9YIzfZ +K8xAr4VHIFZS80N1kmZnt1K+o1GV/c8SoFqHHzFzkNOSST4uX8olyga2zyfWHFUJx2E iZE91OLI/ItavcdJQP2hMOScESYVEGtWudAxc5HQzyaiaD0rJpupmDiJzXiYz0pagU0W Zf95QCSDIVAT/+WoUksIt51TRa1pn3ahek3saR1AQWTz8KbMyunnGiiEeXHLXbSxNypc q5G1loVYbmc2hV+HLB0fr9W5aeFom2Zi6jz50yyFA4u+x9nUpUuc2/0GM9dTZl9pLF/T s7ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709935712; x=1710540512; 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=XKdWQKffvL9ogBoto8xjFAnEMcASLQo+XFvTjrJ0feA=; b=qGKzhku8COuOdP0Cu3FxNjV1W6DykH52/GciQpana7KUR5zNz8j9Y2gSz5SVd+6Sbz Hy6b64C7muLWQkiVSOSXh9vHMENSLcyTndDJ2zBlCct+gTGi+wZ+Hs7PPj8lgJC7WG+m oXD8Y1POG91h8tu+S06YB5szMs3znv7/DOjQRL9g6TvI7MgaAJeVxEbBluCvYPKsutBM pVgYFCaScpUMwjAkzlpTr6oFvfIB30hhDmqKXF9oV92dItk2h2kbbTlYIf5cmyWgbewa kyA8hZKGkXAp/NatGNp0hpc+o7DwCTcEAV5oQ02ENtTUaQKrXxKahfhhNSWQiI/D+ht+ qJrg== X-Forwarded-Encrypted: i=1; AJvYcCVgnFaoPu+2IsIsNvzcutdvFA7hogyAf4y5gjE+fZdNB9iYaNYSNU3bh+nJ1fwcMYaj3qQvXZPMM9MGUf1HNlBeokguXhjJvuMUcTRQ X-Gm-Message-State: AOJu0YzzBX+417WquDPJUuJaZZJ735Q+uznJyF2eXDZ3RgJoEHJw2fkI XdPmup86m+PN2oE8QBGvMFxguo4HwT55AKqITq66jfQ/HS808hz3mRKabA73fXE= X-Google-Smtp-Source: AGHT+IHyOWzOdU/BOxygotGUcPU3PGmZP/n8bQUUg76ajk1bHXE8sWsDIEq9hzck+GKyOHKJE9LSqA== X-Received: by 2002:a05:6512:551:b0:513:588a:2614 with SMTP id h17-20020a056512055100b00513588a2614mr193982lfl.49.1709935711907; Fri, 08 Mar 2024 14:08:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:08:31 -0800 (PST) From: Konrad Dybcio Date: Fri, 08 Mar 2024 23:08:20 +0100 Subject: [PATCH 1/3] dt-bindings: thermal: lmh: Add QCM2290 compatible 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: quoted-printable Message-Id: <20240308-topic-rb1_lmh-v1-1-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 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709935708; l=956; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Xh62d3byksWPc2df0T3ZNqEz0dwEInqwU4U7UsjCTrc=; b=byZXpm6wd+fbTpb+oGjeh0DovnEkW1bDomSmAaJJ4fk1Xh9XQQZYnLllxRTPWwJQaKfFYHS8Q dEjUf0cFVSaAlPESaOzUBwOU56Cja/kDYxXSrdTieha24IjB8SshJOg X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Document the QCM2290 LMH. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/thermal/qcom-lmh.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-lmh.yaml b/Docu= mentation/devicetree/bindings/thermal/qcom-lmh.yaml index 5ff72ce5c887..b815d8c5da51 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-lmh.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-lmh.yaml @@ -17,10 +17,15 @@ description: =20 properties: compatible: - enum: - - qcom,sc8180x-lmh - - qcom,sdm845-lmh - - qcom,sm8150-lmh + oneOf: + - enum: + - qcom,msm8998-lmh + - qcom,sc8180x-lmh + - qcom,sdm845-lmh + - qcom,sm8150-lmh + - items: + - const: qcom,qcm2290-lmh + - const: qcom,sm8150-lmh =20 reg: items: --=20 2.44.0 From nobody Mon Feb 9 10:30:26 2026 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 8236660259 for ; Fri, 8 Mar 2024 22:08:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935717; cv=none; b=S69XtkAyENjp75u6UO93qkFSF6i1qsT+lJPAxEXxL8FK5sM3/5dE82Yr6y+ZVUC91H1bcnRxxPS6F1SZ4Ob7eGbNsOr6m7KlUtSgfmFN93GcTVG2eCMgbB69PP9c2p8k3SVUFuRb1LKN7yLsvnBEkXwBgjHu+7YpT/XkKLr+3z8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709935717; c=relaxed/simple; bh=eWOTmd2tsTLxXcstbYbn83ahKI+wXi5kjtikQvd8TmA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qRqPc6Vy5X1lnTkF2Io/lazZVHilMiJVHa9mFx8qfFQnh1RrkhPavNalzwn8eNOuVTbrhMUntLqxlZ5jy9iMrBvWZn8FaeBVNFoO0NX6RFGWcwY7LOXsnChVPSENN37UDu6ziiCGlOe1Fu4SZHKMHUGFavF3QbnJQrEWDo84MJs= 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=YhyMJIXr; arc=none smtp.client-ip=209.85.167.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YhyMJIXr" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-51320ca689aso1684969e87.2 for ; Fri, 08 Mar 2024 14:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709935714; x=1710540514; 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=PwYLLPvl+vc8WoafYRVCdkEDCnelT/9QzPyhGkE8pJY=; b=YhyMJIXrDBsTh70IwTXS3erwIly2laaNXDL6+KURz103rcq1FktJnemZ/zP79RhbHK DV52yJZvBWAtxkezYSA6BkP1tI8l1G+9uzySxjO1T/QPABlyXze7p5tpwFf1icqNL4i6 2P9WBZub056ZXwwjIO358O/4BIeen3CdnuuvFziRvFDnCVt098x+yrnXM9cDEsLhjJHs PP2V/VHQ1O3duIamdSdbpoIu/zvSoE1VJUkL3okmPthSDZ3NfCfNQsF9Rqg2jb78Oiup d5l+8w+Gqs1/65Jk0hpsTvc0J5pMYgQW9pkNr8+lCkDUHMk50mPatzNnNEbYOT66m6gy rTaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709935714; x=1710540514; 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=PwYLLPvl+vc8WoafYRVCdkEDCnelT/9QzPyhGkE8pJY=; b=mb/MJ/dYcD+PrRc+h3pmRUE1BlpXrZQF4kAGmynC3wm+nuORuGgLAVG1BQ4gbQ56JF tWGQh9tjXVFzfVJOgUhETHZABdwV5iASliQ87i7J6tqFPQrfQgcyIt+t9lwTTY7m+wVx PzD97Lzsz0jVFAhGE1Q9J7bL01usRP9+x7E+uQEVmn6yvavHecJozf+xZiqrbyRM8X4n 9gkYROcD04+Fvc/fb+WfVcXRRibP9hdxKH0P80lbmkcQH8qL+76euSX1jYJDaTQeBJF2 luZ1B05B2eY79KifIX0zaoZPZQKUKx4ZYSlQYbtUY5X3er1rlJGIbQlPJOYP1KVRNUHn 0u6A== X-Forwarded-Encrypted: i=1; AJvYcCVNtiME6TDsk7NHM1PBHo3jgVwsfVHyzYMI+tfMj/ZH3eT69WfYwpa0HybC/lFXyzkxfzbwZSm9jfiIoVLZzviT/g+xqiuiwMY13GXx X-Gm-Message-State: AOJu0Yyy+xxJFUoNM+0XJ7OiFEKYO6j82DDfWwPHKjuzkX6rnT3YhFbC EdFD23WQ31cAOoG2JqBf4um7mAgSwi10zgen7Tx6917f740Adf+1uXBF5lCzmwQ= X-Google-Smtp-Source: AGHT+IHAV2kpX7EJHsUlb5qz1GWavXRchPg/L3LtUpK4DxckheMNV6bZmY/dkUgbnHUiStHe9NhTmA== X-Received: by 2002:ac2:5e78:0:b0:513:593e:12c3 with SMTP id a24-20020ac25e78000000b00513593e12c3mr155945lfr.50.1709935713679; Fri, 08 Mar 2024 14:08:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:08:33 -0800 (PST) From: Konrad Dybcio Date: Fri, 08 Mar 2024 23:08:21 +0100 Subject: [PATCH 2/3] thermal: qcom: lmh: Check for SCM avaiability at probe 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: quoted-printable Message-Id: <20240308-topic-rb1_lmh-v1-2-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 , stable@vger.kernel.org X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709935708; l=887; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=eWOTmd2tsTLxXcstbYbn83ahKI+wXi5kjtikQvd8TmA=; b=401goTee880ks06op80EKYjIveyZC5BEA5EmmeGSyAwJsuAfi4ne5Vaa2dRdOt5Aq/UBeKmf9 xFVGDRm6yWuCBc2d54oDP6CUiP0MxtyBl/VnmgfIF62nr+BdmAcMdwZ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Up until now, the necessary scm availability check has not been performed, leading to possible null pointer dereferences (which did happen for me on RB1). Fix that. Fixes: 53bca371cdf7 ("thermal/drivers/qcom: Add support for LMh driver") Cc: Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- drivers/thermal/qcom/lmh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/lmh.c b/drivers/thermal/qcom/lmh.c index f6edb12ec004..5225b3621a56 100644 --- a/drivers/thermal/qcom/lmh.c +++ b/drivers/thermal/qcom/lmh.c @@ -95,6 +95,9 @@ static int lmh_probe(struct platform_device *pdev) unsigned int enable_alg; u32 node_id; =20 + if (!qcom_scm_is_available()) + return -EPROBE_DEFER; + lmh_data =3D devm_kzalloc(dev, sizeof(*lmh_data), GFP_KERNEL); if (!lmh_data) return -ENOMEM; --=20 2.44.0 From nobody Mon Feb 9 10:30:26 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xZYiFUk7" 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-Google-Smtp-Source: AGHT+IFQ+WmVI2GU3PDAyIWW/rk8kRwoJTIYLIYiPVn8TW0QHNcwRGtUVzrQ9MZ2VZqtjgmsCbLLOQ== 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: quoted-printable 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/qc= om/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 =3D "qcom,qcm2290-cpufreq-hw", "qcom,cpufreq-hw"; reg =3D <0x0 0x0f521000 0x0 0x1000>; reg-names =3D "freq-domain0"; - interrupts =3D ; + interrupts-extended =3D <&lmh_cluster 0>; interrupt-names =3D "dcvsh-irq-0"; clocks =3D <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GPLL0>; clock-names =3D "xo", "alternate"; @@ -1866,6 +1866,18 @@ cpufreq_hw: cpufreq@f521000 { #freq-domain-cells =3D <1>; #clock-cells =3D <1>; }; + + lmh_cluster: lmh@f550800 { + compatible =3D "qcom,qcm2290-lmh", "qcom,sm8150-lmh"; + reg =3D <0x0 0x0f550800 0x0 0x400>; + interrupts =3D ; + cpus =3D <&CPU0>; + qcom,lmh-temp-arm-millicelsius =3D <65000>; + qcom,lmh-temp-low-millicelsius =3D <94500>; + qcom,lmh-temp-high-millicelsius =3D <95000>; + interrupt-controller; + #interrupt-cells =3D <1>; + }; }; =20 thermal-zones { --=20 2.44.0