Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Bouffalo Lab SoC's [patch 1] #84173

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

nandojve
Copy link
Member

This PR is intent to continue the work started at #37686. It rewrite the original work to be compatible with Zephyr 4.1.

This is the first PR of a series, which includes:

  • Add BouffaloLab vendor
  • Add BL-60x SoC.
  • Pinctrl
  • Serial
  • bl604e_iot_dvk (development kit) - It can only be obtained directly with Bouffalo Lab
  • Add bflb_mcu_tool runner to easy flash

This is an split of #78795

@zephyrbot
Copy link
Collaborator

zephyrbot commented Jan 17, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_bouffalolab 🆕 N/A (Added) nandojve/[email protected] N/A

DNM label due to: 1 added project

Note: This message is automatically posted and updated by the Manifest GitHub Action.

compatible = "sifive,clint0";
reg = <0x2000000 0x10000>;
reg-names = "control";

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent spacing in file

Copy link
Member Author

@nandojve nandojve Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any inconsistency. This is from current devicetree spec v0.4.

image

I assume that if it is on the documentation example is correct.
https://github.com/devicetree-org/devicetree-specification/releases/tag/v0.4 pg42

modules/hal_bouffalolab/CMakeLists.txt Outdated Show resolved Hide resolved
bool

config SOC_FAMILY
default "bouffalolab_bflb" if SOC_FAMILY_BFLB
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

text does not match, either: default "bouffalolab_bflb" if SOC_FAMILY_BOUFFALOLAB_BFLB or default "bflb" if SOC_FAMILY_BFLB - it must also match the text in the soc.yml file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I fixed

soc/bouffalolab/bl60x/soc.c Outdated Show resolved Hide resolved
modules/hal_bouffalolab/include/bflb_hbn.h Outdated Show resolved Hide resolved
modules/hal_bouffalolab/include/bflb_pinctrl.h Outdated Show resolved Hide resolved
Comment on lines +8 to +11
# This is necessary to proper select architecture in the SDK
zephyr_compile_definitions(
ARCH_RISCV
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tejlmand for comment

@nandojve nandojve force-pushed the bflb/bflb_upstream_v1 branch 2 times, most recently from 084a3b1 to 849983f Compare January 23, 2025 20:22
Add initial version that uses bouffalo_sdk 1.4.5.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Add necessary bflb prefix to be used on devicetree bindings and identify
the board vendor.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Introduce Bouffalo Lab vendor with BL60x cpu.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Add initial version.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Add Bouffalo Lab pinctrl driver.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Add Bouffalo Lab serial driver. The driver uses pinctrl to configure
pins and have power management capabilities.

Signed-off-by: Gerson Fernando Budke <[email protected]>
@nandojve nandojve force-pushed the bflb/bflb_upstream_v1 branch from 849983f to 6cbbaa4 Compare January 24, 2025 11:34
Add Bouffalo Lab ISP console flash runner.  This tool enable bootloader
to flash devices using serial port.

The blflash Rust tool can be found at
  https://github.com/spacemeowx2/blflash

Signed-off-by: Gerson Fernando Budke <[email protected]>
Add initial version.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Introduce Bouffalo Lab platform.

Signed-off-by: Gerson Fernando Budke <[email protected]>
@nandojve nandojve force-pushed the bflb/bflb_upstream_v1 branch from 6cbbaa4 to c0018bb Compare January 24, 2025 12:01
@nandojve nandojve requested a review from nordicjm January 24, 2025 14:19
@fabiobaltieri fabiobaltieri added DNM (manifest) This PR should not be merged (controlled by action-manifest) and removed DNM This PR should not be merged (Do Not Merge) labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_bouffalolab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants