From patchwork Thu Feb 9 16:11:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 55040 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp425278wrn; Thu, 9 Feb 2023 08:12:44 -0800 (PST) X-Google-Smtp-Source: AK7set+cmQsrEsYiJuDM3WSwEk1ZWScfl14xoKPOq0/avkk04+0QirzAlNhenOLlB3qpwrRSmef9 X-Received: by 2002:a50:8e17:0:b0:4ab:16a6:151a with SMTP id 23-20020a508e17000000b004ab16a6151amr4258368edw.6.1675959164007; Thu, 09 Feb 2023 08:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675959163; cv=none; d=google.com; s=arc-20160816; b=bCcjjyE/f68z74KXr3Ie1IhfGOreUKquhgXFEpc6eEk/EXnZJtstsBPCjZtteBR2wf of6SrCDV3YekDoONPupzvwygO9ijknWrgXhtzsvxtl1Q7lFtUWKCUl2gWYvfNTUZfo74 9lyY+2hgtCEQudtjMfN9hs36T/5MO98j9n1zQZFnTnFqmHm5vfadF0DxecSDgo+TxmQc OcokLCVvpj4XkIb1gLBb4AxxGvIDrai62zErswtVdxxwd4w7/KwPZEEohT7v8nVTXauC X4AUN1pUVGeHkaOie37imV4aAkmfzAyQn0KWPveV7Y1OCge3MduPLepG+5FJVKJ6YRu+ lu4Q== 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=M2TJkNMeu78AtNMClpkPgUpHs7rKh+lcQag/BvGOsPs=; b=rnbVEV/+VanlSYJiBMy0OEZB9znV7Kp38TPef30N+8k/8IT/8FwpTGgDEVlYXkytkO E0E1DPhLsm4O0vistyj+LQH43HckD4SxYCOCLsXJ2nujLARhIyjF/BjbhN+RiXi6oBZe C/h1qlGdWKLzxAungRDRDZk7qatP0meY8zF3oq1nk/WxfY10QwzyAKLTKVdV24dF2xD9 UnFBNr07KjxcgJ51GIAd9FB5vybhu+FyO73I1tZMlFCvXNEHfXEXM9ziQHScNnRVqvK0 UBZ+Egeo8E6B3Lhno8NRxdH8krdIK67zrURHwvd31XE3KpVCb1+74Tkp4uHc1hyI7qB+ Fwdw== 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 v14-20020a17090610ce00b008838b6f4fe1si3426586ejv.14.2023.02.09.08.12.21; Thu, 09 Feb 2023 08:12:43 -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 S230049AbjBIQMH (ORCPT + 99 others); Thu, 9 Feb 2023 11:12:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbjBIQMC (ORCPT ); Thu, 9 Feb 2023 11:12:02 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA68022DFA for ; Thu, 9 Feb 2023 08:12:00 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:eeed:e695:5a2f:fc6d]) by xavier.telenet-ops.be with bizsmtp id K4Bw2900b4vi5L7014Bwy9; 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-008RDl-FL; Thu, 09 Feb 2023 17:11:56 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1pQ9We-007aVA-J4; 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 1/2] dt-bindings: thermal: rcar-gen3-thermal: Add r8a779g0 support Date: Thu, 9 Feb 2023 17:11:53 +0100 Message-Id: <11f740522ec479011cc8eef6bb450603be394def.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=ham 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?1757370556318840453?= X-GMAIL-MSGID: =?utf-8?q?1757370556318840453?= Document support for the Thermal Sensor/Chip Internal Voltage Monitor/Core Voltage Monitor (THS/CIVM/CVM) on the Renesas R-Car V4H (R8A779G0) SoC. Unlike most other R-Car Gen3 and Gen4 SoCs, it has 4 instead of 3 sensors, so increase the maximum number of reg tuples. Just like other R-Car Gen4 SoCs, interrupts are not routed to the INTC-AP but to the ECM. Signed-off-by: Geert Uytterhoeven Reviewed-by: Wolfram Sang Reviewed-by: Niklas Söderlund Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml index 0f05f5c886c5fe1d..ecf276fd155cfb27 100644 --- a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml @@ -28,6 +28,7 @@ properties: - renesas,r8a77980-thermal # R-Car V3H - renesas,r8a779a0-thermal # R-Car V3U - renesas,r8a779f0-thermal # R-Car S4-8 + - renesas,r8a779g0-thermal # R-Car V4H reg: true @@ -80,6 +81,7 @@ else: - description: TSC1 registers - description: TSC2 registers - description: TSC3 registers + - description: TSC4 registers if: not: properties: @@ -87,6 +89,7 @@ else: contains: enum: - renesas,r8a779f0-thermal + - renesas,r8a779g0-thermal then: required: - interrupts 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);