From nobody Sat Oct 4 09:41:02 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEF93524F; Mon, 18 Aug 2025 11:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755516831; cv=none; b=DTwhY4hW1QxBU895mwRvwbmbRkcDwolY7G9bATJfCQF9x9U47xgi8adOeMxMdKlIneE1/iGWQCvKHGa7w7jCq0CpbQTpt/df5S3rio4WWhuTBVGvQ8lrn9nxUbaGIW8zxfm1jqutn3sSkmDhjBeCKe0l0bVedK60RdYTk1dR4K4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755516831; c=relaxed/simple; bh=VPmvGppSNUUnpQzLUFB81MV2LG6iGpEROwF2e1F+jus=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IWRhH653/F+QoYBPIrfpqyXhWzAdOIi7qpqFihuBapocMj2Q5PuACLHxhpiqC/D6Uz3BCZKGfH8hTMikSsPlSYykDzqYaJ/tVVN2mqJA4UpDsqRF3LVBJh435KOY1it7mkLWBBn4et4qigHJqUWkccFIeJ8LcuAkJkj6Rj6Q9l4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ueodRc72; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ueodRc72" Received: by smtp.kernel.org (Postfix) with ESMTPS id 711C8C4CEF1; Mon, 18 Aug 2025 11:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755516831; bh=VPmvGppSNUUnpQzLUFB81MV2LG6iGpEROwF2e1F+jus=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ueodRc72EMgF/Q9L+I2u4VuFQW/tcuarUAY+AscYrkddw1/d5EWKbuyQoP/IesvJ3 qiontaNMK3PEdOLw3g22Y7v530JDYq8U96Y2BMmdB8VyyzQd3LPVWOGn47DZEnvJqd YcxnvWVq/2IAvjjOX914iPy6LIfuYWKijZ70q6pRi96Rtkn9gIByHeUVaqFU0HcNa+ jBqO2PYDYNiMEmbWL51Dk5nXsiRI5vvPtW6EI9BhntPJZ+N7sVwV+YovHy9omQpre5 bubMDMZ5Yg6lP02s3vC7sBRvIADISrk9tW8IuGRDX12RAm27jmeqPff3C07AOvnjtd R4hPgjNtd3KZQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60225CA0EC0; Mon, 18 Aug 2025 11:33:51 +0000 (UTC) From: George Moussalem via B4 Relay Date: Mon, 18 Aug 2025 15:33:46 +0400 Subject: [PATCH 1/2] dt-bindings: thermal: qcom-tsens: make ipq5018 tsens standalone 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: <20250818-ipq5018-tsens-fix-v1-1-0f08cf09182d@outlook.com> References: <20250818-ipq5018-tsens-fix-v1-0-0f08cf09182d@outlook.com> In-Reply-To: <20250818-ipq5018-tsens-fix-v1-0-0f08cf09182d@outlook.com> To: Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sricharan Ramabadhran , Bjorn Andersson , Konrad Dybcio Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, George Moussalem , Dmitry Baryshkov , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755516829; l=1557; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=h6GA/ttuT5bOVLTfp0krHWJVqoQSwvPud4lHYllswcw=; b=Jz8rZ8j0SE3OH7xPW3fuaGbzqG1ZtX07jgsJ254EVi9k1/G3+YpCotI53W7PKERBFReUjY38r Eh9gtlGjDw6BbcodGpLI6WBxE1mqtSlwkeMv2azigjmy30tOdUtu4nO X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem Reply-To: george.moussalem@outlook.com From: George Moussalem The tsens IP found in the IPQ5018 SoC should not use qcom,tsens-v1 as fallback since it has no RPM and, as such, must deviate from the standard v1 init routine as this version of tsens needs to be explicitly reset and enabled in the driver. So let's make qcom,ipq5018-tsens a standalone compatible in the bindings. Fixes: 77c6d28192ef ("dt-bindings: thermal: qcom-tsens: Add ipq5018 compati= ble") Reviewed-by: Krzysztof Kozlowski Signed-off-by: George Moussalem --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Do= cumentation/devicetree/bindings/thermal/qcom-tsens.yaml index 94311ebd7652d42eb6f3ae0dba792872c90b623f..9f342e63bdb1d27bd12373fb4c7= 611964bfd8d4b 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -36,10 +36,15 @@ properties: - qcom,msm8974-tsens - const: qcom,tsens-v0_1 =20 + - description: + v1 of TSENS without RPM which requires to be explicitly reset + and enabled in the driver. + enum: + - qcom,ipq5018-tsens + - description: v1 of TSENS items: - enum: - - qcom,ipq5018-tsens - qcom,msm8937-tsens - qcom,msm8956-tsens - qcom,msm8976-tsens --=20 2.50.1 From nobody Sat Oct 4 09:41:02 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEFC62E22A9; Mon, 18 Aug 2025 11:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755516831; cv=none; b=VqLETc4T2um7UBDoagDhE5FaVjJLNoLCW45q/LUrwXoemwWqIFZm7XVzEyPjuUDYlgOw9BuQEdRd7nWhXOVdv1pxkbIOt4gS7MPPVGBilyaXc/sWLyd8qk0KNcIXV1rGmEZ7Ywn0BdnngdNfSAQvSACHhpyMZpGXRodCNPE5cls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755516831; c=relaxed/simple; bh=ZZKBTpL6UHyciqnKATbtrkmYynWeMCWrFd/2xcp++ww=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XU6nlgSFgahhOxRhNcFU7wdAqhbLs8Ra7XxTipYaqKQqtp7v39J0ju+HaZOu9YE8a+aN4qG3R/YMTtCxZWejrgk6wU7nT/KBLqhjd1G2f0bWq/4NipYk+S7xYZyfe2lpNpZ2SRUI/1h6BFPoUnMzTeeuH8VjX/qIM3oLVe2s968= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PKBRtdr/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PKBRtdr/" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7CDF3C4CEED; Mon, 18 Aug 2025 11:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755516831; bh=ZZKBTpL6UHyciqnKATbtrkmYynWeMCWrFd/2xcp++ww=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PKBRtdr/YTJTrl92zpHzzAovfqaynlZxJFZ667MTjd+V2zpPVbh/Qw2YkWFGl8Zeg JIv0gaRa7PdagA1GA06EbVEy4GO0sNTdf6FR9uMTB8QJLoShXHrFGEgBkV0GrW6GR2 l8QjDRsmfKbIfV7udOOmrqR83UfsKpyVH4F39JlEvteIsWQni/6UESQxGlGkBryduS E2cVKO6sKNLJP6QVQf3TJeZsf5Xb+y/3xsqurGnhx7LD7r26jt0UaWQouihdlLn4lj AEw/X1Kg1G29aq65wiw0DT5mBXOiR0gDatBMXU/FSddyoCFlqbrMLijDrt/R6gGmcS tgOzuwrEZQhrA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E9D7CA0EE4; Mon, 18 Aug 2025 11:33:51 +0000 (UTC) From: George Moussalem via B4 Relay Date: Mon, 18 Aug 2025 15:33:47 +0400 Subject: [PATCH 2/2] arm64: dts: qcom: ipq5018: Remove tsens v1 fallback 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: <20250818-ipq5018-tsens-fix-v1-2-0f08cf09182d@outlook.com> References: <20250818-ipq5018-tsens-fix-v1-0-0f08cf09182d@outlook.com> In-Reply-To: <20250818-ipq5018-tsens-fix-v1-0-0f08cf09182d@outlook.com> To: Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sricharan Ramabadhran , Bjorn Andersson , Konrad Dybcio Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, George Moussalem , Dmitry Baryshkov , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755516829; l=972; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=HJcOgtw7oiilIyh0aWOOzNZ2iln5P6lSb3GMC6Gave0=; b=uR1EVwZAX79JKZzxxM9N7TA/hO1CtlDORhZ/FGhSsA68dLhwH953wdmIPFDj4vfeWpsTsB3Bh 4W66WWUho9RBMALQ66he3JtRH90AzRDuzcypOj7GRnzE6ehzDO8Gl3R X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem Reply-To: george.moussalem@outlook.com From: George Moussalem Remove qcom,tsens-v1 as fallback compatible since this IP has no RPM and, as such, must use its own init routine available in the driver. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: George Moussalem --- arch/arm64/boot/dts/qcom/ipq5018.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qc= om/ipq5018.dtsi index 4ddb56d63f8f9a963cb49bc20e0a78b2d3490344..db7051a659221d45949cda93472= e52c49815531f 100644 --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi @@ -340,7 +340,7 @@ prng: rng@e3000 { }; =20 tsens: thermal-sensor@4a9000 { - compatible =3D "qcom,ipq5018-tsens", "qcom,tsens-v1"; + compatible =3D "qcom,ipq5018-tsens"; reg =3D <0x004a9000 0x1000>, <0x004a8000 0x1000>; =20 --=20 2.50.1