Skip to content

Commit 927e310

Browse files
Andre-ARMjernejsk
authored andcommitted
ARM: dts: sunxi: add Allwinner T113-s SoC .dtsi
The Allwinner T113-s SoC is apparently using the same (or at least a very similar) die as the D1/D1s, but replaces the single RISC-V core with two Arm Cortex-A7 cores. Since the D1 core .dtsi already describes all common peripherals, we just need a DT describing the ARM specific peripherals: the CPU cores, the Generic Timer, the GIC and the PMU. We include the core .dtsi directly from the riscv DT directory. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20230320005249.13403-3-andre.przywara@arm.com Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent a3eebcb commit 927e310

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

arch/arm/boot/dts/sun8i-t113s.dtsi

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ or MIT)
2+
// Copyright (C) 2022 Arm Ltd.
3+
4+
#define SOC_PERIPHERAL_IRQ(nr) GIC_SPI nr
5+
6+
#include <dt-bindings/interrupt-controller/arm-gic.h>
7+
#include <riscv/allwinner/sunxi-d1s-t113.dtsi>
8+
#include <riscv/allwinner/sunxi-d1-t113.dtsi>
9+
10+
/ {
11+
interrupt-parent = <&gic>;
12+
13+
cpus {
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
cpu0: cpu@0 {
18+
compatible = "arm,cortex-a7";
19+
device_type = "cpu";
20+
reg = <0>;
21+
clocks = <&ccu CLK_CPUX>;
22+
clock-names = "cpu";
23+
};
24+
25+
cpu1: cpu@1 {
26+
compatible = "arm,cortex-a7";
27+
device_type = "cpu";
28+
reg = <1>;
29+
clocks = <&ccu CLK_CPUX>;
30+
clock-names = "cpu";
31+
};
32+
};
33+
34+
gic: interrupt-controller@1c81000 {
35+
compatible = "arm,gic-400";
36+
reg = <0x03021000 0x1000>,
37+
<0x03022000 0x2000>,
38+
<0x03024000 0x2000>,
39+
<0x03026000 0x2000>;
40+
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
41+
interrupt-controller;
42+
#interrupt-cells = <3>;
43+
};
44+
45+
timer {
46+
compatible = "arm,armv7-timer";
47+
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
48+
<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
49+
<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
50+
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
51+
};
52+
53+
pmu {
54+
compatible = "arm,cortex-a7-pmu";
55+
interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
56+
<GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
57+
interrupt-affinity = <&cpu0>, <&cpu1>;
58+
};
59+
};

0 commit comments

Comments
 (0)