Skip to contentSkip to conversation

dt-bindings: arm: Initial MStar vendor prefixes and compatible strings

RFC New Daniel Palmer 1 participant 4 messages Sep 11, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

RFC 1/4 dt-bindings: arm: Initial MStar vendor prefixes and compatible strings

This adds a prefix for MStar and thingy.jp and then defines compatible strings for the first MStar based board.

---
 .../devicetree/bindings/arm/mstar.yaml        | 22 +++++++++++++++++++
 .../devicetree/bindings/vendor-prefixes.yaml  |  6 +++--
 MAINTAINERS                                   |  6 +++++
 3 files changed, 32 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/mstar.yaml
Documentation/devicetree/bindings/arm/mstar.yaml new file +22 -0
new file mode 100644
index 000000000000..fbb9f8d1c06c
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: (GPL-2.0+ OR X11)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/mstar.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MStar platforms device tree bindings
+
+maintainers:
+  - Daniel Palmer <[email protected]>
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+
+      - description: thingy.jp BreadBee
+        items:
+          - const: thingyjp,breadbee
+          - const: mstar,msc313e
+          - const: mstar,msc313
Documentation/devicetree/bindings/vendor-prefixes.yaml +4 -2
index 6992bbbbffab..74b8f6566dec 100644
@@ -599,6 +599,8 @@ patternProperties:
     description: Microsemi Corporation
   "^msi,.*":
     description: Micro-Star International Co. Ltd.
+  "^mstar,.*":
+    description: MStar Semiconductor, Inc.
   "^mti,.*":
     description: Imagination Technologies Ltd. (formerly MIPS Technologies Inc.)
   "^multi-inno,.*":
@@ -921,8 +923,8 @@ patternProperties:
     description: Terasic Inc.
   "^tfc,.*":
     description: Three Five Corp
-  "^thine,.*":
-    description: THine Electronics, Inc.
+  "^thingyjp,.*":
+    description: thingy.jp
   "^ti,.*":
     description: Texas Instruments
   "^tianma,.*":
MAINTAINERS +6 -0
index e7a47b5210fd..252fa7171aea 100644
@@ -1955,6 +1955,12 @@ L:	[email protected] (moderated for non-subscribers)
 F:	arch/arm/mach-pxa/mioa701.c
 S:	Maintained
 
+ARM/MStar SoC support
+M:	Daniel Palmer <[email protected]>
+L:	[email protected] (moderated for non-subscribers)
+F:	Documentation/devicetree/bindings/arm/mstar.yaml
+S:	Maintained
+
 ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT
 M:	Michael Petchkovsky <[email protected]>
 S:	Maintained
Signature · 7 lines
2.23.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

RFC 2/4 ARM: mstar: Add machine for MStar msc313 family SoCs

Initial support for the MStar msc313 series of Cortex A7 based IP camera SoCs.

These chips are interesting in that they contain a Cortex A7, peripherals and system memory in a single tiny QFN package that can be hand soldered allowing almost anyone to embed Linux in their projects.

---
 MAINTAINERS                  |  1 +
 arch/arm/Kconfig             |  2 +
 arch/arm/Makefile            |  1 +
 arch/arm/mach-mstar/Kconfig  | 14 ++++++
 arch/arm/mach-mstar/Makefile |  1 +
 arch/arm/mach-mstar/msc313.c | 96 ++++++++++++++++++++++++++++++++++++
 6 files changed, 115 insertions(+)
 create mode 100644 arch/arm/mach-mstar/Kconfig
 create mode 100644 arch/arm/mach-mstar/Makefile
 create mode 100644 arch/arm/mach-mstar/msc313.c
MAINTAINERS +1 -0
index 252fa7171aea..b046773af438 100644
@@ -1959,6 +1959,7 @@ ARM/MStar SoC support
 M:	Daniel Palmer <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
 F:	Documentation/devicetree/bindings/arm/mstar.yaml
+F:	arch/arm/mach-mstar/
 S:	Maintained
 
 ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT
arch/arm/Kconfig +2 -0
index 24360211534a..c5c6d31e4301 100644
@@ -760,6 +760,8 @@ source "arch/arm/mach-mmp/Kconfig"
 
 source "arch/arm/mach-moxart/Kconfig"
 
+source "arch/arm/mach-mstar/Kconfig"
+
 source "arch/arm/mach-mv78xx0/Kconfig"
 
 source "arch/arm/mach-mvebu/Kconfig"
arch/arm/Makefile +1 -0
index c3624ca6c0bc..581e32505408 100644
@@ -191,6 +191,7 @@ machine-$(CONFIG_ARCH_MXC)		+= imx
 machine-$(CONFIG_ARCH_MEDIATEK)		+= mediatek
 machine-$(CONFIG_ARCH_MILBEAUT)		+= milbeaut
 machine-$(CONFIG_ARCH_MXS)		+= mxs
+machine-$(CONFIG_ARCH_MSTAR)		+= mstar
 machine-$(CONFIG_ARCH_NOMADIK)		+= nomadik
 machine-$(CONFIG_ARCH_NPCM)		+= npcm
 machine-$(CONFIG_ARCH_NSPIRE)		+= nspire
arch/arm/mach-mstar/Kconfig new file +14 -0
new file mode 100644
index 000000000000..d6b0a515da91
@@ -0,0 +1,14 @@
+menuconfig ARCH_MSTAR
+	bool "MStar SoC Support"
+	depends on ARCH_MULTI_V7
+	select ARM_GIC
+	help
+	  Support for MStar ARMv7 SoCs
+
+if ARCH_MSTAR
+
+config MACH_MSC313
+	bool "MStar MSC313(d/e) SoC support"
+	default ARCH_MSTAR
+
+endif
arch/arm/mach-mstar/Makefile new file +1 -0
new file mode 100644
index 000000000000..231105cdc872
@@ -0,0 +1 @@
+obj-$(CONFIG_MACH_MSC313) += msc313.o
\ No newline at end of file
arch/arm/mach-mstar/msc313.c new file +96 -0

96 lines not on this page · raw message

Signature · 7 lines
2.23.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

RFC 3/4 ARM: mstar: Add msc313 series dtsi

In reply to Daniel Palmer

Adds an initial dtsi for the msc313 SoC family and a dtsi for the msc313e part.

---
 MAINTAINERS                    |  1 +
 arch/arm/boot/dts/msc313.dtsi  | 71 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/msc313e.dtsi | 14 +++++++
 3 files changed, 86 insertions(+)
 create mode 100644 arch/arm/boot/dts/msc313.dtsi
 create mode 100644 arch/arm/boot/dts/msc313e.dtsi
MAINTAINERS +1 -0
index b046773af438..c71c3ec3d43f 100644
@@ -1960,6 +1960,7 @@ M:	Daniel Palmer <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
 F:	Documentation/devicetree/bindings/arm/mstar.yaml
 F:	arch/arm/mach-mstar/
+F:	arch/arm/boot/dts/msc313*.dtsi
 S:	Maintained
 
 ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT
arch/arm/boot/dts/msc313.dtsi new file +71 -0

71 lines not on this page · raw message

arch/arm/boot/dts/msc313e.dtsi new file +14 -0
new file mode 100644
index 000000000000..c4842625f6e2
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2019 thingy.jp.
+ * Author: Daniel Palmer <[email protected]>
+ */
+
+#include "msc313.dtsi"
+
+/ {
+	memory {
+		device_type = "memory";
+		reg = <0x20000000 0x4000000>;
+	};
+};
Signature · 7 lines
2.23.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw

RFC 4/4 ARM: mstar: Add dts for msc313e based BreadBee board

In reply to Daniel Palmer

BreadBee is an opensource development board based on the MStar msc313e SoC.

Hardware details, schematics and so on can be found at:
https://github.com/breadbee/breadbee

---
 MAINTAINERS                            |  1 +
 arch/arm/boot/dts/Makefile             |  1 +
 arch/arm/boot/dts/msc313e-breadbee.dts | 26 ++++++++++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 arch/arm/boot/dts/msc313e-breadbee.dts
MAINTAINERS +1 -0
index c71c3ec3d43f..2768d6e07afb 100644
@@ -1961,6 +1961,7 @@ L:	[email protected] (moderated for non-subscribers)
 F:	Documentation/devicetree/bindings/arm/mstar.yaml
 F:	arch/arm/mach-mstar/
 F:	arch/arm/boot/dts/msc313*.dtsi
+F:	arch/arm/boot/dts/msc313e-*.dts
 S:	Maintained
 
 ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT
arch/arm/boot/dts/Makefile +1 -0
index 9159fa2cea90..b4b5f639859a 100644
@@ -1265,6 +1265,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt8127-moose.dtb \
 	mt8135-evbp1.dtb
 dtb-$(CONFIG_ARCH_MILBEAUT) += milbeaut-m10v-evb.dtb
+dtb-$(CONFIG_ARCH_MSTAR) += msc313e-breadbee.dtb
 dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
 dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-ast2500-evb.dtb \
arch/arm/boot/dts/msc313e-breadbee.dts new file +26 -0
new file mode 100644
index 000000000000..470ea5fd94a7
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2019 thingy.jp.
+ * Author: Daniel Palmer <[email protected]>
+ */
+
+/dts-v1/;
+#include "msc313e.dtsi"
+
+/ {
+	model = "thingy.jp breadbee";
+	compatible = "thingyjp,breadbee", "mstar,msc313e", "mstar,msc313";
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+		bootargs = "console=ttyS0,115200";
+	};
+
+	aliases {
+		console = &pm_uart;
+	};
+};
+
+&pm_uart {
+	status = "okay";
+};
Signature · 7 lines
2.23.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel