Skip to content

Commit de390bb

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS update from Ralf Baechle: "This is the MIPS update for 3.7. A fair chunk of them are platform updates to the Cavium Octeon SOC (which involves machine generated header files of considerable size), Atheros ATH79xx, RMI aka Netlogic aka Broadcom XLP, Broadcom BCM63xx platforms. Support for the commercial MIPS simulator MIPSsim has been removed as MIPS Technologies is shifting away from this product and Qemu is offering various more powerful platforms. The generic MIPS code can now also probe for no-execute / write-only TLB features implemented without the full SmartMIPS extension as permitted by the latest MIPS processor architecture. Lots of small changes to generic code." * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (78 commits) MIPS: ath79: Fix CPU/DDR frequency calculation for SRIF PLLs MIPS: ath79: use correct fractional dividers for {CPU,DDR}_PLL on AR934x MIPS: BCM63XX: Properly handle mac address octet overflow MIPS: Kconfig: Avoid build errors by hiding USE_OF from the user. MIPS: Replace `-' in defconfig filename wth `_' for consistency. MIPS: Wire kcmp syscall. MIPS: MIPSsim: Remove the MIPSsim platform. MIPS: NOTIFY_RESUME is not needed in TIF masks MIPS: Merge the identical "return from syscall" per-ABI code MIPS: Unobfuscate _TIF..._MASK MIPS: Prevent hitting do_notify_resume() with !user_mode(regs). MIPS: Replace 'kernel_uses_smartmips_rixi' with 'cpu_has_rixi'. MIPS: Add base architecture support for RI and XI. MIPS: Optimise TLB handlers for MIPS32/64 R2 cores. MIPS: uasm: Add INS and EXT instructions. MIPS: Avoid pipeline stalls on some MIPS32R2 cores. MIPS: Make VPE count to be one-based. MIPS: Add new end of interrupt functionality for GIC. MIPS: Add EIC support for GIC. MIPS: Code clean-ups for the GIC. ...
2 parents 50e0d10 + 382fc33 commit de390bb

175 files changed

Lines changed: 52822 additions & 4892 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
Lantiq FALCON pinmux controller
2+
3+
Required properties:
4+
- compatible: "lantiq,pinctrl-falcon"
5+
- reg: Should contain the physical address and length of the gpio/pinmux
6+
register range
7+
8+
Please refer to pinctrl-bindings.txt in this directory for details of the
9+
common pinctrl bindings used by client devices, including the meaning of the
10+
phrase "pin configuration node".
11+
12+
Lantiq's pin configuration nodes act as a container for an abitrary number of
13+
subnodes. Each of these subnodes represents some desired configuration for a
14+
pin, a group, or a list of pins or groups. This configuration can include the
15+
mux function to select on those group(s), and two pin configuration parameters:
16+
pull-up and open-drain
17+
18+
The name of each subnode is not important as long as it is unique; all subnodes
19+
should be enumerated and processed purely based on their content.
20+
21+
Each subnode only affects those parameters that are explicitly listed. In
22+
other words, a subnode that lists a mux function but no pin configuration
23+
parameters implies no information about any pin configuration parameters.
24+
Similarly, a pin subnode that describes a pullup parameter implies no
25+
information about e.g. the mux function.
26+
27+
We support 2 types of nodes.
28+
29+
Definition of mux function groups:
30+
31+
Required subnode-properties:
32+
- lantiq,groups : An array of strings. Each string contains the name of a group.
33+
Valid values for these names are listed below.
34+
- lantiq,function: A string containing the name of the function to mux to the
35+
group. Valid values for function names are listed below.
36+
37+
Valid values for group and function names:
38+
39+
mux groups:
40+
por, ntr, ntr8k, hrst, mdio, bootled, asc0, spi, spi cs0, spi cs1, i2c,
41+
jtag, slic, pcm, asc1
42+
43+
functions:
44+
rst, ntr, mdio, led, asc, spi, i2c, jtag, slic, pcm
45+
46+
47+
Definition of pin configurations:
48+
49+
Required subnode-properties:
50+
- lantiq,pins : An array of strings. Each string contains the name of a pin.
51+
Valid values for these names are listed below.
52+
53+
Optional subnode-properties:
54+
- lantiq,pull: Integer, representing the pull-down/up to apply to the pin.
55+
0: none, 1: down
56+
- lantiq,drive-current: Boolean, enables drive-current
57+
- lantiq,slew-rate: Boolean, enables slew-rate
58+
59+
Example:
60+
pinmux0 {
61+
compatible = "lantiq,pinctrl-falcon";
62+
pinctrl-names = "default";
63+
pinctrl-0 = <&state_default>;
64+
65+
state_default: pinmux {
66+
asc0 {
67+
lantiq,groups = "asc0";
68+
lantiq,function = "asc";
69+
};
70+
ntr {
71+
lantiq,groups = "ntr8k";
72+
lantiq,function = "ntr";
73+
};
74+
i2c {
75+
lantiq,groups = "i2c";
76+
lantiq,function = "i2c";
77+
};
78+
hrst {
79+
lantiq,groups = "hrst";
80+
lantiq,function = "rst";
81+
};
82+
};
83+
};
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
Lantiq XWAY pinmux controller
2+
3+
Required properties:
4+
- compatible: "lantiq,pinctrl-xway" or "lantiq,pinctrl-xr9"
5+
- reg: Should contain the physical address and length of the gpio/pinmux
6+
register range
7+
8+
Please refer to pinctrl-bindings.txt in this directory for details of the
9+
common pinctrl bindings used by client devices, including the meaning of the
10+
phrase "pin configuration node".
11+
12+
Lantiq's pin configuration nodes act as a container for an abitrary number of
13+
subnodes. Each of these subnodes represents some desired configuration for a
14+
pin, a group, or a list of pins or groups. This configuration can include the
15+
mux function to select on those group(s), and two pin configuration parameters:
16+
pull-up and open-drain
17+
18+
The name of each subnode is not important as long as it is unique; all subnodes
19+
should be enumerated and processed purely based on their content.
20+
21+
Each subnode only affects those parameters that are explicitly listed. In
22+
other words, a subnode that lists a mux function but no pin configuration
23+
parameters implies no information about any pin configuration parameters.
24+
Similarly, a pin subnode that describes a pullup parameter implies no
25+
information about e.g. the mux function.
26+
27+
We support 2 types of nodes.
28+
29+
Definition of mux function groups:
30+
31+
Required subnode-properties:
32+
- lantiq,groups : An array of strings. Each string contains the name of a group.
33+
Valid values for these names are listed below.
34+
- lantiq,function: A string containing the name of the function to mux to the
35+
group. Valid values for function names are listed below.
36+
37+
Valid values for group and function names:
38+
39+
mux groups:
40+
exin0, exin1, exin2, jtag, ebu a23, ebu a24, ebu a25, ebu clk, ebu cs1,
41+
ebu wait, nand ale, nand cs1, nand cle, spi, spi_cs1, spi_cs2, spi_cs3,
42+
spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi , gpt1, gpt2,
43+
gpt3, clkout0, clkout1, clkout2, clkout3, gnt1, gnt2, gnt3, req1, req2,
44+
req3
45+
46+
additional mux groups (XR9 only):
47+
mdio, nand rdy, nand rd, exin3, exin4, gnt4, req4
48+
49+
functions:
50+
spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, mdio
51+
52+
53+
54+
Definition of pin configurations:
55+
56+
Required subnode-properties:
57+
- lantiq,pins : An array of strings. Each string contains the name of a pin.
58+
Valid values for these names are listed below.
59+
60+
Optional subnode-properties:
61+
- lantiq,pull: Integer, representing the pull-down/up to apply to the pin.
62+
0: none, 1: down, 2: up.
63+
- lantiq,open-drain: Boolean, enables open-drain on the defined pin.
64+
65+
Valid values for XWAY pin names:
66+
Pinconf pins can be referenced via the names io0-io31.
67+
68+
Valid values for XR9 pin names:
69+
Pinconf pins can be referenced via the names io0-io55.
70+
71+
Example:
72+
gpio: pinmux@E100B10 {
73+
compatible = "lantiq,pinctrl-xway";
74+
pinctrl-names = "default";
75+
pinctrl-0 = <&state_default>;
76+
77+
#gpio-cells = <2>;
78+
gpio-controller;
79+
reg = <0xE100B10 0xA0>;
80+
81+
state_default: pinmux {
82+
stp {
83+
lantiq,groups = "stp";
84+
lantiq,function = "stp";
85+
};
86+
pci {
87+
lantiq,groups = "gnt1";
88+
lantiq,function = "pci";
89+
};
90+
conf_out {
91+
lantiq,pins = "io4", "io5", "io6"; /* stp */
92+
lantiq,open-drain;
93+
lantiq,pull = <0>;
94+
};
95+
};
96+
};
97+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Cavium, Inc. OCTEON SOC SPI master controller.
2+
3+
Required properties:
4+
- compatible : "cavium,octeon-3010-spi"
5+
- reg : The register base for the controller.
6+
- interrupts : One interrupt, used by the controller.
7+
- #address-cells : <1>, as required by generic SPI binding.
8+
- #size-cells : <0>, also as required by generic SPI binding.
9+
10+
Child nodes as per the generic SPI binding.
11+
12+
Example:
13+
14+
spi@1070000001000 {
15+
compatible = "cavium,octeon-3010-spi";
16+
reg = <0x10700 0x00001000 0x0 0x100>;
17+
interrupts = <0 58>;
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
eeprom@0 {
22+
compatible = "st,m95256", "atmel,at25";
23+
reg = <0>;
24+
spi-max-frequency = <5000000>;
25+
spi-cpha;
26+
spi-cpol;
27+
28+
pagesize = <64>;
29+
size = <32768>;
30+
address-width = <16>;
31+
};
32+
};
33+

‎arch/mips/Kbuild.platforms‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ platforms += lantiq
1515
platforms += lasat
1616
platforms += loongson
1717
platforms += loongson1
18-
platforms += mipssim
1918
platforms += mti-malta
19+
platforms += mti-sead3
2020
platforms += netlogic
2121
platforms += pmc-sierra
2222
platforms += pnx833x

‎arch/mips/Kconfig‎

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ config LANTIQ
242242
select HAVE_MACH_CLKDEV
243243
select CLKDEV_LOOKUP
244244
select USE_OF
245+
select PINCTRL
246+
select PINCTRL_LANTIQ
245247

246248
config LASAT
247249
bool "LASAT Networks platforms"
@@ -320,24 +322,35 @@ config MIPS_MALTA
320322
This enables support for the MIPS Technologies Malta evaluation
321323
board.
322324

323-
config MIPS_SIM
324-
bool 'MIPS simulator (MIPSsim)'
325+
config MIPS_SEAD3
326+
bool "MIPS SEAD3 board"
327+
select BOOT_ELF32
328+
select BOOT_RAW
325329
select CEVT_R4K
326330
select CSRC_R4K
331+
select CPU_MIPSR2_IRQ_VI
332+
select CPU_MIPSR2_IRQ_EI
327333
select DMA_NONCOHERENT
328-
select SYS_HAS_EARLY_PRINTK
329334
select IRQ_CPU
330-
select BOOT_RAW
335+
select IRQ_GIC
336+
select MIPS_BOARDS_GEN
337+
select MIPS_CPU_SCACHE
338+
select MIPS_MSC
331339
select SYS_HAS_CPU_MIPS32_R1
332340
select SYS_HAS_CPU_MIPS32_R2
341+
select SYS_HAS_CPU_MIPS64_R1
333342
select SYS_HAS_EARLY_PRINTK
334343
select SYS_SUPPORTS_32BIT_KERNEL
344+
select SYS_SUPPORTS_64BIT_KERNEL
335345
select SYS_SUPPORTS_BIG_ENDIAN
336-
select SYS_SUPPORTS_MULTITHREADING
337346
select SYS_SUPPORTS_LITTLE_ENDIAN
347+
select SYS_SUPPORTS_SMARTMIPS
348+
select USB_ARCH_HAS_EHCI
349+
select USB_EHCI_BIG_ENDIAN_DESC
350+
select USB_EHCI_BIG_ENDIAN_MMIO
338351
help
339-
This option enables support for MIPS Technologies MIPSsim software
340-
emulator.
352+
This enables support for the MIPS Technologies SEAD3 evaluation
353+
board.
341354

342355
config NEC_MARKEINS
343356
bool "NEC EMMA2RH Mark-eins board"
@@ -831,6 +844,7 @@ config NLM_XLP_BOARD
831844
select ZONE_DMA if 64BIT
832845
select SYNC_R4K
833846
select SYS_HAS_EARLY_PRINTK
847+
select USE_OF
834848
help
835849
This board is based on Netlogic XLP Processor.
836850
Say Y here if you have a XLP based board.
@@ -1749,7 +1763,6 @@ config HARDWARE_WATCHPOINTS
17491763
menu "Kernel type"
17501764

17511765
choice
1752-
17531766
prompt "Kernel code model"
17541767
help
17551768
You should only select this option if you have a workload that
@@ -1880,6 +1893,18 @@ config SIBYTE_DMA_PAGEOPS
18801893
config CPU_HAS_PREFETCH
18811894
bool
18821895

1896+
config CPU_GENERIC_DUMP_TLB
1897+
bool
1898+
default y if !(CPU_R3000 || CPU_R6000 || CPU_R8000 || CPU_TX39XX)
1899+
1900+
config CPU_R4K_FPU
1901+
bool
1902+
default y if !(CPU_R3000 || CPU_R6000 || CPU_TX39XX || CPU_CAVIUM_OCTEON)
1903+
1904+
config CPU_R4K_CACHE_TLB
1905+
bool
1906+
default y if !(CPU_R3000 || CPU_R8000 || CPU_SB1 || CPU_TX39XX || CPU_CAVIUM_OCTEON)
1907+
18831908
choice
18841909
prompt "MIPS MT options"
18851910

@@ -1955,7 +1980,6 @@ config SCHED_SMT
19551980
config SYS_SUPPORTS_SCHED_SMT
19561981
bool
19571982

1958-
19591983
config SYS_SUPPORTS_MULTITHREADING
19601984
bool
19611985

@@ -2360,12 +2384,10 @@ config SECCOMP
23602384
If unsure, say Y. Only embedded should say N here.
23612385

23622386
config USE_OF
2363-
bool "Flattened Device Tree support"
2387+
bool
23642388
select OF
23652389
select OF_EARLY_FLATTREE
23662390
select IRQ_DOMAIN
2367-
help
2368-
Include support for flattened device tree machine descriptions.
23692391

23702392
endmenu
23712393

0 commit comments

Comments
 (0)