Skip to content

Commit b0d0bb1

Browse files
fifteenhexarndb
authored andcommitted
ARM: mstar: Add Armv7 base dtsi
Adds initial dtsi for the base MStar/Sigmastar Armv7 SoCs. These SoCs have very similar memory maps and this will avoid duplicating nodes across multiple dtsis. Signed-off-by: Daniel Palmer <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 09220c5 commit b0d0bb1

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,6 +2140,7 @@ L: [email protected] (moderated for non-subscribers)
21402140
S: Maintained
21412141
W: http://linux-chenxing.org/
21422142
F: Documentation/devicetree/bindings/arm/mstar.yaml
2143+
F: arch/arm/boot/dts/mstar-v7.dtsi
21432144
F: arch/arm/mach-mstar/
21442145

21452146
ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT

arch/arm/boot/dts/mstar-v7.dtsi

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
2+
/*
3+
* Copyright (c) 2020 thingy.jp.
4+
* Author: Daniel Palmer <[email protected]>
5+
*/
6+
7+
#include <dt-bindings/interrupt-controller/irq.h>
8+
#include <dt-bindings/interrupt-controller/arm-gic.h>
9+
10+
/ {
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
interrupt-parent = <&gic>;
14+
15+
cpus {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
cpu0: cpu@0 {
20+
device_type = "cpu";
21+
compatible = "arm,cortex-a7";
22+
reg = <0x0>;
23+
};
24+
};
25+
26+
arch_timer {
27+
compatible = "arm,armv7-timer";
28+
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2)
29+
| IRQ_TYPE_LEVEL_LOW)>,
30+
<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2)
31+
| IRQ_TYPE_LEVEL_LOW)>,
32+
<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2)
33+
| IRQ_TYPE_LEVEL_LOW)>,
34+
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2)
35+
| IRQ_TYPE_LEVEL_LOW)>;
36+
/*
37+
* we shouldn't need this but the vendor
38+
* u-boot is broken
39+
*/
40+
clock-frequency = <6000000>;
41+
};
42+
43+
soc: soc {
44+
compatible = "simple-bus";
45+
#address-cells = <1>;
46+
#size-cells = <1>;
47+
ranges = <0x16001000 0x16001000 0x00007000>,
48+
<0x1f000000 0x1f000000 0x00400000>;
49+
50+
gic: interrupt-controller@16001000 {
51+
compatible = "arm,cortex-a7-gic";
52+
reg = <0x16001000 0x1000>,
53+
<0x16002000 0x2000>,
54+
<0x16004000 0x2000>,
55+
<0x16006000 0x2000>;
56+
#interrupt-cells = <3>;
57+
interrupt-controller;
58+
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2)
59+
| IRQ_TYPE_LEVEL_LOW)>;
60+
};
61+
62+
riu: bus@1f000000 {
63+
compatible = "simple-bus";
64+
reg = <0x1f000000 0x00400000>;
65+
#address-cells = <1>;
66+
#size-cells = <1>;
67+
ranges = <0x0 0x1f000000 0x00400000>;
68+
69+
l3bridge: l3bridge@204400 {
70+
compatible = "mstar,l3bridge";
71+
reg = <0x204400 0x200>;
72+
};
73+
74+
pm_uart: uart@221000 {
75+
compatible = "ns16550a";
76+
reg = <0x221000 0x100>;
77+
reg-shift = <3>;
78+
clock-frequency = <172000000>;
79+
status = "disabled";
80+
};
81+
};
82+
};
83+
};

0 commit comments

Comments
 (0)