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: 13759451 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04olkn2093.outbound.protection.outlook.com [40.92.47.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2753714D71E; Sat, 10 Aug 2024 08:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.47.93 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723277091; cv=fail; b=mQ7HA9hxJbxdBwm70Gxpan8s71RchUMMo9B5yav3tP8LtRNbCMDzfjlvEnp1FF4WAVQDCLI1VmMm1YXoKRLlhZdaGyop4GSmSwy6mGagJn5N1oOiu9UKqst1xMx1br+t+g9H4quhTGT2UA3lBdkwgKJCzYvO0wtgfZZhors2dpc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723277091; c=relaxed/simple; bh=0RQj/2N28nLENxgeeuSHKE6QLsW6jiwxyfSICCm/3gg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=KNZNl7t3K2v3h/yrXzgBOCIOXsC8y5Eao62/1H0SiRhkQWDm1Tm2dvi78nx5cxowNhGs5TLA4YoYN1Ku8TSW/XqpBuACsDTnuGAu3/fWS3xq6HXKaI55BRk9Fb66KpoarQ/FX0QOyIPkR2/Obzv4XFjLhFqWIi42vGeqclPZc9I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=UQb58pLH; arc=fail smtp.client-ip=40.92.47.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="UQb58pLH" 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> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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+bNRu1HISgsw83kccz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uEOlr25VrucddzvCXoXycDWIGGHkPiuCMvyE6CWLo4yFHjkZ4I48bnH0hMSxZWmQKsvzlnh7c9wqG2xdFjb6Pq7AP6J8KMvM2qnHs0extd4lKCqUF5iYsXjB6DFYd7yI7xM8Zx1Y9RnTvhU+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 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