3f823c15d5
Commit 89ce376c6b
(drivers/net: Use of_match_ptr() macro in smc91x.c)
added minimal device tree support to smc91x, but it's not working on
many platforms because of the lack of some key configuration bits.
Fix the issue by parsing the necessary configuration like the
smc911x driver is doing. As most smc91x users seem to use 16-bit
access, let's default to that if no reg-io-width is specified.
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: netdev@vger.kernel.org
Cc: devicetree@vger.kernel.org
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
15 lines
502 B
Plaintext
15 lines
502 B
Plaintext
SMSC LAN91c111 Ethernet mac
|
|
|
|
Required properties:
|
|
- compatible = "smsc,lan91c111";
|
|
- reg : physical address and size of registers
|
|
- interrupts : interrupt connection
|
|
|
|
Optional properties:
|
|
- phy-device : phandle to Ethernet phy
|
|
- local-mac-address : Ethernet mac address to use
|
|
- reg-io-width : Mask of sizes (in bytes) of the IO accesses that
|
|
are supported on the device. Valid value for SMSC LAN91c111 are
|
|
1, 2 or 4. If it's omitted or invalid, the size would be 2 meaning
|
|
16-bit access only.
|