Rockchip: youyeetoo yy3568: enable pci-e NVMe ssd#9877
Merged
Conversation
Contributor
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
patch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3568-yy3568.dts (1)
220-221:⚠️ Potential issue | 🟠 Major | ⚡ Quick win
pmic-resetnever selects the reset mux.
pinctrl-3points at&soc_slppin_gpio, whilesoc_slppin_rstis defined below and otherwise unused. That leaves thepmic-resetstate in GPIO mode instead ofRK_FUNC_2, so PMIC reset requests will not drive the intended reset function.🛠️ Proposed fix
- pinctrl-3 = <&soc_slppin_gpio>, <&rk817_slppin_rst>; + pinctrl-3 = <&soc_slppin_rst>, <&rk817_slppin_rst>;Also applies to: 553-557
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@patch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3568-yy3568.dts` around lines 220 - 221, pinctrl-3 currently references &soc_slppin_gpio instead of the reset mux, so the pmic-reset state remains in GPIO mode; update the device-tree entries that define the pmic-reset pin state (pinctrl-3) to reference &rk817_slppin_rst (which selects RK_FUNC_2) instead of &soc_slppin_gpio so PMIC reset requests use the reset mux; apply the same correction to the duplicate block around lines 553-557 where the same mistaken reference appears (look for symbols pinctrl-3, &soc_slppin_gpio, &rk817_slppin_rst, and pmic-reset).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@patch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3568-yy3568.dts`:
- Around line 126-143: The &gmac0 node currently uses phy-mode = "rgmii" with
clock_in_out = "output" but does not specify controller-side RGMII delays;
update the &gmac0 device tree node to either add appropriate tx_delay and
rx_delay properties (e.g., tx_delay = <...>; rx_delay = <...>) so the dwmac
controller applies the timing, or change phy-mode to the correct
rgmii-id/rgmii-rxid/rgmii-txid variant that indicates the PHY handles delays;
modify the properties in the &gmac0 node (phy-mode, add tx_delay/rx_delay)
accordingly to match where delays are implemented.
---
Outside diff comments:
In `@patch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3568-yy3568.dts`:
- Around line 220-221: pinctrl-3 currently references &soc_slppin_gpio instead
of the reset mux, so the pmic-reset state remains in GPIO mode; update the
device-tree entries that define the pmic-reset pin state (pinctrl-3) to
reference &rk817_slppin_rst (which selects RK_FUNC_2) instead of
&soc_slppin_gpio so PMIC reset requests use the reset mux; apply the same
correction to the duplicate block around lines 553-557 where the same mistaken
reference appears (look for symbols pinctrl-3, &soc_slppin_gpio,
&rk817_slppin_rst, and pmic-reset).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c55526ae-aeeb-430d-87b4-ad1cd4bbfd36
📒 Files selected for processing (4)
patch/kernel/archive/rockchip64-6.18/dt/rk3568-yy3568.dtspatch/kernel/archive/rockchip64-7.0/dt/rk3568-yy3568.dtspatch/kernel/archive/rockchip64-7.1/dt/rk3568-yy3568.dtspatch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3568-yy3568.dts
igorpecovnik
approved these changes
May 23, 2026
Contributor
|
✅ This PR has been reviewed and approved — all set for merge! |
5 tasks
This file contains hidden or 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
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.
Description
This PR replaces #9832 , applying the changes requested by https://github.com/Arthur97172
I keep this dedication here in recognition of Arthur's effort.
To the author, we can close the PR.
#9832
Fixed NVMe SSD detection issue on Youyeetoo YY3568.
tested on 7.0.9-edge-rockchip64 by @hqnicolas
https://paste.armbian.com/amimofemog
tested on 6.18.32-current-rockchip64 by @hqnicolas
https://paste.armbian.com/ekupotacut
Problem
rockchip_p3phy_rk3568_init: lock failed)Phy link never came up)Root Cause
Missing / incorrect configuration for:
Solution
pcie30_pwrandpcie_oepinctrlvcc3v3_pcie+pcie_oe_regulatorwith active-low)&combphy1,&pcie30phyand&pcie3x2with correct clocks, phy-supply and reset polaritystartup-delay-usfor power stabilityThis makes the M.2 NVMe SSD work reliably on YY3568.
Documentation summary for feature / change
How Has This Been Tested?
lspcishows NVMe device andlsblk/nvme listworksTest Configuration:
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Chores