blob: 16c3a9501f5d689431451c52b91c86b8ae1395b8 [file] [log] [blame]
Shawn Guo79f88ee2011-07-30 08:26:00 +00001* Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller
2
3Required properties:
4- compatible : Should be "smsc,lan<model>", "smsc,lan9115"
5- reg : Address and length of the io space for SMSC LAN
Linus Walleij216559d2016-09-07 15:53:31 +02006- interrupts : one or two interrupt specifiers
7 - The first interrupt is the SMSC LAN interrupt line
8 - The second interrupt (if present) is the PME (power
9 management event) interrupt that is able to wake up the host
10 system with a 50ms pulse on network activity
Sergei Shtylyove8f08ee2014-02-18 02:41:59 +030011- phy-mode : See ethernet.txt file in the same directory
Shawn Guo79f88ee2011-07-30 08:26:00 +000012
13Optional properties:
14- reg-shift : Specify the quantity to shift the register offsets by
15- reg-io-width : Specify the size (in bytes) of the IO accesses that
16 should be performed on the device. Valid value for SMSC LAN is
17 2 or 4. If it's omitted or invalid, the size would be 2.
18- smsc,irq-active-high : Indicates the IRQ polarity is active-high
19- smsc,irq-push-pull : Indicates the IRQ type is push-pull
20- smsc,force-internal-phy : Forces SMSC LAN controller to use
21 internal PHY
22- smsc,force-external-phy : Forces SMSC LAN controller to use
23 external PHY
24- smsc,save-mac-address : Indicates that mac address needs to be saved
25 before resetting the controller
Linus Walleij216559d2016-09-07 15:53:31 +020026- reset-gpios : a GPIO line connected to the RESET (active low) signal
27 of the device. On many systems this is wired high so the device goes
28 out of reset at power-on, but if it is under program control, this
29 optional GPIO can wake up in response to it.
Shawn Guo79f88ee2011-07-30 08:26:00 +000030
31Examples:
32
33lan9220@f4000000 {
34 compatible = "smsc,lan9220", "smsc,lan9115";
35 reg = <0xf4000000 0x2000000>;
36 phy-mode = "mii";
37 interrupt-parent = <&gpio1>;
Linus Walleij216559d2016-09-07 15:53:31 +020038 interrupts = <31>, <32>;
39 reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
Shawn Guo79f88ee2011-07-30 08:26:00 +000040 reg-io-width = <4>;
41 smsc,irq-push-pull;
42};