Skip to content

Commit bdac26d

Browse files
gmarullkartben
authored andcommitted
boards: sifli: add sf32lb52_devkit_lcd
Ref. https://wiki.sifli.com/en/board/sf32lb52x/SF32LB52-DevKit-LCD.html Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 33f0a19 commit bdac26d

10 files changed

+226
-0
lines changed

boards/sifli/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _boards-sifli:
2+
3+
SiFli Technologies(Nanjing) Co., Ltd
4+
####################################
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
:glob:
9+
10+
**/*
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Core Devices LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_SF32LB52_DEVKIT_LCD
5+
select SOC_SF32LB525UC6
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Core Devices LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# keep first
5+
board_runner_args(sftool "--chip=SF32LB52")
6+
7+
# keep first
8+
include(${ZEPHYR_BASE}/boards/common/sftool.board.cmake)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2025 Core Devices LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
board:
5+
name: sf32lb52_devkit_lcd
6+
full_name: SF32LB52-DevKit-LCD
7+
vendor: sifli
8+
socs:
9+
- name: sf32lb525uc6
63.3 KB
Loading
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
.. zephyr:board:: sf32lb52_devkit_lcd
2+
3+
Overview
4+
********
5+
6+
SF32LB52-DevKit-LCD is a development board based on the SF32LB52x series chip
7+
SoC. It is mainly used for developing various applications based on
8+
SPI/DSPI/QSPI or MCU/8080 interface display screens.
9+
10+
More information about the board can be found at the
11+
`SF32LB52-DevKit-LCD website`_.
12+
13+
Hardware
14+
********
15+
16+
SF32LB52-DevKit-LCD provides the following hardware components:
17+
18+
- SF32LB52x-MOD-N16R8 module based on SF32LB525UC6
19+
20+
- 8MB OPI-PSRAM @ 144MHz (from SF32LB525UC6)
21+
- 128Mb QSPI-NOR @ 72MHz, STR mode
22+
- 48MHz crystal
23+
- 32.768KHz crystal
24+
- Onboard antenna (default) or IPEX antenna, selectable via 0 ohm resistor
25+
- RF matching network and other R/L/C components
26+
27+
- Dedicated screen interface
28+
29+
- SPI/DSPI/QSPI, supports DDR mode QSPI, led out through 22-pin FPC and 40-pin
30+
header
31+
- 8-bit MCU/8080, led out through 22pin FPC and 40pin header.
32+
- Supports touch screens with I2C interface.
33+
34+
- Audio
35+
36+
- Analog MIC input.
37+
- Analog audio output, onboard Class-D audio PA.
38+
39+
- USB
40+
41+
- Type C interface, connected to USB to serial chip, enabling program
42+
download and software debug, can also supply power.
43+
- Type C interface, supports USB-2.0 FS, can also supply power.
44+
45+
- SD card
46+
47+
- Supports TF cards using SPI interface, onboard Micro SD card slot.
48+
49+
Supported Features
50+
==================
51+
52+
.. zephyr:board-supported-hw::
53+
54+
Programming and Debugging
55+
*************************
56+
57+
.. zephyr:board-supported-runners::
58+
59+
Refer to `sftool website`_ for more information.
60+
61+
References
62+
**********
63+
64+
.. target-notes::
65+
66+
.. _SF32LB52-DevKit-LCD website:
67+
https://wiki.sifli.com/en/board/sf32lb52x/SF32LB52-DevKit-LCD.html
68+
69+
.. _sftool website:
70+
https://github.com/OpenSiFli/sftool
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2025 Core Devices LLC
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <zephyr/dt-bindings/pinctrl/sf32lb52x-pinctrl.h>
7+
8+
&pinctrl {
9+
usart1_default: usart1_default {
10+
group1 {
11+
pinmux = <PA19_USART1_TXD>;
12+
};
13+
14+
group2 {
15+
pinmux = <PA18_USART1_RXD>;
16+
input-enable;
17+
bias-pull-up;
18+
};
19+
};
20+
};
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/*
2+
* Copyright (c) 2025 Core Devices LLC
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include <sifli/sf32lb52x.dtsi>
9+
#include <sifli/sf32lb52x-ram012.dtsi>
10+
11+
#include "sf32lb52_devkit_lcd-pinctrl.dtsi"
12+
13+
/ {
14+
model = "SiFli SF32LB52-DevKit-LCD";
15+
compatible = "sifli,sf32lb52-devkit-lcd";
16+
17+
chosen {
18+
zephyr,flash = &py25q128ha;
19+
zephyr,code-partition = &code;
20+
zephyr,console = &usart1;
21+
zephyr,shell-uart = &usart1;
22+
};
23+
};
24+
25+
&cpu0 {
26+
clock-frequency = <DT_FREQ_M(240)>;
27+
};
28+
29+
&hxt48 {
30+
status = "okay";
31+
};
32+
33+
&rcc_clk {
34+
status = "okay";
35+
36+
sifli,hdiv = <1>;
37+
sifli,pdiv1 = <1>;
38+
sifli,pdiv2 = <6>;
39+
40+
dll1 {
41+
status = "okay";
42+
clock-frequency = <DT_FREQ_M(240)>;
43+
};
44+
};
45+
46+
&mpi2 {
47+
status = "okay";
48+
49+
py25q128ha: memory@12000000 {
50+
compatible = "puya,py25q128ha";
51+
reg = <0x12000000 DT_SIZE_M(16)>;
52+
53+
partitions {
54+
compatible = "fixed-partitions";
55+
#address-cells = <1>;
56+
#size-cells = <1>;
57+
58+
ptable: partition@0 {
59+
label = "ptable";
60+
reg = <0x0 DT_SIZE_K(64)>;
61+
};
62+
63+
code: partition@10000 {
64+
label = "code";
65+
reg = <0x10000 DT_SIZE_K(16320)>;
66+
};
67+
};
68+
};
69+
};
70+
71+
&pinctrl {
72+
status = "okay";
73+
};
74+
75+
&usart1 {
76+
status = "okay";
77+
current-speed = <1000000>;
78+
pinctrl-0 = <&usart1_default>;
79+
pinctrl-names = "default";
80+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2025 Core Devices LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
identifier: sf32lb52_devkit_lcd
5+
name: SF32LB52-DevKit-LCD
6+
type: mcu
7+
arch: arm
8+
ram: 512
9+
flash: 16320
10+
toolchain:
11+
- zephyr
12+
supported:
13+
- uart
14+
vendor: sifli
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2025 Core Devices LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_ARM_MPU=y
5+
CONFIG_HW_STACK_PROTECTION=y
6+
7+
CONFIG_SERIAL=y
8+
9+
CONFIG_CONSOLE=y
10+
CONFIG_UART_CONSOLE=y

0 commit comments

Comments
 (0)