From patchwork Wed Aug 9 17:39:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Apurva Nandan X-Patchwork-Id: 13392 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2985049vqr; Wed, 9 Aug 2023 11:10:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4ajkDHdZeoNZCIb37+oAT9SCZSLAA4GB4LaKX5fp5SsYpXsllrlVZZMPYKc/Kjo+M9x47 X-Received: by 2002:aa7:d8cf:0:b0:523:3754:a4e1 with SMTP id k15-20020aa7d8cf000000b005233754a4e1mr2728702eds.22.1691604645279; Wed, 09 Aug 2023 11:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691604645; cv=none; d=google.com; s=arc-20160816; b=W9CFE87NWsEO3YAP6yBXAg5o2d+Pmvn4dAD0JnK7EDwO+ukNsV3/j843DEjf5QoeTB 0v92DkGzomYg7gFQ5uq273N1qB5so3I8YlKZhDKKG+lDCPYHYkvIb576dzyjLXdfno+n 8hfwEVqf8WeKtFC0Nb0ZeB2yJALX5imeELdJ7ICG/GKmPysPsANPLHU4iY3TexGJHmDW 2R5QnlMc1D+FhWNoI2i1A/gygadc+JcXiBYVAApQ8PLyuzY1kfoR2Sdz3xguH59EzPz5 L3bFYvSMdbBGmWzXvVE53TEi0U311RtgEukvXVT4gRgit4Bt/2O4pvI8GxHwFmzN3+Jp kJzg== 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 :message-id:date:subject:to:from:dkim-signature; bh=DW02Hdws2cTgi1idHFvVaz8VmWVCgengNghKzecN+S8=; fh=A+sJqtc66o/ycZb+bBWr5uFmf4t500A0xvaxVrwD2BU=; b=x1nklB0krt5ldAey49XxcVPpDZ0B/hSvRtevJuJ/jRHdFRncbu3GBV5C5v3bsmh69h wf40/HUGfvtfbarC9/9CJ4Bw9fczi5nN3Sj+lX9L67wTDFt7DJC0CViv2vnaOVgrOyAU 41AEQ+PU7yvZ9vrD3KCvFzDcpXy0s6R5tYuKgJb2fNz3X2WcN0DtKcEzOUMVT2XHwYY2 AwbO5gCY/acEv4xdTXJnl+IqzWkaSxXklqz6CbrQcgCvDJn/mdxO/RopqKK44zcwrkgO c5XW3AwO+67XahYiYzb5bfkT+WDwdruRVntrvlLpHhRyWllyuoUi6Qfru6+kkGlQ+rIg dgfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RaA5ZPut; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020a170906c19700b00992a36ceca1si10100238ejz.35.2023.08.09.11.10.20; Wed, 09 Aug 2023 11:10:45 -0700 (PDT) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RaA5ZPut; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232683AbjHIRjd (ORCPT + 99 others); Wed, 9 Aug 2023 13:39:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjHIRjb (ORCPT ); Wed, 9 Aug 2023 13:39:31 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36F48E71; Wed, 9 Aug 2023 10:39:31 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 379HdCZw058014; Wed, 9 Aug 2023 12:39:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691602752; bh=DW02Hdws2cTgi1idHFvVaz8VmWVCgengNghKzecN+S8=; h=From:To:Subject:Date; b=RaA5ZPuttkZ2kC8EEl8F6MlIGEEMvA1BPGRR6RB/IC5y+kC5lu2IWgn8psRWTb+hE rdjMi/AMKD9WO5/L2JqA+Iv0g5LITo5enI/xFAmGk/M8/XyWzxw1Fja0F3MbYrEJQK bySdT/g6mqrA7QApovmKBn0d/EW1cFir5M15fIpQ= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 379HdCFM097117 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 12:39:12 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 9 Aug 2023 12:39:10 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 9 Aug 2023 12:39:10 -0500 Received: from TI.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 379Hd6ga077353; Wed, 9 Aug 2023 12:39:06 -0500 From: Apurva Nandan To: Apurva Nandan , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rafael J Wysocki , Daniel Lezcano , Amit Kucheria , Zhang Rui , , , , , Udit Kumar , Keerthy J Subject: [PATCH 0/3] Add support for thermal mitigation for K3 J7200 SoC Date: Wed, 9 Aug 2023 23:09:02 +0530 Message-ID: <20230809173905.1844132-1-a-nandan@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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: INBOX X-GMAIL-THRID: 1773776032521866383 X-GMAIL-MSGID: 1773776032521866383 Add support for thermal mitigation using the CPUFREQ for K3 J7200 SoC. K3 J7200 SoC supports Dynamic Frequency Scaling(DFS) for A72 & this can be used to drop the cpu frequency using cpufreq to produce a cooling effect in the SoC. Keerthy (3): thermal: k3_j72xx_bandgap: Add cooling device support arm64: dts: ti: k3-j7200: Add the supported frequencies for A72 arm64: dts: ti: k3-j7200-thermal: Add cooling maps and cpu_alert trip at 75C arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi | 14 +++ arch/arm64/boot/dts/ti/k3-j7200.dtsi | 28 +++++ drivers/thermal/k3_j72xx_bandgap.c | 121 +++++++++++++++++++ 3 files changed, 163 insertions(+)