Skip to content

Initial PocketBeagle 2 MSPM0L1105 support #93716

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Ayush1325
Copy link
Member

PocketBeagle 2 contains an MSPM0L1105 soc which emulates ADC and EEPROM.
It is connected to the AM62xx soc over I2C and SPI.

The initial support just allows building the minimal zephyr sample. Due
to the constraints and the purpose of the SOC, most peripherals should
not be enabled in the main dts.

- Not all MSPM0L series socs seem to have MPU. After a glance at the TI
  website for features, only MSPM0L222x class socs seem to have MPU.

Signed-off-by: Ayush Singh <[email protected]>
@zephyrbot zephyrbot added the platform: BeagleBoard BeagleBoard.org Foundation label Jul 25, 2025
@Ayush1325 Ayush1325 changed the title Initial PocketBeagle 2 MSPML1105 support Initial PocketBeagle 2 MSPM0L1105 support Jul 25, 2025
@Ayush1325
Copy link
Member Author

Ayush1325 commented Jul 25, 2025

Since it also makes some changed that affect other mspm0 soc. cc @parthitce

Copy link
Member

@parthitce parthitce left a comment

Choose a reason for hiding this comment

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

Thanks for your efforts!

@@ -37,6 +37,11 @@
#define MSPM0_PLL_ENABLED 1
#endif

#if !(CONFIG_SOC_MSPM0L1105 || CONFIG_SOC_MSPM0L1106 || CONFIG_SOC_MSPM0L1303 || \
Copy link
Member

Choose a reason for hiding this comment

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

IMO this needs to be configured via dts node status or presence.

Copy link
Member Author

@Ayush1325 Ayush1325 Jul 25, 2025

Choose a reason for hiding this comment

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

I have now made it dependent on hfxt node like pll and mfpclk are.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, something like that. This way hardware presence is always part of dts.

- The function DL_SYSCTL_setHFCLKSourceHFCLKIN is not defined for
  MSPM0L11XX and MSPM0L13XX.

Signed-off-by: Ayush Singh <[email protected]>
PocketBeagle 2 contains an MSPM0L1105 soc which emulates ADC and EEPROM.
It is connected to the AM62xx soc over I2C and SPI.

The initial support just allows building the minimal zephyr sample. Due
to the constraints and the purpose of the SOC, most peripherals should
not be enabled in the main dts.

Signed-off-by: Ayush Singh <[email protected]>
@Ayush1325
Copy link
Member Author

Not really sure where I should select CPU_HAS_ARM_MPU. Maybe I can define something like SOC_MSPM0L222X in the Kconfig and do the mpu selection on it?

Copy link

@parthitce
Copy link
Member

Not really sure where I should select CPU_HAS_ARM_MPU. Maybe I can define something like SOC_MSPM0L222X in the Kconfig and do the mpu selection on it?

If not the whole series, then then only placeholder IMO is respective SoC in Kconfig.soc.

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

Successfully merging this pull request may close these issues.

4 participants