From nobody Sun May 10 22:40:20 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 556A6C433EF for ; Fri, 22 Apr 2022 07:26:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444776AbiDVH3A (ORCPT ); Fri, 22 Apr 2022 03:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343795AbiDVH2x (ORCPT ); Fri, 22 Apr 2022 03:28:53 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 190FE5046E for ; Fri, 22 Apr 2022 00:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650612362; x=1682148362; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jpQn21lfBJqxHASJ0XDepMTCjpzWE4fmKlR+6b/wZig=; b=10qTgIFbzQ7mFqf/h/ywmagDrPTdoIO7RFj7+p6qFtLKAuOMjk0xUDKR k3aUxhsNtOU/qLnNx/GMUe629hFuviZR7/mmkHmgnkiWehXvixWuaXAYr IFhGe1JQSOXBSrO7Sd89SjdqKrPAXYkGaBxhH/XGLCgxL8mD7oag+ix0e uhGHZEsnQN3ucn5LN+WniLY5n2XzI4CrK9ePnYun0cRO3/ikFNOwHfr1Z N6XfuRcBBOPM3eaRJSJ1qf1dx8lVvCPP5uK7r1taH3lSYNku9cPIqVpcN xF/zf+VqMplQhQyHX0YaSCrCxxbcCQRJekJvcalMKJMIjhH9bmf+/jJKu g==; X-IronPort-AV: E=Sophos;i="5.90,281,1643698800"; d="scan'208";a="153462798" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 22 Apr 2022 00:26:01 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Fri, 22 Apr 2022 00:26:00 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 22 Apr 2022 00:25:58 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v3 1/4] riscv: select peripheral drivers for polarfire soc Date: Fri, 22 Apr 2022 08:25:30 +0100 Message-ID: <20220422072533.2582084-2-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220422072533.2582084-1-conor.dooley@microchip.com> References: <20220422072533.2582084-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 22:40:20 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 42251C433EF for ; Fri, 22 Apr 2022 07:26:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444780AbiDVH3D (ORCPT ); Fri, 22 Apr 2022 03:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444759AbiDVH2z (ORCPT ); Fri, 22 Apr 2022 03:28:55 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36B1D50454 for ; Fri, 22 Apr 2022 00:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650612364; x=1682148364; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xD0I5xV7kWeZLBUmPepIj83tk4qE1jeszPPagX3C5ew=; b=bADNML8xPJzMb4m0bHGbrN3nRxxpXGrbtHG88ClhbbwZs+i+tTIcJOK+ riV+82LPwBGDFyIIVnsij+bzB7UbQjHTcnBSB3AgphisozFwvKPRD4nk+ 8Cp3Q4b9nd2g1iYSv+w0s/AU9Er9FJyVoUqHMlGxLvCl3uiJhOO80CtA7 rhhBPIwFb1m9+2qnxojJSZ7M8LYvgsa09VeRWb0zW66ZtkO3kmr4tsssL SqaIhdc9FVWXOP+58SJ+uTx2frMz5EAueFUgDCp+r0l1c5pERXslDMUoM 0dG3UNVX8jgFALjo8/0RL/7F+2oGoFw5+7bGhC5XY3PDlSblDJ2/ZeLu1 A==; X-IronPort-AV: E=Sophos;i="5.90,281,1643698800"; d="scan'208";a="153462810" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 22 Apr 2022 00:26:03 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Fri, 22 Apr 2022 00:26:02 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 22 Apr 2022 00:26:00 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v3 2/4] riscv: config: enable the mailbox framework Date: Fri, 22 Apr 2022 08:25:31 +0100 Message-ID: <20220422072533.2582084-3-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220422072533.2582084-1-conor.dooley@microchip.com> References: <20220422072533.2582084-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 22:40:20 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 18778C433F5 for ; Fri, 22 Apr 2022 07:26:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444796AbiDVH3I (ORCPT ); Fri, 22 Apr 2022 03:29:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444772AbiDVH25 (ORCPT ); Fri, 22 Apr 2022 03:28:57 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C8D950454 for ; Fri, 22 Apr 2022 00:26: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=1650612366; x=1682148366; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oONwt6PougIPFBTUqwAmCSS1mJpqCyd7Jt1lRNAHxAI=; b=uFIA0B4ChqaRvr8QeS8KPH7xokxRdL/Z+GZHcpYdxGFxrdER0M5Yp0b9 Jogx83LxUaKKVPwfgRDRnVUpU+DH3C43KP6FDx1aDQBJ7ndtZp3pdEgGv tz/aaFKoi0zHVmabs+oE1dcZkaXk54Px8g8SMRJ9/GB2uJu+dwWxrdq+F 6WUsZ1yPB08CMagCiiwjsUqV0qXBuhZwEjTty7WxUVSkCjflyJMKuqYK6 rD3tA40rbAJsLMjkErhdklXd5MRbGWA1wCdxxQtqjPawrihLPc4QUbLk6 +/IRYMoKy2KDhdtc7qn06u+jqN/VsesEsNzqNjo3jFTIqGOxBIMbl2Sfj Q==; X-IronPort-AV: E=Sophos;i="5.90,281,1643698800"; d="scan'208";a="153462824" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 22 Apr 2022 00:26:06 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Fri, 22 Apr 2022 00:26:04 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 22 Apr 2022 00:26:03 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v3 3/4] riscv: select vitesse phy driver for polarfire soc Date: Fri, 22 Apr 2022 08:25:32 +0100 Message-ID: <20220422072533.2582084-4-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220422072533.2582084-1-conor.dooley@microchip.com> References: <20220422072533.2582084-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 --- 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..50f2c686d303 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 if PHYLIB # present on icicle kit help This enables support for Microchip PolarFire SoC platforms. =20 --=20 2.35.2 From nobody Sun May 10 22:40:20 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 92DCAC433FE for ; Fri, 22 Apr 2022 07:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444804AbiDVH3L (ORCPT ); Fri, 22 Apr 2022 03:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444777AbiDVH3A (ORCPT ); Fri, 22 Apr 2022 03:29:00 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE8E75132A for ; Fri, 22 Apr 2022 00:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650612367; x=1682148367; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xA3N4B1Oq7NN/T+qdPN5HDE/pIMyStNJQREGSATatw4=; b=Eb9rFkWWZ816G1HdizNtjcdZ65+uzOM3uHK0CgkRSO4mtjoFgr7Yj/Na 3AFQSP1P1nv9EAtlwZp8cfCp/zcwVPcXLHaMDUyd78Yu/sthSzrGLYZ0e bQ+Za4rykPaiHpu+1Yt9LEy5WbHEPk19o5Sre+JeqgdCzK7DRHuR7mmMp u2Q9PmzdlKl0lBUXlMboZHtIC2OhMpz0TvNojCL8mc2JFU7SWf5Es5E3w /kM5pjDaXxq5GgTiVE/vlQTaEKAaVM8AsHLxj27lbFALVRJnl3Y7Io8nW 79g57Rn9/UCp3fYleiw+A/tvnEgUejFEjMSV6IoyOK7Dyk1+eRD4FrbNc w==; X-IronPort-AV: E=Sophos;i="5.90,281,1643698800"; d="scan'208";a="170537731" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 22 Apr 2022 00:26:07 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 22 Apr 2022 00:26:07 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 22 Apr 2022 00:26:05 -0700 From: Conor Dooley To: Palmer Dabbelt CC: Paul Walmsley , Albert Ou , , , , , , Conor Dooley Subject: [PATCH v3 4/4] MAINTAINERS: add polarfire rng, pci and clock drivers Date: Fri, 22 Apr 2022 08:25:33 +0100 Message-ID: <20220422072533.2582084-5-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220422072533.2582084-1-conor.dooley@microchip.com> References: <20220422072533.2582084-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