-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
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:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
this can be safely re-assigned to ADI platform maintainers :) Still needs a second +1 though |
dts/arm/adi/max32/max78000.dtsi
Outdated
&timer0 { | ||
pwm { | ||
pinctrl-0 = <&tmr0a_ioa_p0_2>; | ||
pinctrl-names = "default"; | ||
}; | ||
}; | ||
|
||
&timer1 { | ||
pwm { | ||
pinctrl-0 = <&tmr1a_ioa_p0_14>; | ||
pinctrl-names = "default"; | ||
}; | ||
}; | ||
|
||
&timer2 { | ||
pwm { | ||
pinctrl-0 = <&tmr2_ioa_p0_26>; | ||
pinctrl-names = "default"; | ||
}; | ||
}; | ||
|
||
&timer3 { | ||
pwm { | ||
pinctrl-0 = <&tmr3a_ioa_p1_6>; | ||
pinctrl-names = "default"; | ||
}; | ||
}; |
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.
Hi @ozersa,
Removed, thanks.
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]>
56e351b
to
0a6b048
Compare
pinctrl-0 = <&owm_io_p0_6 &owm_pe_p0_7>; | ||
pinctrl-names = "default"; |
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.
Will be better if it be moved into board file as spi/i2c....
Also while moving this to the board you should change the owm pins to P0.18 & P0.19 due to P0.6 & P0.7 conflicts with SPI.
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.
Hi @ozersa ,
Done
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.
Thanks for moving them to the board files, it is better.
Regarding my pin check request, I just checked EvKit and FTHR schematic,
For MAX78000FTHR there is no P0.18 pin out, so it is need to be P0.6 & P0.7
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.
Fixed, thanks.
48eaa21
to
5714641
Compare
boards/adi/max78000evkit/board.cmake
Outdated
|
||
board_runner_args(openocd --cmd-pre-init "source [find interface/cmsis-dap.cfg]") | ||
board_runner_args(openocd --cmd-pre-init "source [find target/max78000.cfg]") | ||
board_runner_args(openocd --cmd-pre-init "allow_low_pwr_dbg") |
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.
Just a note requires final version ADI openocd been used for "allow_low_pwr_dbg" parameter.
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.
Removed
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]>
5714641
to
b45bf01
Compare
Hi @yasinustunerg! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
This PR adds MAX78000 and its EVKIT and FTHR boards.
Supported interfaces:
Signed-off-by: Yasin Ustuner [email protected]