ARM: mstar: Add infinity2m support
authorDaniel Palmer <daniel@0x0f.com>
Tue, 1 Dec 2020 13:43:24 +0000 (22:43 +0900)
committerArnd Bergmann <arnd@arndb.de>
Wed, 9 Dec 2020 16:45:39 +0000 (17:45 +0100)
The infinity2m series of chips are like the other Mstar/Sigmastar
chips in that they have a Cortex A7 system with DDR memory integrated
in a single package.

The infinity2m chips are intended for recording the incoming streams
from IP cameras. So instead of video encoders they have video decoders,
instead of a camera interface they have display hardware and so on.

Aside from the above points the big difference about these chips is that
they include a second Cortex A7 core.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Link: https://lore.kernel.org/r/20201201134330.3037007-5-daniel@0x0f.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/mstar-infinity2m.dtsi [new file with mode: 0644]
arch/arm/boot/dts/mstar-v7.dtsi
arch/arm/mach-mstar/mstarv7.c

diff --git a/arch/arm/boot/dts/mstar-infinity2m.dtsi b/arch/arm/boot/dts/mstar-infinity2m.dtsi
new file mode 100644 (file)
index 0000000..02adb9f
--- /dev/null
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2020 thingy.jp.
+ * Author: Daniel Palmer <daniel@thingy.jp>
+ */
+
+#include "mstar-infinity.dtsi"
+
+&cpus {
+       cpu1: cpu@1 {
+               device_type = "cpu";
+               compatible = "arm,cortex-a7";
+               reg = <0x1>;
+       };
+};
index 81369bc..b0a21b0 100644 (file)
@@ -12,7 +12,7 @@
        #size-cells = <1>;
        interrupt-parent = <&gic>;
 
-       cpus {
+       cpus: cpus {
                #address-cells = <1>;
                #size-cells = <0>;
 
index 81a4cbc..1aa748f 100644 (file)
@@ -35,6 +35,7 @@ static void __iomem *l3bridge;
 
 static const char * const mstarv7_board_dt_compat[] __initconst = {
        "mstar,infinity",
+       "mstar,infinity2m",
        "mstar,infinity3",
        "mstar,mercury5",
        NULL,