From patchwork Sat Sep 23 12:52:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 1838559 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=D+Lflzod; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rt8FZ3Yq9z1ynX for ; Sat, 23 Sep 2023 22:53:22 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=D+Lflzod; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Rt8FW5Nt1z3cGY for ; Sat, 23 Sep 2023 22:53:19 +1000 (AEST) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=D+Lflzod; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmx.net (client-ip=212.227.17.20; helo=mout.gmx.net; envelope-from=j.neuschaefer@gmx.net; receiver=lists.ozlabs.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Rt8F52LPvz3bZv for ; Sat, 23 Sep 2023 22:52:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1695473551; x=1696078351; i=j.neuschaefer@gmx.net; bh=McGn7BejShk21r7sbDRFwwAdeeAGxX+0PxOI4hrkHmg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=D+LflzodWX/0gKH6kRjNLBE6ybB/5ecJjOyx7RiSgkBsa9kMi63i9lP4aKNTa6ql5C48lDNz8sO zR+J1WU74mzkY//Er+42bCZ9TSf1gcAr/xocuim7AjvNoxvZpHn7wa8hys+D3zc0Em1NR/4UsJAE6 n0WjF1orXWWir3b9mnM9FO5aVRIMP5Hb4Y2zXchoYlms+N0vqHe+ianMCsZSlW87rmhboTUBe/cWo 3EeMvUMc3cs3aB0Yq0sw+z6DSEEBnu+KHjnUgZOUAh5zzfkv/Di4Yl24O87L/SbLa0ssbBjorAjH1 xFK//4U27CTfIHtHkxJT1ASg+Ayu+yZo7itw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([89.0.47.152]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMGNC-1qzuJN1huI-00JLQO; Sat, 23 Sep 2023 14:52:31 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] soc: nuvoton: Add a menu for Nuvoton SoC drivers Date: Sat, 23 Sep 2023 14:52:26 +0200 Message-Id: <20230923125228.1770991-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:TEiEqCVstzqkC02NAVuNgqGW3Q5ICPiz+Fdct4C8Ld702AK4hA6 bt07j8M8ZD/JOM1nq2VjuepdriJWSviDWRQstQhir1e94WWIXFcdm830h8Sa2mC3wrdow1Y CdGZ7zSuyubkrTEYkgojHswCvvtNNbrqCcp4x1FHLWSNU2q0l0UutvRJUgNIEps+3NsMFYX byTV9d9y1vJk0eNf4Jx7A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:yOkm6ydaOx0=;u+O+pITOmOkESlj5EaCDJlkpIZA lJeByMNspASQv1jeKMNy1nlC9+75KROcmcvZgMlzRXcYW63Xj3fVcRQI7KTtaTfQr7t8KOT3o A5r8w31EX1kbJTRMbeDuq8BPCUjO9+isMRiRi2vHd0VmdnDOscQYt8MBnBC7po3BWjWpaaUXP Lhzk/ugCn+/vLJGwR6i6RWoTq8T04YG36fUqb0FAR7QSB4MicztvCNpPU/KyKOGI4lEar/w0u nCWoY8lAe70Hk4o9dIxaFQ0XNa61LPNipWed4aofc6oENwpL4AvvQDVU+txo/jjYMhCRWbnoZ UjoDCzTIl894Afq/tqwMgJF4S8QJ4xVSHTa3ConnzL4Garrgo1Ii8LasXe8KQ7QDFEgwABB1I fdN6T3MF7WSRaQ86spCtfs7JtIXKg7SrK5J4+o1OckyScRMbbKdCNSw1STuT6L7MGnrpKnLVT hkNiXzHfpQJCGxW3MooMmg7vH4gBV2SKxsw1Zody3ik3Ci+qpfBuW7YgF8E+wBAiK/NBs4Mlq tonWSuB5fTLd1Vnc88yASTTB82SLqXKyX/dB1SIRUXUHkoOpylZdHj5TPUW4ODB9U/G1g0eCd t/7yXxlypXaGtSmETnrERSyq+NiPF/Jq7u6xIqO9l0RStPSSGpUePMY0VNnNPMUgZt8/5xoUu r7wjOAXm8nRktQBKLkFWzo4jSSddzwiPZf893UlxNXZmrL1NjsON+hnlwfE8lpjMsc5iydzvD 6ZAYdZXLCU03n70QSrNmqnnT4zhVtAcnDOTC3dlBtfzALRQWZpp/yUlo7abifeGV7Oo1PFtsI nmEn3zHi9L0/wCAcX7F1iIrNDvq+aGQsdpEZdklXv8MEPWVGui8GU3e/QG3+2+OF0MoZfMspd 9tx/FvJloSuF+7MOovDSN1eHZLM7rXbexUSUsw7JrEKXoKWeK+zSzzFmWMvXRHaZ0as5LG5DU 9inkZWUnTyE912KVZ1GWWja6kew= X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Menzel , Arnd Bergmann , Geert Uytterhoeven , openbmc@lists.ozlabs.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Geert Uytterhoeven , Joel Stanley Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Add a menu "Nuvoton SoC drivers" to make it easier to add other Nuvoton SoC drivers later on and to prevent asking about the Nuvoton WPCM450 SoC driver when configuring a kernel without support for Nuvoton SoCs. Reported-by: Geert Uytterhoeven Closes: https://lore.kernel.org/lkml/CAMuHMdWo5vHCeE6BeSHrUy12uT7_wFhW-VbQmQ5u+4Q8c7-wYQ@mail.gmail.com/ Fixes: 7dbb4a38bff3 ("soc: nuvoton: Add SoC info driver for WPCM450") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Geert Uytterhoeven --- v5: - Rebase on 6.6-rc2 v4: - Add Geert's tag - Fix commit reference - Change Link tag to Closes v3: - Split the commit into two - Reword the commit messages a bit v2: - https://lore.kernel.org/lkml/20230212215234.2608565-1-j.neuschaefer@gmx.net/ - Commit message improvements, as suggested by Geert Uytterhoeven. - Add Link after Reviewed-by, as checkpatch.pl now suggests --- drivers/soc/nuvoton/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.40.1 diff --git a/drivers/soc/nuvoton/Kconfig b/drivers/soc/nuvoton/Kconfig index df46182088ec2..853392c8a9151 100644 --- a/drivers/soc/nuvoton/Kconfig +++ b/drivers/soc/nuvoton/Kconfig @@ -1,5 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 -menuconfig WPCM450_SOC +menu "Nuvoton SoC drivers" + depends on ARCH_NPCM || COMPILE_TEST + +config WPCM450_SOC tristate "Nuvoton WPCM450 SoC driver" default y if ARCH_WPCM450 select SOC_BUS @@ -9,3 +12,5 @@ menuconfig WPCM450_SOC This driver provides information such as the SoC model and revision. + +endmenu From patchwork Sat Sep 23 12:52:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 1838560 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=l/YZ0AtI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rt8GZ1GVpz1ynX for ; Sat, 23 Sep 2023 22:54:14 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=l/YZ0AtI; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Rt8GZ042Fz3cB0 for ; Sat, 23 Sep 2023 22:54:14 +1000 (AEST) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=l/YZ0AtI; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmx.net (client-ip=212.227.17.21; helo=mout.gmx.net; envelope-from=j.neuschaefer@gmx.net; receiver=lists.ozlabs.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Rt8F52PB3z3c2V for ; Sat, 23 Sep 2023 22:52:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1695473553; x=1696078353; i=j.neuschaefer@gmx.net; bh=I7aIv/vlyeo+vl/9kemBxv5Kp8uK897scWG8qKqLOLw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=l/YZ0AtI9q4HikU2nhGwSRPmgsrsgRRQpvVJYVKyEr/glxZBtDstmfQaSiiJMmjOs/RxNLid+4R VKtJyn36u1vM5v6bIBxQugIKpMf8rD76+eIcRvjmOT9TvheqiTPOXZnwCfGjK/3yjlM7zw/Vr9HmC 8Ugu8NaCTJA+eT98w6JWWcHn1shTuzCu+a8l1d6eshXwXgbVpy2vNE6hSvdiZf/QIdkBG8MXjwwmM iW/KKr2zcay7HjhhcgRpWDaqDUBmikAgUIEI9/yRno98S3Pexw05Gx95F7ws7xEU4Tf+14/hLcjro 2/Wo6mv2v6go96E1cWliK+W7VokBw2jtLb1Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([89.0.47.152]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MysRu-1reSBv1hbu-00vxeN; Sat, 23 Sep 2023 14:52:33 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Subject: [PATCH v5 2/2] soc: nuvoton: Add "select REGMAP" to WPCM450 SoC driver Date: Sat, 23 Sep 2023 14:52:27 +0200 Message-Id: <20230923125228.1770991-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230923125228.1770991-1-j.neuschaefer@gmx.net> References: <20230923125228.1770991-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:k21NPkH4GANoX6/PdO1KSlxDu/mRSbml4Y4eFZwDlynA73UEvlL smPNP1PsOhXy9JDEw+TAKHCvltOHJZwz2AD+EwIUwOHvyC6YPHcDpvlneFDJadW8vL7El3q 9zOc7Hlv8+LgGLBJF8BZBjt84G/abTL+j7QMchcoejbD+5zHG+ws0rN3i49tFFrvvhni7RK rhh5pOQpq0aLipbz10wMA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:/KmbPWIkQ9s=;lnD8gZztCTxRiPb+VBt0bAXlU8E p+i3NoKQj3TDRb5CCibeHiCCLZuzo7buNINP4XtgDUo+V8Q9qa+k0SSKZyp2l1rXm3jHq7rTC o71MLIFLnCEMTzQhCNqRP4wViiVNNMwGOgK6uIGstlQmJUS8lUTwSyt7g2JcBJHioX/Ssp2+Z M9HhgK5Rwr8xnUhThlhqulh/3TXYn1O2lDOYpI5xoxLEYF71Ok/h5PaCja3WQb/l0lvvB94JH VwNbB28zk3gPxi0Ft9scX69kRZzKUZlSrMAsFnnJUBLsQ6TBm7BYrW0YHST2NKOb+ge/eWvu7 6qSIdOTb7nkBbLlHhWdXYd2bOpmZdTUTN+d3Ezwlb8jDoKQNV2NVkCDlyszMUeyzMkTn0EKwB wuh68QqISbDQ0gUUiYt+ycBeQxj959kTISLM8jVO+W5tzucOnxJCoHq9eeYaugqmi2gclc9OJ IFP3xgDT7wReznl8EnPlPcFQVzUc+ykx+l1YdFJRxgDLGHS8kg2HESx+jgwG4F9cAkUXLDpu5 7RR/vF5mWdmyMFyN1YBT6XDjEsDE5YL2XltYk7iesJHeZlKQURaI07ivkaUk5ykV/y5B78051 vU6AV7XNtbfzrSPX07C6NBi6dHWTnEGRyySGueV6IsX/X+Gtj0jLhREDHe9WUuleMmlMfpSdz eoCUE+wu1xIyo8x9oZK1xAjVObwZNdzwDrKSQ5coXR4PSu5+/Y8GPzo7BJzFwEFdNj8wQTSmc X6JvIn2tlcQO+b82unwNGQLOUQQ2zuy74rC+mtsG9e+BweM7JhI8yKbAsklMrR+tPcWLZJ0gv WMme3qf1g7uNXdFo3JjOhDsRw6xuVmaGmH7AbGTYVKu0eqD/qXA9845drRIJDNTqg4PEXGpAo gn+G2aH5MkVlKt3VIx+b1LigZzrd175TXAXeDEjspUd9mv3GLxUcQKQP/gQ044HabgD6vhJcW Ovo7TQ== X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Menzel , Arnd Bergmann , Geert Uytterhoeven , openbmc@lists.ozlabs.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Geert Uytterhoeven , Joel Stanley Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Select CONFIG_REGMAP from CONFIG_WPCM450_SOC, because the driver relies on regmap to work. Reported-by: Geert Uytterhoeven Closes: https://lore.kernel.org/lkml/CAMuHMdWo5vHCeE6BeSHrUy12uT7_wFhW-VbQmQ5u+4Q8c7-wYQ@mail.gmail.com/ Fixes: 7dbb4a38bff3 ("soc: nuvoton: Add SoC info driver for WPCM450") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Geert Uytterhoeven --- v5: - Rebase on v6.6-rc2 v4: - Add Geert's R-b tag - Fix commit reference - Change Link tag to Closes v3: - Split the commit into two - Reword the commit messages a bit v2: - https://lore.kernel.org/lkml/20230212215234.2608565-1-j.neuschaefer@gmx.net/ - Commit message improvements, as suggested by Geert Uytterhoeven. - Add Link after Reviewed-by, as checkpatch.pl now suggests --- drivers/soc/nuvoton/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.40.1 diff --git a/drivers/soc/nuvoton/Kconfig b/drivers/soc/nuvoton/Kconfig index 853392c8a9151..2167d3d739d84 100644 --- a/drivers/soc/nuvoton/Kconfig +++ b/drivers/soc/nuvoton/Kconfig @@ -6,6 +6,7 @@ config WPCM450_SOC tristate "Nuvoton WPCM450 SoC driver" default y if ARCH_WPCM450 select SOC_BUS + select REGMAP help Say Y here to compile the SoC information driver for Nuvoton WPCM450 SoCs.