All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: rockchip: Enable PCIe for Radxa Rock Pi 4 board
@ 2019-11-17 10:15 ` Matwey V. Kornilov
  0 siblings, 0 replies; 15+ messages in thread
From: Matwey V. Kornilov @ 2019-11-17 10:15 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Heiko Stuebner, Ezequiel Garcia,
	Akash Gajjar, Matwey V. Kornilov
  Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	matwey.kornilov, open list,
	moderated list:ARM/Rockchip SoC support,
	open list:ARM/Rockchip SoC support

Radxa Rock Pi 4 is equipped with M.2 PCIe slot,
so enable PCIe for the board.

The changes has been tested with Intel SSD 660p series device.

    01:00.0 Class 0108: Device 8086:f1a8 (rev 03)

Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
---

Changes since v1:
 - add vpcie3v3-supply

 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts
index 1ae1ebd4efdd..01f8effd8206 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts
@@ -463,6 +463,21 @@
 	pmu1830-supply = <&vcc_3v0>;
 };
 
+&pcie_phy {
+	status = "okay";
+};
+
+&pcie0 {
+	status = "okay";
+
+	ep-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
+	max-link-speed = <2>;
+	num-lanes = <4>;
+	pinctrl-0 = <&pcie_clkreqnb_cpm>;
+	pinctrl-names = "default";
+	vpcie3v3-supply = <&vcc3v3_pcie>;
+};
+
 &pinctrl {
 	bt {
 		bt_enable_h: bt-enable-h {
-- 
2.16.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2019-12-13 10:08 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-17 10:15 [PATCH v2] arm64: dts: rockchip: Enable PCIe for Radxa Rock Pi 4 board Matwey V. Kornilov
2019-11-17 10:15 ` Matwey V. Kornilov
2019-11-17 10:15 ` Matwey V. Kornilov
2019-11-18  0:46 ` Heiko Stuebner
2019-11-18  0:46   ` Heiko Stuebner
2019-11-18  0:46   ` Heiko Stuebner
2019-11-18 18:40   ` Matwey V. Kornilov
2019-11-18 18:40     ` Matwey V. Kornilov
2019-11-19  0:44     ` Tom Cubie
2019-11-19  0:44       ` Tom Cubie
     [not found]       ` <CAFjve-AT6c-yweF0mOPea-caG3n43nZzVPcwef-qp+n35JN9ig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-20 16:12         ` [PATCH] arm64: dts: rockchip: Add regulators for " Matwey V. Kornilov
2019-11-20 16:12           ` Matwey V. Kornilov
2019-11-20 16:12           ` Matwey V. Kornilov
2019-12-13 10:08           ` Heiko Stuebner
2019-12-13 10: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.