All of lore.kernel.org
 help / color / mirror / Atom feed
From: linus.walleij@linaro.org (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 00/22] Conversion of ARMv4 Gemini to DT and multiplatform
Date: Tue, 24 Jan 2017 21:47:35 +0100	[thread overview]
Message-ID: <CACRpkdY1A8QbKVV0-ZFeH-n0zYpmJkoGj5vA0Ov-DDhBTJf5_w@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1701241734140.2736@T420s>

Hans, Florian et al: does any of you have a copy of the kernel source
dump(s) from Teltonika, Raidsonic or Wiliboard?

Would be nice to have the stuff that vendors are using.

On Tue, Jan 24, 2017 at 6:24 PM, Hans Ulli Kroll
<ulli.kroll@googlemail.com> wrote:

> AFAICR
> This is a dual GMAC !
>
> They are two different base address for each GMAC and one shared
> base address for both of them.
> This is all in one address space which remaps the driver.
>
> And to make it worse two interrupt lines, one of them is also shared.
>
> Any ideas to "convert" this into DT ??
> Because I think it's impossible to split both GMAC interfaces ??

Sounds odd.  Yeah hardware.h lists this:

#define GEMINI_TOE_BASE         0x60000000
#define GEMINI_GMAC0_BASE       0x6000A000
#define GEMINI_GMAC1_BASE       0x6000E000

I guess one approach is to make a driver handling all of it in one,
let it ioremap all regions and support one or two GMACs on the same
TOE. More complex solutions is to share the TOE using
syscons regmap mechanism but it looks cumbersome.

{
   compatible = "cortina,genesis-gmac-ethernet";
   reg = <0x60000000 0xa000>, <0x6000a000 0x4000>, <0x6000e000 0x4000>;
   interrupts = <1 IRQ_TYPE_LEVEL_HIGH>, <2 IRQ_TYPE_LEVEL_HIGH>;
}

Or something like that?

Yours,
Linus Walleij

  reply	other threads:[~2017-01-24 20:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-22 12:15 [PATCH 00/22] Conversion of ARMv4 Gemini to DT and multiplatform Linus Walleij
2017-01-22 18:42 ` Florian Fainelli
2017-01-22 22:44   ` Linus Walleij
2017-01-24 17:24     ` Hans Ulli Kroll
2017-01-24 20:47       ` Linus Walleij [this message]
2017-01-24 20:49         ` Florian Fainelli
2017-01-30 16:35           ` Hans Ulli Kroll
2017-02-11 13:20             ` Linus Walleij
2017-02-11 17:57               ` Hans Ulli Kroll
2017-02-13  3:22                 ` John Feng-Hsin Chiang(江峰興)
2017-02-13  9:20                   ` Hans Ulli Kroll
2017-02-08 13:13 ` Hans Ulli Kroll
2017-02-10 12:26   ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACRpkdY1A8QbKVV0-ZFeH-n0zYpmJkoGj5vA0Ov-DDhBTJf5_w@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.