Thread (24 messages) 24 messages, 5 authors, 2014-04-23

Re: [PATCH 3/3] net: via-rhine: add OF bus binding

From: Tony Prisk <hidden>
Date: 2014-01-29 03:44:08
Also in: linux-devicetree, lkml

On 29/01/14 07:27, Alexey Charkov wrote:
2014/1/27 Rob Herring [off-list ref]:
quoted
On Mon, Jan 27, 2014 at 5:51 AM, Alexey Charkov [off-list ref] wrote:
quoted
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 <redacted>
Signed-off-by: Roger Luethi <redacted>
---
  .../devicetree/bindings/net/via-rhine.txt          |  18 ++
  drivers/net/ethernet/via/Kconfig                   |   2 +-
  drivers/net/ethernet/via/via-rhine.c               | 293 +++++++++++++--------
  3 files changed, 200 insertions(+), 113 deletions(-)
  create mode 100644 Documentation/devicetree/bindings/net/via-rhine.txt
diff --git a/Documentation/devicetree/bindings/net/via-rhine.txt b/Documentation/devicetree/bindings/net/via-rhine.txt
new file mode 100644
index 0000000..684dd3a
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/via-rhine.txt
@@ -0,0 +1,18 @@
+* VIA Rhine 10/100 Network Controller
+
+Required properties:
+- compatible : Should be "via,rhine"
This should be more specific rather than...
quoted
+- reg : Address and length of the io space
+- interrupts : Should contain the controller interrupt line
+- rhine,revision : Rhine core revision, used to inform the
+       driver of quirks and capabilities to expect from
+       the device. Mimics the respective PCI attribute.
having this property. The OF match table can then have the quirks set
based on compatible strings.
Sounds fair. Do you think something like the following would fly?

Required properties:
- compatible : Should be "via,rhine-soc-vt8500" for integrated Rhine
cores found in SoC's such as VIA VT8500, WonderMedia WM8950 and
possibly others. These are listed as 1106:3106 rev. 0x84 on the
virtual PCI bus under vendor-provided kernels.
Does it need a special name? I would have assumed they are using their 
own IP for the VT6105 or VT6106S.
Then you can use it to add quirks later on if needed.

Regards
Tony Prisk
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help