Skip to content

Commit 0c952ef

Browse files
committed
Merge tag 'tegra-for-6.17-arm64-dt-v3' of https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/fixes
arm64: tegra: Device tree changes for v6.17-rc1 This contains an extra patch that drops numa-node-id properties that were added to the Tegra264 DT files by mistake. * tag 'tegra-for-6.17-arm64-dt-v3' of https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux: arm64: tegra: Remove numa-node-id properties arm64: tegra: Add p3971-0089+p3834-0008 support arm64: tegra: Add memory controller on Tegra264 arm64: tegra: Add Tegra264 support dt-bindings: memory: tegra: Add Tegra264 support Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 3dca3d5 + c36049d commit 0c952ef

File tree

10 files changed

+701
-2
lines changed

10 files changed

+701
-2
lines changed

Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ properties:
3232
- nvidia,tegra186-mc
3333
- nvidia,tegra194-mc
3434
- nvidia,tegra234-mc
35+
- nvidia,tegra264-mc
3536

3637
reg:
3738
minItems: 6
@@ -42,8 +43,12 @@ properties:
4243
maxItems: 18
4344

4445
interrupts:
45-
items:
46-
- description: MC general interrupt
46+
minItems: 1
47+
maxItems: 8
48+
49+
interrupt-names:
50+
minItems: 1
51+
maxItems: 8
4752

4853
"#address-cells":
4954
const: 2
@@ -74,6 +79,7 @@ patternProperties:
7479
- nvidia,tegra186-emc
7580
- nvidia,tegra194-emc
7681
- nvidia,tegra234-emc
82+
- nvidia,tegra264-emc
7783

7884
reg:
7985
minItems: 1
@@ -127,6 +133,15 @@ patternProperties:
127133
reg:
128134
minItems: 2
129135

136+
- if:
137+
properties:
138+
compatible:
139+
const: nvidia,tegra264-emc
140+
then:
141+
properties:
142+
reg:
143+
minItems: 2
144+
130145
additionalProperties: false
131146

132147
required:
@@ -158,6 +173,12 @@ allOf:
158173
- const: ch2
159174
- const: ch3
160175

176+
interrupts:
177+
items:
178+
- description: MC general interrupt
179+
180+
interrupt-names: false
181+
161182
- if:
162183
properties:
163184
compatible:
@@ -189,6 +210,12 @@ allOf:
189210
- const: ch14
190211
- const: ch15
191212

213+
interrupts:
214+
items:
215+
- description: MC general interrupt
216+
217+
interrupt-names: false
218+
192219
- if:
193220
properties:
194221
compatible:
@@ -220,6 +247,59 @@ allOf:
220247
- const: ch14
221248
- const: ch15
222249

250+
interrupts:
251+
items:
252+
- description: MC general interrupt
253+
254+
interrupt-names: false
255+
256+
- if:
257+
properties:
258+
compatible:
259+
const: nvidia,tegra264-mc
260+
then:
261+
properties:
262+
reg:
263+
minItems: 17
264+
maxItems: 17
265+
description: 17 memory controller channels
266+
267+
reg-names:
268+
items:
269+
- const: broadcast
270+
- const: ch0
271+
- const: ch1
272+
- const: ch2
273+
- const: ch3
274+
- const: ch4
275+
- const: ch5
276+
- const: ch6
277+
- const: ch7
278+
- const: ch8
279+
- const: ch9
280+
- const: ch10
281+
- const: ch11
282+
- const: ch12
283+
- const: ch13
284+
- const: ch14
285+
- const: ch15
286+
287+
interrupts:
288+
minItems: 8
289+
maxItems: 8
290+
description: One interrupt line for each MC component
291+
292+
interrupt-names:
293+
items:
294+
- const: mcf
295+
- const: hub1
296+
- const: hub2
297+
- const: hub3
298+
- const: hub4
299+
- const: hub5
300+
- const: sbs
301+
- const: channel
302+
223303
additionalProperties: false
224304

225305
required:

arch/arm64/boot/dts/nvidia/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ DTC_FLAGS_tegra234-p3737-0000+p3701-0000 := -@
1212
DTC_FLAGS_tegra234-p3740-0002+p3701-0008 := -@
1313
DTC_FLAGS_tegra234-p3768-0000+p3767-0000 := -@
1414
DTC_FLAGS_tegra234-p3768-0000+p3767-0005 := -@
15+
DTC_FLAGS_tegra264-p3971-0089+p3834-0008 := -@
1516

1617
dtb-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra132-norrin.dtb
1718
dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p2371-0000.dtb
@@ -31,3 +32,4 @@ dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3737-0000+p3701-0008.dtb
3132
dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3740-0002+p3701-0008.dtb
3233
dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3768-0000+p3767-0000.dtb
3334
dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3768-0000+p3767-0005.dtb
35+
dtb-$(CONFIG_ARCH_TEGRA_264_SOC) += tegra264-p3971-0089+p3834-0008.dtb
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
3+
#include "tegra264-p3834.dtsi"
4+
5+
/ {
6+
compatible = "nvidia,p3834-0008", "nvidia,tegra264";
7+
};
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
3+
#include "tegra264.dtsi"
4+
5+
/ {
6+
compatible = "nvidia,p3834", "nvidia,tegra264";
7+
8+
aliases {
9+
};
10+
11+
bus@0 {
12+
serial@c4e0000 {
13+
status = "okay";
14+
};
15+
16+
serial@c5a0000 {
17+
status = "okay";
18+
};
19+
};
20+
21+
bus@8100000000 {
22+
iommu@5000000 {
23+
status = "okay";
24+
};
25+
26+
iommu@6000000 {
27+
status = "okay";
28+
};
29+
};
30+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
/dts-v1/;
3+
4+
// module files must be included first
5+
#include "tegra264-p3834-0008.dtsi"
6+
#include "tegra264-p3971-0089+p3834.dtsi"
7+
8+
/ {
9+
model = "NVIDIA P3971-0089+P3834-0008 Engineering Reference Platform";
10+
compatible = "nvidia,p3971-0089+p3834-0008", "nvidia,p3834-0008", "nvidia,tegra264";
11+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
3+
#include "tegra264-p3971-0089.dtsi"
4+
5+
/ {
6+
aliases {
7+
serial0 = &{/bus@0/serial@c4e0000};
8+
serial1 = &{/bus@0/serial@c5a0000};
9+
};
10+
11+
chosen {
12+
stdout-path = "serial0:115200n8";
13+
};
14+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
3+
#include "tegra264-p3971.dtsi"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
3+
/ {
4+
};

0 commit comments

Comments
 (0)