Skip to contentSkip to conversation

support PCIe on mt7986/BPI-R3 (DTS)

PATCH New Frank Wunderlich 1 participant 3 messages Oct 27, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover support PCIe on mt7986/BPI-R3 (DTS)

From: Frank Wunderlich <[email protected]>

After PCIe binding got reviewed here the last 2 PCIe Patches for adding DTS nodes to mt7986 and bpi-r3.

based on:

rework mtk pcie-gen3 bindings and support mt7986
https://patchwork.kernel.org/project/linux-mediatek/list/?series=688557

Add BananaPi R3
https://patchwork.kernel.org/project/linux-mediatek/list/?series=688984

Frank Wunderlich (1):
arm64: dts: mt7986: add pcie node to BananaPi-R3

Sam Shih (1):
arm64: dts: mt7986: add pcie related device nodes

 .../dts/mediatek/mt7986a-bananapi-bpi-r3.dtsi | 17 ++++++
 arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts  | 16 ++++++
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi     | 52 +++++++++++++++++++
 3 files changed, 85 insertions(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 arm64: dts: mt7986: add pcie related device nodes

From: Sam Shih <[email protected]>

This patch adds PCIe support for MT7986.

---
changes compared to sams original version:

- add clock-names to pcie node
- update clocks to new binding

---
 arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 16 ++++++
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi    | 52 ++++++++++++++++++++
 2 files changed, 68 insertions(+)
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts +16 -0
index c5cc7bd19dbf..1f29e6da856e 100644
@@ -100,6 +100,15 @@ &mmc0 {
 	non-removable;
 	no-sd;
 	no-sdio;
+};
+
+&pcie {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pcie_pins>;
+	status = "okay";
+};
+
+&pcie_phy {
 	status = "okay";
 };
 
@@ -162,6 +171,13 @@ conf-rst {
 		};
 	};
 
+	pcie_pins: pcie-pins {
+		mux {
+			function = "pcie";
+			groups = "pcie_clk", "pcie_wake", "pcie_pereset";
+		};
+	};
+
 	spi_flash_pins: spi-flash-pins {
 		mux {
 			function = "spi";
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +52 -0

64 lines not on this page · raw message

Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 arm64: dts: mt7986: add PCIe nodes to BananaPi-R3

In reply to Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Add PCIe nodes to Banana Pi R3 SBC which is used on M.2 slot.

---
 .../dts/mediatek/mt7986a-bananapi-bpi-r3.dtsi   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtsi +17 -0
index fc100c3a6415..8eb7079cf6d7 100644
@@ -181,6 +181,16 @@ &i2c0 {
 	status = "okay";
 };
 
+&pcie {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pcie_pins>;
+	status = "okay";
+};
+
+&pcie_phy {
+	status = "okay";
+};
+
 &pio {
 	i2c_pins: i2c-pins {
 		mux {
@@ -247,6 +257,13 @@ conf-rst {
 		};
 	};
 
+	pcie_pins: pcie-pins {
+		mux {
+			function = "pcie";
+			groups = "pcie_clk", "pcie_pereset";
+		};
+	};
+
 	spi_flash_pins: spi-flash-pins {
 		mux {
 			function = "spi";
Signature · 1 line
2.34.1