Skip to contentSkip to conversation

dt-bindings: pci: armada: add system controller and MAC reset bit

PATCH In review Jenishkumar Maheshbhai Patel 2 participants 2 messages Nov 12, 2024

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

PATCH 1/1 dt-bindings: pci: armada: add system controller and MAC reset bit

Adding Armada 7K/8K controller bindings optional system-controller and mac-reset-bit-mask needed for linkdown procedure.

---
 Documentation/devicetree/bindings/pci/pci-armada8k.txt | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/pci/pci-armada8k.txt +6 -0
index ff25a134befa..a177b971a9a0 100644
@@ -24,6 +24,10 @@ Optional properties:
 - phy-names: names of the PHYs corresponding to the number of lanes.
 	Must be "cp0-pcie0-x4-lane0-phy", "cp0-pcie0-x4-lane1-phy" for
 	2 PHYs.
+- marvell,system-controller: address of system controller needed
+	in order to reset MAC used by link-down handle
+- marvell,mac-reset-bit-mask: MAC reset bit of system controller
+	needed in order to reset MAC used by link-down handle
 
 Example:
 
@@ -45,4 +49,6 @@ Example:
 		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
 		num-lanes = <1>;
 		clocks = <&cpm_syscon0 1 13>;
+		marvell,system-controller = <&CP11X_LABEL(syscon0)>;
+		marvell,mac-reset-bit-mask = <CP11X_PCIEx_MAC_RESET_BIT_MASK(1)>;
 	};
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Jenishkumar Maheshbhai Patel

Adding Armada 7K/8K controller bindings optional system-controller and mac-reset-bit-mask needed for linkdown procedure.

Please send the patches as a series if they are all related.

- Mani

Quoted 29 lines
---
 Documentation/devicetree/bindings/pci/pci-armada8k.txt | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/pci/pci-armada8k.txt +6 -0
index ff25a134befa..a177b971a9a0 100644
@@ -24,6 +24,10 @@ Optional properties:
 - phy-names: names of the PHYs corresponding to the number of lanes.
 	Must be "cp0-pcie0-x4-lane0-phy", "cp0-pcie0-x4-lane1-phy" for
 	2 PHYs.
+- marvell,system-controller: address of system controller needed
+	in order to reset MAC used by link-down handle
+- marvell,mac-reset-bit-mask: MAC reset bit of system controller
+	needed in order to reset MAC used by link-down handle
 
 Example:
 
@@ -45,4 +49,6 @@ Example:
 		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
 		num-lanes = <1>;
 		clocks = <&cpm_syscon0 1 13>;
+		marvell,system-controller = <&CP11X_LABEL(syscon0)>;
+		marvell,mac-reset-bit-mask = <CP11X_PCIEx_MAC_RESET_BIT_MASK(1)>;
 	};
Signature · 1 line
2.25.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்