Skip to contentSkip to conversation

Searching for forum for help on dts devel for RK3568 board

DISCUSSION Erik Beck 2 participants 5 messages Jun 1, 2025 – Jun 3, 2025 Arm Rockchip

lore
Share & tools
lore

Erik Beck

author
#0 lore raw

Hi all,

I am working on initial support for an RK3568 board, the LinkStar H68K-1421v1. I've made some progress, but can't get past turning on one of the two PCIe3 Host bridges (pcie3x1 pcie@fe270000) without breaking the boot.

Is this the right location to ask for help? If not, where might be?

Thanks,

Erik

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

maintainer
#1 lore raw

Hi Erik,

Am Sonntag, 1. Juni 2025, 22:39:01 Mitteleuropäische Sommerzeit schrieb Erik Beck:

Quoted 6 lines

I am working on initial support for an RK3568 board, the LinkStar H68K-1421v1. I've made some progress, but can't get past turning on one of the two PCIe3 Host bridges (pcie3x1 pcie@fe270000) without breaking the boot.

Is this the right location to ask for help? If not, where might be?

The mailinglist mostly has patches on it, so I don't really know if people are expecting non-patch mails.

If in doubt the #linux-rockchip channel on the libera.chat IRC network [0] might help more. (people in different timezones, so probably no immediate answers)

For the multi-pci case I guess you could start by looking at other rk3568 board doing similar things, like the Qnap-TS433 [1], Radxa E25 [2] or Nanopi-R5S [3].

Generally board designers often follow reference designs, so things might be similar.

Similarly, you might want to push your current in progress work on some github thing, so people can take a look.

It also looks like the H68KV2 variant of the device has schematics available as linked from the bottom of [4], not sure how that relates to your device though.

Heiko

[0] https://libera.chat/
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
[4] https://github.com/Seeed-Studio/wiki-documents/blob/docusaurus-version/docs/Network/RK_Devices/H68K_V2/H68KV2_install_system.md

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

author
#2 lore raw

Hi Heiko,

Thanks for the fast response!

I'll give libera.chat a try.

I've been looking at the schematics, and they have helped somewhat, but not getting me unstuck at the moment. The V2 should be pretty similar to the V1, but there might be an important difference I'm overlooking.

I'll give a look at those boards you mentioned. I've been using the BPI-R2-Pro for inspiration. It has also helped, but there might be something in the other boards relating to the PCIe bus that might help.

I've been putting the work up onto github; current branch is:
https://github.com/TahomaSoft/openwrt-openwrt/tree/ExpDev-WIP7

Direct link to the DTS is:
https://github.com/TahomaSoft/openwrt-openwrt/blob/ExpDev-WIP7/target/linux/rockchip/patches-6.6/036-arm64-dts-rockchip-linkstar-minimal.patch

Thank you/Danke,

Erik
~~~

Quoted 52 lines · On Sun, 01 Jun 2025 23:11:56 +0200 Heiko Stübner <[email protected]> wrote:

Hi Erik,

Am Sonntag, 1. Juni 2025, 22:39:01 Mitteleuropäische Sommerzeit schrieb Erik Beck:

Quoted 7 lines

I am working on initial support for an RK3568 board, the LinkStar H68K-1421v1. I've made some progress, but can't get past turning on one of the two PCIe3 Host bridges (pcie3x1 pcie@fe270000) without breaking the boot.

Is this the right location to ask for help? If not, where might be?

The mailinglist mostly has patches on it, so I don't really know if people are expecting non-patch mails.

If in doubt the #linux-rockchip channel on the libera.chat IRC network [0] might help more. (people in different timezones, so probably no immediate answers)

For the multi-pci case I guess you could start by looking at other rk3568 board doing similar things, like the Qnap-TS433 [1], Radxa E25
[2] or Nanopi-R5S [3].

Generally board designers often follow reference designs, so things might be similar.

Similarly, you might want to push your current in progress work on some github thing, so people can take a look.

It also looks like the H68KV2 variant of the device has schematics available as linked from the bottom of [4], not sure how that relates to your device though.

Heiko

[0] https://libera.chat/
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
[3]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
[4]
https://github.com/Seeed-Studio/wiki-documents/blob/docusaurus-version/docs/Network/RK_Devices/H68K_V2/H68KV2_install_system.md

Quoted 4 lines

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

maintainer
#3 lore raw

Hi Erik,

Am Sonntag, 1. Juni 2025, 23:52:14 Mitteleuropäische Sommerzeit schrieb Erik Beck:

Quoted 14 lines

Hi Heiko,

Thanks for the fast response!

I'll give libera.chat a try.

I've been looking at the schematics, and they have helped somewhat, but not getting me unstuck at the moment. The V2 should be pretty similar to the V1, but there might be an important difference I'm overlooking.

I'll give a look at those boards you mentioned. I've been using the BPI-R2-Pro for inspiration. It has also helped, but there might be something in the other boards relating to the PCIe bus that might help.

Quoted 5 lines

I've been putting the work up onto github; current branch is:
https://github.com/TahomaSoft/openwrt-openwrt/tree/ExpDev-WIP7

Direct link to the DTS is:
https://github.com/TahomaSoft/openwrt-openwrt/blob/ExpDev-WIP7/target/linux/rockchip/patches-6.6/036-arm64-dts-rockchip-linkstar-minimal.patch

The the big neon sign on first glance is the missing lane-limitation.

pcie3x2 and pcie3x1 share their lanes, so depending on the board wiring you can either do pcie3x2 with 2 lanes, or both with 1 lane each.

See the

	num-lanes = <1>;

lines in the devicetrees using both pcie controllers.

Heiko

Quoted 65 lines

Thank you/Danke,

Erik
~~~

Quoted 56 lines · On Sun, 01 Jun 2025 23:11:56 +0200 Heiko Stübner <[email protected]> wrote:

Hi Erik,

Am Sonntag, 1. Juni 2025, 22:39:01 Mitteleuropäische Sommerzeit schrieb Erik Beck:

Quoted 7 lines

I am working on initial support for an RK3568 board, the LinkStar H68K-1421v1. I've made some progress, but can't get past turning on one of the two PCIe3 Host bridges (pcie3x1 pcie@fe270000) without breaking the boot.

Is this the right location to ask for help? If not, where might be?

The mailinglist mostly has patches on it, so I don't really know if people are expecting non-patch mails.

If in doubt the #linux-rockchip channel on the libera.chat IRC network [0] might help more. (people in different timezones, so probably no immediate answers)

For the multi-pci case I guess you could start by looking at other rk3568 board doing similar things, like the Qnap-TS433 [1], Radxa E25
[2] or Nanopi-R5S [3].

Generally board designers often follow reference designs, so things might be similar.

Similarly, you might want to push your current in progress work on some github thing, so people can take a look.

It also looks like the H68KV2 variant of the device has schematics available as linked from the bottom of [4], not sure how that relates to your device though.

Heiko

[0] https://libera.chat/
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
[3]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
[4]
https://github.com/Seeed-Studio/wiki-documents/blob/docusaurus-version/docs/Network/RK_Devices/H68K_V2/H68KV2_install_system.md

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

author
#4 lore raw

Hi Heiko,

You were right about the num-lanes = <1> for each pcie3!

Made that change to the dts and now both pcie3 bridges come up along with the pcie2 bridge!

Next step is for me to figure out why the rtl8125-based chips attached to each pcie3 bridge don't come up like the mt7921e "card" attached to the pcie2 bridge.

Thank you for your help!

Erik

Quoted 33 lines · On Mon, 02 Jun 2025 09:10:12 +0200 Heiko Stübner <[email protected]> wrote:

Hi Erik,

Am Sonntag, 1. Juni 2025, 23:52:14 Mitteleuropäische Sommerzeit schrieb Erik Beck:

Quoted 16 lines

Hi Heiko,

Thanks for the fast response!

I'll give libera.chat a try.

I've been looking at the schematics, and they have helped somewhat, but not getting me unstuck at the moment. The V2 should be pretty similar to the V1, but there might be an important difference I'm overlooking.

I'll give a look at those boards you mentioned. I've been using the BPI-R2-Pro for inspiration. It has also helped, but there might be something in the other boards relating to the PCIe bus that might help.

Quoted 6 lines

I've been putting the work up onto github; current branch is:
https://github.com/TahomaSoft/openwrt-openwrt/tree/ExpDev-WIP7

Direct link to the DTS is:
https://github.com/TahomaSoft/openwrt-openwrt/blob/ExpDev-WIP7/target/linux/rockchip/patches-6.6/036-arm64-dts-rockchip-linkstar-minimal.patch

The the big neon sign on first glance is the missing lane-limitation.

pcie3x2 and pcie3x1 share their lanes, so depending on the board wiring you can either do pcie3x2 with 2 lanes, or both with 1 lane each.

Quoted 77 lines

See the

	num-lanes = <1>;

lines in the devicetrees using both pcie controllers.

Heiko

Quoted 65 lines

Thank you/Danke,

Erik
~~~

Quoted 56 lines · On Sun, 01 Jun 2025 23:11:56 +0200 Heiko Stübner <[email protected]> wrote:

Hi Erik,

Am Sonntag, 1. Juni 2025, 22:39:01 Mitteleuropäische Sommerzeit schrieb Erik Beck:

Quoted 7 lines

I am working on initial support for an RK3568 board, the LinkStar H68K-1421v1. I've made some progress, but can't get past turning on one of the two PCIe3 Host bridges (pcie3x1 pcie@fe270000) without breaking the boot.

Is this the right location to ask for help? If not, where might be?

The mailinglist mostly has patches on it, so I don't really know if people are expecting non-patch mails.

If in doubt the #linux-rockchip channel on the libera.chat IRC network [0] might help more. (people in different timezones, so probably no immediate answers)

For the multi-pci case I guess you could start by looking at other rk3568 board doing similar things, like the Qnap-TS433 [1], Radxa E25 [2] or Nanopi-R5S [3].

Generally board designers often follow reference designs, so things might be similar.

Similarly, you might want to push your current in progress work on some github thing, so people can take a look.

It also looks like the H68KV2 variant of the device has schematics available as linked from the bottom of [4], not sure how that relates to your device though.

Heiko

[0] https://libera.chat/
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
[3]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
[4]
https://github.com/Seeed-Studio/wiki-documents/blob/docusaurus-version/docs/Network/RK_Devices/H68K_V2/H68KV2_install_system.md

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip