-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/kw41z*: add common configuration and use it with existing kw41z boards #11044
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
Conversation
Briefly tested |
e4e019b
to
35ebf10
Compare
35ebf10
to
36d5676
Compare
36d5676
to
c01cd29
Compare
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.
In general this looks good but I have problems with the common periph_conf files.
Unless wired internally to an unboard driver i2c, uart and spi depends on external pins, these are not the same for every board.
Eg for usb-k241z your are defining two spi. SPI1 is actually only internally connected to the K22 on board and SPI0 is not exposed or connected to any spi interface. The i2c interface for the same board isn't exposed either, only internally connected to the on board K22.
If we look at frdm-k241z many more pins are exposed and therefore options to connect I2C, UART or SPI devices.
IMO in periph_conf_common.h you can leave the common clock configuration but everything else need its separate configuration file.
PS: also it would be interesting to add the option of having two CPU's on a same board, but that is a completely different subject.
I checked again and you are right. I'll update this PR with a new common default SPI configuration, only used by phynode and usb-kw41z. frdm-kw41z will use it's own spi configuration (with 2 spi configured). |
1194dab
to
6d0422b
Compare
@fjmolinas, I reworked this PR following your suggestions. It should be much cleaner now. |
@aabadie I'm good with the changes. I'll test on frdm-kw41z & usb-kw41z (all tests) before giving ACK. |
34e9cad
to
d846e36
Compare
@aabadie I tested it on usb-kw41z and frdm-kw41z. In general most expected to pass tests are succeeding (except periph_timer witch is fixed in masters). |
d846e36
to
30ea848
Compare
Thanks @fjmolinas, I rebased the branch and fixed some conflicts. |
It seems like Murdock is stuck since yesterday. @kaspar030 any idea what's going on ? |
30ea848
to
8bd320b
Compare
@fjmolinas, do you finally ACK this one ? |
@aabadie Sorry fo the delay, I wanted to perform a final round of testing. There are a bunch of failing tests all related to wrong behaviour with xtimer, but this has been flagged in other ISSUES or PR so ACK. |
Contribution description
This PR is factorizing boards configuration of frdm-kw41z, usb-kw41z and phynode-kw41z boards. There are sharing the same clock/uart/spi/i2c configurations so this PR is removing a lot of duplicated code.
Testing procedure
frdm-kw41z, usb-kw41z, phynode-kw41z should still work.
Issues/PRs references
Should help with PR adding support of kw41z boards (#10846 for example).