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: 13988596 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 4F1A425B699 for ; Mon, 24 Feb 2025 17:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740418320; cv=none; b=Efc+QrwjZlxm8Qbs0noQHKZTrGCsi/+BgA/2ok1iZ0kX0wZd2WLupoxzkQVOisXxHLJntvU52GYpbc/yCWVXMqCMDcSBTZTHE6vDLffAcp0dGglXMLv2IxMGfJVpeMvm6q8KgWyx/XTt+OUW7SYmUgjGtR5Ticld/1ri9BDX6e4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740418320; c=relaxed/simple; bh=+F8M3PdAsJIpcWkKGTRP+OqlpeWgGNzF0lJdz88t8Xs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fx2IQnxL6ef4umAsDGoJbObiwTV8jcxjfXn6jqM2U8cX4Wt25zzwhnsYXB5ea8Xy0zsXvrsbaNi+TS8vgvefJ4zN60rxYWiMrMT4CXxMJ9R5nZnpnYPXLQdI4NW2Lnt0MMziP8IaWjDM7xA5sTck1+u63PGBgzQWEvyujXwn3MM= 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.45 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-f45.google.com with SMTP id 4fb4d7f45d1cf-5df07041c24so6940399a12.0 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=rHiwbh5r2xVfD7QCUrhnblpKrJphCOVRLXbYbbQQAIHQcKkKEc72KnV0otovNiQI4a OOmQDBXeT98pcTBFdjWrhw+xpl/eYjasYenVgemaAN5I7OY9lSdJTnnff5Fa4Mks3Qw6 we8JhUapmFs5BZXNmqfl+8UBjxOibHNJrvOMhnD1vJ11x98Qy5U971a5AL7Hk0VINjwT y6Hp9hSOphUku5SeoLzZ56in5TGdgd3yymJt959wW2GYm32BZ1Oi+CWbQFFLhO7rM8Yj P9u+3DfhUJcifzsWYmB74FwzSMfYW8Jq4m9qQ6b4US6d0ZmEnUsRDhw05xyQ3VeY5mKi NrIA== X-Forwarded-Encrypted: i=1; AJvYcCW3ZLiJ+TzLjf80QaP2eQmsgr5hycyu6pxJhyQ8fLsO0fFggrnl7jgfWmgca5C+UO9/CgDsglDhcvsESjfiFz/M2Q==@vger.kernel.org X-Gm-Message-State: AOJu0YxA3iLQcozCF991ao0naVB4mpFc+ZhF0J3OBX862ZODSnze9Qjs WdwDv0dtQ4l5GQ5VBeTrxc7lB5R4F5AmZfAGU3WqA+N5G/9tlP8tBK3+9Rm6Gr4= X-Gm-Gg: ASbGncuMekEq4qWT8BmqQsipEO3yIBWH60lQkb4RusMxmEurgqNkixnxmAkGHQFjX4g Fh0rHyK1dCKacMXvFNdejmYMIcATUL3Opxl2HyLlONN0cBDueRbcFrQeKIEGJlZF/xE1R/uhJMj 6/EJAR3cpzxYtkyaGgbj75Uxd+dRL2NNuuFHl7tAZveBhMtSj1IjUwF2Av167B4h/DbdNzvR/4+ FX8+nqQgDcj3BbxkjZe0EFVPuMFqLm+4aPLyrIsYOjtp37RMM0/eKFGA37aSgfJcDJ809JKbrDC 8x46paivB6jtXw5trTz9chJx/fFYCZCT/HMFvet7QqcFoY3P2l5qzqM= 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-renesas-soc@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