From patchwork Wed Mar 6 10:56:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 778756 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) (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 B176276022 for ; Wed, 6 Mar 2024 10:56:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722577; cv=none; b=hLu4IKykuohmPmiiHGZGR2Oig4pbYRmxEJF3H7kclWBk9JjuaSG4NG2yzaiHi1d9PVD0eiY0k4rGXQAzxCMa4hliHPn0HJLiji2jfT5IJXO/v9TNUqWyMd+eVDAsAbvBDm8rkuSKy5TCm1hJIK0yihtfXJIT4b01VRYrERpkOvA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722577; c=relaxed/simple; bh=TJ24aG+kXCjYheKsA0o5PbfPeY9Fd1hO9Wj5VYe2+Hw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uB0Q4YN2Np9ysSep1CjrzFfGIpW6OuOBg7WnkbkTgUlMGYI3yDWZ/wQeYgSe64tDo5OyD/27wwymS6aASmVpi+8B69/GpdnxcWfVvc6yigzwGPJlREzi/4TeKUjUDbmaJAEwR7N2axvUWdW7ZRRMjoyztbrwjT55ixkdHJwYrR8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([84.195.187.55]) by xavier.telenet-ops.be with bizsmtp id vNw42B00T1C8whw01Nw4R6; Wed, 06 Mar 2024 11:56:08 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rhowB-002Y8k-1m; Wed, 06 Mar 2024 11:56:04 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rhowO-00EMJg-8n; Wed, 06 Mar 2024 11:56:04 +0100 From: Geert Uytterhoeven To: =?utf-8?q?Niklas_S=C3=B6derlund?= , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Duy Nguyen , Geert Uytterhoeven Subject: [PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779h0 support Date: Wed, 6 Mar 2024 11:56:02 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Duy Nguyen Document support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC. Just like on other R-Car Gen4 SoCs, interrupts are not routed to the INTC-AP (GIC) but to the Error Control Module (ECM). Signed-off-by: Duy Nguyen Signed-off-by: Geert Uytterhoeven --- Changes compared to the BSP: - No interrupts property, as interrupts are routed to the ECM. --- .../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml index ecf276fd155cfb27..6a81cb6e11bc1e14 100644 --- a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml @@ -29,6 +29,7 @@ properties: - renesas,r8a779a0-thermal # R-Car V3U - renesas,r8a779f0-thermal # R-Car S4-8 - renesas,r8a779g0-thermal # R-Car V4H + - renesas,r8a779h0-thermal # R-Car V4M reg: true @@ -90,6 +91,7 @@ else: enum: - renesas,r8a779f0-thermal - renesas,r8a779g0-thermal + - renesas,r8a779h0-thermal then: required: - interrupts From patchwork Wed Mar 6 10:56:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 778471 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [195.130.132.51]) (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 8D0C8779F8 for ; Wed, 6 Mar 2024 10:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722577; cv=none; b=VVXKVuh5yK6YkvEYQTtNuVRuWhz2SdKIzMAnKuQOgAJ2hbx9D7pxBmmhVjpdenSbBqVBaxcQo9vva8K0uQji2im4bnK54Gpz8SApSLVwJ5z+u+fMr+QgX70neEk6rgnB11thPYPqOV4YSV0ilBqs+zzE/Q9WrC7RofS1PIybcEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722577; c=relaxed/simple; bh=xw1Of5eP9QN94JfZZcLhKlocVavuPmL/Ptad+alYLtg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Yie6S269ObWE2ztYgguX4kQLJEGzFZmFFjswP/YUAqxy2HxkaWHycj8+BJNGxswTmM0X5wXaOfUjiUBSqliBNk3K6wAIcZRqNBT1aC2NoMZyHyx3NmtKRXavRg7HNHRtD+2k2xlipRd1SWW0zcQSFoLchoc0kfXro+8czc3864U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([84.195.187.55]) by baptiste.telenet-ops.be with bizsmtp id vNw42B00G1C8whw01Nw4Br; Wed, 06 Mar 2024 11:56:06 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rhowB-002Y8l-2Y; Wed, 06 Mar 2024 11:56:04 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rhowO-00EMJj-9p; Wed, 06 Mar 2024 11:56:04 +0100 From: Geert Uytterhoeven To: =?utf-8?q?Niklas_S=C3=B6derlund?= , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4M Date: Wed, 6 Mar 2024 11:56:03 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4M (R8A779H0) SoC. The conversion formulas for R-Car V4M are the same as for other R-Car Gen4 SoCs. Based on a patch in the BSP by Duy Nguyen. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- Changes compared to the BSP: - Use existing rcar_gen4_thermal_info instead of new data_v4m. --- drivers/thermal/rcar_gen3_thermal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c index cafcb6d6e235be44..a764cb1115a57562 100644 --- a/drivers/thermal/rcar_gen3_thermal.c +++ b/drivers/thermal/rcar_gen3_thermal.c @@ -428,6 +428,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = { .compatible = "renesas,r8a779g0-thermal", .data = &rcar_gen4_thermal_info, }, + { + .compatible = "renesas,r8a779h0-thermal", + .data = &rcar_gen4_thermal_info, + }, {}, }; MODULE_DEVICE_TABLE(of, rcar_gen3_thermal_dt_ids);