Skip to content

Commit 93ca8ac

Browse files
openedevmmind
authored andcommitted
arm64: dts: rockchip: Add PCIe for RockPI N10
This patch adds support to enable PCIe for RockPI N10. Signed-off-by: Jagan Teki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent d0cb2f3 commit 93ca8ac

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111

1212
/ {
1313
compatible = "vamrs,rk3399pro-vmarc-som", "rockchip,rk3399pro";
14+
15+
vcc3v3_pcie: vcc-pcie-regulator {
16+
compatible = "regulator-fixed";
17+
enable-active-high;
18+
gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
19+
pinctrl-names = "default";
20+
pinctrl-0 = <&pcie_pwr>;
21+
regulator-name = "vcc3v3_pcie";
22+
regulator-always-on;
23+
regulator-boot-on;
24+
vin-supply = <&vcc5v0_sys>;
25+
};
1426
};
1527

1628
&cpu_l0 {
@@ -142,7 +154,8 @@
142154
regulator-min-microvolt = <900000>;
143155
regulator-max-microvolt = <900000>;
144156
regulator-state-mem {
145-
regulator-off-in-suspend;
157+
regulator-on-in-suspend;
158+
regulator-suspend-microvolt = <900000>;
146159
};
147160
};
148161

@@ -177,7 +190,8 @@
177190
regulator-min-microvolt = <1850000>;
178191
regulator-max-microvolt = <1850000>;
179192
regulator-state-mem {
180-
regulator-off-in-suspend;
193+
regulator-on-in-suspend;
194+
regulator-suspend-microvolt = <1850000>;
181195
};
182196
};
183197

@@ -304,13 +318,35 @@
304318
sdmmc-supply = <&vccio_sd>;
305319
};
306320

321+
&pcie_phy {
322+
status = "okay";
323+
};
324+
325+
&pcie0 {
326+
ep-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
327+
max-link-speed = <2>;
328+
num-lanes = <4>;
329+
pinctrl-0 = <&pcie_clkreqnb_cpm>;
330+
pinctrl-names = "default";
331+
vpcie0v9-supply = <&vcca_0v9>; /* VCC_0V9_S0 */
332+
vpcie1v8-supply = <&vcca_1v8>; /* VCC_1V8_S0 */
333+
vpcie3v3-supply = <&vcc3v3_pcie>;
334+
status = "okay";
335+
};
336+
307337
&pinctrl {
308338
hym8563 {
309339
hym8563_int: hym8563-int {
310340
rockchip,pins = <4 RK_PD6 0 &pcfg_pull_up>;
311341
};
312342
};
313343

344+
pcie {
345+
pcie_pwr: pcie-pwr {
346+
rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
347+
};
348+
};
349+
314350
pmic {
315351
pmic_int_l: pmic-int-l {
316352
rockchip,pins = <1 RK_PC2 0 &pcfg_pull_up>;

0 commit comments

Comments
 (0)