Skip to contentSkip to conversation

polarfire soc kconfig/maintainers updates

PATCH Superseded Conor Dooley 1 participant 5 messages Apr 22, 2022 RISC-V

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover polarfire soc kconfig/maintainers updates

Hey Palmer,

As discussed, Kconfig.socs updated with the recently upstreamed drivers. I took the liberty of also adding them to the maintainers entry. The hwrng isnt in your tree, but was accepted today.
As you suggested, I added the vitesse phy driver in the kconfig.socs entry - lmk if you don't like what I did with the comment.

In v2 I have replaced Lewis as a maintainer with Daire, since he is the original author of the clock and pci drivers & a co-author on a bunch of other (upcoming) drivers.

v3 makes the vitesse depend on phylib to avoid the lkp reported build errors

Thanks,

Conor Dooley (4):
riscv: select peripheral drivers for polarfire soc
riscv: config: enable the mailbox framework
riscv: select vitesse phy driver for polarfire soc
MAINTAINERS: add polarfire rng, pci and clock drivers

 MAINTAINERS                  | 5 ++++-
 arch/riscv/Kconfig.socs      | 5 +++++
 arch/riscv/configs/defconfig | 1 +
 3 files changed, 10 insertions(+), 1 deletion(-)
Signature · 1 line
2.35.2
#1 lore raw

PATCH v3 1/4 riscv: select peripheral drivers for polarfire soc

Update the SOC_MICROCHIP_POLARFIRE kconfig entry to select, where applicable, the supported drivers for the SoC.

---
 arch/riscv/Kconfig.socs | 4 ++++
 1 file changed, 4 insertions(+)
arch/riscv/Kconfig.socs +4 -0
index 34592d00dde8..7f93c729d51c 100644
@@ -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.
Signature · 1 line
2.35.2
#2 lore raw

PATCH v3 2/4 riscv: config: enable the mailbox framework

In reply to Conor Dooley

Add the mailbox framework so that the system controller drivers get compiled for PolarFire SoC.

---
 arch/riscv/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/configs/defconfig +1 -0
index 30e3017f22bc..e8472ffbb4dc 100644
@@ -100,6 +100,7 @@ CONFIG_VIRTIO_PCI=y
 CONFIG_VIRTIO_BALLOON=y
 CONFIG_VIRTIO_INPUT=y
 CONFIG_VIRTIO_MMIO=y
+CONFIG_MAILBOX=y
 CONFIG_RPMSG_CHAR=y
 CONFIG_RPMSG_VIRTIO=y
 CONFIG_EXT4_FS=y
Signature · 1 line
2.35.2
#3 lore raw

PATCH v3 3/4 riscv: select vitesse phy driver for polarfire soc

In reply to Conor Dooley

There is a Vitesse VSC8662 on the Icicle Kit, until a better option exists, select it in Kconfig.socs for SOC_MICROCHIP_POLARFIRE.

---
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(+)
arch/riscv/Kconfig.socs +1 -0
index 7f93c729d51c..50f2c686d303 100644
@@ -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.
 
Signature · 1 line
2.35.2
#4 lore raw

PATCH v3 4/4 MAINTAINERS: add polarfire rng, pci and clock drivers

In reply to Conor Dooley

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.

---
 MAINTAINERS | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
MAINTAINERS +4 -1
index fd768d43e048..d7602658b0a5 100644
@@ -16939,12 +16939,15 @@ N:	riscv
 K:	riscv
 
 RISC-V/MICROCHIP POLARFIRE SOC SUPPORT
-M:	Lewis Hanly <[email protected]>
 M:	Conor Dooley <[email protected]>
+M:	Daire McNamara <[email protected]>
 L:	[email protected]
 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
 
Signature · 1 line
2.35.2