1 From da447ec387800bdf2df1fb1d8c1522991d025952 Mon Sep 17 00:00:00 2001
2 From: Sebastian Reichel <sebastian.reichel@collabora.com>
3 Date: Mon, 18 Sep 2023 16:14:51 +0200
4 Subject: [PATCH] arm64: dts: rockchip: add PCIe for M.2 E-Key to rock-5b
6 Enable PCIe2_0 controller and its voltage supply, which is routed
7 to the M.2 E-Key on the upper side of the Radxa Rock 5B.
9 Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
10 Link: https://lore.kernel.org/r/20230918141451.131247-4-sebastian.reichel@collabora.com
11 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
13 .../boot/dts/rockchip/rk3588-rock-5b.dts | 35 +++++++++++++++++++
14 1 file changed, 35 insertions(+)
16 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
17 +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
22 + vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator {
23 + compatible = "regulator-fixed";
25 + gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
26 + pinctrl-names = "default";
27 + pinctrl-0 = <&pcie2_0_vcc3v3_en>;
28 + regulator-name = "vcc3v3_pcie2x1l0";
29 + regulator-always-on;
31 + regulator-min-microvolt = <3300000>;
32 + regulator-max-microvolt = <3300000>;
33 + startup-delay-us = <50000>;
34 + vin-supply = <&vcc5v0_sys>;
37 vcc3v3_pcie2x1l2: vcc3v3-pcie2x1l2-regulator {
38 compatible = "regulator-fixed";
39 regulator-name = "vcc3v3_pcie2x1l2";
49 cpu-supply = <&vdd_cpu_big0_s0>;
56 + pinctrl-names = "default";
57 + pinctrl-0 = <&pcie2_0_rst>;
58 + reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
59 + vpcie3v3-supply = <&vcc3v3_pcie2x1l0>;
64 pinctrl-names = "default";
65 pinctrl-0 = <&pcie2_2_rst>;
70 + pcie2_0_rst: pcie2-0-rst {
71 + rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
74 + pcie2_0_vcc3v3_en: pcie2-0-vcc-en {
75 + rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
78 pcie2_2_rst: pcie2-2-rst {
79 rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;