From: Andrew Lunn <andrew@lunn.ch>
To: LABBE Corentin <clabbe@baylibre.com>
Cc: Rob Herring <robh@kernel.org>,
hkallweit1@gmail.com, linux@armlinux.org.uk,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH v3] dt-bindings: net: Convert mdio-gpio to yaml
Date: Mon, 3 May 2021 14:14:19 +0200 [thread overview]
Message-ID: <YI/pG3GSIpse+OEo@lunn.ch> (raw)
In-Reply-To: <YI+WPRAAbtmP9LC0@Red>
> > What's the order with 3 lines? In any case, define the order with
> > schema:
> >
> > minItems:
> > items:
> > - description: MDC signal
> > - description: MDIO or ?? signal
> > - description: ?? signal
> >
>
> I dont know what to write in the third line, I added the "maxItems: 3" by request of Andrew Lunn.
> But I have no example at hand.
>
> Andrew could you give me an example of: "You often find with x86 machines you don't have GPIOs, just GPI
> and GPO, and you need to combine two to form the MDIO line of the MDIO bus."
> Or could I drop the "maxItems: 3" until a board need it.
The code gets the GPIOs via index. The index are defined in
include/linux/gpio-mdio.h as:
#define MDIO_GPIO_MDC 0
#define MDIO_GPIO_MDIO 1
#define MDIO_GPIO_MDO 2
So you can describe them MDC, MDIO, MDO.
Andrew
prev parent reply other threads:[~2021-05-03 12:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 18:29 [PATCH v3] dt-bindings: net: Convert mdio-gpio to yaml Corentin Labbe
2021-04-30 21:53 ` Rob Herring
2021-05-03 6:20 ` LABBE Corentin
2021-05-03 12:14 ` Andrew Lunn [this message]
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=YI/pG3GSIpse+OEo@lunn.ch \
--to=andrew@lunn.ch \
--cc=clabbe@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=hkallweit1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=robh@kernel.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.