-
Notifications
You must be signed in to change notification settings - Fork 8k
dts: stm32u5: disable otghs-phy by default #97168
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
dts: stm32u5: disable otghs-phy by default #97168
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.
Selecting SYSCFG_OTG_HS_PHY_CLK_16MHz
in these board is related to the HSE clock being at 16MHz. For a new board that would have another HSE frequency, this value would need to be updated among the supported ones, or PHY source clock be changed (OTGHS_SEL(0)
).
It makes sense usbhs_phy
node is default disabled at SoC DTSI level, but I don't think the SoC DTSI can set a default clock-reference
value, it should remain at board DTS level.
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.
Why not both (clock-reference =
+ status = "okay"
)? 🙂
Making the property required: true
but assigning a default is arguably worse than not having required: true
: it doesn't cause build failures if one forgets to set the property.
I agree, the board should set both |
8ba4935
to
595fdff
Compare
Yeah that makes a lot more sense. 👍 |
Fixed this. |
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. I would however remove this sentence from the commit message. I think it may be a source of confusion.
The in-tree boards all use the same value for it, which is probably a
sensible default.
The clock-reference property is marked as required in the bindings file. Without these changes creating new boards based on stm32u5 either requires explicitly disabling otghs_phy or setting the clock-reference -property. Signed-off-by: Henrik Lindblom <[email protected]>
595fdff
to
fa4a4f3
Compare
|
The clock-reference property is marked as required in the bindings file. Without these changes creating new boards based on stm32u5 either requires explicitly disabling otghs_phy or setting the clock-reference -property. The in-tree boards all use the same value for it, which is probably a sensible default.