Skip to content

Conversation

@Emil-Juhl
Copy link
Contributor

@Emil-Juhl Emil-Juhl commented Nov 10, 2025

The added stm32-adc properties in c21cdd8 ("dts: bindings: adc: stm32: add new properties to simplify the driver") were missing from adc2 within the stm32n6.dtsi.

Since adc1 and adc2 are almost identical, just copy the missing properties from adc1 which was fixed up as part of 5f0c63e ("dts: arm: st: fill out adc nodes with the new properties").

This fixes compilation when using adc2:

devicetree error: 'st,adc-internal-regulator' is marked as required in
'properties:' in [...]/zephyr/dts/bindings/adc/st,stm32n6-adc.yaml, but
does not appear in <Node /soc/adc@50022100 in
[...]/zephyr/dts/arm/st/n6/stm32n6.dtsi:456>

Fixes #99158

The added stm32-adc properties in c21cdd8 ("dts: bindings: adc:
stm32: add new properties to simplify the driver") were missing from adc2
within the stm32n6.dtsi.

Since adc1 and adc2 are almost identical, just copy the missing properties
from adc1 which was fixed up as part of 5f0c63e ("dts: arm: st: fill
out adc nodes with the new properties").

This fixes compilation when using adc2:

```
devicetree error: 'st,adc-internal-regulator' is marked as required in
'properties:' in [...]/zephyr/dts/bindings/adc/st,stm32n6-adc.yaml, but
does not appear in <Node /soc/adc@50022100 in
[...]/zephyr/dts/arm/st/n6/stm32n6.dtsi:456>
```

Signed-off-by: Emil Dahl Juhl <emil@s16s.ai>
@sonarqubecloud
Copy link

@erwango
Copy link
Member

erwango commented Nov 10, 2025

@cfriedt, @jhedberg Not a release blocker per se, but we'll need it in v4.3.x eventually. Do you prefer it as a backport ?

@Emil-Juhl In any case, a mtaching issue will be required. Would you mind creating it ?

@Emil-Juhl
Copy link
Contributor Author

@Emil-Juhl In any case, a mtaching issue will be required. Would you mind creating it ?

@erwango never done that before, but gave it a shot: #99158

@jhedberg
Copy link
Member

Since this is fixing a build failure, it could be argued that the referenced issue can be classified as a release blocker

@jhedberg
Copy link
Member

Is there some CI test case that fails to build because of this?

Copy link
Contributor

@gautierg-st gautierg-st left a comment

Choose a reason for hiding this comment

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

Oops, my bad, I missed this ADC somehow when adding the new properties. Thanks for the fix.

@erwango
Copy link
Member

erwango commented Nov 12, 2025

Is there some CI test case that fails to build because of this?

I don"t think so, but compilation will break on users trying to enable adc2 (which is not done in the tree today).
So, this will remain a oot issue for v4.3.0.

@cfriedt cfriedt added this to the v4.3.0 milestone Nov 12, 2025
@cfriedt cfriedt added bug The issue is a bug, or the PR is fixing a bug Release Blocker Use this label for justified release blockers labels Nov 12, 2025
@cfriedt
Copy link
Member

cfriedt commented Nov 12, 2025

Added the missing bug label and milestone.

I think this can safely be categorized as a release blocker; the platform was added in this release and the linked issue shows it would be broken.

Also, since the fix is so extremely localized to one board's dts, it's low risk.

I'm fine to merge it.

@cfriedt cfriedt merged commit 598d03c into zephyrproject-rtos:main Nov 12, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards/SoCs bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 Release Blocker Use this label for justified release blockers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stm32n6 compilation fails when using adc2

7 participants