PCIe problem on RK3568 EVB
Doug Brewer
brewer.doug at gmail.com
Tue Apr 18 23:38:49 PDT 2023
On Tue, Apr 18, 2023 at 5:22 PM Michael Riesch
<michael.riesch at wolfvision.net> wrote:
>
> Hi Doug,
Hi Michael,
> On 4/18/23 04:19, Doug Brewer wrote:
> > Hello,
> >
> > I added the following lines in rk3568-evb1-v10.dts:
> >
> > pcie30_avdd0v9: pcie30-avdd0v9 {
> > compatible = "regulator-fixed";
> > regulator-name = "pcie30_avdd0v9";
> > regulator-always-on;
> > regulator-boot-on;
> > regulator-min-microvolt = <900000>;
> > regulator-max-microvolt = <900000>;
> > vin-supply = <&vcc3v3_sys>;
> > };
> >
> > pcie30_avdd1v8: pcie30-avdd1v8 {
> > compatible = "regulator-fixed";
> > regulator-name = "pcie30_avdd1v8";
> > regulator-always-on;
> > regulator-boot-on;
> > regulator-min-microvolt = <1800000>;
> > regulator-max-microvolt = <1800000>;
> > vin-supply = <&vcc3v3_sys>;
> > };
> >
> > vcc3v3_pcie: gpio-regulator {
> > compatible = "regulator-fixed";
> > regulator-name = "vcc3v3_pcie";
> > regulator-min-microvolt = <3300000>;
> > regulator-max-microvolt = <3300000>;
> > enable-active-high;
> > gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
> > startup-delay-us = <5000>;
> > vin-supply = <&dc_12v>;
> > };
> >
> > &pcie30phy {
> > status = "okay";
> > };
> >
> > &pcie3x2 {
> > reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
>
> Shouldn't there be a pinctrl? It seems the pcie3x2 has to possible pinouts?!
>
> > vpcie3v3-supply = <&vcc3v3_pcie>;
> > status = "okay";
> > };
> >
> Maybe you can take the Radxa ROCK3 Model A as mainline reference solution.
I added the following lines:
&pcie3x2 {
pinctrl-names = "default";
pinctrl-0 = <&pcie30x2m1_pins>;
reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie>;
status = "okay";
};
Same result, lspci shows nothing.
> > lspci produces no output (literally nothing), even with -vvvv.
> > Any idea how to debug this? Thanks.
>
> Again, please show us the full dmesg log and your current .config.
Here's my kernel config file: http://sprunge.us/LtErQm
> Additionally, the output of
>
> cat /sys/kernel/debug/devices_deferred
>
> may be helpful to find any devices that could not be probed due to
> missing dependencies.
# cat /sys/kernel/debug/devices_deferred
#
Seems there's no missing dependencies.
> Best regards,
> Michael
Regards,
Doug
More information about the Linux-rockchip
mailing list