Jump to content

[Armbian build PR] - Fixed issue with NVMe identification in rk3399-rock-pi-4.dts


RSS Bot

Recommended Posts

Description

During the investigation of the issue, was found that the rk3399-rock-pi-4.dtsi file had undergone significant changes, which created a mess in the code during the patch application and unstable pcie operation.

&pcie0 {
ep-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
num-lanes = <4>;
max-link-speed = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pcie_clkreqnb_cpm>;
vpcie12v-supply = <&vcc12v_dcin>;
vpcie3v3-supply = <&vcc3v3_pcie>;
status = "okay";
};

&pcie_phy {
status = "okay";
};

&pmu_io_domains {
status = "okay";

pmu1830-supply = <&vcc_3v0>;
};

&pcie_phy {
status = "okay";
};

&pcie0 {
ep-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
num-lanes = <4>;
pinctrl-0 = <&pcie_clkreqnb_cpm>;
pinctrl-names = "default";
vpcie0v9-supply = <&vcc_0v9>;
vpcie1v8-supply = <&vcc_1v8>;
vpcie3v3-supply = <&vcc3v3_pcie>;
status = "okay";
};

The patch was put in order and tested on different builds.

How Has This Been Tested?

See full story of the investigation

The kernel 5.15.y works fine in all possible ways boot: cold boot; soft reboot, boot from eMMC when system on eMMC; etc... There are still unstable soft-reboot on the kernel 6.1.y + overlays=pcie-gen2, but this is all better than don't booting at all. And also I think it's can depends on my current hardwere.

  • [x] RockPi 4b v1.5 + remotable eMMC + NVMe KingSpec M.2 NMVe SSD NE 2280 512 GB
  • [x] RockPi 4b v1.5 + remotable eMMC + NVMe KingSpec M.2 NMVe SSD NE 2280 1 TB

Work without any problem:

  • [x] Armbian_23.02.0-trunk_Rockpi-4b_bullseye_current_5.15.85.img
  • [x] Armbian_23.02.0-trunk_Rockpi-4b_jammy_current_5.15.85.img

Sometimes does not define Name when overlays=pcie-gen2 is enabled (only then soft reboot):

  • [x] Armbian_23.02.0-trunk_Rockpi-4b_sid_edge_6.1.1.img
  • [x] Armbian_23.02.0-trunk_Rockpi-4b_kinetic_edge_6.1.1.img

Checklist:

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

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines