* [PATCH] arm64: dts: rockchip: add rk3566 pcie2 node
@ 2022-10-26 17:21 ` Furkan Kardame
0 siblings, 0 replies; 4+ messages in thread
From: Furkan Kardame @ 2022-10-26 17:21 UTC (permalink / raw)
To: pgwipeout; +Cc: heiko, linux-rockchip, linux-arm-kernel, Furkan Kardame
This patch adds nodes needed for pcie2
to work on rk3566-roc-pc
Signed-off-by: Furkan Kardame <f.kardame@manjaro.org>
---
.../arm64/boot/dts/rockchip/rk3566-roc-pc.dts | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
index dba648c2f..ab177c4f9 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
@@ -82,6 +82,18 @@ vcc5v0_sys: vcc5v0-sys-regulator {
vin-supply = <&usb_5v>;
};
+ vcc3v3_pcie: vcc3v3-pcie-regulator {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie_enable_h>;
+ regulator-name = "vcc3v3_pcie";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ vin-supply = <&vcc5v0_sys>;
+ };
+
vcc3v3_sys: vcc3v3-sys-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_sys";
@@ -122,6 +134,10 @@ &combphy1 {
status = "okay";
};
+&combphy2 {
+ status = "okay";
+};
+
&cpu0 {
cpu-supply = <&vdd_cpu>;
};
@@ -447,6 +463,14 @@ rgmii_phy1: ethernet-phy@0 {
};
};
+&pcie2x1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie_reset_h>;
+ reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
+ vpcie3v3-supply = <&vcc3v3_pcie>;
+ status = "okay";
+};
+
&pinctrl {
bt {
bt_enable_h: bt-enable-h {
@@ -468,6 +492,16 @@ user_led_enable_h: user-led-enable-h {
};
};
+ pcie {
+ pcie_enable_h: pcie-enable-h {
+ rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+
+ pcie_reset_h: pcie-reset-h {
+ rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
pmic {
pmic_int: pmic_int {
rockchip,pins =
--
2.38.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] arm64: dts: rockchip: add rk3566 pcie2 node
@ 2022-10-26 17:21 ` Furkan Kardame
0 siblings, 0 replies; 4+ messages in thread
From: Furkan Kardame @ 2022-10-26 17:21 UTC (permalink / raw)
To: pgwipeout; +Cc: heiko, linux-rockchip, linux-arm-kernel, Furkan Kardame
This patch adds nodes needed for pcie2
to work on rk3566-roc-pc
Signed-off-by: Furkan Kardame <f.kardame@manjaro.org>
---
.../arm64/boot/dts/rockchip/rk3566-roc-pc.dts | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
index dba648c2f..ab177c4f9 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
@@ -82,6 +82,18 @@ vcc5v0_sys: vcc5v0-sys-regulator {
vin-supply = <&usb_5v>;
};
+ vcc3v3_pcie: vcc3v3-pcie-regulator {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie_enable_h>;
+ regulator-name = "vcc3v3_pcie";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ vin-supply = <&vcc5v0_sys>;
+ };
+
vcc3v3_sys: vcc3v3-sys-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_sys";
@@ -122,6 +134,10 @@ &combphy1 {
status = "okay";
};
+&combphy2 {
+ status = "okay";
+};
+
&cpu0 {
cpu-supply = <&vdd_cpu>;
};
@@ -447,6 +463,14 @@ rgmii_phy1: ethernet-phy@0 {
};
};
+&pcie2x1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie_reset_h>;
+ reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
+ vpcie3v3-supply = <&vcc3v3_pcie>;
+ status = "okay";
+};
+
&pinctrl {
bt {
bt_enable_h: bt-enable-h {
@@ -468,6 +492,16 @@ user_led_enable_h: user-led-enable-h {
};
};
+ pcie {
+ pcie_enable_h: pcie-enable-h {
+ rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+
+ pcie_reset_h: pcie-reset-h {
+ rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
pmic {
pmic_int: pmic_int {
rockchip,pins =
--
2.38.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: add rk3566 pcie2 node
2022-10-26 17:21 ` Furkan Kardame
@ 2022-10-30 20:08 ` Heiko Stuebner
-1 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2022-10-30 20:08 UTC (permalink / raw)
To: pgwipeout, Furkan Kardame
Cc: Heiko Stuebner, linux-rockchip, linux-arm-kernel
On Wed, 26 Oct 2022 20:21:53 +0300, Furkan Kardame wrote:
> This patch adds nodes needed for pcie2
> to work on rk3566-roc-pc
>
>
Applied, thanks!
[1/1] arm64: dts: rockchip: add rk3566 pcie2 node
commit: 8ea13ce0800e3e3bf95da2424f87b649a6efecfa
I've adapted the patch subject to
arm64: dts: rockchip: add pcie2 support for rk3566-roc-pc
Please make sure the patch subject matches the content
in future submissions :-) .
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: add rk3566 pcie2 node
@ 2022-10-30 20:08 ` Heiko Stuebner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2022-10-30 20:08 UTC (permalink / raw)
To: pgwipeout, Furkan Kardame
Cc: Heiko Stuebner, linux-rockchip, linux-arm-kernel
On Wed, 26 Oct 2022 20:21:53 +0300, Furkan Kardame wrote:
> This patch adds nodes needed for pcie2
> to work on rk3566-roc-pc
>
>
Applied, thanks!
[1/1] arm64: dts: rockchip: add rk3566 pcie2 node
commit: 8ea13ce0800e3e3bf95da2424f87b649a6efecfa
I've adapted the patch subject to
arm64: dts: rockchip: add pcie2 support for rk3566-roc-pc
Please make sure the patch subject matches the content
in future submissions :-) .
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-30 20:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 17:21 [PATCH] arm64: dts: rockchip: add rk3566 pcie2 node Furkan Kardame
2022-10-26 17:21 ` Furkan Kardame
2022-10-30 20:08 ` Heiko Stuebner
2022-10-30 20:08 ` Heiko Stuebner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.