Skip to content

Commit e970281

Browse files
aiamadeusdesmondc9
authored andcommitted
rockchip: rock3a: fixes pcie3 support
1 parent 89c2670 commit e970281

File tree

1 file changed

+35
-9
lines changed

1 file changed

+35
-9
lines changed

target/linux/rockchip/files-5.15/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts

+35-9
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,37 @@
120120
vin-supply = <&vcc5v0_usb>;
121121
};
122122

123+
pcie30_avdd0v9: pcie30-avdd0v9 {
124+
compatible = "regulator-fixed";
125+
regulator-name = "pcie30_avdd0v9";
126+
regulator-always-on;
127+
regulator-boot-on;
128+
regulator-min-microvolt = <900000>;
129+
regulator-max-microvolt = <900000>;
130+
vin-supply = <&vcc3v3_sys>;
131+
};
132+
133+
pcie30_avdd1v8: pcie30-avdd1v8 {
134+
compatible = "regulator-fixed";
135+
regulator-name = "pcie30_avdd1v8";
136+
regulator-always-on;
137+
regulator-boot-on;
138+
regulator-min-microvolt = <1800000>;
139+
regulator-max-microvolt = <1800000>;
140+
vin-supply = <&vcc3v3_sys>;
141+
};
142+
143+
/* pi6c pcie clock generator */
144+
vcc3v3_pi6c_03: vcc3v3-pi6c-03 {
145+
compatible = "regulator-fixed";
146+
regulator-name = "vcc3v3_pi6c_03";
147+
regulator-always-on;
148+
regulator-boot-on;
149+
regulator-min-microvolt = <3300000>;
150+
regulator-max-microvolt = <3300000>;
151+
vin-supply = <&vcc5v0_sys>;
152+
};
153+
123154
vcc3v3_pcie: vcc3v3-pcie {
124155
compatible = "regulator-fixed";
125156
enable-active-high;
@@ -450,22 +481,21 @@
450481
};
451482

452483
&pcie2x1 {
453-
/* M.2 slot */
454484
pinctrl-names = "default";
455-
pinctrl-0 = <&ngffpcie_reset_h>;
485+
pinctrl-0 = <&pcie_reset_h>;
456486
reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
457487
vpcie3v3-supply = <&vcc3v3_pcie>;
458488
status = "okay";
459489
};
460490

461491
&pcie30phy {
492+
phy-supply = <&vcc3v3_pi6c_03>;
462493
status = "okay";
463494
};
464495

465496
&pcie3x2 {
466-
/* mPCIe slot */
467497
pinctrl-names = "default";
468-
pinctrl-0 = <&minipcie_reset_h>;
498+
pinctrl-0 = <&pcie30x2m1_pins>;
469499
reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
470500
vpcie3v3-supply = <&vcc3v3_pcie>;
471501
status = "okay";
@@ -489,11 +519,7 @@
489519
rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
490520
};
491521

492-
minipcie_reset_h: minipcie-reset-h {
493-
rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
494-
};
495-
496-
ngffpcie_reset_h: ngffpcie-reset-h {
522+
pcie_reset_h: pcie-reset-h {
497523
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
498524
};
499525
};

0 commit comments

Comments
 (0)