-
Notifications
You must be signed in to change notification settings - Fork 7.3k
dts: arm: st: l4: add DCMI node into DTSI file #80199
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
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.
Thanks for this contribution.
See comment about node location.
Also, dts is used as the source of trust of what is actually supported by drivers. Have you been able to verify this is actually working ?
Then, if possible could you enable in an in-tree board and a related sample so it could be at least comiled and possibily run by CI regularly ?
dts/arm/st/l4/stm32l4.dtsi
Outdated
dcmi: dcmi@50050000 { | ||
compatible = "st,stm32-dcmi"; | ||
reg = <0x50050000 0x400>; | ||
interrupts = <85 0>; | ||
interrupt-names = "dcmi"; | ||
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00004000>; | ||
status = "disabled"; | ||
}; |
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.
This node is not present in all STM32L4 series so, it should be added only in impacted series dtsi files: stm32l496.dtsi and stm32l4p5.dtsi (which will then benefit to all .dtsi including those).
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.
Will do!
Where did you see this?
I looked at the datasheets (after your comment) and saw it in STM32L496xx, STM32L4A6xG, STM32L4P5xx, and STM32L4Q5xx. Then I saw that stm32l4a6.dtsi includes stm32l496.dtsi and stm32l4q5.dtsi includes stm32l4p5.dtsi. How did you deduce that it's only needed in stm32l496.dtsi and stm32l4p5.dtsi so quickly?
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.
I've looked for definitions in following files: https://github.com/zephyrproject-rtos/hal_stm32/tree/main/stm32cube/stm32l4xx/soc
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.
I've pushed the changes.
Just so I understand since I'm pretty new to zephyr - I looked at the files you pointed to but I do see DCMI definitions in other files such as stm32l4s5xx.h.
dcd133a
to
aa5ca08
Compare
Add the DCMI node into stm32l4p5.dtsi and stm32l496.dtsi Signed-off-by: Yishai Jaffe <[email protected]>
aa5ca08
to
1119e56
Compare
Regarding a sample and the CI - |
@yishai1999 See #77949 |
I wish it could be so simple, but unfortunately not. There is a whole bunch of code that needs to be validated in between. |
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 in terms of DTS definition
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Add the DCMI node into stm32l4.dtsi