From nobody Sun May 10 23:26:03 2026 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 5D789C433EF for ; Thu, 21 Apr 2022 09:00:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387170AbiDUJDE (ORCPT ); Thu, 21 Apr 2022 05:03:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387155AbiDUJCP (ORCPT ); Thu, 21 Apr 2022 05:02:15 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EBC522BD8 for ; Thu, 21 Apr 2022 01:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650531538; x=1682067538; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jpQn21lfBJqxHASJ0XDepMTCjpzWE4fmKlR+6b/wZig=; b=jUbo1VQkr7KB1l19W1LvvsTCUv/vztv2iFtIYRsDMg1W9OVKInJQ0yWm fT8haUbwJauLSYMxMiC7aHEUNdsJ2aSKse6cSbChhA3NHxucMnYHempXy Te4Da8HTCpJiHSLMGrj6MAQPfCAm8R6qMrMjesEp2wNY83yz9oLOHf4ml 8yYy7DmIfI/g3iqCMB9DntRGNtCPzhOdBSEkxqpeGOLMIyx7XnJKpX4Qj x2F/GjiuRQ0XUfDb3xwkLVGo/gmg0GIvjFpuO66zCK+z3weWQs741t81W J6KPMay0Enf2QP5X1ttmzlnRpYI0gTOV7HekmB4/JitUAtM3hjEQ07p2n g==; X-IronPort-AV: E=Sophos;i="5.90,278,1643698800"; d="scan'208";a="93073109" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Apr 2022 01:58:57 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 21 Apr 2022 01:58:57 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 21 Apr 2022 01:58:55 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v2 1/4] riscv: select peripheral drivers for polarfire soc Date: Thu, 21 Apr 2022 09:58:03 +0100 Message-ID: <20220421085805.1220195-2-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220421085805.1220195-1-conor.dooley@microchip.com> References: <20220421085805.1220195-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Update the SOC_MICROCHIP_POLARFIRE kconfig entry to select, where applicable, the supported drivers for the SoC. Signed-off-by: Conor Dooley --- arch/riscv/Kconfig.socs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index 34592d00dde8..7f93c729d51c 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -3,6 +3,10 @@ menu "SoC selection" config SOC_MICROCHIP_POLARFIRE bool "Microchip PolarFire SoCs" select MCHP_CLK_MPFS + select POLARFIRE_SOC_MAILBOX if MAILBOX + select POLARFIRE_SOC_SYS_CTRL if MAILBOX + select HW_RANDOM_POLARFIRE_SOC if POLARFIRE_SOC_SYS_CTRL + select PCIE_MICROCHIP_HOST if PCI_MSI && OF select SIFIVE_PLIC help This enables support for Microchip PolarFire SoC platforms. --=20 2.35.2 From nobody Sun May 10 23:26:03 2026 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 31FB7C433EF for ; Thu, 21 Apr 2022 09:00:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387097AbiDUJDD (ORCPT ); Thu, 21 Apr 2022 05:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387188AbiDUJCP (ORCPT ); Thu, 21 Apr 2022 05:02:15 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4371522BDE for ; Thu, 21 Apr 2022 01:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650531540; x=1682067540; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xD0I5xV7kWeZLBUmPepIj83tk4qE1jeszPPagX3C5ew=; b=tsyG3BZ7pBMN8eH1Y7Nk6yjpaaxIlIr1zD3z5zn9vxpm3fe/qxExSgYw aQhkR3WDSEidLdNIu8NoNpBy+kZjCbjzBxq1JR0ZZ6ter7oWHeF2GkFVA WRdeFBLspkkAH15Qg+0ULIb5IJ20xUurlcxHC9wXA+kEg31ODnHgUQxw+ u8Tw7PLsZnjSriLJM2jzopvZETDxgpZ2srKPfk5sITSdgtuo33d2uy9Hc 89F2BnUX62wjKMWt49+tim4rk8twz9HXRBzYr5jqJ8CjwVyVk0Q0rq85O /NNczdZV6i4LHSY55wU+fSU2LbYFemZm+sGut/tb7qvz62dniw8SzwYy/ w==; X-IronPort-AV: E=Sophos;i="5.90,278,1643698800"; d="scan'208";a="156280896" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Apr 2022 01:58:59 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 21 Apr 2022 01:58:59 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 21 Apr 2022 01:58:57 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v2 2/4] riscv: config: enable the mailbox framework Date: Thu, 21 Apr 2022 09:58:04 +0100 Message-ID: <20220421085805.1220195-3-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220421085805.1220195-1-conor.dooley@microchip.com> References: <20220421085805.1220195-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add the mailbox framework so that the system controller drivers get compiled for PolarFire SoC. Signed-off-by: Conor Dooley --- arch/riscv/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 30e3017f22bc..e8472ffbb4dc 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -100,6 +100,7 @@ CONFIG_VIRTIO_PCI=3Dy CONFIG_VIRTIO_BALLOON=3Dy CONFIG_VIRTIO_INPUT=3Dy CONFIG_VIRTIO_MMIO=3Dy +CONFIG_MAILBOX=3Dy CONFIG_RPMSG_CHAR=3Dy CONFIG_RPMSG_VIRTIO=3Dy CONFIG_EXT4_FS=3Dy --=20 2.35.2 From nobody Sun May 10 23:26:03 2026 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 39F01C433EF for ; Thu, 21 Apr 2022 09:00:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387158AbiDUJC1 (ORCPT ); Thu, 21 Apr 2022 05:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387097AbiDUJCP (ORCPT ); Thu, 21 Apr 2022 05:02:15 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7C4D22BE1 for ; Thu, 21 Apr 2022 01:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650531543; x=1682067543; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RLw1mhSx4JnJWY7T9B+yYOnuF2rUPtAaGFAVz/XWDdQ=; b=Yz9QegByZsFAv3KQxThCVZUauaJcMKa9Rob39zF5Utvf11/OYCKvtuEb hlEqat1q71/j0zQKdtr86akmm6WE/O7TiEakX/SXcKIADNsXmR83wf6AB IkbaV14iZpN9g9NO4Dw6TszgZAPzs+EHyJcJDuqep14OuIbQRHBxsltop bxZSOhErsP6lMMMIO9IUtnl8TalJ4SOd/MXyGvTv/iBmxpWZ/5DfVCDP0 pYPppCgtcc0hivDi4IT9bBMk8lJYAOetBeDK3ACsD/fjB9Spk4VprC5jO OcGkx2cAIJmYYhl2v5h6Hip2vQRH55NaUvQxdqCHyy2RNIteHnSyb8HPb Q==; X-IronPort-AV: E=Sophos;i="5.90,278,1643698800"; d="scan'208";a="153338848" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Apr 2022 01:59:02 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 21 Apr 2022 01:59:01 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 21 Apr 2022 01:58:59 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v2 3/4] riscv: select vitesse phy driver for polarfire soc Date: Thu, 21 Apr 2022 09:58:05 +0100 Message-ID: <20220421085805.1220195-4-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220421085805.1220195-1-conor.dooley@microchip.com> References: <20220421085805.1220195-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" There is a Vitesse VSC8662 on the Icicle Kit, until a better option exists, select it in Kconfig.socs for SOC_MICROCHIP_POLARFIRE. Signed-off-by: Conor Dooley Reported-by: kernel test robot --- Palmer: You said to put in a comment, but I have no idea how Kconfig expects a mid line comment to look. kbuild didn't seem to complain about what I did, but lmk if that's not what you meant. --- arch/riscv/Kconfig.socs | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index 7f93c729d51c..ff2b8b90db19 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -8,6 +8,7 @@ config SOC_MICROCHIP_POLARFIRE select HW_RANDOM_POLARFIRE_SOC if POLARFIRE_SOC_SYS_CTRL select PCIE_MICROCHIP_HOST if PCI_MSI && OF select SIFIVE_PLIC + select VITESSE_PHY # present on icicle kit help This enables support for Microchip PolarFire SoC platforms. =20 --=20 2.35.2 From nobody Sun May 10 23:26:03 2026 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 B0409C433F5 for ; Thu, 21 Apr 2022 09:00:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387174AbiDUJC3 (ORCPT ); Thu, 21 Apr 2022 05:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387196AbiDUJCP (ORCPT ); Thu, 21 Apr 2022 05:02:15 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28B4023141 for ; Thu, 21 Apr 2022 01:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650531545; x=1682067545; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xA3N4B1Oq7NN/T+qdPN5HDE/pIMyStNJQREGSATatw4=; b=bYPVKeodUaO4oXQrjIC7e1zxeX49ET8X2Ix0cfTtsGHOlwbqyY36WY9Z lBOaTwwz+AFk6h4m/7hPe0FrmyAc9lhhEIn4RFSlGwL86MWQOPRlNHFmU lVZq6UVrkDvzihwBIdyruY4Q0bsKfOEVyDQIZM/PIyiqLs18X/JLvYVTs XbAKIfz+8sqm2zEa2l4eSxIHre5svnpZAY2XkUNWTrcFe3wQkJJGbOGS8 BKO6MTYxdTEs22ZB5ExUKUWfGflTDOcP+IcyxHd8v3ROWPI+nNF6klftw UXOTkzL0eq9jsPF3x1158SDivsmszvFw5+zP3mGcuzHeEbhiOna7OXRwu Q==; X-IronPort-AV: E=Sophos;i="5.90,278,1643698800"; d="scan'208";a="160822028" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Apr 2022 01:59:05 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 21 Apr 2022 01:59:04 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 21 Apr 2022 01:59:02 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v2 4/4] MAINTAINERS: add polarfire rng, pci and clock drivers Date: Thu, 21 Apr 2022 09:58:06 +0100 Message-ID: <20220421085805.1220195-5-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220421085805.1220195-1-conor.dooley@microchip.com> References: <20220421085805.1220195-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Hardware random, PCI and clock drivers for the PolarFire SoC have been upstreamed but are not covered by the MAINTAINERS entry, so add them. Daire is the author of the clock & PCI drivers, so add him as a maintainer in place of Lewis. Signed-off-by: Conor Dooley --- MAINTAINERS | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index fd768d43e048..d7602658b0a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16939,12 +16939,15 @@ N: riscv K: riscv =20 RISC-V/MICROCHIP POLARFIRE SOC SUPPORT -M: Lewis Hanly M: Conor Dooley +M: Daire McNamara L: linux-riscv@lists.infradead.org S: Supported F: arch/riscv/boot/dts/microchip/ +F: drivers/char/hw_random/mpfs-rng.c +F: drivers/clk/microchip/clk-mpfs.c F: drivers/mailbox/mailbox-mpfs.c +F: drivers/pci/controller/pcie-microchip-host.c F: drivers/soc/microchip/ F: include/soc/microchip/mpfs.h =20 --=20 2.35.2