Skip to content

mainline: bump to 7.1-rc6#9922

Merged
EvilOlaf merged 2 commits into
armbian:mainfrom
EvilOlaf:7.1-rc6
Jun 1, 2026
Merged

mainline: bump to 7.1-rc6#9922
EvilOlaf merged 2 commits into
armbian:mainfrom
EvilOlaf:7.1-rc6

Conversation

@EvilOlaf
Copy link
Copy Markdown
Member

@EvilOlaf EvilOlaf commented Jun 1, 2026

Description

How Has This Been Tested?

  • build rockchip64
  • build meson64

Checklist:

Please delete options that are not relevant.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

Summary by CodeRabbit

  • New Features

    • Added audio support for NanoPi M4V2 with RT5651 codec integration.
    • Added configurable Rockchip PCIe bus-scan delay via kernel parameter.
    • Added USB2 PHY support for RK3528 SoC.
  • Bug Fixes

    • Fixed USB Type-C power delivery capabilities registration handling.
    • Fixed RK3528 USB2 PHY delayed-work cleanup to prevent resource leaks.
  • Chores

    • Updated mainline kernel version to 7.1-rc6.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates kernel sources and patches for Armbian's Rockchip-based boards: bumps the mainline kernel release candidate to v7.1-rc6, adds RT5651 audio support for NanoPi M4V2, configures PCIe bus-scan delays, fixes USB Type-C capability registration edge cases, and introduces RK3528 USB2 PHY support with proper cleanup.

Changes

Rockchip Kernel Patches and Configuration

Layer / File(s) Summary
Kernel version bump to v7.1-rc6
config/sources/mainline-kernel.conf.sh
Updates default KERNELBRANCH from tag:v7.1-rc3 to tag:v7.1-rc6 and renames the Torvalds hook to target the new release-candidate tag.
NanoPi M4V2 RT5651 audio support
patch/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch
Introduces new simple-audio-card node (rt5651-sound) wiring CPU DAI to &i2s1 and codec to new &rt5651 device under &i2c1; enables/configures &hdmi_sound, &i2s1 channel counts, &i2s2, and &spdif with I2C timings; updates Kconfig RT5651 prompt description.
Rockchip PCIe host bus-scan delay
patch/kernel/archive/rockchip64-7.1/rk3399-rp64-pcie-Reimplement-rockchip-PCIe-bus-scan-delay.patch
Adds pcie_rockchip_host.bus_scan_delay module parameter (with kernel-parameters.txt documentation), DT bus-scan-delay-ms property parsing, and probe-path msleep() when delay > 0; extends struct rockchip_pcie with bus_scan_delay field.
USB Type-C TCPM registration fixes
patch/kernel/archive/rockchip64-7.1/rk3399-usbc-*.patch
Reverts prior tcpm_register_source_caps() unregister logic, fixes PD capability re-registration by unregistering existing capabilities before new ones in both source and sink paths, adds explicit altmode unregister-before-register in tcpm_register_partner_altmodes(), and updates DisplayPort patch hunk header offsets.
RK3528 USB2 PHY support and cleanup
patch/kernel/archive/rockchip64-7.1/rk3528-*.patch
Adds RK3528 USB2 PHY support via separate phy_base regmap (replacing GRF-only approach), introduces clkout_ctl_phy configuration for per-SoC clock-output routing, updates probe logic to initialize regmaps conditionally, and adds devm-managed delayed-work cleanup handlers for OTG/peripheral and host modes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • armbian/build#9828: Both PRs modify USB Type-C TCPM patch registration logic for tcpm_register_source_caps() and tcpm_register_partner_altmodes() with similar unregister/cleanup fixes.
  • armbian/build#9587: Both PRs add Rockchip PCIe host bus_scan_delay module parameter and device-tree property implementation in the same driver.
  • armbian/build#9618: Both PRs update config/sources/mainline-kernel.conf.sh to retarget release-candidate tags (this PR: v7.1-rc6, related PR: v7.0-rc6).

Suggested reviewers

  • joekhoobyar
  • brentr
  • prahal
  • rpardini
  • lanefu

Poem

🐰 A kernel grows, release by release,
Where Rockchip audio finds its peace,
PCIe delays and USB types align,
RK3528 blooms on the line,
No more duplicate sysfs, cleanup divine!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title directly and accurately reflects the main change: bumping the mainline kernel version from 7.1-rc3 to 7.1-rc6.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added 08 Milestone: Third quarter release size/medium PR with more then 50 and less then 250 lines Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... labels Jun 1, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (4)
patch/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch (3)

113-119: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Duplicate &hdmi_sound node will cause device-tree issues.

Lines 113-115 show the existing &hdmi_sound { status = "okay"; } node in context, then lines 117-119 add an identical duplicate. This will either cause a DTC warning/error or result in unpredictable merge behavior depending on the device-tree compiler version.

Remove the duplicate addition.

Proposed fix
 &hdmi_sound {
 	status = "okay";
 };
-
-&hdmi_sound {
-	status = "okay";
-};
🤖 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/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch`
around lines 113 - 119, There is a duplicate device-tree node for &hdmi_sound
being added; remove the redundant block so only a single &hdmi_sound { status =
"okay"; } remains (delete the added duplicate &hdmi_sound {...} stanza
introduced in the patch) to avoid DTC warnings/errors and merge conflicts when
compiling the device tree.

163-167: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Wrong properties: &spdif node has I2C timing properties.

The i2c-scl-rising-time-ns and i2c-scl-falling-time-ns properties are specific to I2C controllers and are not valid for an SPDIF interface. This appears to be a copy-paste error from the I2C configuration.

Either remove these properties or replace them with appropriate SPDIF configuration.

Proposed fix
 &spdif {
-	i2c-scl-rising-time-ns = <450>;
-	i2c-scl-falling-time-ns = <15>;
 	status = "okay";
 };
🤖 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/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch`
around lines 163 - 167, The &spdif node incorrectly contains I2C-specific
properties i2c-scl-rising-time-ns and i2c-scl-falling-time-ns; remove those two
properties from the &spdif node (or if SPDIF-specific settings are required,
replace them with valid SPDIF properties such as status, compatible, clocks,
clock-names, or phandle references) so the SPDIF node only contains valid SPDIF
configuration and status = "okay".

141-153: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Duplicate &i2s2 node will cause device-tree issues.

Lines 141-143 show the existing &i2s2 { status = "okay"; } in context, then lines 151-153 add an identical duplicate. Same issue as the &hdmi_sound duplication.

Remove the duplicate &i2s2 addition.

Proposed fix
 &i2s1 {
 	rockchip,playback-channels = <8>;
 	rockchip,capture-channels = <8>;
 	status = "okay";
 };
-
-&i2s2 {
-	status = "okay";
-};
🤖 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/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch`
around lines 141 - 153, The patch introduces a duplicate &i2s2 node which will
break the device tree; remove the second &i2s2 { status = "okay"; } block so
only a single &i2s2 node remains, and keep the new &i2s1 block
(rockchip,playback-channels/capture-channels and status) as the intended
addition; ensure there is no duplicate &i2s2 entry after your edit.
patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-altmodes-displayport-Respect-DP_CAP_RECEPT.patch (1)

91-94: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Typo in user-facing warning message: "compatiple" → "compatible".

The dev_warn message contains a typo that will appear in kernel logs.

📝 Proposed fix
-	/* Make sure we have compatiple pin configurations */
+	/* Make sure we have compatible pin configurations */
🤖 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/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-altmodes-displayport-Respect-DP_CAP_RECEPT.patch`
around lines 91 - 94, The dev_warn message in the Alt-DP compatibility check
contains a typo ("compatiple"); update the warning string in the block that
checks if (!(port_pins & alt_pins)) so it reads "compatible" instead of
"compatiple" — modify the dev_warn call that references alt->dev and prints
port->vdo, alt->vdo, port_pins, alt_pins to correct the spelling in the
user-facing message.
🧹 Nitpick comments (1)
patch/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch (1)

129-137: 💤 Low value

Minor: Remove commented-out debug line.

The // spk-con-gpio line at line 135 appears to be a leftover from development. Either enable it if needed or remove it to keep the device-tree clean.

🤖 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/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch`
around lines 129 - 137, Remove the leftover commented debug line inside the
rt5651 node: delete the "// spk-con-gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;"
entry within the rt5651: rt5651@1a block (or, if the speaker control is
required, replace it with a valid, uncommented property using the correct DTS
property name spk-con-gpio and proper syntax). Ensure only the intended
properties (compatible, reg, clocks, clock-names, hp-det-gpio, `#sound-dai-cells`)
remain in the rt5651 node.
🤖 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.

Outside diff comments:
In
`@patch/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch`:
- Around line 113-119: There is a duplicate device-tree node for &hdmi_sound
being added; remove the redundant block so only a single &hdmi_sound { status =
"okay"; } remains (delete the added duplicate &hdmi_sound {...} stanza
introduced in the patch) to avoid DTC warnings/errors and merge conflicts when
compiling the device tree.
- Around line 163-167: The &spdif node incorrectly contains I2C-specific
properties i2c-scl-rising-time-ns and i2c-scl-falling-time-ns; remove those two
properties from the &spdif node (or if SPDIF-specific settings are required,
replace them with valid SPDIF properties such as status, compatible, clocks,
clock-names, or phandle references) so the SPDIF node only contains valid SPDIF
configuration and status = "okay".
- Around line 141-153: The patch introduces a duplicate &i2s2 node which will
break the device tree; remove the second &i2s2 { status = "okay"; } block so
only a single &i2s2 node remains, and keep the new &i2s1 block
(rockchip,playback-channels/capture-channels and status) as the intended
addition; ensure there is no duplicate &i2s2 entry after your edit.

In
`@patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-altmodes-displayport-Respect-DP_CAP_RECEPT.patch`:
- Around line 91-94: The dev_warn message in the Alt-DP compatibility check
contains a typo ("compatiple"); update the warning string in the block that
checks if (!(port_pins & alt_pins)) so it reads "compatible" instead of
"compatiple" — modify the dev_warn call that references alt->dev and prints
port->vdo, alt->vdo, port_pins, alt_pins to correct the spelling in the
user-facing message.

---

Nitpick comments:
In
`@patch/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch`:
- Around line 129-137: Remove the leftover commented debug line inside the
rt5651 node: delete the "// spk-con-gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;"
entry within the rt5651: rt5651@1a block (or, if the speaker control is
required, replace it with a valid, uncommented property using the correct DTS
property name spk-con-gpio and proper syntax). Ensure only the intended
properties (compatible, reg, clocks, clock-names, hp-det-gpio, `#sound-dai-cells`)
remain in the rt5651 node.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c12c8cd4-11b3-498d-9109-d3dfb73cc5da

📥 Commits

Reviewing files that changed from the base of the PR and between 6b33a05 and 3584dc0.

📒 Files selected for processing (9)
  • config/sources/mainline-kernel.conf.sh
  • patch/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch
  • patch/kernel/archive/rockchip64-7.1/rk3399-rp64-pcie-Reimplement-rockchip-PCIe-bus-scan-delay.patch
  • patch/kernel/archive/rockchip64-7.1/rk3399-usbc-Revert-usb-typec-tcpm-unregister-existing-source-cap.patch
  • patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-altmodes-displayport-Respect-DP_CAP_RECEPT.patch
  • patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-tcpm-Fix-PD-devices-capabilities-registrat.patch
  • patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-tcpm-Unregister-altmodes-before-registerin.patch
  • patch/kernel/archive/rockchip64-7.1/rk3528-10-phy-rockchip-inno-usb2-Add-support-for-RK3528.patch
  • patch/kernel/archive/rockchip64-7.1/rk3528-13-phy-rockchip-inno-usb2-fix-otg-timer-cleanup.patch

@github-actions github-actions Bot added the Ready to merge Reviewed, tested and ready for merge label Jun 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

✅ This PR has been reviewed and approved — all set for merge!

@github-actions github-actions Bot removed the Needs review Seeking for review label Jun 1, 2026
@EvilOlaf EvilOlaf merged commit 6ee0fa1 into armbian:main Jun 1, 2026
14 checks passed
@EvilOlaf EvilOlaf deleted the 7.1-rc6 branch June 1, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

08 Milestone: Third quarter release Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... Ready to merge Reviewed, tested and ready for merge size/medium PR with more then 50 and less then 250 lines

Development

Successfully merging this pull request may close these issues.

2 participants