-
Notifications
You must be signed in to change notification settings - Fork 29
variants: Introduce a digital-pins array to define digital pin #60
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
variants: Introduce a digital-pins array to define digital pin #60
Conversation
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,
Thanks alot for this PR!
The idea here does help in making the code a lot more manageable by using arrays rather than hard coded vairables for each gpio, however build seems to fail :
-- Found devicetree overlay: /home/dhruva/zephyrproject/zephyr/../modules/lib/Arduino-Zephyr-API/variants/arduino_nano_33_iot/arduino_nano_33_iot.overlay
unit address and first address in 'reg' (0x6a) don't match for /soc/sercom@42001800/atecc608a@15
unit address and first address in 'reg' (0xa) don't match for /soc/adc@42004000/channel@10
unit address and first address in 'reg' (0xb) don't match for /soc/adc@42004000/channel@11
unit address and first address in 'reg' (0x12) don't match for /soc/adc@42004000/channel@18
unit address and first address in 'reg' (0x13) don't match for /soc/adc@42004000/channel@19
and also a lot of DT expansion errors that are likely due to some syntax issues.
Kindly fix this
I created PR #63. |
The issue is not only in nano 33 iot but others as well like ble and ble sense:
Can you try building for each variant locally and check once? |
I couldn't reproduce this issue with ble and ble sense. |
My bad, I had an unclean zephyr repo. |
Just to be sure, I checked out to the latest zephyr release tag:
and I see the errors all over again, can you check? |
This PR is require fdea3c9a change. I think it should better to track latest develpmenent branch if this repository plans to be a part of zephyrrtos. |
The `d0-gpios` node format makes it difficult to handle digital pin configuration from DTS macros. Introduce the simple array `digital-pin-gpios` to define digital pin to GPIO port and pin mapping. Signed-off-by: TOKITA Hiroshi <[email protected]>
Checking a non-unique pin in digital-pin-gpios to keep consistency of configuration. Signed-off-by: TOKITA Hiroshi <[email protected]>
Update the document to follow the change in how to define digital pins. Signed-off-by: TOKITA Hiroshi <[email protected]>
d90e986
to
42a9e30
Compare
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.
LGTM Code wise, need to test once on hardware.
Sorry for the delay, Works on hardware too. merging, Thanks! |
The
d0-gpios
node format makes it difficult to handledigital pin configuration from DTS macros.
Introduce the simple array
digital-pins
instead ofg0-gpios
to define digital pinto GPIO port and pin mapping.