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: 683198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3084C77B7F for ; Tue, 16 May 2023 08:33:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231659AbjEPIdE (ORCPT ); Tue, 16 May 2023 04:33:04 -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+VfJT07D1Yx0D46nAy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KrsfrBRGSja9VB/XQFUwTI6pOiBpKHzRXb2eCpILJqNcOhNuhWB3zNB43X8DKi65r16AiTnD0GuY4ERtS3C160WIp6kUg5jxQmxm6p/yrNcoQo43l0jbMblt5vGF+B8A360g+h1kqwSp5jpflaouImKO+aU/vlvhFX+SP06MdpMmM8I7a7cVeiBh4KB7jYauuRwblP23WWD0N2HwopucQp56isUhEN5w9y5LR3n42ihXsfMumSP3MEwCa3lFSA13458KHDumtr9nopEtl/96W0aKnjb0zpbR9eZgDK6lR+tXJnnTffW9Q3hUpYvPf/aL5AJ386rMp X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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(-)