-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Add Microchip MEC1653B SoC, DTS, and board. #94009
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
Open
scottwcpg
wants to merge
3
commits into
zephyrproject-rtos:main
Choose a base branch
from
MicrochipTech:devel_mec5_mec1653b_h040
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+435
−56
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
boards/microchip/mec_assy6941/Kconfig.mec_assy6941_mec1653b_nsz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2025, Microchip Technology Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_MEC_ASSY6941_MEC1653B_NSZ | ||
select SOC_MEC1653B_NSZ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
boards/microchip/mec_assy6941/mec_assy6941_mec1653b_nsz.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Copyright (c) 2025, Microchip Technology Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <microchip/mec/mec5_mec1653bnsz.dtsi> | ||
#include <microchip/mec5/mec1653b-nsz-b0-pinctrl.dtsi> | ||
|
||
/ { | ||
model = "Microchip MEC ASSY6941 MEC1753B-NSZ evaluation board"; | ||
compatible = "microchip,mec_assy6941-mec1653b_nsz"; | ||
|
||
chosen { | ||
zephyr,sram = &sram0; | ||
zephyr,flash = &flash0; | ||
zephyr,console = &uart1; | ||
rtimer-busy-wait-timer = &timer5; | ||
}; | ||
|
||
power-states { | ||
idle: idle { | ||
compatible = "zephyr,power-state"; | ||
power-state-name = "suspend-to-idle"; | ||
min-residency-us = <1000000>; | ||
}; | ||
|
||
suspend_to_ram: suspend_to_ram { | ||
compatible = "zephyr,power-state"; | ||
power-state-name = "suspend-to-ram"; | ||
min-residency-us = <2000000>; | ||
}; | ||
}; | ||
}; | ||
|
||
&cpu0 { | ||
clock-frequency = <96000000>; | ||
status = "okay"; | ||
cpu-power-states = <&idle &suspend_to_ram>; | ||
}; | ||
|
||
/* Disable ARM SysTick kernel timer driver */ | ||
&systick { | ||
status = "disabled"; | ||
}; | ||
|
||
/* Enable MCHP kernel timer driver using 32KHz RTOS timer and 1MHz basic timer */ | ||
&rtimer { | ||
status = "okay"; | ||
}; | ||
|
||
/* We chose 32-bit basic timer 5 for use by ktimer */ | ||
&timer5 { | ||
status = "okay"; | ||
}; | ||
|
||
&uart1 { | ||
compatible = "microchip,mec5-uart"; | ||
status = "okay"; | ||
clock-frequency = <1843200>; | ||
current-speed = <115200>; | ||
pinctrl-0 = <&uart1_tx_gpio170 &uart1_rx_gpio171>; | ||
pinctrl-names = "default"; | ||
}; |
25 changes: 25 additions & 0 deletions
25
boards/microchip/mec_assy6941/mec_assy6941_mec1653b_nsz.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright (c) 2025, Microchip Technology Inc. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
identifier: mec_assy6941/mec1653b_nsz | ||
name: MEC174X EVB ASSY 6941 with MEC1653B-NSZ | ||
type: mcu | ||
arch: arm | ||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
ram: 60 | ||
flash: 352 | ||
supported: | ||
- gpio | ||
- pinctrl | ||
testing: | ||
binaries: | ||
- spi_image.bin | ||
ignore_tags: | ||
- bluetooth | ||
- net | ||
vendor: microchip |
8 changes: 8 additions & 0 deletions
8
boards/microchip/mec_assy6941/mec_assy6941_mec1653b_nsz_defconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2025, Microchip Technology Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
CONFIG_GPIO=y | ||
CONFIG_SERIAL=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright (c) 2025 Microchip Technology Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* From Microchip MEC5 MEC174x and onwards includes one instance of the | ||
* BC-Link peripheral. | ||
* Include this file in the soc {} section in the relevant chip DTSI files | ||
*/ | ||
bclink0: bclink@4000cd00 { | ||
reg = <0x4000cd00 0x20>; | ||
interrupts = <96 3>, <97 3>; | ||
interrupt-names = "bcm_err", "bcm_done"; | ||
girqs = <18 7>, <18 6>; | ||
status = "disabled"; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2025 Microchip Technology Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* From Microchip MEC5 MEC174x and onwards include three instances of the | ||
* RC-ID peripheral. | ||
* Include this file in the soc {} section in the relevant chip DTSI files | ||
*/ | ||
rcid0: rcid@40001400 { | ||
reg = <0x40001400 0x80>; | ||
interrupts = <80 3>; | ||
girqs = <17 10>; | ||
status = "disabled"; | ||
}; | ||
|
||
rcid1: rcid@40001480 { | ||
reg = <0x40001480 0x80>; | ||
interrupts = <81 3>; | ||
girqs = <17 11>; | ||
status = "disabled"; | ||
}; | ||
|
||
rcid2: rcid@40001500 { | ||
reg = <0x40001500 0x80>; | ||
interrupts = <82 3>; | ||
girqs = <17 12>; | ||
status = "disabled"; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (c) 2025 Microchip Technology Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <arm/armv7-m.dtsi> | ||
|
||
#include "mec5.dtsi" | ||
|
||
/ { | ||
flash0: flash@b0000 { | ||
reg = <0x000b0000 0x58000>; | ||
}; | ||
|
||
sram0: memory@118000 { | ||
compatible = "mmio-sram"; | ||
reg = <0x00118000 0xf800>; | ||
}; | ||
|
||
soc { | ||
#include "mec5/mec5_dma_chan20.dtsi" | ||
#include "mec5/mec5_eeprom_8kb.dtsi" | ||
#include "mec5/mec5_i3c.dtsi" | ||
|
||
ps2_1: ps2@40009040 { | ||
reg = <0x40009040 0x40>; | ||
interrupts = <101 3>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "disabled"; | ||
}; | ||
|
||
kscan0: kscan@40009c00 { | ||
reg = <0x40009c00 0x18>; | ||
interrupts = <135 0>; | ||
status = "disabled"; | ||
}; | ||
|
||
uart2: uart@400f2c00 { | ||
reg = <0x400f2c00 0x400>; | ||
interrupts = <183 2>; | ||
clock-frequency = <1843200>; | ||
current-speed = <115200>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.