From: Tom Lendacky <thomas.lendacky@amd.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: netdev <netdev@vger.kernel.org>, <jcm@redhat.com>,
David Miller <davem@davemloft.net>
Subject: Re: [PATCH V1 net-next 1/5] amd-xgbe: AMD 10GbE device bindings documentation
Date: Fri, 30 May 2014 14:25:01 -0500 [thread overview]
Message-ID: <5388DB0D.90803@amd.com> (raw)
In-Reply-To: <CAGVrzcbb1x_DrqmqH4D5qm2Nh0OBzNZMZ9APMcAq=hbXUsDBKw@mail.gmail.com>
On 05/30/2014 12:11 PM, Florian Fainelli wrote:
> Hi,
>
> 2014-05-30 9:11 GMT-07:00 Tom Lendacky <thomas.lendacky@amd.com>:
>> This patch provides the documentation of the device bindings
>> for the AMD 10GbE platform driver.
>>
>> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
>> ---
>> .../devicetree/bindings/net/amd-xgbe-phy.txt | 17 +++++++++++
>> Documentation/devicetree/bindings/net/amd-xgbe.txt | 32 ++++++++++++++++++++
>> 2 files changed, 49 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/net/amd-xgbe-phy.txt
>> create mode 100644 Documentation/devicetree/bindings/net/amd-xgbe.txt
>>
>> diff --git a/Documentation/devicetree/bindings/net/amd-xgbe-phy.txt b/Documentation/devicetree/bindings/net/amd-xgbe-phy.txt
>> new file mode 100644
>> index 0000000..cd821d0
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/net/amd-xgbe-phy.txt
>> @@ -0,0 +1,17 @@
>> +* AMD 10GbE PHY driver (amd-xgbe-phy)
>> +
>> +Required properties:
>> +- compatible: Should be "amd,xgbe-phy-seattle-v1a" and
>> + "ethernet-phy-ieee802.3-c45"
>> +- reg: Address and length of the register sets for the device
>> + - SerDes Rx/Tx registers
>> + - SerDes integration registers (1/2)
>> + - SerDes integration registers (2/2)
>> +
>> +Example:
>> + xgbe_phy@e1240800 {
>> + compatible = "amd,xgbe-phy-seattle-v1a", "ethernet-phy-ieee802.3-c45";
>> + reg = <0 0xe1240800 0 0x00400>,
>> + <0 0xe1250000 0 0x00060>,
>> + <0 0xe1250080 0 0x00004>;
>> + };
>> diff --git a/Documentation/devicetree/bindings/net/amd-xgbe.txt b/Documentation/devicetree/bindings/net/amd-xgbe.txt
>> new file mode 100644
>> index 0000000..2aec10d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/net/amd-xgbe.txt
>> @@ -0,0 +1,32 @@
>> +* AMD 10GbE driver (amd-xgbe)
>> +
>> +Required properties:
>> +- compatible: Should be "amd,xgbe-seattle-v1a"
>> +- reg: Address and length of the register sets for the device
>> + - MAC registers
>> + - PCS registers
>> +- interrupt-parent: Should be the phandle for the interrupt controller
>> + that services interrupts for this device
>> +- interrupts: Should contain the amd-xgbe interrupt
>> +- clocks: Should be the DMA clock for the amd-xgbe device (used for
>> + calculating the correct Rx interrupt watchdog timer value on a DMA
>> + channel for coalescing)
>> +- clock-names: Should be the name of the DMA clock, "dma_clk"
>> +- phy-handle: Should be the phandle for the associated phy
>
> You can also reference ethernet.txt and phy.txt in the same directory
> for details about 'phy-handle'.
Good idea, will do.
>
> 'phy-mode' is also a required property here since you have specified a
> 'phy-handle' phandle to the PHY node.
>
I'll add phy-mode to the bindings.
Thanks,
Tom
>> +
>> +Optional properties:
>> +- mac-address: mac address to be assigned to the device. Can be overridden
>> + by UEFI.
>> +
>> +Example:
>> + xgbe@e0700000 {
>> + compatible = "amd,xgbe-seattle-v1a";
>> + reg = <0 0xe0700000 0 0x80000>,
>> + <0 0xe0780000 0 0x80000>;
>> + interrupt-parent = <&gic>;
>> + interrupts = <0 325 4>;
>> + clocks = <&xgbe_clk>;
>> + clock-names = "dma_clk";
>> + phy-handle = <&phy>;
>> + mac-address = [ 02 a1 a2 a3 a4 a5 ];
>> + };
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe netdev" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
next prev parent reply other threads:[~2014-05-30 19:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-30 16:10 [PATCH V1 net-next 0/5] AMD 10Gb Ethernet driver Tom Lendacky
2014-05-30 16:11 ` [PATCH V1 net-next 1/5] amd-xgbe: AMD 10GbE device bindings documentation Tom Lendacky
2014-05-30 17:11 ` Florian Fainelli
2014-05-30 19:25 ` Tom Lendacky [this message]
2014-05-30 16:11 ` [PATCH V1 net-next 2/5] amd-xgbe: Initial AMD 10GbE platform driver Tom Lendacky
2014-05-30 16:11 ` [PATCH V1 net-next 3/5] amd-xgbe: Initial AMD 10GbE phylib driver Tom Lendacky
2014-05-30 16:11 ` [PATCH V1 net-next 4/5] amd-xgbe: Configuration and build support Tom Lendacky
2014-05-30 16:11 ` [PATCH V1 net-next 5/5] amd-xgbe: Maintainer information Tom Lendacky
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=5388DB0D.90803@amd.com \
--to=thomas.lendacky@amd.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=jcm@redhat.com \
--cc=netdev@vger.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.