* [PATCH 1/2 v3] net: smsc911x: augment device tree bindings
@ 2016-09-07 13:53 Linus Walleij
2016-09-07 14:31 ` Arnd Bergmann
[not found] ` <1473256411-13965-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 2 replies; 3+ messages in thread
From: Linus Walleij @ 2016-09-07 13:53 UTC (permalink / raw)
To: netdev-u79uwXL29TY76Z2rM5mHXA, David S . Miller,
Steve Glendinning
Cc: Guenter Roeck, Jeremy Linton, Kamlakant Patel, Pavel Fedin,
Linus Walleij, devicetree-u79uwXL29TY76Z2rM5mHXA
This adds device tree bindings for:
- An optional GPIO line for releasing the RESET signal to the
SMSC911x devices
- An optional PME (power management event) interrupt line that
can be utilized to wake up the system on network activity.
This signal exist on all the SMSC911x devices, it is just not
very often routed.
Both these lines are routed to the SoC on the Qualcomm APQ8060
Dragonboard and thus needs to be bound in the device tree.
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Jeremy Linton <jeremy.linton-5wv7dgnIgG8@public.gmane.org>
Signed-off-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
ChangeLog v2->v3:
- Augment interrupt specificiers to be more to the point and less
technical as suggested by Arnd.
ChangeLog v1->v2:
- Document for "interrupts", skip mentioning "interrupts-extended"
as both are always supported.
---
Documentation/devicetree/bindings/net/smsc911x.txt | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/smsc911x.txt b/Documentation/devicetree/bindings/net/smsc911x.txt
index 3fed3c124411..16c3a9501f5d 100644
--- a/Documentation/devicetree/bindings/net/smsc911x.txt
+++ b/Documentation/devicetree/bindings/net/smsc911x.txt
@@ -3,9 +3,11 @@
Required properties:
- compatible : Should be "smsc,lan<model>", "smsc,lan9115"
- reg : Address and length of the io space for SMSC LAN
-- interrupts : Should contain SMSC LAN interrupt line
-- interrupt-parent : Should be the phandle for the interrupt controller
- that services interrupts for this device
+- interrupts : one or two interrupt specifiers
+ - The first interrupt is the SMSC LAN interrupt line
+ - The second interrupt (if present) is the PME (power
+ management event) interrupt that is able to wake up the host
+ system with a 50ms pulse on network activity
- phy-mode : See ethernet.txt file in the same directory
Optional properties:
@@ -21,6 +23,10 @@ Optional properties:
external PHY
- smsc,save-mac-address : Indicates that mac address needs to be saved
before resetting the controller
+- reset-gpios : a GPIO line connected to the RESET (active low) signal
+ of the device. On many systems this is wired high so the device goes
+ out of reset at power-on, but if it is under program control, this
+ optional GPIO can wake up in response to it.
Examples:
@@ -29,7 +35,8 @@ lan9220@f4000000 {
reg = <0xf4000000 0x2000000>;
phy-mode = "mii";
interrupt-parent = <&gpio1>;
- interrupts = <31>;
+ interrupts = <31>, <32>;
+ reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
reg-io-width = <4>;
smsc,irq-push-pull;
};
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2 v3] net: smsc911x: augment device tree bindings
2016-09-07 13:53 [PATCH 1/2 v3] net: smsc911x: augment device tree bindings Linus Walleij
@ 2016-09-07 14:31 ` Arnd Bergmann
[not found] ` <1473256411-13965-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2016-09-07 14:31 UTC (permalink / raw)
To: Linus Walleij
Cc: netdev, David S . Miller, Steve Glendinning, Guenter Roeck,
Jeremy Linton, Kamlakant Patel, Pavel Fedin, devicetree
On Wednesday, September 7, 2016 3:53:31 PM CEST Linus Walleij wrote:
> This adds device tree bindings for:
>
> - An optional GPIO line for releasing the RESET signal to the
> SMSC911x devices
>
> - An optional PME (power management event) interrupt line that
> can be utilized to wake up the system on network activity.
> This signal exist on all the SMSC911x devices, it is just not
> very often routed.
>
> Both these lines are routed to the SoC on the Qualcomm APQ8060
> Dragonboard and thus needs to be bound in the device tree.
>
> Cc: devicetree@vger.kernel.org
> Cc: Jeremy Linton <jeremy.linton@arm.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <1473256411-13965-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH 1/2 v3] net: smsc911x: augment device tree bindings
[not found] ` <1473256411-13965-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2016-09-08 4:06 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2016-09-08 4:06 UTC (permalink / raw)
To: linus.walleij-QSEj5FYQhm4dnm+yROfE0A
Cc: netdev-u79uwXL29TY76Z2rM5mHXA,
steve.glendinning-nksJyM/082jR7s880joybQ,
linux-0h96xk9xTtrk1uMJSBkQmQ, jeremy.linton-5wv7dgnIgG8,
kamlakant.patel-dY08KVG/lbpWk0Htik3J/w,
p.fedin-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA
From: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Date: Wed, 7 Sep 2016 15:53:31 +0200
> This adds device tree bindings for:
>
> - An optional GPIO line for releasing the RESET signal to the
> SMSC911x devices
>
> - An optional PME (power management event) interrupt line that
> can be utilized to wake up the system on network activity.
> This signal exist on all the SMSC911x devices, it is just not
> very often routed.
>
> Both these lines are routed to the SoC on the Qualcomm APQ8060
> Dragonboard and thus needs to be bound in the device tree.
>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: Jeremy Linton <jeremy.linton-5wv7dgnIgG8@public.gmane.org>
> Signed-off-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-08 4:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 13:53 [PATCH 1/2 v3] net: smsc911x: augment device tree bindings Linus Walleij
2016-09-07 14:31 ` Arnd Bergmann
[not found] ` <1473256411-13965-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-09-08 4:06 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).