Skip to contentSkip to conversation

bindings: net: stmmac: add missing note about LPI interrupt

PATCH Superseded Niklas Cassel 2 participants 3 messages Apr 7, 2017 – Apr 10, 2017

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bindings: net: stmmac: add missing note about LPI interrupt

From: Niklas Cassel <[email protected]>

The hardware has a LPI interrupt.
There is already code in the stmmac driver to parse and handle the interrupt. However, this information was missing from the DT binding.

---
 Documentation/devicetree/bindings/net/stmmac.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/net/stmmac.txt +4 -4
index f652b0c384ce..8977abc266ac 100644
@@ -8,8 +8,8 @@ Required properties:
   that services interrupts for this device
 - interrupts: Should contain the STMMAC interrupts
 - interrupt-names: Should contain the interrupt names "macirq"
-  "eth_wake_irq" if this interrupt is supported in the "interrupts"
-  property
+  "eth_wake_irq" if this interrupt is supported in the "interrupts property
+  "eth_lpi" if this interrupt is supported in the "interrupts" property
 - phy-mode: See ethernet.txt file in the same directory.
 - snps,reset-gpio 	gpio number for phy reset.
 - snps,reset-active-low boolean flag to indicate if phy reset is active low.
@@ -152,8 +152,8 @@ Examples:
 		compatible = "st,spear600-gmac";
 		reg = <0xe0800000 0x8000>;
 		interrupt-parent = <&vic1>;
-		interrupts = <24 23>;
-		interrupt-names = "macirq", "eth_wake_irq";
+		interrupts = <24 23 22>;
+		interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
 		mac-address = [000000000000]; /* Filled in by U-Boot */
 		max-frame-size = <3800>;
 		phy-mode = "gmii";
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

Hello!

Quoted 16 lines · Niklas Cassel

From: Niklas Cassel <[email protected]>

The hardware has a LPI interrupt.
There is already code in the stmmac driver to parse and handle the interrupt. However, this information was missing from the DT binding.

---
 Documentation/devicetree/bindings/net/stmmac.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/net/stmmac.txt +0 -0
index f652b0c384ce..8977abc266ac 100644

Documentation/devicetree/bindings/net/stmmac.txt Required properties: · line 11

Quoted 6 lines
Documentation/devicetree/bindings/net/stmmac.txt +1 -2
@@ -8,8 +8,8 @@ Required properties:
   that services interrupts for this device
 - interrupts: Should contain the STMMAC interrupts
 - interrupt-names: Should contain the interrupt names "macirq"
-  "eth_wake_irq" if this interrupt is supported in the "interrupts"
-  property
+  "eth_wake_irq" if this interrupt is supported in the "interrupts property

Missed closing quote?

Documentation/devicetree/bindings/net/stmmac.txt Required properties: · line 15

Quoted 4 lines
Documentation/devicetree/bindings/net/stmmac.txt +1 -0
+  "eth_lpi" if this interrupt is supported in the "interrupts" property
 - phy-mode: See ethernet.txt file in the same directory.
 - snps,reset-gpio 	gpio number for phy reset.
 - snps,reset-active-low boolean flag to indicate if phy reset is active low.

[...]

MBR, Sergei

#2 lore raw
Quoted 15 lines · Sergei Shtylyov

Hello!

Quoted 11 lines · Niklas Cassel

From: Niklas Cassel <[email protected]>

The hardware has a LPI interrupt.
There is already code in the stmmac driver to parse and handle the interrupt. However, this information was missing from the DT binding.

---
 Documentation/devicetree/bindings/net/stmmac.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 13 lines

Documentation/devicetree/bindings/net/stmmac.txt Required properties: · line 11

Quoted 11 lines
Documentation/devicetree/bindings/net/stmmac.txt +1 -2
index f652b0c384ce..8977abc266ac 100644
@@ -8,8 +8,8 @@ Required properties:
   that services interrupts for this device
 - interrupts: Should contain the STMMAC interrupts
 - interrupt-names: Should contain the interrupt names "macirq"
-  "eth_wake_irq" if this interrupt is supported in the "interrupts"
-  property
+  "eth_wake_irq" if this interrupt is supported in the "interrupts property

Missed closing quote?

Thanks for pointing it out.
Will send a v2.

Quoted 9 lines

Documentation/devicetree/bindings/net/stmmac.txt Required properties: · line 15

Quoted 5 lines
Documentation/devicetree/bindings/net/stmmac.txt +1 -0
+  "eth_lpi" if this interrupt is supported in the "interrupts" property
 - phy-mode: See ethernet.txt file in the same directory.
 - snps,reset-gpio     gpio number for phy reset.
 - snps,reset-active-low boolean flag to indicate if phy reset is active low.

[...]

MBR, Sergei