-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Add MAX78000 SoC and its EVKIT and FTHR boards. #83976
base: main
Are you sure you want to change the base?
Add MAX78000 SoC and its EVKIT and FTHR boards. #83976
Conversation
Hello @yasinustunerg, and thank you very much for your first pull request to the Zephyr project! |
82f8c5a
to
c2a6fd0
Compare
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
c2a6fd0
to
7b01182
Compare
/ { | ||
soc { | ||
pinctrl: pin-controller@40008000 { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
/omit-if-no-ref/ wakeup_p3_1: wakeup_p3_1 { | ||
pinmux = <MAX32_PINMUX(3, 1, AF2)>; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
clocks = <&gcr ADI_MAX32_CLOCK_BUS2 2>; | ||
clock-source = <ADI_MAX32_PRPH_CLK_SRC_IBRO>; | ||
prescaler = <1>; | ||
pwm { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-uniform spacing here and below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
soc/adi/max32/CMakeLists.txt
Outdated
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_include_directories(${ZEPHYR_BASE}/drivers) | ||
zephyr_include_directories(common) | ||
zephyr_sources(soc.c) | ||
|
||
zephyr_linker_sources_ifdef(CONFIG_SOC_FLASH_MAX32 SECTIONS flash.ld) | ||
zephyr_linker_sources_ifdef(CONFIG_SOC_MAX78002 SECTIONS max78002.ld) | ||
if (CONFIG_SOC_MAX78000 OR CONFIG_SOC_MAX78002) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (CONFIG_SOC_MAX78000 OR CONFIG_SOC_MAX78002) | |
if(CONFIG_SOC_MAX78000 OR CONFIG_SOC_MAX78002) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
soc/adi/max32/max7800x.ld
Outdated
* Copyright (c) 2024 Analog Devices, Inc. | ||
* Copyright (c) 2025 Analog Devices, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the file hasn't had any changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the file is changed so I changed the date. Do we need to change the date when only change the content of the file?
|
||
leds { | ||
compatible = "gpio-leds"; | ||
led1: led_1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-uniform spacing here and below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
}; | ||
pb_wakeup: pb_wakeup { | ||
gpios = <&gpio3 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW | ||
| MAX32_GPIO_VSEL_VDDIOH)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent is off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
leds { | ||
compatible = "gpio-leds"; | ||
led1: led_1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-uniform spacing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
7b01182
to
1b4fb8b
Compare
1b4fb8b
to
dbc27f8
Compare
Add MAX78000 SoC files to the hal_adi repository. Signed-off-by: Yasin Ustuner <[email protected]>
This commit adds MAX78000 SoC and dts files. Signed-off-by: Yasin Ustuner <[email protected]>
The SystemCoreClock variable must be placed in the '.shared' section for the MAX78000 and MAX78002 because the ARM core is responsible for changing the System Clock and updating the SystemCoreClock variable, and the RISC-V core knows what the System Clock frequency is through the shared variable. Signed-off-by: Yasin Ustuner <[email protected]>
This commit adds binding file for DMA slots. Signed-off-by: Yasin Ustuner <[email protected]>
This commit adds MAX78000EVKIT board. Signed-off-by: Yasin Ustuner <[email protected]>
Enable following tests for MAX78000EVKIT: - tests/drivers/adc/adc_api - tests/drivers/counter/counter_basic_api - tests/drivers/dma/chan_blen_transfer - tests/drivers/dma/loop_transfer - tests/drivers/gpio/gpio_basic_api - tests/drivers/pwm/pwm_api - tests/drivers/w1/w1_api Signed-off-by: Yasin Ustuner <[email protected]>
Enable following sample for MAX78000EVKIT: - samples/drivers/counter/alarm Signed-off-by: Yasin Ustuner <[email protected]>
This commit adds MAX78000FTHR board. Signed-off-by: Yasin Ustuner <[email protected]>
Enable the following tests for MAX78000FTHR: - tests/drivers/adc/adc_api - tests/drivers/counter/counter_basic_api - tests/drivers/dma/chan_blen_transfer - tests/drivers/dma/loop_transfer - tests/drivers/gpio/gpio_basic_api - tests/drivers/pwm/pwm_api - tests/drivers/spi/spi_loopback - tests/drivers/w1/w1_api Signed-off-by: Yasin Ustuner <[email protected]>
Enable following sample for MAX78000FTHR: - samples/drivers/counter/alarm Signed-off-by: Yasin Ustuner <[email protected]>
dbc27f8
to
f49ae0c
Compare
This PR adds MAX78000 and its EVKIT and FTHR boards.
Supported interfaces:
Signed-off-by: Yasin Ustuner [email protected]