Message ID | 20250324135701.179827-1-claudiu.beznea.uj@bp.renesas.com (mailing list archive) |
---|---|
Headers | show
Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 DD5EB25DD14 for <linux-pm@vger.kernel.org>; Mon, 24 Mar 2025 13:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742824632; cv=none; b=PK8oeKNCy5pT1Yv/NDmH1blAIoaCp2ogdPx/T3pg+fNUb6VA8PBHSAOdn5Wv/3BwHJIByaOu6j266FJlCLogD/eluTGfp5Tc7XIN8fOAqR3ylSPggyobJUNUuVY264WDvS8FYsGAJp+fu1ZLR4RguA7Atmew/0y5UF7qMr1Yn34= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742824632; c=relaxed/simple; bh=MPO6jCCozjhYMoPt4y+gKPOuX7ez+gZqkKwymGwFc0M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oiriJOozHSuNXNgalCH+DWQwV4BOYNqRqllc7TZhFtgIrLZswvePAE2NDYDt8Nm+5JBAft00fk/mNEVyyrPGXp3TfgiYOHp0xtVOC36mDRkPlchpIVbmpQna44zUCzXdQqUmF5pHSEBUgmYAIdIJAjnsqP5mdgPxCfq3Rs7nni8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=LdnvjBV+; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="LdnvjBV+" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-43cf680d351so32179275e9.0 for <linux-pm@vger.kernel.org>; Mon, 24 Mar 2025 06:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1742824629; x=1743429429; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=geHsdT1vrdpFfM6YFLK2c0Yi2DY1fN5x5Y+Dw80cp/o=; b=LdnvjBV+8Eaye8ho5RjmMoedW57GovKqz7vx45WSQPkXG0yau3B7sA8P3xg6+X7bUC UaR8J6UYHxcgTN3Y2e6mad1yF5zV/upEiMnA1slqtErekQzAL458hzSXEiZmsWEk9oc0 aXQnpjXcQlLLqSITTRhjEcggyjxxvjK6nfVs/qRt82JxcsSm0HCqo+ugkA1aSALB2d0N kHf5YDBXhaAB/DMT8K/haBwA+h3ZSiIsqxSztQzcEUqh9h3NdZaHoukIi+Q/E36pXCXU +Gqxg5u/nS/H7IoGddCW8NKiYtrnQ3iTjsm9ruWzP1slCJFUAZdIJBorqECIDK9j8asJ +igA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742824629; x=1743429429; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=geHsdT1vrdpFfM6YFLK2c0Yi2DY1fN5x5Y+Dw80cp/o=; b=Vxqwfl7zW4N2pgbDgPiry92S2GEdnhzTeq6oT55FBnjvuKZcheD3Gl4pQUfdX1OWDG UKTIJqOaT2HYzgnY9vqP7P0v3+EWcxlUXjVHUV48na1enOLLp33bWBRXxH+iGYsNYuIF rJB+kC5Yxgcg2CdQI5464WFSfCs61o98M8kasUU+ZEHvuG/tUsmxD6aZ2yJzy32xbEyY 6oZL1wpPrXYoTGKjaYV1Vo9HQfXLDlKje07oLxo6+94770JsXCKVlNLW4sx6Jpe87n8T RVZ4T/IbZAa0Abw5xODbh8pBJaFoE62RGk1NCAmz0RwyCBLzngebMBCPjm7oXGWZfGkJ C9lw== X-Forwarded-Encrypted: i=1; AJvYcCXLggK2hB790om6TDzKmsAGOLbmNifV7jwr1g6EOetqujcp8mp6pO8JEkxl9ZGPWNf0P5fUsKMebw==@vger.kernel.org X-Gm-Message-State: AOJu0YxEwPLU+6fLeNmsJ6xA861s/S0G409yACcvgzXxVl1L9A3KXhux e+fHKpe7qMYqNSvh95KSu1xXK1M4yxnfc1bH+fHhjQWPg/mFcVJC/uDCnSNb6zA= X-Gm-Gg: ASbGncvMkvJRupPc6MFZaLS7dLAIbUsgQhbl11+emM5Hcof+wPrjnGJix9R99naebt0 LXJ08VqCse1Bq5oVb/ItFvR/wNrjqptIudqsgGBKcne9jIwLKVurlCx6Lv/uYE8j/Q051O1b6Og VIgoFaGUW7GBS5UxYl6h5IfRfsuy2hf/iDpyy1yShdB7QlcLA4CsQa+GXQ+3wj8RI4FApxAQ982 AY6RSZiqDbfwhygCHoBcN9iaCtXQZa1wdYiTavkP1tj9pAMyAchtsP/HNJOE8TabIeighwvYuTT 8S53ewdFIkuBT6AWVl2mKHLDuImimvq6YnV+uuJHm2aWjo0n5cYVvjeRF+FA8xHrfKJY/sVZCg= = X-Google-Smtp-Source: AGHT+IGkbsgJvhaLoKe9hCL01Phvk9cQWomrPl7igNBxsiltgQYpsqqfKtqy6vBzpm7mTH5vwHyozg== X-Received: by 2002:a5d:64a8:0:b0:390:ff84:532b with SMTP id ffacd0b85a97d-3997955cc22mr13735349f8f.7.1742824629087; Mon, 24 Mar 2025 06:57:09 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.46]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d4fdbcfaasm120146525e9.35.2025.03.24.06.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 06:57:08 -0700 (PDT) From: Claudiu <claudiu.beznea@tuxon.dev> X-Google-Original-From: Claudiu <claudiu.beznea.uj@bp.renesas.com> To: rafael@kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, lukasz.luba@arm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, p.zabel@pengutronix.de Cc: claudiu.beznea@tuxon.dev, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Subject: [PATCH v3 0/4] thermal: renesas: Add support for RZ/G3S Date: Mon, 24 Mar 2025 15:56:57 +0200 Message-ID: <20250324135701.179827-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: <linux-pm.vger.kernel.org> List-Subscribe: <mailto:linux-pm+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-pm+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
thermal: renesas: Add support for RZ/G3S
|
expand
|
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Hi, This series adds thermal support for the Renesas RZ/G3S SoC. Series is organized as follows: - patches 1-2/4: add thermal support for RZ/G3S - patches 3-4/5: add device tree support Merge strategy, if any: - patches 1-2/4 can go through the thermal tree - patches 3-4/4 can go through the Renesas tree Thank you, Claudiu Beznea Changes in v3: - drop runtime resume/suspend from the temperature reading function; this is not needed as the temperature is read with ADC; this is confirmed by the HW team - use dedicated function to open the devres group in probe; in this way the thermal probe code is simpler Changes in v2: - dropped the already applied patches - dropped patch 2/6 from v1 as the devres_open_group()/devres_release_group() approach was implemented in this version (similar to what was proposed in [1]) - collected tags - added a passive trip point not bound to any cooling device, as proposed in the review process - decreased the trip points temperature - convert the temperature to mili degree Celsius before applying the computation formula to avoid losing precision - use int variables (instead of unsigned) for temperature computation [1] https://lore.kernel.org/all/20250215130849.227812-1-claudiu.beznea.uj@bp.renesas.com/ Claudiu Beznea (4): dt-bindings: thermal: r9a08g045-tsu: Document the TSU unit thermal: renesas: rzg3s: Add thermal driver for the Renesas RZ/G3S SoC arm64: dts: renesas: r9a08g045: Add TSU node arm64: defconfig: Enable RZ/G3S thermal .../thermal/renesas,r9a08g045-tsu.yaml | 93 ++++++ MAINTAINERS | 7 + arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 49 ++- .../boot/dts/renesas/rzg3s-smarc-som.dtsi | 4 - arch/arm64/configs/defconfig | 1 + drivers/thermal/renesas/Kconfig | 8 + drivers/thermal/renesas/Makefile | 1 + drivers/thermal/renesas/rzg3s_thermal.c | 313 ++++++++++++++++++ 8 files changed, 471 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.yaml create mode 100644 drivers/thermal/renesas/rzg3s_thermal.c