From patchwork Sat Aug 10 08:03:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13759452 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 970DBC3DA7F for ; Sat, 10 Aug 2024 08:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UyG3s6rP3LDwodsIFVibw1AdTJ3AYK5QTCpICjXOolQ=; b=CfeUHFEJjezDx/ s3ElF6M6SGdy2vN2oGxYXwbN5FMjBWpxxc51MmTQj6csMANgotxM/qxGe/j57KjNSog5MJqt/SXYn /lQy71U7IK5FL4ns7jdLoKZoagVR5Vecqjw8xHWripZ3jHdSwYZmnV2swAj3UsdElCBjKtu+bggrj /NMlrVqeEaEaMenJePFexzOfpEQVDbJAEVzHihQ35kgK9KRzRYhq+sIqSmPQ486RFZB7UrCVLxO+C sIL3c96sZQ/LUSzqRXOs7u4fk1bERVJaFFU/Iv913UMPWBiD0/BR2waf4y4krjD9Yz0J9mJteuk2U tCDXS2YMMRXcBUGmnyug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sch5q-0000000DWHu-2wQX; Sat, 10 Aug 2024 08:04:54 +0000 Received: from mail-bn7nam10olkn20816.outbound.protection.outlook.com ([2a01:111:f403:2804::816] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sch5n-0000000DWFR-3cIJ for linux-riscv@lists.infradead.org; Sat, 10 Aug 2024 08:04:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HwrbVoWb4Bh84L22E79TnqKWbjpq2sszZveJgfyjogrFtalpoh8FsafC6H6JkIyGGIyKUmC7y1UBN4KQ+juOT0gRWcHAwntOnggGlnlIyksrpx8zwdhFSqD0VuWmUy3OrJ7WwQgtKE9bS7F7hn/YakVdRDZVGkYnfDOpubVXeDJM6dkJLUQO33HlBflJUUxUKd6Ly/XhTtgPdAwF/lA/kd4eUcGwehLqolnp0fRc1jAQwLzFmv0wHzGZBuvHbU0/D85REb1vCfKjnMjt3CpP1W0ybiwiz/UEpl0XmB8hiDW6S+Fxv3xM/YLp86kQ9ewUCBCRXTIoAjayJeK8Dc6k8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=t1jAVsTw8hZ/KN1DR2QpYyBsseR5e1kBRaw4LadbN7o=; b=WFB3xEZl6o+DnsCn612HvFuNoljnXLUzkDC7JYrW1+oZJ2XJHb8qPcfiGekJAisSEoRQxpQkL9gIClbPXxkhbujiDTSRXXbu1iLS/2tUC8vG2/f3njsC3RX1mGsowWANtdcsfF9d414+zP772F0yswreeHu6AT9RlBZLFidTuBOIyvMhgGnauNPV8ECt9Kd9WI1ih88moluHb9EaL//OOxqSD21j4UwFESnoUX92vV8wLleZ8wVlNRSdddvRM9Lcn/g2soHjrSLcvfmdjBTs8MykVoRy0TqvziWg/EozxXd6WeBd5VPo+1sHLsikH4s/miBqBlAIawfKMp/tJtYwkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t1jAVsTw8hZ/KN1DR2QpYyBsseR5e1kBRaw4LadbN7o=; b=UQb58pLHAxPMMGDhzCXQTz9CiGOmSjy/A8IREEGfa7Yh0otSrQ9MeH2EaIB2j9dOEG2s1UGGiicrPX1i5RVXGnHId9mGUC4kawWyTflg7PL6NRdbF9M/4GJSemenHpjC7N6gBJ4dSxxzAELeNZWlBKpEGkFeEJHtYSoz2n/zjyEegHvrTvil31DVu5+JE1tH7lt2j0H51A2soOkWP6vmSGyuNKJsD3I8UfEw4vFmHdt0y0j2w/bH06QYyXN0qzVCeTiuZsIip6hTGUweN2csKd2958jSyFFHfWD1oYIUxunH3fX6PK+F6tc7fH12mcyf98L2c6XCrYA+0AO+0kNXvA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH7PR20MB5117.namprd20.prod.outlook.com (2603:10b6:510:1b0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.24; Sat, 10 Aug 2024 08:04:46 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149%4]) with mapi id 15.20.7849.015; Sat, 10 Aug 2024 08:04:46 +0000 From: Inochi Amaoto To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Chao Wei , Lad Prabhakar , Drew Fustini , Sunil V L , Hal Feng Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v10 4/4] riscv: defconfig: Enable MCU support for SG2042 Date: Sat, 10 Aug 2024 16:03:53 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: X-TMN: [zwc/UzstrbZaMYimlA/zCxx/sR3eAmlebfUckKOLqhs=] X-ClientProxiedBy: TYCP286CA0109.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29c::6) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240810080354.387820-4-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH7PR20MB5117:EE_ X-MS-Office365-Filtering-Correlation-Id: b70250ef-b498-4abc-7997-08dcb913196a X-Microsoft-Antispam: BCL:0;ARA:14566002|8060799006|19110799003|15080799003|5072599009|461199028|440099028|3412199025|1710799026; X-Microsoft-Antispam-Message-Info: cyrXeCkvDrd3eK3sPB4sKI7Eev5I7qqTyzXVtEX2Reb0blThX9A3yXN/Ns8GF8KRUGOpftW14UDhjB/TnS/kGwduJdtbxz9ab0Fov6YYMnoXUNquqmVhDee1VrE3ZzxBVsEEefcNGNJsd9nBZQQs+lu2ZpfROgjHD7AuDj8iDp08fMVVaMs2/bEV36CjANWv6eEec/EqLhNi+o5nOvyQMmgli256mYL5+h/MY1Qbykwt4jgvfRB2mNcMFzmw8T7v5mZOnNlBcE0+llRWnEuOOMXB+/D1LBOdJJFe4tcijnpr4ZWpY5lcOp9qmWuwP4NTakKGMfiAofcOlZSDJg1GuFme8p0qCXkVMxPtA7ei8uLbNaKqHJ+bNRu1HISgsw83kccz9tEfT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25VrucddzvCXoXycDWIGGHkPiuCMvyE6CWLo4yFHjkZ4I48bnH0hMSxZWmQKsvzlnh7c9wqG2xdFjb6Pq7AP6J8KMvM2qnHs0extd4lKCqUF5iYsXjB6DFYd7yI7xM8Zx1Y9RnTvhU+YPBD9Zlwz/QYojRkWwVeP8aFbN3miNZF6MJ3v0pcZv4+Rbjjam0EP7BOUV+fvZjF0AUO9JLv4BLfaxhgki9JDPiucBUbFTGPZbdih4ZXCuNMlF/f5hVO/W2cSTUVmO8FVmS7qgS39PjfoukcWC+Yid6qY5NbAjM6rBkQnXMiqWPAwvVy4wQWnL9KneZ1K/NMvm+QalBQaJOgfvZ1ag1xb35uLJcZjTjKBZVUGpthCKjOFz4XeSCZL+KnRd0MlaNa/imn90HkV2P76umiaFS4D8jWPkWrS8NbaC0SWetJpFLRadXjdXpLWLa55EPJ+i2libZ94Wrynrmt0f8aPDJWkFzakbJb2JWRt1/NCI47CJ7Lndvj2e8yC5e46BBRh9MHGkk4sl+DhdV9bhQF8Ze3VzQT3ZyIW9jG3LX+WmW1zdePwurRwnqlSJDKtXTNAca1uI5RSagIwrO5xHmQfgz4fZQ8g9bj X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b70250ef-b498-4abc-7997-08dcb913196a X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 08:04:46.4536 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR20MB5117 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240810_010451_945259_6DA2C8E9 X-CRM114-Status: UNSURE ( 7.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Enable MCU driver for SG2042 to provide thermal and reboot support. Signed-off-by: Inochi Amaoto Tested-by: Chen Wang Reviewed-by: Chen Wang --- arch/riscv/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 0d678325444f..a0f346301df6 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -170,6 +170,7 @@ CONFIG_SPI_SUN6I=y CONFIG_GPIO_SIFIVE=y CONFIG_POWER_RESET_GPIO_RESTART=y CONFIG_SENSORS_SFCTEMP=m +CONFIG_SENSORS_SG2042_MCU=y CONFIG_CPU_THERMAL=y CONFIG_DEVFREQ_THERMAL=y CONFIG_RZG2L_THERMAL=y