Skip to content

Commit

Permalink
net: via-rhine: add OF bus binding
Browse files Browse the repository at this point in the history
This should make the driver usable with VIA/WonderMedia ARM-based
Systems-on-Chip integrated Rhine III adapters. Note that these
are always in MMIO mode, and don't have any known EEPROM.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexey Charkov authored and David S. Miller committed Apr 23, 2014
1 parent f7630d1 commit 2d28386
Show file tree
Hide file tree
Showing 6 changed files with 229 additions and 115 deletions.
17 changes: 17 additions & 0 deletions Documentation/devicetree/bindings/net/via-rhine.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
* VIA Rhine 10/100 Network Controller

Required properties:
- compatible : Should be "via,vt8500-rhine" for integrated
Rhine controllers found in VIA VT8500, WonderMedia WM8950
and similar. These are listed as 1106:3106 rev. 0x84 on the
virtual PCI bus under vendor-provided kernels
- reg : Address and length of the io space
- interrupts : Should contain the controller interrupt line

Examples:

ethernet@d8004000 {
compatible = "via,vt8500-rhine";
reg = <0xd8004000 0x100>;
interrupts = <10>;
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/vt8500.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,11 @@
reg = <0xd8100000 0x10000>;
interrupts = <48>;
};

ethernet@d8004000 {
compatible = "via,vt8500-rhine";
reg = <0xd8004000 0x100>;
interrupts = <10>;
};
};
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/wm8650.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -218,5 +218,11 @@
reg = <0xd8100000 0x10000>;
interrupts = <48>;
};

ethernet@d8004000 {
compatible = "via,vt8500-rhine";
reg = <0xd8004000 0x100>;
interrupts = <10>;
};
};
};
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/wm8850.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -298,5 +298,11 @@
bus-width = <4>;
sdon-inverted;
};

ethernet@d8004000 {
compatible = "via,vt8500-rhine";
reg = <0xd8004000 0x100>;
interrupts = <10>;
};
};
};
2 changes: 1 addition & 1 deletion drivers/net/ethernet/via/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if NET_VENDOR_VIA

config VIA_RHINE
tristate "VIA Rhine support"
depends on PCI
depends on (PCI || USE_OF)
select CRC32
select MII
---help---
Expand Down
Loading

0 comments on commit 2d28386

Please sign in to comment.