From patchwork Tue Jun 25 20:16:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13712009 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 7E954176AD8 for ; Tue, 25 Jun 2024 20:16:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719346583; cv=none; b=VQE1N0a/joh7DajtQn3SusrTI4oNuAm0hMRL8MDBT9uJW9Pf+3p47VSwVg0RQcDrla2SZli/j/4nAgNLJGnlIXwZ4N09B7ZPeE/PJSNFwDS4cRSWCiz9kNYDL9fBQNyrAZbk4k7qGuKn0NnbQQU39LIGFLuPfkT0ljd7vW2NA0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719346583; c=relaxed/simple; bh=nWWwFYPj5hSxETQn+GjyApQgH8kPlMG7B9D7jQerNto=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Ao6THYkBYPcnn7pTXm+zHQZscqHKMTXLymNlqjrBXHqXWDRj/N2CjqcaPjzQ79DlPiB2OnlnAO0FXtrYUPo/x17Vxj5y/k0L6Rxns2OEdJONoJHqnN8rx2E9EG2kjVUFMA6CXDQTXdE4vuUG6qJgLkLPtaLUxvfL7KfpIKC5SXY= 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=oHO3cal/; arc=none smtp.client-ip=209.85.167.54 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="oHO3cal/" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52cdb0d8107so5449311e87.1 for ; Tue, 25 Jun 2024 13:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719346580; x=1719951380; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=TkU0X6SUBRJEq9ZcCHQgWMpdIwIb4pG7UUUsMWhF69k=; b=oHO3cal/X/Ww1LYxRquo5wfacNEnukB5iBvKse0Bolrmcw5Jg4TAGUbdH7FdVGnxMZ OTtcQYSVuh7t0YneMkVK+6e8Y4peeSoiWrgOcnCTbTzD773qqMM2bGlCtruVOBfwLxpy Tl2ym1KRY5QNZKU0JuCEu4fuTqh7jQLVrzxsojFXQfkDahGViaK6GZRxXRkW30+pAYop C8mEcX3fZCnBgnzNGYSYpM4kUs7NZhuSX14DULiD2eXBT3QVGb566pNjQqWK14Cg5o2/ Fzr/PT8qJpXDWTEpXKWVcNEUKM0FSrYuAcUZYdbuypY9KS4TMmKLYZ+7M0W9TW5Rz802 EgHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719346580; x=1719951380; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TkU0X6SUBRJEq9ZcCHQgWMpdIwIb4pG7UUUsMWhF69k=; b=WN9YU+1FtlUn3cBZhID9A4xG9aNhECA5cj8Wrv8dnIajWliT5dKDD8c7sUh70Z4lXO wRnXb3wUaFoWgR5LR9YKB4kuoY8O661oNNlMrGKoa/f/0lOb2FCaIkgKNkgryF0G9wCc y5ajgkyiEYMMWVZp18vvfUGPqXW95Nh78h/XJR9nenzgqMeH+ssJ3uSsHUg6lYgwHf1E hfS4/4gCDfzUe6kyPHsXJeAO0wbKx99cQO6/z89oaUMLUfJxOzwhrYIsBhC4Q5x3TJCc a6i/45lV3ycgmGDlAZY+O2fEOF2p4+I+V5ru9aM2wFOqd29AkDjD9vYx9FfG4Y21pP8r 7V3A== X-Gm-Message-State: AOJu0YyNr+J0uRpYVSp5ty+Nq1G9Z3BN/+3dnqlClQzx0oLsGAZh4S5r vM3nPawS0C1wEfU9RwFZ7waELKfnrk/bEwvGaA7tWvNMWxihuKYreHXG38iOkFs= X-Google-Smtp-Source: AGHT+IHtuB4vKKiiL28FswxIZMiWkQFPyJNHVbIyD55OOgZqWimzmngAS1rELc4hJG+TxFn6BdcgKg== X-Received: by 2002:ac2:424b:0:b0:52c:ab2c:19c4 with SMTP id 2adb3069b0e04-52cdf7e7a41mr5756139e87.10.1719346579671; Tue, 25 Jun 2024 13:16:19 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52cec15c9f2sm360722e87.276.2024.06.25.13.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 13:16:18 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 25 Jun 2024 23:16:18 +0300 Subject: [PATCH] arm64: dts: qcom: pm8916: add temp-alarm thermal zone Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240625-pm8916-tz-v1-1-a4c1f61e92dd@linaro.org> X-B4-Tracking: v=1; b=H4sIAJEle2YC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDMyNT3YJcC0tDM92SKt1ki5QUMwMzSxODlGQloPqCotS0zAqwWdGxtbU A7MqbglsAAAA= To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1448; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=nWWwFYPj5hSxETQn+GjyApQgH8kPlMG7B9D7jQerNto=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmeyWSrj/UKGLjilr5dmMSckl505jL1GzwPO4+C E0kWatUjTKJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZnslkgAKCRCLPIo+Aiko 1V8WB/sEvBuY7vTlEn6ie74fqpW1GrxDKUq3hybzlXwtR1DbCwD/zT5ZPWZ4Hx6RkxYUFD5gqVc vAmTELrvIEjU8bViyXFzMp/Zxv0f99mlGyfxo6/ropn6O2rLlgThRyIrK3AYtyJUp3Sf9CSOVYL aQTWE2IpzCp7aUDATZcxoalMQpi6//XshzLmJh3xOatORAabRSFy4fGr1yW9FcWVnInjB7TjQDb 9nrTpKtmq+vWTrSwMRNV0+4BrkuTHG/Wm8jdpHrHLoA9KR3oXpKPUJe1cWnZwZv4MpbmT/Ydngv h43OBN7A2sBoIteS5eYqiCsz+prvr+f/lmSGCMIUG+veLdeM X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Define the themal zones using the temperature values in stage1 for this platform so that the spmi-temp-alarm driver becomes active. Signed-off-by: Dmitry Baryshkov Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/pm8916.dtsi | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) --- base-commit: 62c97045b8f720c2eac807a5f38e26c9ed512371 change-id: 20240625-pm8916-tz-c8dd606940dc Best regards, diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi index 4b2e8fb47d2d..2def48f2d101 100644 --- a/arch/arm64/boot/dts/qcom/pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi @@ -4,8 +4,37 @@ #include #include -&spmi_bus { +/ { + thermal-zones { + pm8150-thermal { + polling-delay-passive = <100>; + + thermal-sensors = <&pm8916_temp>; + + trips { + trip0 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + trip1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + + trip2 { + temperature = <145000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; +}; +&spmi_bus { pm8916_0: pmic@0 { compatible = "qcom,pm8916", "qcom,spmi-pmic"; reg = <0x0 SPMI_USID>;