Skip to content

Commit fa121bb

Browse files
committed
Merge tag 'mips_5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS updates from Paul Burton: "A light batch this time around but significant improvements for certain systems: - Removal of readq & writeq for MIPS32 kernels where they would simply BUG() anyway, allowing drivers or other code that #ifdefs on their presence to work properly. - Improvements for Ingenic JZ4740 systems, including support for the external memory controller & pinmuxing fixes for qi_lb60/NanoNote systems. - Improvements for Lantiq systems, in particular around SMP & IPIs. - DT updates for ralink/MediaTek MT7628a systems to probe & configure a bunch more devices. - Miscellaneous cleanups & build fixes" * tag 'mips_5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (30 commits) MIPS: fix some more fall through errors in arch/mips MIPS: perf events: handle switch statement falling through warnings mips/kprobes: Export kprobe_fault_handler() MAINTAINERS: Add myself as Ingenic SoCs maintainer MIPS: ralink: mt7628a.dtsi: Add watchdog controller DT node MIPS: ralink: mt7628a.dtsi: Add SPI controller DT node MIPS: ralink: mt7628a.dtsi: Add GPIO controller DT node MIPS: ralink: mt7628a.dtsi: Add pinctrl DT properties to the UART nodes MIPS: ralink: mt7628a.dtsi: Add pinmux DT node MIPS: ralink: mt7628a.dtsi: Add SPDX GPL-2.0 license identifier MIPS: lantiq: Add SMP support for lantiq interrupt controller MIPS: lantiq: Shorten register names, remove unused macros MIPS: lantiq: Fix bitfield masking MIPS: lantiq: Remove unused macros MIPS: lantiq: Fix attributes of of_device_id structure MIPS: lantiq: Change variables to the same type as the source MIPS: lantiq: Move macro directly to iomem function mips: Remove q-accessors from non-64bit platforms FDDI: defza: Include linux/io-64-nonatomic-lo-hi.h MIPS: configs: Remove useless UEVENT_HELPER_PATH ...
2 parents 7d4901c + e5793cd commit fa121bb

Some content is hidden

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

50 files changed

+412
-192
lines changed

MAINTAINERS

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7955,6 +7955,33 @@ L: linux-mtd@lists.infradead.org
79557955
S: Maintained
79567956
F: drivers/mtd/nand/raw/ingenic/
79577957

7958+
INGENIC JZ47xx SoCs
7959+
M: Paul Cercueil <paul@crapouillou.net>
7960+
S: Maintained
7961+
F: arch/mips/boot/dts/ingenic/
7962+
F: arch/mips/include/asm/mach-jz4740/
7963+
F: arch/mips/jz4740/
7964+
F: drivers/clk/ingenic/
7965+
F: drivers/dma/dma-jz4780.c
7966+
F: drivers/gpu/drm/ingenic/
7967+
F: drivers/i2c/busses/i2c-jz4780.c
7968+
F: drivers/iio/adc/ingenic-adc.c
7969+
F: drivers/irqchip/irq-ingenic.c
7970+
F: drivers/memory/jz4780-nemc.c
7971+
F: drivers/mmc/host/jz4740_mmc.c
7972+
F: drivers/mtd/nand/raw/ingenic/
7973+
F: drivers/pinctrl/pinctrl-ingenic.c
7974+
F: drivers/power/supply/ingenic-battery.c
7975+
F: drivers/pwm/pwm-jz4740.c
7976+
F: drivers/rtc/rtc-jz4740.c
7977+
F: drivers/tty/serial/8250/8250_ingenic.c
7978+
F: drivers/usb/musb/jz4740.c
7979+
F: drivers/watchdog/jz4740_wdt.c
7980+
F: include/dt-bindings/iio/adc/ingenic,adc.h
7981+
F: include/linux/mfd/ingenic-tcu.h
7982+
F: sound/soc/jz4740/
7983+
F: sound/soc/codecs/jz47*
7984+
79587985
INOTIFY
79597986
M: Jan Kara <jack@suse.cz>
79607987
R: Amir Goldstein <amir73il@gmail.com>

arch/mips/ar7/setup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const char *get_system_type(void)
5757
case TITAN_CHIP_1060:
5858
return "TI AR7 (TNETV1060)";
5959
}
60+
/* fall through */
6061
default:
6162
return "TI AR7 (unknown)";
6263
}

arch/mips/ath79/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static void __init ath79_detect_sys_type(void)
153153
case REV_ID_MAJOR_QCA9533_V2:
154154
ver = 2;
155155
ath79_soc_rev = 2;
156-
/* drop through */
156+
/* fall through */
157157

158158
case REV_ID_MAJOR_QCA9533:
159159
ath79_soc = ATH79_SOC_QCA9533;

arch/mips/bcm63xx/dev-flash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ static int __init bcm63xx_detect_flash_type(void)
9494
case STRAPBUS_6368_BOOT_SEL_PARALLEL:
9595
return BCM63XX_FLASH_TYPE_PARALLEL;
9696
}
97+
/* fall through */
9798
default:
9899
return -EINVAL;
99100
}

arch/mips/boot/dts/ralink/mt7628a.dtsi

Lines changed: 147 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
13
/ {
24
#address-cells = <1>;
35
#size-cells = <1>;
@@ -36,7 +38,113 @@
3638

3739
sysc: system-controller@0 {
3840
compatible = "ralink,mt7620a-sysc", "syscon";
39-
reg = <0x0 0x100>;
41+
reg = <0x0 0x60>;
42+
};
43+
44+
pinmux: pinmux@60 {
45+
compatible = "pinctrl-single";
46+
reg = <0x60 0x8>;
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
#pinctrl-cells = <2>;
50+
pinctrl-single,bit-per-mux;
51+
pinctrl-single,register-width = <32>;
52+
pinctrl-single,function-mask = <0x1>;
53+
54+
pinmux_gpio_gpio: pinmux_gpio_gpio {
55+
pinctrl-single,bits = <0x0 0x0 0x3>;
56+
};
57+
58+
pinmux_spi_cs1_cs: pinmux_spi_cs1_cs {
59+
pinctrl-single,bits = <0x0 0x0 0x30>;
60+
};
61+
62+
pinmux_i2s_gpio: pinmux_i2s_gpio {
63+
pinctrl-single,bits = <0x0 0x40 0xc0>;
64+
};
65+
66+
pinmux_uart0_uart: pinmux_uart0_uart0 {
67+
pinctrl-single,bits = <0x0 0x0 0x300>;
68+
};
69+
70+
pinmux_sdmode_sdxc: pinmux_sdmode_sdxc {
71+
pinctrl-single,bits = <0x0 0x0 0xc00>;
72+
};
73+
74+
pinmux_sdmode_gpio: pinmux_sdmode_gpio {
75+
pinctrl-single,bits = <0x0 0x400 0xc00>;
76+
};
77+
78+
pinmux_spi_spi: pinmux_spi_spi {
79+
pinctrl-single,bits = <0x0 0x0 0x1000>;
80+
};
81+
82+
pinmux_refclk_gpio: pinmux_refclk_gpio {
83+
pinctrl-single,bits = <0x0 0x40000 0x40000>;
84+
};
85+
86+
pinmux_i2c_i2c: pinmux_i2c_i2c {
87+
pinctrl-single,bits = <0x0 0x0 0x300000>;
88+
};
89+
90+
pinmux_uart1_uart: pinmux_uart1_uart1 {
91+
pinctrl-single,bits = <0x0 0x0 0x3000000>;
92+
};
93+
94+
pinmux_uart2_uart: pinmux_uart2_uart {
95+
pinctrl-single,bits = <0x0 0x0 0xc000000>;
96+
};
97+
98+
pinmux_pwm0_pwm: pinmux_pwm0_pwm {
99+
pinctrl-single,bits = <0x0 0x0 0x30000000>;
100+
};
101+
102+
pinmux_pwm0_gpio: pinmux_pwm0_gpio {
103+
pinctrl-single,bits = <0x0 0x10000000
104+
0x30000000>;
105+
};
106+
107+
pinmux_pwm1_pwm: pinmux_pwm1_pwm {
108+
pinctrl-single,bits = <0x0 0x0 0xc0000000>;
109+
};
110+
111+
pinmux_pwm1_gpio: pinmux_pwm1_gpio {
112+
pinctrl-single,bits = <0x0 0x40000000
113+
0xc0000000>;
114+
};
115+
116+
pinmux_p0led_an_gpio: pinmux_p0led_an_gpio {
117+
pinctrl-single,bits = <0x4 0x4 0xc>;
118+
};
119+
120+
pinmux_p1led_an_gpio: pinmux_p1led_an_gpio {
121+
pinctrl-single,bits = <0x4 0x10 0x30>;
122+
};
123+
124+
pinmux_p2led_an_gpio: pinmux_p2led_an_gpio {
125+
pinctrl-single,bits = <0x4 0x40 0xc0>;
126+
};
127+
128+
pinmux_p3led_an_gpio: pinmux_p3led_an_gpio {
129+
pinctrl-single,bits = <0x4 0x100 0x300>;
130+
};
131+
132+
pinmux_p4led_an_gpio: pinmux_p4led_an_gpio {
133+
pinctrl-single,bits = <0x4 0x400 0xc00>;
134+
};
135+
};
136+
137+
watchdog: watchdog@100 {
138+
compatible = "mediatek,mt7621-wdt";
139+
reg = <0x100 0x30>;
140+
141+
resets = <&resetc 8>;
142+
reset-names = "wdt";
143+
144+
interrupt-parent = <&intc>;
145+
interrupts = <24>;
146+
147+
status = "disabled";
40148
};
41149

42150
intc: interrupt-controller@200 {
@@ -62,10 +170,42 @@
62170
reg = <0x300 0x100>;
63171
};
64172

173+
gpio: gpio@600 {
174+
compatible = "mediatek,mt7621-gpio";
175+
reg = <0x600 0x100>;
176+
177+
gpio-controller;
178+
interrupt-controller;
179+
#gpio-cells = <2>;
180+
#interrupt-cells = <2>;
181+
182+
interrupt-parent = <&intc>;
183+
interrupts = <6>;
184+
};
185+
186+
spi: spi@b00 {
187+
compatible = "ralink,mt7621-spi";
188+
reg = <0xb00 0x100>;
189+
190+
pinctrl-names = "default";
191+
pinctrl-0 = <&pinmux_spi_spi>;
192+
193+
resets = <&resetc 18>;
194+
reset-names = "spi";
195+
196+
#address-cells = <1>;
197+
#size-cells = <0>;
198+
199+
status = "disabled";
200+
};
201+
65202
uart0: uartlite@c00 {
66203
compatible = "ns16550a";
67204
reg = <0xc00 0x100>;
68205

206+
pinctrl-names = "default";
207+
pinctrl-0 = <&pinmux_uart0_uart>;
208+
69209
resets = <&resetc 12>;
70210
reset-names = "uart0";
71211

@@ -79,6 +219,9 @@
79219
compatible = "ns16550a";
80220
reg = <0xd00 0x100>;
81221

222+
pinctrl-names = "default";
223+
pinctrl-0 = <&pinmux_uart1_uart>;
224+
82225
resets = <&resetc 19>;
83226
reset-names = "uart1";
84227

@@ -92,6 +235,9 @@
92235
compatible = "ns16550a";
93236
reg = <0xe00 0x100>;
94237

238+
pinctrl-names = "default";
239+
pinctrl-0 = <&pinmux_uart2_uart>;
240+
95241
resets = <&resetc 20>;
96242
reset-names = "uart2";
97243

arch/mips/cavium-octeon/executive/cvmx-pko.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,11 @@ cvmx_pko_status_t cvmx_pko_config_port(uint64_t port, uint64_t base_queue,
485485
config.s.qos_mask = 0xff;
486486
break;
487487
case CVMX_PKO_QUEUE_STATIC_PRIORITY:
488-
/* Pass 1 will fall through to the error case */
489488
if (!cvmx_octeon_is_pass1()) {
490489
config.s.qos_mask = 0xff;
491490
break;
492491
}
492+
/* fall through - to the error case, when Pass 1 */
493493
default:
494494
cvmx_dprintf("ERROR: cvmx_pko_config_port: Invalid "
495495
"priority %llu\n",

arch/mips/configs/ar7_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ CONFIG_NET_ACT_POLICE=y
7171
CONFIG_HAMRADIO=y
7272
CONFIG_CFG80211=m
7373
CONFIG_MAC80211=m
74-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
7574
CONFIG_MTD=y
7675
CONFIG_MTD_BLOCK=y
7776
CONFIG_MTD_CFI=y

arch/mips/configs/ath25_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ CONFIG_IP_ADVANCED_ROUTER=y
3737
CONFIG_CFG80211=m
3838
CONFIG_MAC80211=m
3939
CONFIG_MAC80211_DEBUGFS=y
40-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
4140
CONFIG_MTD=y
4241
CONFIG_MTD_REDBOOT_PARTS=y
4342
CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2

arch/mips/configs/ath79_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ CONFIG_IP_ADVANCED_ROUTER=y
3737
CONFIG_CFG80211=m
3838
CONFIG_MAC80211=m
3939
CONFIG_MAC80211_DEBUGFS=y
40-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
4140
CONFIG_MTD=y
4241
CONFIG_MTD_REDBOOT_PARTS=y
4342
CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2

arch/mips/configs/bcm63xx_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ CONFIG_INET=y
3434
CONFIG_CFG80211=y
3535
CONFIG_NL80211_TESTMODE=y
3636
CONFIG_MAC80211=y
37-
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
3837
# CONFIG_STANDALONE is not set
3938
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
4039
CONFIG_MTD=y

0 commit comments

Comments
 (0)