-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Diodes PCIe switch support #5609
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This property can be used to delay deassertion of external fundamental reset, which may be useful for endpoints that require an extended time for internal setup to complete. Signed-off-by: Jonathan Bell <[email protected]>
pelwell
reviewed
Oct 26, 2023
tmp = readl(base + PCIE_MISC_HARD_PCIE_HARD_DEBUG); | ||
u32p_replace_bits(&tmp, 0, PCIE_MISC_HARD_PCIE_HARD_DEBUG_PERST_ASSERT_MASK); | ||
writel(tmp, base + PCIE_MISC_HARD_PCIE_HARD_DEBUG); | ||
} else |
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.
Extra braces here, to match the if
clause.
@@ -814,6 +814,8 @@ spi10_cs_pins: &spi10_cs_gpio1 {}; | |||
pciex1 = <&pciex1>, "status"; | |||
pciex1_gen = <&pciex1> , "max-link-speed:0"; | |||
pciex1_no_l0s = <&pciex1>, "aspm-no-l0s?"; | |||
pciex1_tperst_clk_ms = <&pciex1>, "brcm,tperst-clk-ms:0"; | |||
pcie_tperst_clk_ms = <&pciex1>, "brcm,tperst-clk-ms:0"; |
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.
We also need a line or two for each parameter in the top section of the README.
The RC has a feature that allows for manual control over the deassertion of the PERST# output pin, which allows the time between refclk active and reset deassert at the EP to be increased. Signed-off-by: Jonathan Bell <[email protected]>
The Pi 5 variant gets two parameters so that the CM4-compatible name will also work on Pi 5. Signed-off-by: Jonathan Bell <[email protected]>
RP1 supports it, but it's not a given that an arbitrary EP device on PCIE2 will. Migrate the property to the rp1_target fragment. Signed-off-by: Jonathan Bell <[email protected]>
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Oct 30, 2023
… the scaler See: raspberrypi/linux#5685 kernel: Diodes PCIe switch support See: raspberrypi/linux#5609
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Oct 30, 2023
… the scaler See: raspberrypi/linux#5685 kernel: Diodes PCIe switch support See: raspberrypi/linux#5609
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #5352 - trial fix for the huge reset time needed.