Skip to content
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

Adding NXP NavQPlus to detected boards #283

Merged
merged 4 commits into from
Mar 17, 2023
Merged

Conversation

steamfoundry
Copy link
Contributor

dding the NXP NavQPlus board:
Board documentation available here:
(Based on the the NXP i.MX 8M Plus SOC so the chip is already detected)

Future boards using the same SOC may need to edit the board name or detection line in bin/detect.py so it doesn't list it as an NXP NavQ based board

Tested on Ubuntu 22.04 built on top of NXP Yocto 5.15

Added for the Hovergames 3
Team McFly
2023
Instructions followed : https://learn.adafruit.com/adding-a-single-board-computer-to-platformdetect-for-blinka/overview

…the chip is already detected)

Future boards using the same SOC may need to edit the board name or detection line in bin/detect.py so it doesn't list it as an NXP NAVq board

Original NavQ board not available to I couldn't add it too.

Added for the Hovergames 3
Team Mcfly
2023

 Changes to be committed:
	modified:   adafruit_platformdetect/board.py
	modified:   adafruit_platformdetect/constants/boards.py
	modified:   bin/detect.py
@steamfoundry
Copy link
Contributor Author

@makermelissa Can you review this when you have time please?

Copy link
Contributor

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this looks good. Just a quick question about an extra space.

adafruit_platformdetect/board.py Outdated Show resolved Hide resolved
…ions when I add it into Blinka

 Changes to be committed:
	modified:   adafruit_platformdetect/board.py
	modified:   adafruit_platformdetect/chip.py
	modified:   adafruit_platformdetect/constants/chips.py
@makermelissa
Copy link
Contributor

Can you run pre-commit so that it fixes the formatting and the checks pass? Otherwise, the code itself looks good.

@steamfoundry
Copy link
Contributor Author

Sorry about that @makermelissa. I started looking at the Blinka code and found I need to detect this board separately. Otherwise some of the GPIO and UART numbers won't line up and I didn't want to risk breaking existing code.

I didn't realize Github auto-adds to the Pull Request when I pushed in the new commits.
Here is the results from running the test script.

user@imx8mpnavq:~/src/Adafruit_Python_PlatformDetect/bin$ ./detect.py 
Board Detection Test

Check that the Chip and Board IDs match your board and that this it is
correctly detecting whether or not it is a Linux board.

Chip id:  IMX8MP
Board id:  NXP_IMX8MPLUS_SOM

Linux Detection
---------------
Is this an embedded Linux system? True

Raspberry Pi Boards
-------------------
Is this a Pi 3B+? False
Is this a Pi 4B? False
Is this a 40-pin Raspberry Pi? False
Is this a Raspberry Pi Compute Module? False

Other Boards
-------------------
Is this a Siemens Simatic IOT2000 Gateway? False
Is this a 96boards board? False
Is this a BeagleBone board? False
Is this a Giant board? False
Is this a Coral Dev board? False
Is this a MaaXBoard? False
Is this a SiFive board?  False
Is this a PYNQ board? False
Is this a Rock Pi board? False
Is this a NanoPi board? False
Is this a Khadas VIM3 board? False
Is this a Clockwork Pi board? False
Is this a Seeed Board? False
Is this a UDOO board? False
Is this an ASUS Tinker board? False
Is this an STM32MP1 board? False
Is this a generic Linux PC? False
Is this an OS environment variable special case? False
NXP NavQ board detected.

@makermelissa
Copy link
Contributor

Awesome. Did you want me to wait before merging this?

@steamfoundry
Copy link
Contributor Author

No, if you don't see any issues it can be merged.
Thank you @makermelissa

@makermelissa makermelissa merged commit cf93300 into adafruit:main Mar 17, 2023
@steamfoundry
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants