Skip to content

Commit 1a30661

Browse files
Xianwei Zhaosuperna9999
authored andcommitted
arm64: dts: add support for S7D based Amlogic BM202
Amlogic S7D is an advanced application processor designed for hybrid OTT/IP Set Top Box and high-end media box applications. Add basic support for the S7D based Amlogic BM202 board, Reusing S7 basic components: CPU, GIC, IRQ, Timer and UART. These are capable of booting up into the serial console. Signed-off-by: Xianwei Zhao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
1 parent 1b753fc commit 1a30661

File tree

3 files changed

+141
-0
lines changed

3 files changed

+141
-0
lines changed

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dtb-$(CONFIG_ARCH_MESON) += amlogic-c3-c302x-aw409.dtb
55
dtb-$(CONFIG_ARCH_MESON) += amlogic-c3-c308l-aw419.dtb
66
dtb-$(CONFIG_ARCH_MESON) += amlogic-s6-s905x5-bl209.dtb
77
dtb-$(CONFIG_ARCH_MESON) += amlogic-s7-s805x3-bp201.dtb
8+
dtb-$(CONFIG_ARCH_MESON) += amlogic-s7d-s905x5m-bm202.dtb
89
dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-an400.dtb
910
dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-khadas-vim4.dtb
1011
dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2025 Amlogic, Inc. All rights reserved.
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "amlogic-s7d.dtsi"
9+
/ {
10+
model = "Amlogic S905X5M BM202 Development Board";
11+
compatible = "amlogic,bm202", "amlogic,s7d";
12+
interrupt-parent = <&gic>;
13+
#address-cells = <2>;
14+
#size-cells = <2>;
15+
16+
aliases {
17+
serial0 = &uart_b;
18+
};
19+
20+
memory@0 {
21+
device_type = "memory";
22+
reg = <0x0 0x0 0x0 0x80000000>;
23+
};
24+
25+
reserved-memory {
26+
#address-cells = <2>;
27+
#size-cells = <2>;
28+
ranges;
29+
30+
/* 36 MiB reserved for ARM Trusted Firmware */
31+
secmon_reserved: secmon@5000000 {
32+
compatible = "shared-dma-pool";
33+
reg = <0x0 0x05000000 0x0 0x2400000>;
34+
no-map;
35+
};
36+
};
37+
};
38+
39+
&uart_b {
40+
status = "okay";
41+
};
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2025 Amlogic, Inc. All rights reserved.
4+
*/
5+
6+
#include <dt-bindings/interrupt-controller/irq.h>
7+
#include <dt-bindings/interrupt-controller/arm-gic.h>
8+
#include <dt-bindings/gpio/gpio.h>
9+
10+
/ {
11+
cpus {
12+
#address-cells = <2>;
13+
#size-cells = <0>;
14+
15+
cpu0: cpu@0 {
16+
device_type = "cpu";
17+
compatible = "arm,cortex-a55";
18+
reg = <0x0 0x0>;
19+
enable-method = "psci";
20+
};
21+
22+
cpu1: cpu@100 {
23+
device_type = "cpu";
24+
compatible = "arm,cortex-a55";
25+
reg = <0x0 0x100>;
26+
enable-method = "psci";
27+
};
28+
29+
cpu2: cpu@200 {
30+
device_type = "cpu";
31+
compatible = "arm,cortex-a55";
32+
reg = <0x0 0x200>;
33+
enable-method = "psci";
34+
};
35+
36+
cpu3: cpu@300 {
37+
device_type = "cpu";
38+
compatible = "arm,cortex-a55";
39+
reg = <0x0 0x300>;
40+
enable-method = "psci";
41+
};
42+
43+
};
44+
45+
timer {
46+
compatible = "arm,armv8-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+
psci {
54+
compatible = "arm,psci-1.0";
55+
method = "smc";
56+
};
57+
58+
xtal: xtal-clk {
59+
compatible = "fixed-clock";
60+
clock-frequency = <24000000>;
61+
clock-output-names = "xtal";
62+
#clock-cells = <0>;
63+
};
64+
65+
soc {
66+
compatible = "simple-bus";
67+
#address-cells = <2>;
68+
#size-cells = <2>;
69+
ranges;
70+
71+
gic: interrupt-controller@fff01000 {
72+
compatible = "arm,gic-400";
73+
#interrupt-cells = <3>;
74+
#address-cells = <0>;
75+
interrupt-controller;
76+
reg = <0x0 0xfff01000 0 0x1000>,
77+
<0x0 0xfff02000 0 0x0100>;
78+
interrupts = <GIC_PPI 9 0xf04>;
79+
};
80+
81+
apb: bus@fe000000 {
82+
compatible = "simple-bus";
83+
reg = <0x0 0xfe000000 0x0 0x480000>;
84+
#address-cells = <2>;
85+
#size-cells = <2>;
86+
ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>;
87+
88+
uart_b: serial@7a000 {
89+
compatible = "amlogic,s7d-uart",
90+
"amlogic,meson-s4-uart";
91+
reg = <0x0 0x7a000 0x0 0x18>;
92+
interrupts = <GIC_SPI 169 IRQ_TYPE_EDGE_RISING>;
93+
clocks = <&xtal>, <&xtal>, <&xtal>;
94+
clock-names = "xtal", "pclk", "baud";
95+
status = "disabled";
96+
};
97+
};
98+
};
99+
};

0 commit comments

Comments
 (0)