Skip to content

Commit b62e419

Browse files
committed
Merge tag 'mips_5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS upates from Thomas Bogendoerfer: - improvements for Loongson64 - extended ingenic support - removal of not maintained paravirt system type - cleanups and fixes * tag 'mips_5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (81 commits) MIPS: SGI-IP27: always enable NUMA in Kconfig MAINTAINERS: Update KVM/MIPS maintainers MIPS: Update default config file for Loongson-3 MIPS: KVM: Add kvm guest support for Loongson-3 dt-bindings: mips: Document Loongson kvm guest board MIPS: handle Loongson-specific GSExc exception MIPS: add definitions for Loongson-specific CP0.Diag1 register MIPS: only register FTLBPar exception handler for supported models MIPS: ingenic: Hardcode mem size for qi,lb60 board MIPS: DTS: ingenic/qi,lb60: Add model and memory node MIPS: ingenic: Use fw_passed_dtb even if CONFIG_BUILTIN_DTB MIPS: head.S: Init fw_passed_dtb to builtin DTB of: address: Fix parser address/size cells initialization of_address: Guard of_bus_pci_get_flags with CONFIG_PCI MIPS: DTS: Fix number of msi vectors for Loongson64G MIPS: Loongson64: Add ISA node for LS7A PCH MIPS: Loongson64: DTS: Fix ISA and PCI I/O ranges for RS780E PCH MIPS: Loongson64: Enlarge IO_SPACE_LIMIT MIPS: Loongson64: Process ISA Node in DeviceTree of_address: Add bus type match for pci ranges parser ...
2 parents 40ddad1 + 6c86a30 commit b62e419

File tree

108 files changed

+3139
-1608
lines changed

Some content is hidden

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

108 files changed

+3139
-1608
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/bus/mti,mips-cdmm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MIPS Common Device Memory Map
8+
9+
description: |
10+
Defines a location of the MIPS Common Device Memory Map registers.
11+
12+
maintainers:
13+
- James Hogan <[email protected]>
14+
15+
properties:
16+
compatible:
17+
const: mti,mips-cdmm
18+
19+
reg:
20+
description: |
21+
Base address and size of an unoccupied memory region, which will be
22+
used to map the MIPS CDMM registers block.
23+
maxItems: 1
24+
25+
required:
26+
- compatible
27+
- reg
28+
29+
examples:
30+
- |
31+
cdmm@1bde8000 {
32+
compatible = "mti,mips-cdmm";
33+
reg = <0x1bde8000 0x8000>;
34+
};
35+
...

Documentation/devicetree/bindings/interrupt-controller/mips-gic.txt

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/interrupt-controller/mti,gic.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MIPS Global Interrupt Controller
8+
9+
maintainers:
10+
- Paul Burton <[email protected]>
11+
- Thomas Bogendoerfer <[email protected]>
12+
13+
description: |
14+
The MIPS GIC routes external interrupts to individual VPEs and IRQ pins.
15+
It also supports local (per-processor) interrupts and software-generated
16+
interrupts which can be used as IPIs. The GIC also includes a free-running
17+
global timer, per-CPU count/compare timers, and a watchdog.
18+
19+
properties:
20+
compatible:
21+
const: mti,gic
22+
23+
"#interrupt-cells":
24+
const: 3
25+
description: |
26+
The 1st cell is the type of interrupt: local or shared defined in the
27+
file 'dt-bindings/interrupt-controller/mips-gic.h'. The 2nd cell is the
28+
GIC interrupt number. The 3d cell encodes the interrupt flags setting up
29+
the IRQ trigger modes, which are defined in the file
30+
'dt-bindings/interrupt-controller/irq.h'.
31+
32+
reg:
33+
description: |
34+
Base address and length of the GIC registers space. If not present,
35+
the base address reported by the hardware GCR_GIC_BASE will be used.
36+
maxItems: 1
37+
38+
interrupt-controller: true
39+
40+
mti,reserved-cpu-vectors:
41+
description: |
42+
Specifies the list of CPU interrupt vectors to which the GIC may not
43+
route interrupts. This property is ignored if the CPU is started in EIC
44+
mode.
45+
allOf:
46+
- $ref: /schemas/types.yaml#definitions/uint32-array
47+
- minItems: 1
48+
maxItems: 6
49+
uniqueItems: true
50+
items:
51+
minimum: 2
52+
maximum: 7
53+
54+
mti,reserved-ipi-vectors:
55+
description: |
56+
Specifies the range of GIC interrupts that are reserved for IPIs.
57+
It accepts two values: the 1st is the starting interrupt and the 2nd is
58+
the size of the reserved range. If not specified, the driver will
59+
allocate the last (2 * number of VPEs in the system).
60+
allOf:
61+
- $ref: /schemas/types.yaml#definitions/uint32-array
62+
- items:
63+
- minimum: 0
64+
maximum: 254
65+
- minimum: 2
66+
maximum: 254
67+
68+
timer:
69+
type: object
70+
description: |
71+
MIPS GIC includes a free-running global timer, per-CPU count/compare
72+
timers, and a watchdog. Currently only the GIC Timer is supported.
73+
properties:
74+
compatible:
75+
const: mti,gic-timer
76+
77+
interrupts:
78+
description: |
79+
Interrupt for the GIC local timer, so normally it's suppose to be of
80+
<GIC_LOCAL X IRQ_TYPE_NONE> format.
81+
maxItems: 1
82+
83+
clocks:
84+
maxItems: 1
85+
86+
clock-frequency: true
87+
88+
required:
89+
- compatible
90+
- interrupts
91+
92+
oneOf:
93+
- required:
94+
- clocks
95+
- required:
96+
- clock-frequency
97+
98+
additionalProperties: false
99+
100+
unevaluatedProperties: false
101+
102+
required:
103+
- compatible
104+
- "#interrupt-cells"
105+
- interrupt-controller
106+
107+
examples:
108+
- |
109+
#include <dt-bindings/interrupt-controller/mips-gic.h>
110+
#include <dt-bindings/interrupt-controller/irq.h>
111+
112+
interrupt-controller@1bdc0000 {
113+
compatible = "mti,gic";
114+
reg = <0x1bdc0000 0x20000>;
115+
interrupt-controller;
116+
#interrupt-cells = <3>;
117+
mti,reserved-cpu-vectors = <7>;
118+
mti,reserved-ipi-vectors = <40 8>;
119+
120+
timer {
121+
compatible = "mti,gic-timer";
122+
interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
123+
clock-frequency = <50000000>;
124+
};
125+
};
126+
- |
127+
#include <dt-bindings/interrupt-controller/mips-gic.h>
128+
#include <dt-bindings/interrupt-controller/irq.h>
129+
130+
interrupt-controller@1bdc0000 {
131+
compatible = "mti,gic";
132+
reg = <0x1bdc0000 0x20000>;
133+
interrupt-controller;
134+
#interrupt-cells = <3>;
135+
136+
timer {
137+
compatible = "mti,gic-timer";
138+
interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
139+
clocks = <&cpu_pll>;
140+
};
141+
};
142+
- |
143+
interrupt-controller {
144+
compatible = "mti,gic";
145+
interrupt-controller;
146+
#interrupt-cells = <3>;
147+
};
148+
...

Documentation/devicetree/bindings/mips/ingenic/devices.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ title: Ingenic XBurst based Platforms Device Tree Bindings
88

99
maintainers:
1010
- 周琰杰 (Zhou Yanjie) <[email protected]>
11-
description: |
11+
12+
description:
1213
Devices with a Ingenic XBurst CPU shall have the following properties.
1314

1415
properties:
@@ -22,6 +23,11 @@ properties:
2223
- const: qi,lb60
2324
- const: ingenic,jz4740
2425

26+
- description: YLM RetroMini RS-90
27+
items:
28+
- const: ylm,rs90
29+
- const: ingenic,jz4725b
30+
2531
- description: Game Consoles Worldwide GCW Zero
2632
items:
2733
- const: gcw,zero
@@ -32,8 +38,13 @@ properties:
3238
- const: img,ci20
3339
- const: ingenic,jz4780
3440

35-
- description: YSH & ATIL General Board CU Neo
41+
- description: YSH & ATIL General Board, CU1000 Module with Neo Backplane
3642
items:
3743
- const: yna,cu1000-neo
38-
- const: ingenic,x1000
44+
- const: ingenic,x1000e
45+
46+
- description: YSH & ATIL General Board, CU1830 Module with Neo Backplane
47+
items:
48+
- const: yna,cu1830-neo
49+
- const: ingenic,x1830
3950
...
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mips/ingenic/ingenic,cpu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Bindings for Ingenic XBurst family CPUs
8+
9+
maintainers:
10+
- 周琰杰 (Zhou Yanjie) <[email protected]>
11+
12+
description:
13+
Ingenic XBurst family CPUs shall have the following properties.
14+
15+
properties:
16+
compatible:
17+
oneOf:
18+
19+
- description: Ingenic XBurst®1 CPU Cores
20+
enum:
21+
- ingenic,xburst-mxu1.0
22+
- ingenic,xburst-fpu1.0-mxu1.1
23+
- ingenic,xburst-fpu2.0-mxu2.0
24+
25+
- description: Ingenic XBurst®2 CPU Cores
26+
enum:
27+
- ingenic,xburst2-fpu2.1-mxu2.1-smt
28+
29+
reg:
30+
maxItems: 1
31+
32+
clocks:
33+
maxItems: 1
34+
35+
required:
36+
- device_type
37+
- compatible
38+
- reg
39+
- clocks
40+
41+
examples:
42+
- |
43+
#include <dt-bindings/clock/jz4780-cgu.h>
44+
45+
cpus {
46+
#address-cells = <1>;
47+
#size-cells = <0>;
48+
49+
cpu0: cpu@0 {
50+
device_type = "cpu";
51+
compatible = "ingenic,xburst-fpu1.0-mxu1.1";
52+
reg = <0>;
53+
54+
clocks = <&cgu JZ4780_CLK_CPU>;
55+
clock-names = "cpu";
56+
};
57+
58+
cpu1: cpu@1 {
59+
device_type = "cpu";
60+
compatible = "ingenic,xburst-fpu1.0-mxu1.1";
61+
reg = <1>;
62+
63+
clocks = <&cgu JZ4780_CLK_CORE1>;
64+
clock-names = "cpu";
65+
};
66+
};
67+
...

Documentation/devicetree/bindings/mips/loongson/devices.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,23 @@ properties:
1717
compatible:
1818
oneOf:
1919

20-
- description: Generic Loongson3 Quad Core + RS780E
20+
- description: Classic Loongson64 Quad Core + LS7A
2121
items:
22-
- const: loongson,loongson3-4core-rs780e
22+
- const: loongson,loongson64c-4core-ls7a
2323

24-
- description: Generic Loongson3 Octa Core + RS780E
24+
- description: Classic Loongson64 Quad Core + RS780E
2525
items:
26-
- const: loongson,loongson3-8core-rs780e
26+
- const: loongson,loongson64c-4core-rs780e
27+
28+
- description: Classic Loongson64 Octa Core + RS780E
29+
items:
30+
- const: loongson,loongson64c-8core-rs780e
31+
32+
- description: Generic Loongson64 Quad Core + LS7A
33+
items:
34+
- const: loongson,loongson64g-4core-ls7a
35+
36+
- description: Virtual Loongson64 Quad Core + VirtIO
37+
items:
38+
- const: loongson,loongson64v-4core-virtio
2739
...

Documentation/devicetree/bindings/power/mti,mips-cpc.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)