From patchwork Mon Feb 24 17:31:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 868018 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 523E42627E6 for ; Mon, 24 Feb 2025 17:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740418321; cv=none; b=hc36pWQ6UsZB1UHXkGGlG9AfifhGDUzxzP7j7xozDFw1Hz/v+uiDvL7IPlYFJRPgJTrQsyjAc//T/UXzMguJCngWau71pCDEgwO/+4jxIeh3uySeRj1xrTlqE77dEBQXrGArdYXkH6XxMWMas0niaw847gJ8FaDycHvSS8n6f70= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740418321; c=relaxed/simple; bh=+F8M3PdAsJIpcWkKGTRP+OqlpeWgGNzF0lJdz88t8Xs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q4tHdpERMSJ2tJFC+GG+XFq9tMBfw3xn1J2P0CJZnZfSzpyvDqretMscUnwSfB03dtxexcjmDwfLVcGKaoZY5qx8Cl7ktGo87hiY8wfUdZtB6pnGNf0KUUJ7+RSyWiZepztSN/0tGVEClSDSa68L13Wdfu/HOJilaownDuwLnzY= 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=YY7SNxMO; arc=none smtp.client-ip=209.85.208.47 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="YY7SNxMO" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5e0939c6456so7460314a12.3 for ; Mon, 24 Feb 2025 09:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1740418316; x=1741023116; 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=dsclqQFCsZDMndtlLXiFjksSQ0t4bojzK3MB88KzrgM=; b=YY7SNxMOFOwG7qfkeWJv/umMs/3L3+yyW5E7Kp8fWngTrhJjwb+Z+WVEG/4w6IVL5x e8Ih5a5BdLOPr3RKfE11O9KSLsF+fZG3xBoqzcQLPAq3pYeictzTJVYxM1sm+1FdFdmu pd2ynjSIEygci8QMjgEzAXxKAgQwdEL9jrYlfUxZfSnnOUzaAiRpFUdeUpPjT95c89z6 bdCzrYti4bHPIep8LDmndK1UQ5AJxNkCysyLmBlQ3nKeHr018XcQrhFO8YVf+77R8IfF nXEZYsKUyN9puTvfDVwzt+yH45i7kVP2Rmrnt9pukPrVMCHVgBwK2bTQ4x8j5CH7cPuz 3HoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740418316; x=1741023116; 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=dsclqQFCsZDMndtlLXiFjksSQ0t4bojzK3MB88KzrgM=; b=fQ/1PRhuzqURCXiEuj2pouyuT/5pUW3609w4vg1Ecx5G3ZwHKkag9n4zgMUwgQIsu8 QPpQQ2AXRA+wG1xGoglp5mVZzWbqjF285kBzkw8yHIlLujxymuj0UekZ0lS/gWlgKLgu Z2tA0YJFMrp/CocN1wPjo7qAQ9MwI+660K9bvJZrXi+DHM8mZvLVdljvaNn/ulvs2FVR IglulLiKPYqTODMbVMkVqWXfQjAMOEAPvZHVnGms6QrFDFvFmWoPq1bpSpXywYoHJJyc KINO+sK0OLvXG/Im8+vuN4rFi9Zg67/NMwg5gQaFcNPFMX4fxYDMS7kbUOWL/VcfcXmA RmNw== X-Forwarded-Encrypted: i=1; AJvYcCVUtDc/xXSnLXL7KI5bfcHOYCeovXYqY6TyKWxYlJ9vGzzvIDT8/dfnGJku/AtGE59pLIVGI/PeQw==@vger.kernel.org X-Gm-Message-State: AOJu0Yx6Ph6/sDcSymQnsV2xMJI2UFURt2AEM7mV6DFt0F3T9rXBlY4X GTImbOf/ZkBUDAgRFn/1pNZfPEPZ8xnhAqeCMGKgT25MX2Fgg34L47x3VD2L91s= X-Gm-Gg: ASbGncvpzaazgUc1B7yXqTggKdXfAShHhjwVkkPOOScVrLoyftdtI8ED5xK0+eB5PpQ wYL6XTKMsqJbtDYjfZ6pY9jWrRZSxG9/8U15HomSd3S9v2mdD6/9WXP4YM5CporEbKvm1wwg/Hv kAbM+24CJFB0GW7DiUjuQZXDX/777v/7w2FNa/va1Cd1NiHOUqd1/2m+8EjNsaCnKtuZhJwAXDY TTMepsswiD7rpkhTE8tX0cpCKCjOmYMu8v6UBiYpZQl+ciZ0WHwxZpPYd+5EmClXAA1yxXqb6Fi e0Kz44ekmrGM4lFsgGVUKDJLQESVQV+H+4g8ssWrFU4RT0g8NuNztWM= X-Google-Smtp-Source: AGHT+IE5P2Pc2ulD686tbXmldMuv37Ren86tZmw8hKdJojopByUms6FVwARmV7spLnl3u/zaSknl5w== X-Received: by 2002:a05:6402:388c:b0:5de:c9d0:6742 with SMTP id 4fb4d7f45d1cf-5e0b70df001mr11915007a12.9.1740418316384; Mon, 24 Feb 2025 09:31:56 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.25]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece270a7fsm18674357a12.58.2025.02.24.09.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 09:31:55 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu 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 Subject: [PATCH v2 0/4] thermal: renesas: Add support for RZ/G3S Date: Mon, 24 Feb 2025 19:31:40 +0200 Message-ID: <20250224173144.1952801-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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Claudiu Beznea 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 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 | 329 ++++++++++++++++++ 8 files changed, 487 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.yaml create mode 100644 drivers/thermal/renesas/rzg3s_thermal.c