Skip to contentSkip to conversation

mips: dts: ralink: add MT7621 SoC

PATCH In review Arınç ÜNAL 3 participants 3 messages Mar 15, 2022 – Mar 16, 2022

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mips: dts: ralink: add MT7621 SoC

The MT7621 system-on-a-chip includes an 880 MHz MIPS1004Kc dual-core CPU, a 5-port 10/100/1000 switch/PHY and one RGMII.

Add the devicetrees for GB-PC1 and GB-PC2 devices which use MT7621 SoC.

---
v2: fix a tiny grammar mistake, add Sergio's acked-by.

This patch does changes on top of commit dcd520af4eac ("staging:
mt7621-dts: fix cpuintc and fixedregulator dtc warnings, fix xhci") which is currently applied on gregkh/staging.git staging-next branch.

---
 MAINTAINERS                                           |  7 +++++++
 arch/mips/boot/dts/ralink/Makefile                    |  4 ++++
 .../mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts     |  0
 .../mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts     |  0
 .../mips/boot/dts/ralink}/mt7621.dtsi                 |  0
 arch/mips/ralink/Kconfig                              |  5 +++++
 drivers/staging/Kconfig                               |  2 --
 drivers/staging/Makefile                              |  1 -
 drivers/staging/mt7621-dts/Kconfig                    | 11 -----------
 drivers/staging/mt7621-dts/Makefile                   |  5 -----
 drivers/staging/mt7621-dts/TODO                       |  5 -----
 11 files changed, 16 insertions(+), 24 deletions(-)
 rename drivers/staging/mt7621-dts/gbpc1.dts => arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts (100%)
 rename drivers/staging/mt7621-dts/gbpc2.dts => arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts (100%)
 rename {drivers/staging/mt7621-dts => arch/mips/boot/dts/ralink}/mt7621.dtsi (100%)
 delete mode 100644 drivers/staging/mt7621-dts/Kconfig
 delete mode 100644 drivers/staging/mt7621-dts/Makefile
 delete mode 100644 drivers/staging/mt7621-dts/TODO
MAINTAINERS +7 -0
index 62d6758bf8c4..92eda5adca44 100644
@@ -16181,6 +16181,13 @@ L:	[email protected]
 S:	Maintained
 F:	arch/mips/ralink
 
+RALINK MT7621 MIPS ARCHITECTURE
+M:	Arınç ÜNAL <[email protected]>
+M:	Sergio Paracuellos <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	arch/mips/boot/dts/ralink/mt7621*
+
 RALINK RT2X00 WIRELESS LAN DRIVER
 M:	Stanislaw Gruszka <[email protected]>
 M:	Helmut Schaa <[email protected]>
arch/mips/boot/dts/ralink/Makefile +4 -0
index 6c26dfa0a903..11732b8c8163 100644
@@ -6,4 +6,8 @@ dtb-$(CONFIG_DTB_MT7620A_EVAL)	+= mt7620a_eval.dtb
 dtb-$(CONFIG_DTB_OMEGA2P)	+= omega2p.dtb
 dtb-$(CONFIG_DTB_VOCORE2)	+= vocore2.dtb
 
+dtb-$(CONFIG_SOC_MT7621) += \
+	mt7621-gnubee-gb-pc1.dtb \
+	mt7621-gnubee-gb-pc2.dtb
+
 obj-$(CONFIG_BUILTIN_DTB)	+= $(addsuffix .o, $(dtb-y))
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts renamed from drivers/staging/mt7621-dts/gbpc1.dts +0 -0
similarity index 100%
rename from drivers/staging/mt7621-dts/gbpc1.dts
rename to arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts renamed from drivers/staging/mt7621-dts/gbpc2.dts +0 -0
similarity index 100%
rename from drivers/staging/mt7621-dts/gbpc2.dts
rename to arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
arch/mips/boot/dts/ralink/mt7621.dtsi renamed from drivers/staging/mt7621-dts/mt7621.dtsi +0 -0
similarity index 100%
rename from drivers/staging/mt7621-dts/mt7621.dtsi
rename to arch/mips/boot/dts/ralink/mt7621.dtsi
arch/mips/ralink/Kconfig +5 -0
index 120adad51d6a..f9fe15630abb 100644
@@ -54,10 +54,15 @@ choice
 		select HAVE_PCI
 		select PCI_DRIVERS_GENERIC
 		select SOC_BUS
+
+		help
+		  The MT7621 system-on-a-chip includes an 880 MHz MIPS1004Kc dual-core CPU,
+		  a 5-port 10/100/1000 switch/PHY and one RGMII.
 endchoice
 
 choice
 	prompt "Devicetree selection"
+	depends on !SOC_MT7621
 	default DTB_RT_NONE
 	help
 	  Select the devicetree.
drivers/staging/Kconfig +0 -2
index d1ce500c0319..efa194ec12fb 100644
@@ -82,8 +82,6 @@ source "drivers/staging/vc04_services/Kconfig"
 
 source "drivers/staging/pi433/Kconfig"
 
-source "drivers/staging/mt7621-dts/Kconfig"
-
 source "drivers/staging/axis-fifo/Kconfig"
 
 source "drivers/staging/fieldbus/Kconfig"
drivers/staging/Makefile +0 -1
index 82e912a7586f..db876663a1e3 100644
@@ -31,7 +31,6 @@ obj-$(CONFIG_KS7010)		+= ks7010/
 obj-$(CONFIG_GREYBUS)		+= greybus/
 obj-$(CONFIG_BCM2835_VCHIQ)	+= vc04_services/
 obj-$(CONFIG_PI433)		+= pi433/
-obj-$(CONFIG_SOC_MT7621)	+= mt7621-dts/
 obj-$(CONFIG_XIL_AXIS_FIFO)	+= axis-fifo/
 obj-$(CONFIG_FIELDBUS_DEV)     += fieldbus/
 obj-$(CONFIG_QLGE)		+= qlge/
drivers/staging/mt7621-dts/Kconfig deleted +0 -11
deleted file mode 100644
index 6932ab7acadf..000000000000
@@ -1,11 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-config DTB_GNUBEE1
-	bool "GnuBee1 2.5inch NAS"
-	depends on SOC_MT7621 && DTB_RT_NONE
-	select BUILTIN_DTB
-
-config DTB_GNUBEE2
-	bool "GnuBee2 3.5inch NAS"
-	depends on SOC_MT7621 && DTB_RT_NONE
-	select BUILTIN_DTB
-
drivers/staging/mt7621-dts/Makefile deleted +0 -5
deleted file mode 100644
index b4ab99fed932..000000000000
@@ -1,5 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-dtb-$(CONFIG_DTB_GNUBEE1)      += gbpc1.dtb
-dtb-$(CONFIG_DTB_GNUBEE2)      += gbpc2.dtb
-
-obj-y				+= $(patsubst %.dtb, %.dtb.o, $(dtb-y))
drivers/staging/mt7621-dts/TODO deleted +0 -5
deleted file mode 100644
index 1b758e5c84e0..000000000000
@@ -1,5 +0,0 @@
-
-- ensure all usage matches code
-- ensure all features used are documented
-
-Cc: NeilBrown <[email protected]>
Signature · 1 line
2.25.1
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 25 lines · Arınç ÜNAL

The MT7621 system-on-a-chip includes an 880 MHz MIPS1004Kc dual-core CPU, a 5-port 10/100/1000 switch/PHY and one RGMII.

Add the devicetrees for GB-PC1 and GB-PC2 devices which use MT7621 SoC.

---
v2: fix a tiny grammar mistake, add Sergio's acked-by.

This patch does changes on top of commit dcd520af4eac ("staging:
mt7621-dts: fix cpuintc and fixedregulator dtc warnings, fix xhci") which is currently applied on gregkh/staging.git staging-next branch.

---
 MAINTAINERS                                           |  7 +++++++
 arch/mips/boot/dts/ralink/Makefile                    |  4 ++++
 .../mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts     |  0
 .../mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts     |  0
 .../mips/boot/dts/ralink}/mt7621.dtsi                 |  0
 arch/mips/ralink/Kconfig                              |  5 +++++
 drivers/staging/Kconfig                               |  2 --
 drivers/staging/Makefile                              |  1 -
 drivers/staging/mt7621-dts/Kconfig                    | 11 -----------
 drivers/staging/mt7621-dts/Makefile                   |  5 -----
Quoted 8 lines
 drivers/staging/mt7621-dts/TODO                       |  5 -----
 11 files changed, 16 insertions(+), 24 deletions(-)
 rename drivers/staging/mt7621-dts/gbpc1.dts => arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts (100%)
 rename drivers/staging/mt7621-dts/gbpc2.dts => arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts (100%)
 rename {drivers/staging/mt7621-dts => arch/mips/boot/dts/ralink}/mt7621.dtsi (100%)
 delete mode 100644 drivers/staging/mt7621-dts/Kconfig
 delete mode 100644 drivers/staging/mt7621-dts/Makefile
 delete mode 100644 drivers/staging/mt7621-dts/TODO
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]
#2 lore raw
Quoted 36 lines · Thomas Bogendoerfer
Quoted 25 lines · Arınç ÜNAL

The MT7621 system-on-a-chip includes an 880 MHz MIPS1004Kc dual-core CPU, a 5-port 10/100/1000 switch/PHY and one RGMII.

Add the devicetrees for GB-PC1 and GB-PC2 devices which use MT7621 SoC.

---
v2: fix a tiny grammar mistake, add Sergio's acked-by.

This patch does changes on top of commit dcd520af4eac ("staging:
mt7621-dts: fix cpuintc and fixedregulator dtc warnings, fix xhci") which is currently applied on gregkh/staging.git staging-next branch.

---
 MAINTAINERS                                           |  7 +++++++
 arch/mips/boot/dts/ralink/Makefile                    |  4 ++++
 .../mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts     |  0
 .../mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts     |  0
 .../mips/boot/dts/ralink}/mt7621.dtsi                 |  0
 arch/mips/ralink/Kconfig                              |  5 +++++
 drivers/staging/Kconfig                               |  2 --
 drivers/staging/Makefile                              |  1 -
 drivers/staging/mt7621-dts/Kconfig                    | 11 -----------
 drivers/staging/mt7621-dts/Makefile                   |  5 -----
Quoted 8 lines
 drivers/staging/mt7621-dts/TODO                       |  5 -----
 11 files changed, 16 insertions(+), 24 deletions(-)
 rename drivers/staging/mt7621-dts/gbpc1.dts => arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts (100%)
 rename drivers/staging/mt7621-dts/gbpc2.dts => arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts (100%)
 rename {drivers/staging/mt7621-dts => arch/mips/boot/dts/ralink}/mt7621.dtsi (100%)
 delete mode 100644 drivers/staging/mt7621-dts/Kconfig
 delete mode 100644 drivers/staging/mt7621-dts/Makefile
 delete mode 100644 drivers/staging/mt7621-dts/TODO
Quoted 1 line

Thanks, Thomas!!

Best regards,
Sergio Paracuellos

Quoted 4 lines

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]