From: Rob Herring <robherring2@gmail.com>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Rob Landley <rob@landley.net>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
Max Filippov <jcmvbkbc@gmail.com>
Subject: Re: [PATCH v2] DT: net: document Ethernet bindings in one place
Date: Wed, 29 Jan 2014 10:16:48 -0600 [thread overview]
Message-ID: <CAL_JsqLJrS2w0idwpi0Ar4RyuZ050sb0eYVyzM1HE4df4FxdZQ@mail.gmail.com> (raw)
In-Reply-To: <52E7D31A.4090107@cogentembedded.com>
On Tue, Jan 28, 2014 at 9:56 AM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> On 01/28/2014 04:38 PM, Rob Herring wrote:
>
>>> This patch is an attempt to gather the Ethernet related bindings in one
>>> file,
>>> like it's done in the MMC and some other subsystems. It should save some
>>> of
>>> the trouble of documenting several properties over and over in each
>>> binding
>>> document, instead only making reference to the main file.
[snip]
>>> - compatible: should be "allwinner,sun4i-emac".
>>> - reg: address and length of the register set for the device.
>>> - interrupts: interrupt for the device
>>> -- phy: A phandle to a phy node defining the PHY address (as the reg
>>> - property, a single integer).
>>> +- phy: see ethernet.txt file in the same directory.
>>> - clocks: A phandle to the reference clock for this device
>>>
>>> Optional properties:
>>> -- (local-)mac-address: mac address to be used by this driver
>>> +- [local-]mac-address: see ethernet.txt file in the same directory
>
>> Sorry, but I meant you should just have a single statement like:
>
>> This binding uses standard ethernet properties defined in ethernet.txt.
>
> This way it won't be clear which of the properties are used and which are
> not, no?
You're right. For the phy properties we need to specify which ones are
used. This could be done only for bindings using the not recommended
properties.
For optional properties like local-mac-address, I don't think these
need to be listed. They can be used for all devices and whether or not
a given Linux driver supports using the property is not really the
concern of the binding documentation. An exception could be a device
that requires a optional property (i.e. a NIC with no eeprom to store
a MAC address).
Rob
next prev parent reply other threads:[~2014-01-29 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-27 22:50 [PATCH v2] DT: net: document Ethernet bindings in one place Sergei Shtylyov
2014-01-28 13:38 ` Rob Herring
2014-01-28 15:56 ` Sergei Shtylyov
2014-01-29 16:16 ` Rob Herring [this message]
2014-01-29 23:48 ` Sergei Shtylyov
2014-01-30 22:56 ` Sergei Shtylyov
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=CAL_JsqLJrS2w0idwpi0Ar4RyuZ050sb0eYVyzM1HE4df4FxdZQ@mail.gmail.com \
--to=robherring2@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jcmvbkbc@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=rob@landley.net \
--cc=robh+dt@kernel.org \
--cc=sergei.shtylyov@cogentembedded.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).