Skip to content

Commit d674221

Browse files
committed
Merge tag 'mips_5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS updates from Thomas Bogendoerfer: - converted Pistachio platform to use MIPS generic kernel - fixes and cleanups * tag 'mips_5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (29 commits) MIPS: Malta: fix alignment of the devicetree buffer MIPS: ingenic: Unconditionally enable clock of CPU #0 MIPS: mscc: ocelot: mark the phy-mode for internal PHY ports MIPS: mscc: ocelot: disable all switch ports by default MAINTAINERS: adjust PISTACHIO SOC SUPPORT after its retirement MIPS: Return true/false (not 1/0) from bool functions MIPS: generic: Return true/false (not 1/0) from bool functions MIPS: Make a alias for pistachio_defconfig MIPS: Retire MACH_PISTACHIO MIPS: config: generic: Add config for Marduk board pinctrl: pistachio: Make it as an option phy: pistachio-usb: Depend on MIPS || COMPILE_TEST clocksource/drivers/pistachio: Make it selectable for MIPS clk: pistachio: Make it selectable for generic MIPS kernel MIPS: DTS: Pistachio add missing cpc and cdmm MIPS: generic: Allow generating FIT image for Marduk board MIPS: locking/atomic: Fix atomic{_64,}_sub_if_positive MIPS: loongson2ef: don't build serial.o unconditionally MIPS: Replace deprecated CPU-hotplug functions. MIPS: Alchemy: Fix spelling contraction "cant" -> "can't" ...
2 parents 603eefd + bea6a94 commit d674221

53 files changed

Lines changed: 346 additions & 783 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11120,7 +11120,7 @@ MARDUK (CREATOR CI40) DEVICE TREE SUPPORT
1112011120
M: Rahul Bedarkar <rahulbedarkar89@gmail.com>
1112111121
L: linux-mips@vger.kernel.org
1112211122
S: Maintained
11123-
F: arch/mips/boot/dts/img/pistachio_marduk.dts
11123+
F: arch/mips/boot/dts/img/pistachio*
1112411124

1112511125
MARVELL 88E6XXX ETHERNET SWITCH FABRIC DRIVER
1112611126
M: Andrew Lunn <andrew@lunn.ch>
@@ -14824,14 +14824,6 @@ S: Maintained
1482414824
W: http://www.st.com/spear
1482514825
F: drivers/pinctrl/spear/
1482614826

14827-
PISTACHIO SOC SUPPORT
14828-
M: James Hartley <james.hartley@sondrel.com>
14829-
L: linux-mips@vger.kernel.org
14830-
S: Odd Fixes
14831-
F: arch/mips/boot/dts/img/pistachio*
14832-
F: arch/mips/configs/pistachio*_defconfig
14833-
F: arch/mips/pistachio/
14834-
1483514827
PKTCDVD DRIVER
1483614828
M: linux-block@vger.kernel.org
1483714829
S: Orphan

‎arch/mips/Kbuild.platforms‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ platform-$(CONFIG_MIPS_MALTA) += mti-malta/
2121
platform-$(CONFIG_MACH_NINTENDO64) += n64/
2222
platform-$(CONFIG_NLM_COMMON) += netlogic/
2323
platform-$(CONFIG_PIC32MZDA) += pic32/
24-
platform-$(CONFIG_MACH_PISTACHIO) += pistachio/
2524
platform-$(CONFIG_RALINK) += ralink/
2625
platform-$(CONFIG_MIKROTIK_RB532) += rb532/
2726
platform-$(CONFIG_SGI_IP22) += sgi-ip22/

‎arch/mips/Kconfig‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -514,35 +514,6 @@ config MACH_LOONGSON64
514514
and Loongson-2F which will be removed), developed by the Institute
515515
of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
516516

517-
config MACH_PISTACHIO
518-
bool "IMG Pistachio SoC based boards"
519-
select BOOT_ELF32
520-
select BOOT_RAW
521-
select CEVT_R4K
522-
select CLKSRC_MIPS_GIC
523-
select COMMON_CLK
524-
select CSRC_R4K
525-
select DMA_NONCOHERENT
526-
select GPIOLIB
527-
select IRQ_MIPS_CPU
528-
select MFD_SYSCON
529-
select MIPS_CPU_SCACHE
530-
select MIPS_GIC
531-
select PINCTRL
532-
select REGULATOR
533-
select SYS_HAS_CPU_MIPS32_R2
534-
select SYS_SUPPORTS_32BIT_KERNEL
535-
select SYS_SUPPORTS_LITTLE_ENDIAN
536-
select SYS_SUPPORTS_MIPS_CPS
537-
select SYS_SUPPORTS_MULTITHREADING
538-
select SYS_SUPPORTS_RELOCATABLE
539-
select SYS_SUPPORTS_ZBOOT
540-
select SYS_HAS_EARLY_PRINTK
541-
select USE_GENERIC_EARLY_PRINTK_8250
542-
select USE_OF
543-
help
544-
This enables support for the IMG Pistachio SoC platform.
545-
546517
config MIPS_MALTA
547518
bool "MIPS Malta board"
548519
select ARCH_MAY_HAVE_PC_FDC
@@ -1089,7 +1060,6 @@ source "arch/mips/ingenic/Kconfig"
10891060
source "arch/mips/jazz/Kconfig"
10901061
source "arch/mips/lantiq/Kconfig"
10911062
source "arch/mips/pic32/Kconfig"
1092-
source "arch/mips/pistachio/Kconfig"
10931063
source "arch/mips/ralink/Kconfig"
10941064
source "arch/mips/sgi-ip27/Kconfig"
10951065
source "arch/mips/sibyte/Kconfig"

‎arch/mips/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@ sead3micro_defconfig-y := micro32r2el_defconfig BOARDS=sead-3
560560
legacy_defconfigs += xilfpga_defconfig
561561
xilfpga_defconfig-y := 32r2el_defconfig BOARDS=xilfpga
562562

563+
legacy_defconfigs += pistachio_defconfig
564+
pistachio_defconfig-y := 32r2el_defconfig BOARDS=marduk
565+
563566
.PHONY: $(legacy_defconfigs)
564567
$(legacy_defconfigs):
565568
$(Q)$(MAKE) -f $(srctree)/Makefile $($@-y)

‎arch/mips/alchemy/devboards/db1200.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ int __init db1200_dev_setup(void)
835835
if (!IS_ERR(c)) {
836836
pfc = clk_round_rate(c, 50000000);
837837
if ((pfc < 1) || (abs(50000000 - pfc) > 2500000))
838-
pr_warn("DB1200: cant get I2C close to 50MHz\n");
838+
pr_warn("DB1200: can't get I2C close to 50MHz\n");
839839
else
840840
clk_set_rate(c, pfc);
841841
clk_prepare_enable(c);

‎arch/mips/boot/dts/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
subdir-$(CONFIG_BMIPS_GENERIC) += brcm
33
subdir-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon
4-
subdir-$(CONFIG_MACH_PISTACHIO) += img
4+
subdir-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += img
55
subdir-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += img
66
subdir-$(CONFIG_MACH_INGENIC) += ingenic
77
subdir-$(CONFIG_LANTIQ) += lantiq

‎arch/mips/boot/dts/img/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22
dtb-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += boston.dtb
33

4-
dtb-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb
5-
obj-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb.o
4+
dtb-$(CONFIG_FIT_IMAGE_FDT_MARDUK) += pistachio_marduk.dtb

‎arch/mips/boot/dts/img/pistachio.dtsi‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,16 @@
900900
};
901901
};
902902

903+
cpc: cpc@1bde0000 {
904+
compatible = "mti,mips-cpc";
905+
reg = <0x1bde0000 0x10000>;
906+
};
907+
908+
cdmm: cdmm@1bdf0000 {
909+
compatible = "mti,mips-cdmm";
910+
reg = <0x1bdf0000 0x10000>;
911+
};
912+
903913
usb_phy: usb-phy {
904914
compatible = "img,pistachio-usb-phy";
905915
clocks = <&clk_core CLK_USB_PHY>;

‎arch/mips/boot/dts/mscc/ocelot.dtsi‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,36 +150,47 @@
150150

151151
port0: port@0 {
152152
reg = <0>;
153+
status = "disabled";
153154
};
154155
port1: port@1 {
155156
reg = <1>;
157+
status = "disabled";
156158
};
157159
port2: port@2 {
158160
reg = <2>;
161+
status = "disabled";
159162
};
160163
port3: port@3 {
161164
reg = <3>;
165+
status = "disabled";
162166
};
163167
port4: port@4 {
164168
reg = <4>;
169+
status = "disabled";
165170
};
166171
port5: port@5 {
167172
reg = <5>;
173+
status = "disabled";
168174
};
169175
port6: port@6 {
170176
reg = <6>;
177+
status = "disabled";
171178
};
172179
port7: port@7 {
173180
reg = <7>;
181+
status = "disabled";
174182
};
175183
port8: port@8 {
176184
reg = <8>;
185+
status = "disabled";
177186
};
178187
port9: port@9 {
179188
reg = <9>;
189+
status = "disabled";
180190
};
181191
port10: port@10 {
182192
reg = <10>;
193+
status = "disabled";
183194
};
184195
};
185196
};

‎arch/mips/boot/dts/mscc/ocelot_pcb120.dts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,40 +69,52 @@
6969
};
7070

7171
&port0 {
72+
status = "okay";
7273
phy-handle = <&phy0>;
74+
phy-mode = "internal";
7375
};
7476

7577
&port1 {
78+
status = "okay";
7679
phy-handle = <&phy1>;
80+
phy-mode = "internal";
7781
};
7882

7983
&port2 {
84+
status = "okay";
8085
phy-handle = <&phy2>;
86+
phy-mode = "internal";
8187
};
8288

8389
&port3 {
90+
status = "okay";
8491
phy-handle = <&phy3>;
92+
phy-mode = "internal";
8593
};
8694

8795
&port4 {
96+
status = "okay";
8897
phy-handle = <&phy7>;
8998
phy-mode = "sgmii";
9099
phys = <&serdes 4 SERDES1G(2)>;
91100
};
92101

93102
&port5 {
103+
status = "okay";
94104
phy-handle = <&phy4>;
95105
phy-mode = "sgmii";
96106
phys = <&serdes 5 SERDES1G(5)>;
97107
};
98108

99109
&port6 {
110+
status = "okay";
100111
phy-handle = <&phy6>;
101112
phy-mode = "sgmii";
102113
phys = <&serdes 6 SERDES1G(3)>;
103114
};
104115

105116
&port9 {
117+
status = "okay";
106118
phy-handle = <&phy5>;
107119
phy-mode = "sgmii";
108120
phys = <&serdes 9 SERDES1G(4)>;

0 commit comments

Comments
 (0)