Skip to content

Commit

Permalink
arm64: dts: rockchip: rock-5b: add PCIe2 (M.2 E key) support
Browse files Browse the repository at this point in the history
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
  • Loading branch information
RadxaNaoki committed Jul 22, 2023
1 parent 9e9d5e9 commit de3a594
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@
pinctrl-0 = <&pcie3_vcc3v3_en>;
};

vcc3v3_wf: vcc3v3-wf-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_wf";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
startup-delay-us = <5000>;
enable-active-high;
gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
vin-supply = <&vcc5v0_sys>;
pinctrl-names = "default";
pinctrl-0 = <&ekey_en>;
};

vcc5v0_sys: vcc5v0-sys-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_sys";
Expand All @@ -103,6 +116,10 @@
status = "okay";
};

&combphy1_ps {
status = "okay";
};

&cpu_b0 {
cpu-supply = <&vdd_cpu_big0_s0>;
mem-supply = <&vdd_cpu_big0_mem_s0>;
Expand Down Expand Up @@ -237,6 +254,14 @@
};
};

&pcie2x1l0 {
reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_wf>;
pinctrl-names = "default";
pinctrl-0 = <&pcie30x1m1_pins>;
status = "okay";
};

&pcie2x1l2 {
reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie2x1l2>;
Expand Down Expand Up @@ -277,6 +302,10 @@
};

pcie2 {
ekey_en: ekey-en {
rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
};

pcie2_2_rst: pcie2-2-rst {
rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};
Expand Down

0 comments on commit de3a594

Please sign in to comment.