Skip to contentSkip to conversation

arm64: dts: bst: add support for Black Sesame Technologies C1200 CDCU1.0 board

PATCH In review Albert Yang 3 participants 3 messages May 28, 2025

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

PATCH 6/9 arm64: dts: bst: add support for Black Sesame Technologies C1200 CDCU1.0 board

Add device tree support for the Black Sesame Technologies (BST) C1200 CDCU1.0 ADAS 4C2G platform. This platform is based on the BST C1200 SoC family.

The changes include:
- Adding a new BST device tree directory
- Adding Makefile entries to build the BST platform device trees
- Adding the device tree for the BST C1200 CDCU1.0 ADAS 4C2G board

This board features a quad-core Cortex-A78 CPU, and various peripherals including UART, MMC, watchdog timer, and interrupt controller.

---
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/bst/Makefile              |  10 ++
 .../dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts    |  44 ++++++
 arch/arm64/boot/dts/bst/bstc1200.dtsi         | 130 ++++++++++++++++++
 4 files changed, 185 insertions(+)
 create mode 100644 arch/arm64/boot/dts/bst/Makefile
 create mode 100644 arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts
 create mode 100644 arch/arm64/boot/dts/bst/bstc1200.dtsi
arch/arm64/boot/dts/Makefile +1 -0
index 79b73a21ddc2..135965288100 100644
@@ -35,3 +35,4 @@ subdir-y += tesla
 subdir-y += ti
 subdir-y += toshiba
 subdir-y += xilinx
+subdir-y += bst
arch/arm64/boot/dts/bst/Makefile new file +10 -0
new file mode 100644
index 000000000000..64fd43c98275
@@ -0,0 +1,10 @@
+ifeq ($(CONFIG_SECOND_KERNEL), )
+
+# Enables support for device-tree overlays
+DTC_FLAGS := -@
+
+dtb-$(CONFIG_ARCH_BSTC1200) += bstc1200-cdcu1.0-adas_4c2g.dtb
+
+endif
+
+clean-files	:= *.dtb
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts new file +44 -0

44 lines not on this page · raw message

arch/arm64/boot/dts/bst/bstc1200.dtsi new file +130 -0

130 lines not on this page · raw message

Signature · 1 line
2.25.1
#1 lore raw
Quoted 29 lines · Albert Yang

Add device tree support for the Black Sesame Technologies (BST) C1200 CDCU1.0 ADAS 4C2G platform. This platform is based on the BST C1200 SoC family.

The changes include:
- Adding a new BST device tree directory
- Adding Makefile entries to build the BST platform device trees
- Adding the device tree for the BST C1200 CDCU1.0 ADAS 4C2G board

This board features a quad-core Cortex-A78 CPU, and various peripherals including UART, MMC, watchdog timer, and interrupt controller.

---
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/bst/Makefile              |  10 ++
 .../dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts    |  44 ++++++
 arch/arm64/boot/dts/bst/bstc1200.dtsi         | 130 ++++++++++++++++++
 4 files changed, 185 insertions(+)
 create mode 100644 arch/arm64/boot/dts/bst/Makefile
 create mode 100644 arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts
 create mode 100644 arch/arm64/boot/dts/bst/bstc1200.dtsi
arch/arm64/boot/dts/Makefile +0 -0
index 79b73a21ddc2..135965288100 100644

arch/arm64/boot/dts/Makefile subdir-y += tesla · line 38

Quoted 4 lines
arch/arm64/boot/dts/Makefile +1 -0
@@ -35,3 +35,4 @@ subdir-y += tesla
 subdir-y += ti
 subdir-y += toshiba
 subdir-y += xilinx
+subdir-y += bst

Don't add to random places or at the end, but place entries in alphabetical order.

arch/arm64/boot/dts/bst/Makefile line 1

Quoted 7 lines
arch/arm64/boot/dts/bst/Makefile new file +1 -0
new file mode 100644
index 000000000000..64fd43c98275
@@ -0,0 +1,10 @@
+ifeq ($(CONFIG_SECOND_KERNEL), )

There is no such thing.

arch/arm64/boot/dts/bst/Makefile line 10

Quoted 9 lines
arch/arm64/boot/dts/bst/Makefile new file +9 -0
+
+# Enables support for device-tree overlays
+DTC_FLAGS := -@
+
+dtb-$(CONFIG_ARCH_BSTC1200) += bstc1200-cdcu1.0-adas_4c2g.dtb
+
+endif
+
+clean-files	:= *.dtb

Why?

Quoted 6 lines
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts new file +0 -0
new file mode 100644
index 000000000000..92915e7630ff

arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts line 10

Quoted 10 lines
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts new file +10 -0
@@ -0,0 +1,44 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+
+#include "bstc1200.dtsi"
+
+/ {
+	model = "BST C1200-96 CDCU1.0 4C2G";
+
+	chosen {
+		bootargs = "earlycon=uart8250,mmio32,0x20008000 console=ttyS0,115200n8 rw";

Earlycon is debugging, why do you need it for general use?

console: redundant
rw: not suitable for DT

arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts line 20

Quoted 10 lines
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts new file +10 -0
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory@8c0000000 {
+		device_type = "memory";
+		reg = <0x8 0x10000000 0x0 0x30000000
+		      0x8 0xc0000000 0x1 0x0
+		      0xc 0x0 0x0 0x40000000
+		      0x8 0x254000 0x0 0x1000
+		      0x8 0x151000 0x0 0x1000>;

Multiple entries go into multiple entries <>.

arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts line 28

Quoted 8 lines
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts new file +8 -0
+	};
+
+	reserved-memory {
+		#address-cells = <0x2>;
+		#size-cells = <0x2>;
+		ranges;
+
+		mmc0_reserved: mmc0_region@5160000 {

Follow DTS coding style. Also drop redundant "region"

Quoted 22 lines
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts new file +16 -0
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x5160000 0x0 0x10000>;
+			no-map;
+		};
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&mmc0 {
+	status = "okay";
+	memory-region = <&mmc0_reserved>;
+};
+
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +0 -0
new file mode 100644
index 000000000000..6ed2d8cbd720

arch/arm64/boot/dts/bst/bstc1200.dtsi line 6

Quoted 6 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +6 -0
@@ -0,0 +1,130 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+/ {
+	compatible = "bst,c1200";
+	#address-cells = <0x2>;
+	#size-cells = <0x2>;

These are not hex.

arch/arm64/boot/dts/bst/bstc1200.dtsi line 10

Quoted 4 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +4 -0
+
+	cpus {
+		#address-cells = <0x1>;
+		#size-cells = <0x0>;

Same comments

Quoted 35 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +35 -0
+
+		cpu@0 {
+			compatible = "arm,cortex-a78";
+			device_type = "cpu";
+			enable-method = "psci";
+			next-level-cache = <&l2_cache>;
+			reg = <0x0>;
+			freq-domain = <0x3 0x1>;
+		};
+
+		cpu@1 {
+			compatible = "arm,cortex-a78";
+			device_type = "cpu";
+			enable-method = "psci";
+			next-level-cache = <&l2_cache>;
+			reg = <0x100>;
+			freq-domain = <0x3 0x1>;
+		};
+
+		cpu@2 {
+			compatible = "arm,cortex-a78";
+			device_type = "cpu";
+			enable-method = "psci";
+			next-level-cache = <&l2_cache>;
+			reg = <0x200>;
+			freq-domain = <0x3 0x1>;
+		};
+
+		cpu@3 {
+			compatible = "arm,cortex-a78";
+			device_type = "cpu";
+			enable-method = "psci";
+			next-level-cache = <&l2_cache>;
+			reg = <0x300>;
+			freq-domain = <0x3 0x1>;

arch/arm64/boot/dts/bst/bstc1200.dtsi line 55

Quoted 10 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +10 -0
+		};
+
+		l2_cache: l2-cache-1 {
+			compatible = "cache";
+			cache-level = <2>;
+			cache-unified;
+		};
+	};
+
+	misc_clk: misc_clk {

Follow DTS coding style. Please use name for all fixed clocks which matches current format recommendation: 'clock-<freq>' (see also the pattern in the binding for any other options).

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/clock/fixed-clock.yaml?h=v6.11-rc1

arch/arm64/boot/dts/bst/bstc1200.dtsi line 58

Quoted 3 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +3 -0
+		compatible = "fixed-clock";
+		#clock-cells = <0x0>;
+		clock-frequency = <0x3d0900>;

This is not a hex.

Quoted 7 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +7 -0
+	};
+
+	timer {
+		compatible = "arm,armv8-timer";
+		interrupt-parent = <&gic>;
+		always-on;
+		interrupts = <GIC_PPI 0xd (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)

arch/arm64/boot/dts/bst/bstc1200.dtsi line 75

Quoted 10 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +10 -0
+			      GIC_PPI 0xe (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)
+			      GIC_PPI 0xb (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)
+			      GIC_PPI 0xa (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
+	};
+
+	soc: soc@0 {
+		compatible = "simple-bus";
+		#address-cells = <0x2>;
+		#size-cells = <0x2>;
+		ranges = <0x0 0x0 0x0 0x0 0xffffffff 0xffffffff>;

Follow DTS coding style

arch/arm64/boot/dts/bst/bstc1200.dtsi line 77

Quoted 2 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +2 -0
+
+		mmc0: dwmmc0@22200000 {

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.

Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

arch/arm64/boot/dts/bst/bstc1200.dtsi line 82

Quoted 5 lines
arch/arm64/boot/dts/bst/bstc1200.dtsi new file +5 -0
+			#address-cells = <0x2>;
+			#size-cells = <0x0>;
+			compatible = "bst,dwcmshc-sdhci";
+			reg = <0x0 0x22200000 0x0 0x1000>;
+			reg-names = "base";

Order properties according to DTS coding style.

Best regards,
Krzysztof

#2 lore raw
In reply to Albert Yang
Quoted 14 lines · Albert Yang

Add device tree support for the Black Sesame Technologies (BST) C1200 CDCU1.0 ADAS 4C2G platform. This platform is based on the BST C1200 SoC family.

The changes include:
- Adding a new BST device tree directory
- Adding Makefile entries to build the BST platform device trees
- Adding the device tree for the BST C1200 CDCU1.0 ADAS 4C2G board

This board features a quad-core Cortex-A78 CPU, and various peripherals including UART, MMC, watchdog timer, and interrupt controller.

Quoted 10 lines
---
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/bst/Makefile              |  10 ++
 .../dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts    |  44 ++++++
 arch/arm64/boot/dts/bst/bstc1200.dtsi         | 130 ++++++++++++++++++
 4 files changed, 185 insertions(+)
 create mode 100644 arch/arm64/boot/dts/bst/Makefile
 create mode 100644 arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dts
 create mode 100644 arch/arm64/boot/dts/bst/bstc1200.dtsi

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20250528 (exact match)

If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/bst/' for [email protected]:

arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dtb: /: failed to match any schema with compatible: ['bst,c1200'] arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dtb: cpu@0 (arm,cortex-a78): Unevaluated properties are not allowed ('freq-domain' was unexpected)
from schema $id: http://devicetree.org/schemas/arm/cpus.yaml#
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dtb: cpu@1 (arm,cortex-a78): Unevaluated properties are not allowed ('freq-domain' was unexpected)
from schema $id: http://devicetree.org/schemas/arm/cpus.yaml#
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dtb: cpu@2 (arm,cortex-a78): Unevaluated properties are not allowed ('freq-domain' was unexpected)
from schema $id: http://devicetree.org/schemas/arm/cpus.yaml#
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dtb: cpu@3 (arm,cortex-a78): Unevaluated properties are not allowed ('freq-domain' was unexpected)
from schema $id: http://devicetree.org/schemas/arm/cpus.yaml#
arch/arm64/boot/dts/bst/bstc1200-cdcu1.0-adas_4c2g.dtb: /soc@0/dwmmc0@22200000: failed to match any schema with compatible: ['bst,dwcmshc-sdhci']