]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips: dts: ralink: add MT7621 SoC
authorArınç ÜNAL <arinc.unal@arinc9.com>
Tue, 15 Mar 2022 16:01:50 +0000 (19:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 14:10:23 +0000 (15:10 +0100)
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.

Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20220315160149.3617-1-arinc.unal@arinc9.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
MAINTAINERS
arch/mips/boot/dts/ralink/Makefile
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts [moved from drivers/staging/mt7621-dts/gbpc1.dts with 100% similarity]
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts [moved from drivers/staging/mt7621-dts/gbpc2.dts with 100% similarity]
arch/mips/boot/dts/ralink/mt7621.dtsi [moved from drivers/staging/mt7621-dts/mt7621.dtsi with 100% similarity]
arch/mips/ralink/Kconfig
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/mt7621-dts/Kconfig [deleted file]
drivers/staging/mt7621-dts/Makefile [deleted file]
drivers/staging/mt7621-dts/TODO [deleted file]

index bf58c6c4f81200d7f18dc7caafdaacb1db628e8a..fd140717854d2ee69110b9214cbd8ad17e350f90 100644 (file)
@@ -16180,6 +16180,13 @@ L:     linux-mips@vger.kernel.org
 S:     Maintained
 F:     arch/mips/ralink
 
+RALINK MT7621 MIPS ARCHITECTURE
+M:     Arınç ÜNAL <arinc.unal@arinc9.com>
+M:     Sergio Paracuellos <sergio.paracuellos@gmail.com>
+L:     linux-mips@vger.kernel.org
+S:     Maintained
+F:     arch/mips/boot/dts/ralink/mt7621*
+
 RALINK RT2X00 WIRELESS LAN DRIVER
 M:     Stanislaw Gruszka <stf_xl@wp.pl>
 M:     Helmut Schaa <helmut.schaa@googlemail.com>
index 6c26dfa0a9035dbfdc7f4730b8252e177ec4d2fc..11732b8c8163a1b462e7bc9a9fcd96b17fcfe2bb 100644 (file)
@@ -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))
index 120adad51d6a40aec649e96f9a2af14e442acacf..f9fe15630abb305cac5d2896480b72d8c05c52d6 100644 (file)
@@ -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.
index af60ca591c999fd21c6b9b341cc34f2873c8613c..932acb4e8cbc035fe54959e1bfeb287225f1eb7d 100644 (file)
@@ -80,8 +80,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"
index ad59134e97ad092cd127843ce825c4090ce18012..3ffb35ccfae221b153884e74a51410bda889d244 100644 (file)
@@ -30,7 +30,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/
diff --git a/drivers/staging/mt7621-dts/Kconfig b/drivers/staging/mt7621-dts/Kconfig
deleted file mode 100644 (file)
index 6932ab7..0000000
+++ /dev/null
@@ -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
-
diff --git a/drivers/staging/mt7621-dts/Makefile b/drivers/staging/mt7621-dts/Makefile
deleted file mode 100644 (file)
index b4ab99f..0000000
+++ /dev/null
@@ -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))
diff --git a/drivers/staging/mt7621-dts/TODO b/drivers/staging/mt7621-dts/TODO
deleted file mode 100644 (file)
index 1b758e5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-
-- ensure all usage matches code
-- ensure all features used are documented
-
-Cc: NeilBrown <neil@brown.name>