linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] polarfire soc kconfig/maintainers updates
@ 2022-04-22  7:25 Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 1/4] riscv: select peripheral drivers for polarfire soc Conor Dooley
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Conor Dooley @ 2022-04-22  7:25 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: Paul Walmsley, Albert Ou, linux-kernel, linux-riscv,
	daire.mcnamara, lewis.hanly, cyril.jean, Conor Dooley

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(-)

-- 
2.35.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v3 1/4] riscv: select peripheral drivers for polarfire soc
  2022-04-22  7:25 [PATCH v3 0/4] polarfire soc kconfig/maintainers updates Conor Dooley
@ 2022-04-22  7:25 ` Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 2/4] riscv: config: enable the mailbox framework Conor Dooley
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2022-04-22  7:25 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: Paul Walmsley, Albert Ou, linux-kernel, linux-riscv,
	daire.mcnamara, lewis.hanly, cyril.jean, Conor Dooley

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

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 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.
-- 
2.35.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v3 2/4] riscv: config: enable the mailbox framework
  2022-04-22  7:25 [PATCH v3 0/4] polarfire soc kconfig/maintainers updates Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 1/4] riscv: select peripheral drivers for polarfire soc Conor Dooley
@ 2022-04-22  7:25 ` Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 3/4] riscv: select vitesse phy driver for polarfire soc Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 4/4] MAINTAINERS: add polarfire rng, pci and clock drivers Conor Dooley
  3 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2022-04-22  7:25 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: Paul Walmsley, Albert Ou, linux-kernel, linux-riscv,
	daire.mcnamara, lewis.hanly, cyril.jean, Conor Dooley

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

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 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=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
-- 
2.35.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v3 3/4] riscv: select vitesse phy driver for polarfire soc
  2022-04-22  7:25 [PATCH v3 0/4] polarfire soc kconfig/maintainers updates Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 1/4] riscv: select peripheral drivers for polarfire soc Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 2/4] riscv: config: enable the mailbox framework Conor Dooley
@ 2022-04-22  7:25 ` Conor Dooley
  2022-04-22  7:25 ` [PATCH v3 4/4] MAINTAINERS: add polarfire rng, pci and clock drivers Conor Dooley
  3 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2022-04-22  7:25 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: Paul Walmsley, Albert Ou, linux-kernel, linux-riscv,
	daire.mcnamara, lewis.hanly, cyril.jean, 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.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

---
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.
 
-- 
2.35.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v3 4/4] MAINTAINERS: add polarfire rng, pci and clock drivers
  2022-04-22  7:25 [PATCH v3 0/4] polarfire soc kconfig/maintainers updates Conor Dooley
                   ` (2 preceding siblings ...)
  2022-04-22  7:25 ` [PATCH v3 3/4] riscv: select vitesse phy driver for polarfire soc Conor Dooley
@ 2022-04-22  7:25 ` Conor Dooley
  3 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2022-04-22  7:25 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: Paul Walmsley, Albert Ou, linux-kernel, linux-riscv,
	daire.mcnamara, lewis.hanly, cyril.jean, 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.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 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
 
 RISC-V/MICROCHIP POLARFIRE SOC SUPPORT
-M:	Lewis Hanly <lewis.hanly@microchip.com>
 M:	Conor Dooley <conor.dooley@microchip.com>
+M:	Daire McNamara <daire.mcnamara@microchip.com>
 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
 
-- 
2.35.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-22  7:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22  7:25 [PATCH v3 0/4] polarfire soc kconfig/maintainers updates Conor Dooley
2022-04-22  7:25 ` [PATCH v3 1/4] riscv: select peripheral drivers for polarfire soc Conor Dooley
2022-04-22  7:25 ` [PATCH v3 2/4] riscv: config: enable the mailbox framework Conor Dooley
2022-04-22  7:25 ` [PATCH v3 3/4] riscv: select vitesse phy driver for polarfire soc Conor Dooley
2022-04-22  7:25 ` [PATCH v3 4/4] MAINTAINERS: add polarfire rng, pci and clock drivers Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).