From patchwork Thu Feb 9 16:11:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 55041 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp425840wrn; Thu, 9 Feb 2023 08:13:46 -0800 (PST) X-Google-Smtp-Source: AK7set+1NqQzBFShIN1kJE2HKSwkc8dNT2EGVTesQBy8f2QffIVzdgo6stZwC2rmnt3xOSURsMdG X-Received: by 2002:a50:c35e:0:b0:4ab:1594:8581 with SMTP id q30-20020a50c35e000000b004ab15948581mr6372894edb.35.1675959225849; Thu, 09 Feb 2023 08:13:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675959225; cv=none; d=google.com; s=arc-20160816; b=OmLOJc0sZN/xvSJ5XAsdmRZpMKveMPF7F3T6r6tqKjYDVtiIOdD813YbJ7vttUO4iq GGOYAiWefcRatumGj2z/AsBFg/6wOjsMMy2rA92UzEYhmwHPs+uDlhx6NZb9Xwfo1DA5 5Asv74m8V7xLry/x8H0YUy81zlbRG89ubY2dl3G8jLWLm0dc9iGXpRp0uRGTW5uCz9/C fTYOmUY6zf7TbM+sSX5m63f5AZMM4gT1BXc8rMjP7FVa+CQ4lOnQZslus7wP0tcWvleF vMsxdwjXW0LDB/gGHWml9B1iIes0VDoIQlYUhiZKXcN0Tphf7TQMEPmfgjB866toQnbd yQgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lDlX2YPfdGZK0Re7uNP2rsg7BA+N+CABFZmKo60OvKo=; b=WY5bBXuoZ2ybvfH+bSENF2kyHFhaXnL/WtEmrabELZw+nnDDmYmGoFOb5S2fqaQknY c+4NAN/kkNxpz4iskPBZuyKduc6IDi8mXRQm5Te0Q8jcrYTlMleqQcc/CjyX+RXiOTS9 7s4+hnjLDGZmPZ3Kl+d1mId3+jMM3G/46DWFhgCQqCfnzter+Ia1UGhwWOX5bRSmxBzq xSD0dB0aK8CRXWNMqtJZQKc+M1VlpyUMwFYnKIEMjbB3lQ9PL1aGPAz2eir5ku6FUdNJ nSYgvIMzvv7F2qtyJhteugksBhIeSVN5EFvQUZPh5vv8XK1QreqmQQZddgXmMzWbnXyu kWvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020aa7d5cb000000b00490ff375640si2599595eds.518.2023.02.09.08.13.23; Thu, 09 Feb 2023 08:13:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229504AbjBIQMK (ORCPT + 99 others); Thu, 9 Feb 2023 11:12:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbjBIQMF (ORCPT ); Thu, 9 Feb 2023 11:12:05 -0500 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D54992749F for ; Thu, 9 Feb 2023 08:12:01 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:eeed:e695:5a2f:fc6d]) by albert.telenet-ops.be with bizsmtp id K4Bw2900Q4vi5L7064BwSr; Thu, 09 Feb 2023 17:11:59 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1pQ9WM-008RDm-Fm; Thu, 09 Feb 2023 17:11:56 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1pQ9We-007aVD-Jh; Thu, 09 Feb 2023 17:11:56 +0100 From: Geert Uytterhoeven To: =?utf-8?q?Niklas_S=C3=B6derlund?= , "Rafael J . Wysocki" , Daniel Lezcano , Rob Herring , Krzysztof Kozlowski Cc: Amit Kucheria , Zhang Rui , linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/2] thermal/drivers/rcar_gen3: Add support for R-Car V4H Date: Thu, 9 Feb 2023 17:11:54 +0100 Message-Id: <852048eb5f4cc001be7a97744f4c5caea912d071.1675958665.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757370620784815165?= X-GMAIL-MSGID: =?utf-8?q?1757370620784815165?= Add support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H (R8A779G0) SoC. According to the R-Car V4H Hardware User's Manual Rev. 0.70, the (preliminary) conversion formula for the thermal sensor is the same as for most other R-Car Gen3 and Gen4 SoCs, while the (preliminary) conversion formula for the chip internal voltage monitor differs. As the driver only uses the former, no further changes are needed. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- 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 4ef927437842af74..04245393e78d02c5 100644 --- a/drivers/thermal/rcar_gen3_thermal.c +++ b/drivers/thermal/rcar_gen3_thermal.c @@ -403,6 +403,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = { .compatible = "renesas,r8a779f0-thermal", .data = &rcar_gen3_ths_tj_1, }, + { + .compatible = "renesas,r8a779g0-thermal", + .data = &rcar_gen3_ths_tj_1, + }, {}, }; MODULE_DEVICE_TABLE(of, rcar_gen3_thermal_dt_ids);