Skip to content

video: fix dcmipp devicetree #94400

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 2 commits into
base: main
Choose a base branch
from

Conversation

ngphibang
Copy link
Contributor

@ngphibang ngphibang commented Aug 12, 2025

  • Use normal child nodes for pipes: the pipe nodes are not video interfaces. Describe them as normal child nodes instead of using port/endpoint.
  • Another minor typo fix

The driver instance variable name is inst, not n.

Signed-off-by: Phi Bang Nguyen <[email protected]>
@zephyrbot zephyrbot added platform: STM32 ST Micro STM32 area: Video Video subsystem area: Shields Shields (add-on boards) labels Aug 12, 2025
@ngphibang ngphibang changed the title Fix dcmipp devicetree video: fix dcmipp devicetree Aug 12, 2025
The pipe nodes are not video interfaces. Describe them as normal child
nodes instead of using port/endpoint.

Signed-off-by: Phi Bang Nguyen <[email protected]>
@ngphibang ngphibang force-pushed the fix_dcmipp_devicetree branch from 9dcba5b to 1ea37c5 Compare August 12, 2025 11:32
Copy link

Comment on lines +24 to +32
pipes {
compatible = "st,stm32-dcmipp-pipes";
#address-cells = <1>;
#size-cells = <0>;

port@0 {
pipe_dump: pipe@0 {
reg = <0>;

endpoint {
remote-endpoint-label = "";
bus-type = <VIDEO_BUS_TYPE_PARALLEL>;
};
};
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

By reviewing #94081, it seems only n6 has multiple pipes and this one has just one pipe ? In this case, pipes {} node is not needed and we can remove compatible string too. Otherwise, need to add an if in the dcmipp driver when retrieving the pipe / pipes:

DT_FOREACH_CHILD_VARGS(DT_INST_CHILD(inst, pipes), DCMIPP_PIPE_INIT_DEFINE, inst);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shields Shields (add-on boards) area: Video Video subsystem platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants