From patchwork Tue May 16 08:37:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 9390 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp276697vqo; Tue, 16 May 2023 01:58:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vlYGqKrYDw2vHyN1rQCJEiCyE2EpQoQCF+OwIp6GMzLHkECqaUEqnCMNjmu0tgSyCcqB8 X-Received: by 2002:a05:6a20:728b:b0:ff:d437:13fb with SMTP id o11-20020a056a20728b00b000ffd43713fbmr42082447pzk.49.1684227514681; Tue, 16 May 2023 01:58:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684227514; cv=pass; d=google.com; s=arc-20160816; b=C9pBtnNyaef84xCaIbqTx2Uu6bBfQRiTAKMtatjfnUo7oX0pTbWtONJ+6ExRi+pVoq nShi5ggKiDVGbK9jayesWM5qwuqPoQjXC9W1RpeJl38M5SvaVt8jaF5BqTAou5L9PGQh VYCe22IrL/JUm/DWQXkuWjmfYvxzOi+KuEapKElaDFXGrZ4EEwUFujp21Sw85ODaZtG8 Nf0nEmAEHKaJKiAx4BUZ/XL2GyIg35zf5LLibCXc4cP2yZ72F1Vfgemb0lNVxw/seGVG RihzOC3DCx3pvyuAZ3HPKn4LtOvE8thREQTVVcmnSuSYEgGxpDxHwwbSNDjel7GbOLb9 v/NA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=+uEbUWdVOB7cvQ313rvHf/jWacp0flkUcbe6vHJat24=; b=s+Is5PjRha0XeaasviY0LC2NwbgIK+8DiROx6WrNGDMB+6wHY6RiXqmVNrnCwgCNB+ BswYddLWxU8c++cGHm7NymvIYo0WQ7FuNoJl8rhr2ayxqJkSBrMfC0XDW5VHAgWXEK2L hr6yTvbbpTJF7Vd9qGu0fJ1bR9A5xqTTvhqQfcPUzvgP5qY4WNgDVkMfXCM1BRFCMM+G 16KpfQR89A3E32CMTvcA9DThqg7jZKJDf20G3HLOv0m2V0T2YVe8kn6a6akV0NXze7ED Dgo1xxVyrFKDchKUbjG20ShDZDMkakM5s6vJEwRv4jQYOX2h9Eq8FQRoDOwXNGKpchwM OX5Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=j5BzxH76; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a637543000000b0052c9896a41fsi17756110pgn.164.2023.05.16.01.58.20; Tue, 16 May 2023 01:58:34 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=j5BzxH76; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231665AbjEPIdF (ORCPT + 99 others); Tue, 16 May 2023 04:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231658AbjEPIdD (ORCPT ); Tue, 16 May 2023 04:33:03 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2089.outbound.protection.outlook.com [40.107.105.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D86E1FE9; Tue, 16 May 2023 01:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jv2YNweVHEDHsm5FUIgORwy3EuWikFjne+B802BXgo9wLNxiVnR61vORI3u4PB7umi3gEyGKd6r5OTrldqc9zSAIkU2fhcONUlylSsPW22T8wPJwuWIjLhWszEsxj3EcLdF3mvktEA3gC6AaJsPUJy+H7OthiePc3uc3XFk+oqy5VJWiWEYn9L7vSCDHexravwmVQeLCo21dSWhmK3jTRpZpiNVPF9HN+EiexSSD35wuvVdMsi7k70oXpAMK49X6ARTGOE3FD345mqk41DjN3Cs+8zfVIlEZ6r7i86ulouzquWtstYqQJ7pAbFcO8tbTnGLg6WXGk18Vhx9e8q0PTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+uEbUWdVOB7cvQ313rvHf/jWacp0flkUcbe6vHJat24=; b=SGSn+npLDwk1VJHivfNdGwDb4lFCepHFlsDlFD8/NGbJUak5PZ4l+0VB9JMKUV2Al+GotN9gQOTuRIwcYhj+AObWONGeNwKJgITt+xk0UKtxbTi6h17W/mxzXDsw2qJeOSEhBXvgrZNrrjz0cYkdatZ31aq1EBrcb8N0whZwyEvPp9c/wsXlKXqo1Jo2OZdob7LymYWJFcF9vAuMqyUFOpkHAC+paZ8A4eEKe8CcvsqnHVj1FAjOzpZ9F3HRT/LIBVeGsyiwpOx5JiKoyNkGOheYbXExbcphkUdz+QqGt9malH35VxAlC+X+MQIbZCQNltDmJU97XhF9lGBLJJpIIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+uEbUWdVOB7cvQ313rvHf/jWacp0flkUcbe6vHJat24=; b=j5BzxH768mOq08iaYO0Rsw0hCFSDODIVc4VCxKHbRDsCecY4k6lFQtNw+R8WDH4yFTylj3AGaEpF5MOTZmeo346eXsEEj6vbfT5Qrz9ITgyGwYyT7ZjpfNOUmGgVLf4WOH3pwUPZH4ZT2WkaYTWIZmUWWAIxZLfspYoAYAi99X4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DB8PR04MB7002.eurprd04.prod.outlook.com (2603:10a6:10:119::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.33; Tue, 16 May 2023 08:32:55 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::b999:f2c6:a8cc:7b4]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::b999:f2c6:a8cc:7b4%6]) with mapi id 15.20.6387.030; Tue, 16 May 2023 08:32:55 +0000 From: "Peng Fan (OSS)" To: rafael@kernel.org, daniel.lezcano@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: amitk@kernel.org, rui.zhang@intel.com, andrew.smirnov@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, alice.guo@nxp.com, Peng Fan Subject: [PATCH 0/3] thermal: qoriq_thermal: support TMU 2.1 Date: Tue, 16 May 2023 16:37:43 +0800 Message-Id: <20230516083746.63436-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2PR03CA0099.apcprd03.prod.outlook.com (2603:1096:4:7c::27) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DB8PR04MB7002:EE_ X-MS-Office365-Filtering-Correlation-Id: e1017040-be59-4678-1845-08db55e82504 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OLMCTCG/b1TLDNbBZaYzq95afArpPBEsJG74orClEqo8KOutTvd6VTA62czR5F8eXjl0+3nu8DMpV1Pr6F4H5rsKc9mptLyHO1oY/JLMw6WGUU5O9leG+Z7ImE9wgngnIatArRMJsXnZmK8SO4NqyS5cwluBjt6Si0keomU5Wgb+s4jScqulLVKQr9pLVxJLl8XwaGk65dDg6YT25g52ITe9tUqaFha95m0fhunHLaWQKzQHDd+6bNLlTL86qDjtzRY8TEgAMnD8ptqojYR0+PmBppI2KMXt/GcAsx3AepPTlftYiJ4fAo1LjloRqI9xEvrh+4c1FSlsemZ47jk8AGChQdJ3CR5lGnNnpmvNuE6tn6T+rYEC5Hj6+Wj4BSd65IwUBiSX6n1x1JvcEid7vOuncKdubAd7dbkDHIErfEnHy/x2JRGr0ylowaskBL5BlP0S43nV25s6C8GjNz9iCqxGe0lNpOOdUXo4F7XeHIPrP8mhabwANDRNNXcIZj7GHXXZ7wAof0jWx1fER7Jp1F9jXMg9vGUZBY9oAPEUEA1A2Mp7zvc3xTwJSkq3TqGz3qpUB+Pct8K13LjxV2PBhruWu4BAKquJ0zXkAULFsH7ChZUARH3xyg0Jl3gxYf5U X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(376002)(366004)(39860400002)(396003)(346002)(451199021)(86362001)(41300700001)(316002)(38350700002)(5660300002)(38100700002)(7416002)(66476007)(478600001)(2906002)(4744005)(4326008)(8936002)(66556008)(66946007)(8676002)(52116002)(6486002)(6666004)(6512007)(26005)(6506007)(1076003)(186003)(2616005)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1iNT51jvMibCyN6kqJIVTuypmngWjfLvN/O73IgrjHWJA7W395ceHL8MIU6pPeJVuB+ykyT4IWkHOkD6xg+eh/+mBHYMZCqQxEn1WpGIfMQCC9gvendy4QvFhVFh6ZCZ8xgdD84ddncRCyYhzZR5qvrD2ei3KLAQCv+VfJT07D1Yx0D46nAyDXghiLZz7Qnhk4LQ2VotNGYXEgIW4WchCKZdavY3gtc1m7btJ+wpyPlbe6NpaHOWPCW2qeIxmWjU3wO/4dqVlkJQNc7N6TUpApNnkFEDyS/ct7XXvgWaZldwSV6p3wFrZLaRO0tL5B4fY2e4RbeLoLQ+2fXnfbxo1Qg9/xtYup/Uk1UY7HEVvNxHN8lHlBvFzbvLICCw8mjHfODhUclghej+nP9dooqgz2C0G6DJQYJIKJad+NKA3S9wMrjNXZAj/59j1cyISpET3/wfKrxuGDqUGTzYvchwWSl2KIfkhxitFsMGm50Nxx/zKsRsg+cWrRUGHnL//CzTiem4MsAwA8iwP+3JV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-Network-Message-Id: e1017040-be59-4678-1845-08db55e82504 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 08:32:55.0040 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: u2T7M8Xc470ZDxArINImzk5IYpkjes5vxrCLqvzDFSaEXdAZdp1kTiT8MF+mUkxs6/K2raVVuoxFBJEZl/8kCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7002 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1766040550141563102?= X-GMAIL-MSGID: =?utf-8?q?1766040550141563102?= From: Peng Fan i.MX93 use same TMU IP as Qoriq, but with version 2.1, so update the driver to support 2.1. This patch also includes a fix for i.MX8MQ Pankit Garg (1): thermal: qoriq_thermal: No need to program site adjustment register Peng Fan (2): thermal: qoriq_thermal: only enable supported sensors thermal: qoriq: support version 2.1 drivers/thermal/qoriq_thermal.c | 48 ++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 19 deletions(-)